This method allows user to do both masking and weighting. inputImageMask must be non-null and allocated, but does not need to be the same size as the input image. VisionPro assumes that image pels not covered by the mask are care pixels (i.e.they are copied into the destination) inputImageMaskOffsetX/Y can be any integer value. These values specify how the mask is aligned on the image. (Same as other VPro tools with masking.).
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Syntax
Parameters
- inputImage
- Type: Cognex.VisionPro CogImage8Grey
n/a
- inputImageWeights
- Type: Cognex.VisionPro CogImage8Grey
n/a
- inputImageMask
- Type: Cognex.VisionPro CogImage8Grey
n/a
- inputImageMaskOffsetX
- Type: System Int32
n/a
- inputImageMaskOffsetY
- Type: System Int32
n/a
Exceptions
| Exception | Condition |
|---|---|
| CogOperatorNoInputImageException | If inputImage is null. |
| InvalidOperationException | If BlendingBuffer is not allocated. |
| CogImageNoPixelsException | If inputImage is not allocated. |
See Also