ImageEn, unit ievision
TIEVisionImage.erode
TIEVisionImage
.erode
Declaration
procedure erode(erosionType:
TIEVisionStructuringElementShape
; erosionSize: uint32_t); safecall;
Description
Perform an erosion of the image.
Erosion is a method of Morphological Image Processing:
en.wikipedia.org/wiki/Erosion_%28morphology%29
Parameter
Description
erosionType
Structuring element shape
erosionSize
Size of structuring element
Demo
Demos\ImageEditing\EveryMethod\EveryMethod.dpr
Method Comparison
// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );
// Perform Erosion (Rectangle)
ImageEnView1.IEBitmap.GetIEVisionImage().erode( ievMORPH_RECT, 4 );
ImageEnView1.Update();
// Perform Erosion (Cross)
ImageEnView1.IEBitmap.GetIEVisionImage().erode( ievMORPH_CROSS, 4 );
ImageEnView1.Update();
// Perform Erosion (Ellipse)
ImageEnView1.IEBitmap.GetIEVisionImage().erode( ievMORPH_ELLIPSE, 4 );
ImageEnView1.Update();
// Perform Dilation (Rectangle)
ImageEnView1.IEBitmap.GetIEVisionImage().dilate( ievMORPH_RECT, 4 );
ImageEnView1.Update();
// Perform Dilation (Cross)
ImageEnView1.IEBitmap.GetIEVisionImage().dilate( ievMORPH_CROSS, 4 );
ImageEnView1.Update();
// Perform Dilation (Ellipse)
ImageEnView1.IEBitmap.GetIEVisionImage().dilate( ievMORPH_ELLIPSE, 4 );
ImageEnView1.Update();
See Also
◼
dilate