LUTTransformImage


Changes pixel values for data stored in array.

Syntax

C++
Python
 
def LUTTransformImage(
	state: LUTTransformImageState,
	inImage: Image,
	inColorPoints: list[int],
	inColors: list[Pixel],
	inComputeGradient: bool,
	outImage: Image,
	/,
	*,
	inRoi: Region | None = None
)
-> None

Parameters

Name Type Default Description
Input will be modified ioState LUTTransformImageState
Input value inImage Image Input image
Input value inRoi Region | None None Range of pixels to be processed
Input value inColorPoints list[int] Last pixel value in which corresponding color will be replaced.
Input value inColors list[Pixel] Colors corresponding to pixel levels defined in inColorPoints.
Input value inComputeGradient bool Compute the linear change of pixels colors between next palette colors.
Output value outImage Image Output image

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.