You are here: Start » AVL.NET » AVL.ImageDifferenceImage(AvlNet.Image, AvlNet.Image, AvlNet.Region, AvlNet.Region, AvlNet.DistanceMeasure, AvlNet.Image)
AVL.ImageDifferenceImage(AvlNet.Image, AvlNet.Image, AvlNet.Region, AvlNet.Region, AvlNet.DistanceMeasure, AvlNet.Image)
Computes an image of differences between a moving pattern and the input image.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void ImageDifferenceImage( AvlNet.Image inImage, AvlNet.Image inPatternImage, AvlNet.Region inRoi, AvlNet.Region inPatternRoi, AvlNet.DistanceMeasure inDistanceMeasure, out AvlNet.Image outImage )
Parameters
- inImage
- Type: AvlNet.Image
Input image - inPatternImage
- Type: AvlNet.Image
Pattern to be compared with input image - inRoi
- Type: AvlNet.Region
Range of pixels to be processed, or null. - inPatternRoi
- Type: AvlNet.Region
Range of pixels in the pattern to be processed, or null. - inDistanceMeasure
- Type: AvlNet.DistanceMeasure
Measure of distance - outImage
- Type: AvlNet.Image
Output image
Description
The operation computes the difference between inImage and inPatternImage. The inPatternImage is aligned at each location of the inImage and the similarity between the inPatternImage and the corresponding part of the inImage is estimated using the inDifferenceMeasure as in ImageDifference filter. The result is stored in the pixel of the outImage that corresponds to the location at which the center of inPatternImage was aligned to the inImage.
Examples
![]() A sample inImage. |
![]() A sample inPatternImage. |
![]() The resulting outImage. |
![]() The locations in the inImage corresponding to the darkest points of the outImage. |
Hardware Acceleration
This operation is optimized for SSE2 technology for pixels of types: UINT8 (for inDistanceMeasure = MeanError).
This operation supports automatic parallelization for multicore and multiprocessor systems.
Hardware acceleration settings may be manipulated with Settings class.
Errors
| Error type | Description |
|---|---|
| DomainError | Not supported distance measure in ImageDifferenceImage. |




