OpenCV Laplace Filter. More...
#include <ossimOpenCVLaplaceFilter.h>
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. | |
OpenCV Laplace Filter.
Calculates the Laplacian of an image.
| 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:

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] $](form_19.png)
Similar to the Sobel function, no scaling is done and the same combinations of input and output formats are supported.
| 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.
1.6.1