ImageGear Professional for Windows ActiveX
EqualizeContrast Method

Description:

Automatically adjusts the contrast of the image so that each range of possible intensities has about the same number of pixels in it. Just like IGProcessingCtl Control.StretchContrast Method, this will expand the intensity range of the image to fill the entire 0 to 255 range. However, unlike that function this one is non-linear.

This function is often used in x-ray images and in others where the contrast can be very small in the original. IGProcessingCtl control.EqualizeContrast will bring out subtle changes in the contrast.

This method takes into account the ROI settings of pPage object, that are accessible via the IGPage Object.ROI Property. By default ROI is set to the entire image.

Using EqualizeContrast method you need to set the contrast mode to IG_CONTRAST_PIXEL first:

 
Copy Code
IGProcessingCtl1.ContrastOptions.mode = IG_CONTRAST_PIXEL
IGProcessingCtl1.EqualizeContrast currentPage
IGPageViewCtl1.UpdateView

Syntax:

      EqualizeContrast (ByVal pPage As IGPage)

Parameters:

Name Description
pPage Reference to IGPage Object to which the contrast adjustment is applied.

Return Value:

N/A

Bits Per Pixel:

Sample:

Image Processing and Effects

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback