Normalize Image
This function block rescales image pixel values using selectable normalization methods to improve visualization or adjust dynamic range. It also supports clipping based on image statistics to reduce the effect of outliers.
π₯ Inputs
Reference The primary image to be normalized. (input socket)
Second Image Optional image used to compute normalization statistics. If provided, its statistics are used instead of the reference image. (input socket)
π€ Outputs
Image Any The normalized image ready for further processing or display. (output socket)
πΉοΈ Controls
Morph Type Choose the normalization method. Common options include:
NORM_MINMAXRescales pixel values to a specified range for visualization.NORM_INFBounds values relative to the maximum value, useful for dynamic range adjustments.
Pixel Range Select the target output range for pixel values using a horizontal range slider. This controls the minimum and maximum values after normalization.
Clip Intensity Adjust how aggressively pixel values are clipped around the mean (expressed as a percentage). Higher values reduce extremes by clipping values outside mean Β± (clip Γ std).
βοΈ Running mechanism
When executed, the block reads the selected
Morph Type,Pixel Range, andClip Intensitycontrols and applies normalization to theReferenceimage.If
Second Imageis connected, its mean and standard deviation are used to determine clipping ranges; otherwise the statistics of theReferenceimage are used.The block first clips extreme values around the mean according to
Clip Intensity, then maps pixel values into the chosenPixel Rangeusing the selected normalization method, producing the output image.
π¨ Features
Quick selection between visualization-friendly scaling (
NORM_MINMAX) and maximum-bound scaling (NORM_INF).Adjustable clipping to reduce the effect of outliers or noisy pixels.
Option to use a separate image for normalization statistics, enabling consistent normalization across multiple images or camera streams.
π Usage instructions
Connect the image to be normalized to the
Referenceinput.Optionally connect a stable image or background sample to the
Second Imageinput to use its statistics.Select
Morph Typeappropriate for your goal:Use
NORM_MINMAXto set explicit display ranges.Use
NORM_INFwhen you want to bound by maximum values.
Adjust
Pixel Rangeto define the output min/max values.Tune
Clip Intensityto limit outlier influence before normalization.Feed the resulting
Image Anyinto visualization or downstream processing blocks.
π‘ Tips and Tricks
If your input images are very large, add
Image Resizerbefore this block to speed up preview workflows.Use
DenoisingorBlurbefore normalization to reduce noise-driven clipping and get more stable statistics.For histogram-driven contrast tuning, try
Auto ContrastorContrast Optimizationafter normalization to refine visual appearance.To inspect results visually, connect the output to
Show Imageor save examples withImage Logger/Image Write.When preparing images for detection tasks, normalize consistently across frames by supplying a representative image to the
Second Imageinput (for example, a background sample) so detections downstream (likeFind ObjectorObject Detection) are less sensitive to lighting changes.
π οΈ Troubleshooting
If output looks washed out or clipped, reduce
Clip Intensityor widen thePixel Range.If normalization appears inconsistent across frames, provide a stable image to
Second Imageso the same statistical reference is used every run.If no image appears, ensure a valid image is connected to
Referenceand preview withShow Image.
Last updated