ImageEn, unit imageenproc

TImageEnProc.Maximum

TImageEnProc.Maximum


Declaration

procedure Maximum(WindowSize: Integer);


Description

Set each pixel in the image to the maximum value of all the current image pixel values in the neighborhood of size WindowSize.

The maximum filter is typically applied to an image to remove negative outlier noise.

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

Minimum
Opening
Closing
dilate
erode