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 | |
|---|---|---|---|---|
![]() |
inImage | Image | Input image | |
![]() |
inRoi | Region | None | None | Range of pixels to be processed |
![]() |
inOldPixel | Pixel | Pixel(0, 0, 0, 0) | |
![]() |
inNewPixel | Pixel | Pixel(0, 0, 0, 0) | |
![]() |
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.


