SpatialFilter example for C++ Builder
This example applies Laplacian line detection and redisplays the image.
LEADRasterProcess* pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
pRasterProc->SpatialFilter (LEADRasterView1->Raster, FLT_LAPLACE_1);
LEADRasterView1->ForceRepaint ();
pRasterProc-> Release( );