ImageEn, unit ievision

TIEVisionImage.smooth

TIEVisionImage.smooth


Declaration


procedure smooth(dst: TIEVisionImage; smoothType: TIEVisionSmoothType = ievGAUSSIAN; param1: int32_t = 3; param2: int32_t = 0; param3: double = 0.0; param4: double = 0.0); overload; safecall;
procedure smooth(smoothType: TIEVisionSmoothType = ievGAUSSIAN; param1: int32_t = 3; param2: int32_t = 0; param3: double = 0.0; param4: double = 0.0); overload; safecall;


Description


Smooths the image.
First overload places the result into destination object.
Second overload updates the current image.

Parameter Description
dst Container for the destination image.
smoothType Type of the smoothing.
param1 Parameter 1. Depends on smoothType.
param2 Parameter 2. Depends on smoothType.
param3 Parameter 3. Depends on smoothType.
param4 Parameter 4. Depends on smoothType.


smoothType can be:
Parameter Description
ievBLUR_NO_SCALE Linear convolution with param1 x param2 box kernel (all 1's). To smooth different pixels with different-size box kernels, you can use the integral image that is computed using integral.
ievBLUR Linear convolution with param1 x param2 box kernel (all 1's) with subsequent scaling by 1 / (param1 * param2).
ievGAUSSIAN Linear convolution with a param1 x param2 Gaussian kernel.
ievMEDIAN Median filter with a param1 x param1 square aperture.
ievBILATERAL Bilateral filter with a param1 x param1 square aperture, color sigma= param3 and spatial sigma= param4. If param1=0, the aperture square side is set to round(param4*1.5)*2+1.


Note: You may to use assignIEVisionImage to reflect this methods changes in the associated bitmap