Back to Adaptive Vision Library website
You are here: Start » Function Reference » Image Point Transforms » CropPixels
Sets pixels below the low value to the low value and above the high value to the high value.
Syntax
C++
C#
void avl::CropPixels ( const avl::Image& inImage, atl::Optional<const avl::Region&> inRoi, atl::Optional<atl::real> inLowValue, atl::Optional<atl::real> 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 | Optional<real> | 64.0f | The lower threshold for the image pixel values |
![]() |
inHighValue | Optional<real> | 192.0f | The higher threshold for the image pixel values |
![]() |
outImage | Image& | Output image |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inImage and outImage
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.
Errors
| Error type | Description |
|---|---|
| DomainError | The low value cannot be higher than the high value in CropPixels. |


