CogIPTwoImageMinMax Execute Method Cognex VisionPro 9.8
Interface for generating and image that is comprised of either the minimum or maximum pixel values in two images.

Namespace: Cognex.VisionPro.ImageProcessing
Assembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 75.1.0.0
Syntax

public ICogImage Execute(
	ICogImage inputImageA,
	ICogImage inputImageB,
	ICogRegion regionA,
	ICogRegion regionB
)

Return Value

Type: ICogImage

The image generated by combining the minimum or maximum pixel values of the input images.

Exceptions

ExceptionCondition
CogOperatorNoInputImageException

inputImageA or inputImageB is NULL.

CogImageNoPixelsException

inputImageA or inputImageB is not allocated.

CogOperatorInvalidRegionException

The selected space of one of the regions is not a valid space of the corresponding input image.

ArgumentException

RegionModeA or RegionModeB is not AffineTransform or PixelAlignedBoundingBox.

OutOfMemoryException

Could not allocate memory for OutputImage.

CogIPNoRegionOverlapException

The regions do not overlap.

Remarks

Generates a new image that is the result of taking the minimum or maximum pixel values the two input images. Use Operation to specify whether to use the minimum or maximum pixel values. If the region parameter is Nothing, the entire image is used.

See Also