You are here: Start » AVL.NET » Function Reference » Image » Image Point Transforms » AVL.RescalePixels_FixedRange

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
inImageAvlNet.ImageInput image.
inMinValuefloatDeclared minimum value of input image.
inMaxValuefloatDeclared maximum value of input image.
inNewMinValuefloatDesired minimum value of the resulting image.
inNewMaxValuefloatDesired maximum value of the resulting image.
outImageAvlNet.ImageOutput 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.

Function Overrides

See also