|
|
IG_IP_gaussian_blur
Group: Image ProcessingDeclaration:
AT_ERRCOUNT ACCUAPI IG_IP_gaussian_blur (HIGEAR hIGear, const LPAT_RECT lpRect, const double dblRadius );Arguments:
Description:
This function smoothes the images using Gaussian transform. It makes images look softer and slightly out of focus. A specific feature of Gaussian Blur is that it removes the high-frequency component from the image, which is not the case for the IG_IP_smooth().
Parameter
dblRadiuscorresponds to the Standard Deviation (Sigma) in Gaussian transform. It can range from 0.1 to 500. Typical values for high-resolution images range from 1.0 to 2.0. Larger values will cause greater softening. On the other hand, smaller values are faster. The width of the area considered for each pixel is approximately6 * dblRadius.This function, like other ImageGear Image Processing and Clipboard API calls, takes an
AT_RECTstructure as an argument, so that you can process a rectangular subregion of an image. However, before ImageGear performs the operation specified by this function, it will check to see if an internal flag has been set toTRUE, indicating that a maskHIGEARshould be used with the image. If the flag is set toTRUE, and a valid pointer to a mask image has been assigned, ImageGear will override the settings passed to theAT_RECTstructure and use the non-rectangular ROI defined by the maskHIGEAR. To create a non-rectangular region of interest, call IG_IP_NR_ROI_to_HIGEAR_mask().Bits Per Pixel: 8-bit gray level, 8i, 9-16-bit gray level, 24, and 32
Return Value:
Returns the number of ImageGear errors that occurred during this function call.
Example:
HIGEAR hIGear; /* Blur whole image, radius = 2.0 */ nErrCount =IG_IP_gaussian_blur ( hIGear, NULL, 2.0 );Sample: IMG_PROC
|
AccuSoft Co. AccuSoft's Web Site Voice: (508) 351-9092 Fax: (508) 351-9086 E-mail Address |
|
|