You are here: Start » AVL.NET » AVL.EqualizeImageHistogram(AvlNet.Image, AvlNet.Region, AvlNet.Image)
AVL.EqualizeImageHistogram(AvlNet.Image, AvlNet.Region, AvlNet.Image)
Maps image pixels to new values to achieve uniform distribution of intensities in the range (0, 255).
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void EqualizeImageHistogram( AvlNet.Image inImage, AvlNet.Region inRoi, out AvlNet.Image outImage )
Parameters
- inImage
- Type: AvlNet.Image
Input image - inRoi
- Type: AvlNet.Region
Range of pixels to be processed, or null. - outImage
- Type: AvlNet.Image
Output image
Description
The filter applies non-linear mapping to image pixel values so that pixel intensities of the resulting image are evenly distributed in range from 0 to 255.
The operation computes the cumulative histogram \(C\) of inImage and the image size \(N\). Then the result is computed as follows:
\[ \begin{aligned} outImage[i,j] &= C[ inImage[i,j] ] \times \frac{255}{N} \end{aligned} \]Examples
![]() |
![]() |
EqualizeImageHistogram run on example image.


