ReplacePixels


Substitutes pixels having the specified value with a new value.

Syntax

C++
Python
 
def ReplacePixels(
	inImage: Image,
	outImage: Image,
	/,
	*,
	inRoi: Region | None = None,
	inOldPixel: Pixel = Pixel(0, 0, 0, 0),
	inNewPixel: Pixel = Pixel(0, 0, 0, 0)
)
-> 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 inOldPixel Pixel Pixel(0, 0, 0, 0)
Input value inNewPixel Pixel Pixel(0, 0, 0, 0)
Output value outImage Image Output image

Hardware Acceleration

This operation is optimized for SSE2 technology for pixels of types: 1xUINT8, 1xSINT16.

This operation supports automatic parallelization for multicore and multiprocessor systems.