Maximum Images
This function block creates a new image by taking the maximum value for each pixel from two input images. Useful for combining images where you want the brightest or strongest response at each pixel.
π₯ Inputs
Image Any First input image to compare.
Image Any Second input image to compare.
π€ Outputs
Image Any Resulting image where each pixel is the maximum of the two inputs.
πΉοΈ Controls
This function block has no interactive controls.
π¨ Features
Pixel-wise maximum merge of two images.
Preserves per-channel pixel values (works with multi-channel images).
Fast operation suitable for combining detection overlays, masks, or image enhancements.
π Usage Instructions
Connect two image-producing blocks to the two
Image Anyinputs.Run the scenario; the block outputs a single image where each pixel is the maximum of the corresponding pixels from the inputs.
Use the output image for visualization, further processing, or export.
π Evaluation
When evaluated, this block compares the two input images pixel-by-pixel and returns the merged image containing the maximum pixel values.
π‘ Tips and Tricks
If the two images have different dimensions, use
Image ResizeorImage Resizerbefore this block to match sizes.To combine results then visualize them, follow this block with
Show Image.For the opposite effect (minimum values), use the
Minimum Imagesblock.Use
Apply Maskbeforehand to limit merging to specific regions of interest.When assembling multi-source visual summaries, consider
Image ConcatenateorAdd Images Weightedafter merging to create collages or blended overlays.If one image needs padding to align with the other, use
Image Paddingbefore merging.
π οΈ Troubleshooting
Different image sizes: Ensure both inputs share the same width, height, and channel count. Apply
Image ResizeorImage Resizerif they do not.Unexpected colors or channels: Verify both inputs use the same color format (e.g., RGB/BGR) and channel ordering before merging.
No output or blank image: Confirm upstream blocks are providing valid image data to both inputs; use
Show Imageon each source to inspect them.
Last updated
Was this helpful?