ImageEn, unit ievision

TIEVisionImage.blur

TIEVisionImage.blur


Declaration

procedure blur(ksize: TIEVisionSize; anchor: TIEVisionPoint; borderType: TIEVisionBorderType = ievBORDER_REFLECT_101); overload; safecall;
procedure blur(outImage: TIEVisionImage; ksize: TIEVisionSize; anchor: TIEVisionPoint; borderType: TIEVisionBorderType = ievBORDER_REFLECT_101); overload; safecall;


Description

Blurs an image using the normalized box filter.

Parameter Description
outImage Destination image. Must be 8 bit gray scale (ie8g) and must have the same size of input image.
ksize Blurring kernel size.
anchor Anchor point. Value IEVisionPoint(-1, -1) means that the anchor is at the kernel center.
borderType Border mode used to extrapolate pixels outside of the image. For blur, this should be one of: ievBORDER_CONSTANT, ievBORDER_REPLICATE, ievBORDER_REFLECT or ievBORDER_REFLECT_101


BorderType Consts




Example

ImageEnView.IO.LoadFromFile('input.jpg');
ImageEnView.IEBitmap.GetIEVisionImage().blur(IEVisionSize(6, 6), IEVisionPoint(-1, -1));
ImageEnView.Update();