You are here: Start » AVL.NET » AVL.RescalePixels(AvlNet.Image, AvlNet.Region, float, float, AvlNet.Image)
AVL.RescalePixels(AvlNet.Image, AvlNet.Region, float, float, AvlNet.Image)
Applies linear transformation to pixel values.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void RescalePixels( AvlNet.Image inImage, AvlNet.Region inRoi, float inA, float inB, out AvlNet.Image outImage )
Parameters
- inImage
- Type: AvlNet.Image
Input image - inRoi
- Type: AvlNet.Region
Range of pixels to be processed, or null. - inA
- Type: System.Single
Value multiplied - inB
- Type: System.Single
Value added - outImage
- Type: AvlNet.Image
Output image
Description
The operation applies linear transformation to pixel values.
\[{\forall _{i,j} }{\bf{outImag} }{ {\bf{e} }_{ {\rm{i} },{\rm{j} } } }{\rm{ = } }{\bf{inA} }\cdot{\bf{inImag} }{ {\bf{e} }_{ {\rm{i} },{\rm{j} } } }{\rm{ + } }{\bf{inB} }\]
Whenever the resulting value exceeds the range of pixel values, it is clipped to the nearest proper value.
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.
