Changes between Version 1 and Version 2 of ossimPlugin


Ignore:
Timestamp:
May 14, 2007, 9:36:17 AM (17 years ago)
Author:
mlucas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ossimPlugin

    v1 v2  
     1= How to write an OSSIM plugin =
     2
    13The 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
     4 * Takes an image/raster tile
     5 * Applies some spatial/spectral operator to it
     6 * Returns a result tile
     7
    58The plugin demonstrated here is the CFAR plugin found in ossim_plugins contrib folder.
    69This 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.
     10
     11 # Copy the sample code from '''ossim/src/examples/shared/image_filters''' to a folder under ossim_plugins, contrib is a good choice.
     12 # Edit the Filtering method, '''runUcharTransformation''' in the example method with required algorithm.
     13 # The required algorithm is in effect a couple of convolutions, hence the ossim3x3convolution filter was extended to implement this.
     14 # Write additional house keeping code:
     15 #* Load and save states for saving the chains from VCE and copy pasting.
     16 #* Property setter-getters to modify the filter on the fly via the Properties dialog.
     17
     18
    1319All 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.