LerpImages


Interpolates two images linearly pixel by pixel.

Syntax

C++
Python
 
def LerpImages(
	inImage1: Image,
	inImage2: Image,
	outImage: Image,
	/,
	*,
	inRoi: Region | None = None,
	inLambda: float = 0.5
)
-> None

Parameters

Name Type Range 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 inLambda float 0.0 - 1.0 0.5 Interpolation between the input images where 0.0 value is equal to inImage1 and 1.0 to inImage2
Output value outImage Image Output image

Hardware Acceleration

This operation is optimized for SSE2 technology for pixels of types: UINT8, SINT16, REAL.

This operation is optimized for AVX2 technology for pixels of types: UINT8, SINT16, REAL.

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.