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
Input value inImage1 Image First input image
Input value inImage2 Image Second input image
Input value inBox1 Box | None None
Input value inBox2 Box | None None
Input value inTileWidth int 1 -
Input value inTileHeight int | None 1 - None
Input value inTileTranslationMode TileTranslationMode
Input value inOutputFromColorImage bool Flag indicating whether to use every channel of the input images separately to compute results or only channels average
Output value outImage Image Output image