Assembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 69.0.0.0
Property Value
Type: BooleanSets or gets whether the image should be averaged instead of sampled. When this property is set to True, the image is averaged. When this property is set to False, the image is sampled.
Spatial averaging divides an image into blocks of SampleX by SampleY pixels. The pixel values from each pixel in the block are summed, and the result is divided by the number of pixels in the block. The averaged pixel value from the block of pixels is then applied to a single pixel in the destination window. Partial blocks in the image are ignored during spatial averaging.
If you specify an even number for the subsampling rate and you do not use spatial averaging, the tool selects the pixel above and to the left of the center of the sampling area. This introduces a one-half pixel shift in the locations of features in the sampled image. The tool automatically adjusts the output image coordinate space tree by shifting the coordinate space by one-half pixel. Because spatial averaging averages pixel values evenly across the sampling area regardless of its size, no such adjustment is performed when spatial averaging is enabled.
Default Value: False (sampled, not averaged)