DifferenceImage
Computes the non-negative distances between corresponding pixel values.
Applications:Useful for things like comparing an image against a template or for detecting differences between consecutive video frames.
Syntax
C++
Python
def DifferenceImage( inImage1: Image, inImage2: Image, outImage: Image, /, *, inRoi: Region | None = None ) -> None
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inImage1 | Image | First input image | |
![]() |
inImage2 | Image | Second input image | |
![]() |
inRoi | Region | None | None | Range of pixels to be processed |
![]() |
outImage | Image | Output image |
Hardware Acceleration
This operation is optimized for SSE2 technology for pixels of types: UINT8, SINT8, UINT16, SINT16, REAL.
This operation is optimized for AVX2 technology for pixels of types: UINT8, SINT8, UINT16, SINT16, REAL.
This operation is optimized for NEON technology for pixels of types: UINT8, SINT8, UINT16, SINT16, SINT32, REAL.
This operation supports automatic parallelization for multicore and multiprocessor systems.


