MaxFilter example for Delphi
This example erodes dark objects and repaints the image.
var
sRet: Smallint;
RasterProc: LEADRasterProcess;
begin
RasterProc:= CreateComObject(CLASS_LEADRasterProcess) as LEADRasterProcess;
RasterProc.MaxFilter (LEADRasterView1.Raster, 3);
LEADRasterView1.ForceRepaint (sRet);
end;