You are here: Start » AVL.NET » Function Reference » Image » Image Point Transforms » AVL.RescalePixels_FixedRange
Transforms pixels value from given range into new one.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void RescalePixels_FixedRange ( AvlNet.Image inImage, float inMinValue, float inMaxValue, float inNewMinValue, float inNewMaxValue, AvlNet.Image outImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | AvlNet.Image | Input image. | |||
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 | AvlNet.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.
Hardware acceleration settings may be manipulated with Settings class.
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. |