ossimOpenCVLaplaceFilter Class Reference

OpenCV Laplace Filter. More...

#include <ossimOpenCVLaplaceFilter.h>

List of all members.

Public Member Functions

 ossimOpenCVLaplaceFilter (ossimObject *owner=NULL)
 ossimOpenCVLaplaceFilter (ossimImageSource *inputSource, int aperture_size=3)
 ossimOpenCVLaplaceFilter (ossimObject *owner, ossimImageSource *inputSource, int aperture_size=3)
ossimString getShortName () const
ossimString getLongName () const
virtual ossimRefPtr
< ossimImageData > 
getTile (const ossimIrect &tileRect, ossim_uint32 resLevel=0)
virtual void initialize ()
virtual ossimScalarType getOutputScalarType () const
ossim_uint32 getNumberOfOutputBands () const
virtual bool saveState (ossimKeywordlist &kwl, const char *prefix=0) const
virtual bool loadState (const ossimKeywordlist &kwl, const char *prefix=0)

Protected Member Functions

void runUcharTransformation (ossimImageData *tile)

Protected Attributes

ossimRefPtr< ossimImageData > theTile
 Output tile.
int theApertureSize
 Size of the extended Laplace kernel, must be 1, 3, 5 or 7.

Detailed Description

OpenCV Laplace Filter.

Calculates the Laplacian of an image.

Parameters:
aperture_size Aperture size (it has the same meaning as Sobel)

The function calculates the Laplacian of the source image by adding up the second x and y derivatives calculated using the Sobel operator:

$ \texttt{dst}(x,y) = \frac{d^2 \texttt{src}}{dx^2} + \frac{d^2 \texttt{src}}{dy^2} $

Setting apertureSize = 1 gives the fastest variant that is equal to convolving the image with the following kernel:

$ \left[ \begin{array}{ccc} 0 & 1 & 0 \\ 1 & -4 & 1 \\ 0 & 1 & 0 \\ \end{array} \right] $

Similar to the Sobel function, no scaling is done and the same combinations of input and output formats are supported.


Member Function Documentation

bool ossimOpenCVLaplaceFilter::loadState ( const ossimKeywordlist &  kwl,
const char *  prefix = 0 
) [virtual]

Method to the load (recreate) the state of an object from a keyword list. Return true if ok or false on error.


The documentation for this class was generated from the following files:
 All Classes Functions Variables

Generated on Thu May 13 09:23:33 2010 for opencv-ossim-plugin by  doxygen 1.6.1