ImageEn, unit imageenproc |
|
Filter Method Testing
Testing of Filter Methods
These images were generated using the demo:
\Demos\InputOutput\EveryMethod\EveryMethod.dpr
All Test Results-
Analysis Methods-
Color Adjustment Methods-
Color Depth Methods-
Alpha and Painting Methods-
Effects Methods-
Geometric Methods- Filter Methods-
Smoothing Methods-
Other Methods
// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );

ApplyFilterPreset
// 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 );

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

Convolve
// 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);

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

MedianFilter
// 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 );

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

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

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

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

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

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

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

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

See Also
-
Analysis Methods-
Color Adjustment Methods-
Color Depth Methods-
Alpha and Painting Methods-
Effects Methods-
Geometric Methods- Filter Methods-
Smoothing Methods-
Other Methods