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

Blur 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 Constants



Also see: Comparison of smoothing, blurring and noise reduction methods


Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Example

// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );

  

// Blur image using the normalized box filter
ImageEnView1.IEBitmap.GetIEVisionImage().blur( IEVisionSize( 4, 4 ), IEVisionPoint(-1, -1) );
ImageEnView1.Update();