Back to Adaptive Vision Library website
You are here: Start » Function Reference » Image Point Transforms » ResaturateImage
Sets pixels below the low value to minimum, above the high value to maximum, and interpolates the rest.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::ResaturateImage ( const avl::Image& inImage, atl::Optional<const avl::Region&> inRoi, float inLowValue, float inHighValue, avl::Image& outImage )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inImage | const Image& | Input image | ||
inRoi | Optional<const Region&> | NIL | Range of pixels to be processed | |
inLowValue | float | 64.0f | The value that will be changed to minimum (usually 0) | |
inHighValue | float | 192.0f | The value that will be changed to maximum (usually 255) | |
outImage | Image& | Output image |
Requirements
For input inImage only pixel formats are supported: int8, uint8, int16, uint16, int32.
Read more about pixel formats in Image documentation.
In-place Processing
This function supports in-place data processing - you can pass the same reference to inImage and outImage
Hardware Acceleration
This operation is optimized for SSE2 technology for pixels of types: UINT8, SINT16.
This operation supports automatic parallelization for multicore and multiprocessor systems.