ImageGear Professional v18.2 > API Reference Guide > Processing Component API Reference > Processing Component Objects > IGProcessingCtl Control > IGProcessingCtl Methods > EnhanceLocal Method |
Enhances an image using the local standard deviation and mean.
This method transforms the input image f(x, y) to a new image g(x, y) based on the following formula,
g(x, y) = A(x, y) * [f(x, y) - m(x, y)] + m(x, y)
where,
A(x, y) = k * M / sigma(x, y), with k being a scaling factor within the range [0, 1], m(x, y) and sigma(x, y) being the local mean and local standard deviation, and M being the global of the input image.
To avoid the problem of spikes caused by too small local standard deviation, a check against the minimum allowed standard deviation is performed. If the local standard deviation is too small, the minimum allowed instead will be used in the calculation.
This method takes into account the ROI settings of pPage object, that are accessible via the IGPage.ROI property. By default ROI is set to the entire image.
EnhanceLocal(pPage As IGPage, winWidth As Long, winHeight As
Long, scaleFactor As Double, minStdDev As Double);
Name | Description |
---|---|
pPage | IGPage object to enhance. |
winWidth | Width of the local window. |
winHeight | Height of the local window. |
scaleFactor | Scaling factor. |
minStdDev | Minimum allowed standard deviation. |
N/A
8 bit grayscale images with one channel
Image Processing and Effects