Assembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 69.0.0.0
Implements
ICogTool Run| Event Type | Reason |
|---|---|
| ICogTool Running | Fires before the tool runs. |
| ICogChangedEvent Changed | Fires when the tool runs. If the run was successful, results are generated; if the run was not successful, no results are generated and the previous results are cleared. Use RunStatus after CogIPTwoImageMinMaxTool returns or in a Ran event handler to determine whether a run was successful or unsuccessful. The following state flags may be affected: |
| ICogTool Ran | Fires after the tool runs. |
| Exception | Condition |
|---|---|
| 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. |
Takes either the maximum or minimum pixel values in InputImageA and InputImageB to create a new output image using the supplied RunParams. You can supply values for RegionA and RegionB to limit which parts of the two images are added.
Operation specifies whether to use minimum or maximum values.Note: This method does not actually raise the exceptions listed below. Use the RunStatus property to obtain a ICogRunStatus reference. Then use its Exception property to see if the Run method raised any exceptions.