SpatialFilter example for Delphi

This example applies Laplacian line detection and redisplays the image.

var
   sRet: Smallint;
   RasterProc: LEADRasterProcess;
begin
   RasterProc:= CreateComObject(CLASS_LEADRasterProcess) as LEADRasterProcess;
   RasterProc.SpatialFilter (LEADRasterView1.Raster, FLT_LAPLACE_1);
   LEADRasterView1.ForceRepaint (sRet);
end;