ImageEn, unit imageenproc

TImageEnProc.Closing

TImageEnProc.Closing


Declaration

procedure Closing(WindowSize: Integer);


Description

Perform a dilation (Maximum filter with WindowSize parameter) followed by an erosion (Minimum filter with WindowSize parameter).

The closing filter operation will reduce small negative oriented regions and negative noise regions.

Note:
A UI for this is available to your users in the Image Processing dialog
If the image PixelFormat is not ie24RGB or ie1g, it will be converted


Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Method Comparison

ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );

  


// Perform a dilation followed by an erosion
ImageEnView1.Proc.Closing( 1 );

  


// Perform an erosion followed by a dilation
ImageEnView1.Proc.Opening( 1 );

  


// Set each pixel to the minimum value of all pixel values in the neighborhood
ImageEnView1.Proc.Minimum( 1 );

  


// Set each pixel to the maximum value of all pixel values in the neighborhood
ImageEnView1.Proc.Maximum( 1 );

  


// Perform IEVision Dilation (Rectangle)
ImageEnView1.IEBitmap.GetIEVisionImage().dilate( ievMORPH_RECT, 4 );
ImageEnView1.Update();

  


// Perform IEVision Dilation (Cross)
ImageEnView1.IEBitmap.GetIEVisionImage().dilate( ievMORPH_CROSS, 4 );
ImageEnView1.Update();

  


// Perform Dilation (Ellipse)
ImageEnView1.IEBitmap.GetIEVisionImage().dilate( ievMORPH_ELLIPSE, 4 );
ImageEnView1.Update();

  


// Perform IEVision Erosion (Rectangle)
ImageEnView1.IEBitmap.GetIEVisionImage().erode( ievMORPH_RECT, 4 );
ImageEnView1.Update();

  


// Perform IEVision Erosion (Cross)
ImageEnView1.IEBitmap.GetIEVisionImage().erode( ievMORPH_CROSS, 4 );
ImageEnView1.Update();

  


// Perform IEVision Erosion (Ellipse)
ImageEnView1.IEBitmap.GetIEVisionImage().erode( ievMORPH_ELLIPSE, 4 );
ImageEnView1.Update();

  


See Also

Maximum
Minimum
Opening
dilate
erode