Preview of Filter Methods
The "Every Method" editing demo allows you to preview 300 editing, analysis and effects methods, and generate sample code.
Image Editing Methods
◼Analysis Methods
◼Color Adjustment Methods
◼Color Depth Methods
◼Detection Methods
◼Special Detection Methods
◼Document Methods
◼Drawing Methods
◼Effects Methods
◼Filter Methods
◼Geometric Methods
◼Painting and Alpha Methods
◼Smoothing Methods
◼Other Methods
◼Selection Methods
◼Interactive Tools
Test Images
ImageEnView1.IO.LoadFromFile( 'D:\ImageTest1.jpg' );
// Apply a Blur filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpBlur );

// Apply an Edge filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpEdge );

// Apply an Emboss filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpEmboss );

// Apply a High Pass filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpHighPass1 );

// Apply a High Pass filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpHighPass2 );

// Apply a High Pass filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpHighPass3 );

// Apply a Low Pass filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpLowPass1 );

// Apply a Low Pass filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpLowPass2 );
// Apply a sharpening filter
Const
Sharpening_Filter: TGraphFilter = ( Values: (( 0, -1, 0 ),
( -1, 5, -1 ),
( 0, -1, 0 ));
Divisor: 1 );
begin
ImageEnView1.Proc.ApplyFilter( Sharpening_Filter );
end;
// Perform a dilation followed by an erosion
ImageEnView1.Proc.Closing( 1 );
// Convolve the specified kernel over the selection (3x3 blur)
ImageEnView1.Proc.Convolve( [0.0, 1.0, 0.0,
1.0, 1.0, 1.0,
0.0, 1.0, 0.0],
3, 3, 1/5);
// Set each pixel to the maximum value of all pixel values in the neighborhood
ImageEnView1.Proc.Maximum( 1 );
// Perform fast median filtering
ImageEnView1.Proc.MedianFilter();

// Perform fast median filtering using high pass sharpening
ImageEnView1.Proc.MedianFilter( 5, 5, 50, 50, 1, 50, mfSharpen );

// Perform fast median filtering using edge extraction
ImageEnView1.Proc.MedianFilter( 5, 5, 50, 50, 1, 50, mfEdgeExtract );
// Set each pixel to the minimum value of all pixel values in the neighborhood
ImageEnView1.Proc.Minimum( 1 );
// Perform an erosion followed by a dilation
ImageEnView1.Proc.Opening( 1 );
// 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();
// Apply an exact 3x3 median filter (one pass)
ImageEnView1.Proc.MedianFilterFast( 1 );
// Apply a 3x3 Laplacian (edge) kernel
const
Kernel: array [0..2] of array [0..2] of single = ((-1, -1, -1), (-1, 8, -1), (-1, -1, -1));
k := IEVisionLib().createImage( 3, 3, ievFLOAT32, 1 );
for i := 0 to 2 do
begin
line := k.getScanline( i );
for j := 0 to 2 do
line[j] := Kernel[i, j];
end;
ImageEnView1.IEBitmap.GetIEVisionImage().filter2D( k, IEVisionPoint( 1, 1 ));
ImageEnView1.Update(); // Show changes in our viewer
See Also
◼Analysis Methods
◼Color Adjustment Methods
◼Color Depth Methods
◼Detection Methods
◼Special Detection Methods
◼Document Methods
◼Drawing Methods
◼Effects Methods
◼Filter Methods
◼Geometric Methods
◼Painting and Alpha Methods
◼Smoothing Methods
◼Other Methods
◼Selection Methods
◼Interactive Tools