ImageEn, unit ievision
TIEVisionImage.dilate
TIEVisionImage
.dilate
Declaration
procedure dilate(dilationType:
TIEVisionStructuringElementShape
; dilationSize: uint32_t); safecall;
Description
Perform an dilation of the image.
Dilation is a method of Morphological Image Processing:
en.wikipedia.org/wiki/Dilation_%28morphology%29
Parameter
Description
dilationType
Structuring element shape
dilationSize
Size of structuring element
Demo
Demos\ImageEditing\EveryMethod\EveryMethod.dpr
Method Comparison
// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );
// 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();
// 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();
See Also
◼
erode