AddToImage


Adds a scalar value to each pixel.

Syntax

C++
Python
 
def AddToImage(
	inImage: Image,
	inValue: float,
	outImage: Image,
	/,
	*,
	inRoi: Region | None = None
)
-> None

Parameters

Name Type Default Description
Input value inImage Image Input image
Input value inRoi Region | None None Range of pixels to be processed
Input value inValue float Value to be added
Output value outImage Image Output image

Hardware Acceleration

This operation is optimized for SSE2 technology for pixels of types: UINT8, SINT8, 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.