ImageGear Professional for Windows ActiveX
AdjustContrastAutoFrom Method

Description:

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.

Syntax:

      AdjustContrastAuto(pContrast As IGMedContrast)

Parameters:

Name Description
pContrast Specifies new Rescale and Gamma and returns new Window settings.

Return Value:

N/A

Bits Per Pixel:

9..16g

Sample:

Med

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback