ImageGear Professional v18.2 > API Reference Guide > MD Component API Reference > MD Component Objects > IGMedDisplay Object > IGMedDisplay Methods > AdjustContrastAutoFrom Method |
Automatically fills the 16x8 LUT of a 16-bit image loaded into ImageGear in order to optimize its displaying. The function scans the portion of the image specified by current ROI to determine its minimum and maximum pixel values, and calculates the Window Center and Width from these.
The ROI settings of IGPage Object are accessible via the IGPage Object.ROI Property. By default ROI is set to the entire image.
If the Rescale Slope and Intercept of the image are known, you should provide them. If they are not known, pass in a 1.0 and 0.0, respectively.
The Window Center and Width that this function computes are passed back to you in the pContrast object.
AdjustContrastAuto(pContrast As IGMedContrast)
Name | Description |
---|---|
pContrast | Specifies new Rescale and Gamma and returns new Window settings. |
N/A
9..16g
Med