ImageGear Professional v18.2 > API Reference Guide > Processing Component API Reference > Processing Component Objects > IGProcessingCtl Control > IGProcessingCtl Methods > EqualizeContrast Method |
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 |
EqualizeContrast (ByVal pPage As IGPage)
Name | Description |
---|---|
pPage | Reference to IGPage Object to which the contrast adjustment is applied. |
N/A
Image Processing and Effects