SubtractImages


Subtracts two images pixel by pixel.

Syntax

C++
Python
 
def SubtractImages(
	inImage1: Image,
	inImage2: Image,
	outImage: Image,
	/,
	*,
	inRoi: Region | None = None,
	inScale: float = 1.0
)
-> None

Parameters

Name Type Default Description
Input value inImage1 Image First input image
Input value inImage2 Image Second input image
Input value inRoi Region | None None Range of pixels to be processed
Input value inScale float 1.0 Output image scaling factor
Output value outImage Image Output image

Hardware Acceleration

This operation is optimized for SSE2 technology for pixels of types: UINT8, SINT16, REAL, SINT8(for inScale=1), UINT16(for inScale=1).

This operation is optimized for SSE41 technology for pixels of types: UINT16(for inScale!=1).

This operation is optimized for AVX2 technology for pixels of types: UINT8, SINT16, UINT16, REAL, SINT8(for inScale=1).

This operation is optimized for NEON technology for pixels of types: UINT8, SINT8, UINT16, SINT16, SINT32.

This operation supports automatic parallelization for multicore and multiprocessor systems.