DifferenceImage_Flex
Computes the non-negative distances between corresponding pixel values using tiles.
Applications:Useful for things like comparing an image against a template or for detecting differences between consecutive video frames.
Syntax
C++
C#
Python
def DifferenceImage_Flex( inImage1: Image, inImage2: Image, inTileWidth: int, inTileTranslationMode: TileTranslationMode, inOutputFromColorImage: bool, outImage: Image, /, *, inBox1: Box | None = None, inBox2: Box | None = None, inTileHeight: int | None = None ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage1 | Image | First input image | ||
![]() |
inImage2 | Image | Second input image | ||
![]() |
inBox1 | Box | None | None | ||
![]() |
inBox2 | Box | None | None | ||
![]() |
inTileWidth | int | 1 - ![]() |
||
![]() |
inTileHeight | int | None | 1 - ![]() |
None | |
![]() |
inTileTranslationMode | TileTranslationMode | |||
![]() |
inOutputFromColorImage | bool | Flag indicating whether to use every channel of the input images separately to compute results or only channels average | ||
![]() |
outImage | Image | Output image |



