Article
NUC Non-Uniformity Correction for ALTRON Thermal Cameras: With and Without a Shutter
The first time you see the raw image from a thermal detector, you might think there is dust on the lens. A fixed, grainy texture covers the whole frame and doesn't move even when you turn the camera. This texture doesn't belong to the scene; it belongs to the sensor itself. Until NUC is done, the thermal image is practically unusable.
In a thermal detector, each pixel has its own offset. The differences between these offsets are often larger than the temperature differences we want to see. So they show up as a fixed pattern on every frame. The pattern also shifts slightly as the camera body warms up and cools down, so non-uniformity correction is not a one-time job.
ALTRON has two main ways to do this: one by closing the shutter and viewing a uniform scene, the other without a shutter, by learning from the camera's own motion.
The 1-Point NUC (offset) builds an offset map from a uniform scene and applies it to every frame. In the ready-made Thermal ISP graph, this is the first node after the camera. The procedure:
- Close the shutter. In the camera panel, go to the Lens Control tab. In the Mechanical Shutter section, select the Close direction and press the 20 button repeatedly until the shutter is fully closed. If you don't have a shutter, place a uniform-temperature plate in front of the lens. This plate must cover the entire frame.
- In the 1PNUC panel, press Start Capture. Live frames are averaged, and the frame count is shown on the button.
- After a few dozen frames, press the same button again. The map is built and the software asks where to save the .nuc file.
- Open the shutter again using the Open direction. The Apply NUC checkbox is ticked automatically once the map has been built.
The map is simply the difference between each pixel and the average of the whole frame. So the overall image brightness is untouched and only the pixel-to-pixel unevenness is removed.
- If you close the save dialog, the map works for now but is not on disk, and it will be lost on the next run.
- Use Load NUC to load a saved file. Clear removes the map from memory and also unticks Apply NUC, but the file on disk is not deleted.
- If the frame size or format doesn't match the map, the image passes through uncorrected. After changing the resolution, build the map again.
When you close the shutter, you have no image for a few moments. In some applications this interruption is not acceptable. The Scene NUC (pan-based) uses the camera's own motion. This method suits a thermal camera on a rotating head. As the camera rotates, a single point in the scene falls on different pixels in turn. If two pixels give two different values for the same thing, the difference belongs to the pixels. The algorithm gradually learns exactly this difference. When the image is static, learning stops automatically.
This plug-in works on monochrome images from area scan cameras and is off when added to the graph. Tick On (learns while panning) and press Set. The key settings:
Whenever the scene or camera settings change, press Clr Map so learning starts from zero. Do the same if the image looks burned-in or soft.
- If the camera is fixed and sees a still scene, use 1PNUC. Scene NUC learns nothing from a still scene, and that is the correct behavior.
- If the camera is on a pan head or a moving platform and image interruption is not acceptable, choose Scene NUC.
- If accuracy across the entire temperature range matters, use the two-point plugin Non-Uniformity Correction. In this plugin you take two uniform references: a black reference at a low level and a gray reference at a mid level. You load them with Load Black Avg... and Load Gray Avg.... This way both the offset and the response slope of each pixel are corrected. Both references must be captured with the same exposure and gain as the actual job.
- The shutter or reference plate doesn't cover the whole frame. Any unevenness in the reference scene is recorded in the map as pixel error and stays on all later images.
- Capturing the map right after turning on the camera, while the body is still warming up.
- Raising the Learn rate out of impatience. The usual result is a ghost of the previous scene left on the image.
If you still see fine vertical or horizontal lines after NUC, turn to the Destripe plug-in, which sits after NUC in the graph. Read more about our Thermal camera and its processing chain.
For a more general explanation of fixed-pattern noise, see Wikipedia (English).
If you're not sure whether your installation needs a shutter or whether Scene NUC is enough, describe your working conditions to us through the contact page.