Back to Aurora Vision Library Lite website
You are here: Start » Image » Image Point Transforms » RescalePixels_FixedRange
RescalePixels_FixedRange
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
Transforms pixels value from given range into new one.
Syntax
void avl::RescalePixels_FixedRange ( const avl::Image& inImage, atl::Optional<const avl::Region&> inRoi, float inMinValue, float inMaxValue, float inNewMinValue, float inNewMaxValue, avl::Image& outImage )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inImage | const Image& | Input image | |
![]() |
inRoi | Optional<const Region&> | NIL | Range of pixels to be processed |
![]() |
inMinValue | float | Declared minimum value of input image | |
![]() |
inMaxValue | float | Declared maximum value of input image | |
![]() |
inNewMinValue | float | Desired minimum value of the resulting image | |
![]() |
inNewMaxValue | float | Desired maximum value of the resulting image | |
![]() |
outImage | Image& | Output image |
Hardware Acceleration
This operation is optimized for SSE2 technology for pixels of types: UINT8, SINT8, SINT16, REAL.
This operation supports automatic parallelization for multicore and multiprocessor systems.
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | A inMinValue cannot be equal to inMaxValue in RescalePixels_FixedRange. |
| DomainError | A inMinValue cannot be higher than the inMaxValue in RescalePixels_FixedRange. |
| DomainError | The inNewMinValue cannot be higher than the inNewMaxValue in RescalePixels_FixedRange. |


