| 1 | The basic concept described here applies to a filter type plugin which : |
| 2 | * Takes an image/raster tile |
| 3 | * Applies some spatial/spectral operator to it |
| 4 | * Returns a result tile |
| 5 | The plugin demonstrated here is the CFAR plugin found in ossim_plugins contrib folder. |
| 6 | This plugin was built in the following stages: |
| 7 | # Copy the sample code from '''ossim/src/examples/shared/image_filters''' to a folder under ossim_plugins, contrib is a good choice. |
| 8 | # Edit the Filtering method, '''runUcharTransformation''' in the example method with required algorithm. |
| 9 | # The required algorithm is in effect a couple of convolutions, hence the ossim3x3convolution filter was extended to implement this. |
| 10 | # Write additional house keeping code: |
| 11 | #* Load and save states for saving the chains from VCE and copy pasting. |
| 12 | #* Property setter-getters to modify the filter on the fly via the Properties dialog. |
| 13 | All plugin code must be registered via a factory class to the Ossim Core. In the contrib folder there is a contrib plugin registry(ossimContrinPluginFactory.cpp) to which smaller plugins can be registered. |