Median example for Delphi
This example applies a median filter with a 3x3 neighborhood and redisplays the bitmap.
var
sRet: Smallint;
RasterProc: LEADRasterProcess;
begin
RasterProc:= CreateComObject(CLASS_LEADRasterProcess) as LEADRasterProcess;
RasterProc.Median (LEADRasterView1.Raster, 3);
LEADRasterView1.ForceRepaint (sRet);
end;