ossimOpenCVSmoothFilter Class Reference

OpenCV Smooth Filter. More...

#include <ossimOpenCVSmoothFilter.h>

List of all members.

Public Member Functions

 ossimOpenCVSmoothFilter (ossimObject *owner=NULL)
 ossimOpenCVSmoothFilter (ossimImageSource *inputSource)
 ossimOpenCVSmoothFilter (ossimObject *owner, ossimImageSource *inputSource)
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)
ossimString getShortName () const
ossimString getLongName () const

Protected Member Functions

void runUcharTransformation (ossimImageData *tile)

Protected Attributes

ossimRefPtr< ossimImageData > theTile
int theSmoothType
 smooth type: CV_BLUR_NO_SCALE, CV_BLUR, CV_GAUSSIAN, CV_MEDIAN, CV_BILATERAL
int theParam1
 aperture width
int theParam2
 aperture height
double theParam3
 If square Gaussian kernel, the Gaussian standard desviation. If non-square Gaussian kernel, the Gaussian standard desviation in the horizontal direction.
double theParam4
 If non-square Gaussian kernel, the Gaussian standard desviation in the vertical direction.

Detailed Description

OpenCV Smooth Filter.

Smooths the image in one of several ways.

Parameters:

Parameters:
smooth_type Type of the smoothing:

  • CV_BLUR_NO_SCALE - linear convolution with param1xparam2 box kernel (all 1’s)
  • CV_BLUR - linear convolution with param1xparam2 box kernel (all 1’s) with subsequent scaling by 1/param1·param2
  • CV_GAUSSIAN - linear convolution with a param1xparam2 Gaussian kernel
  • CV_MEDIAN - median filter with a param1xparam1 square aperture
  • CV_BILATERAL - bilateral filter with a param1xparam1 square aperture, color_sigma=param3 and spatial_sigma=param4. If param1=0, the aperture square side is set to cvRound(param4*1.5)*2+1.
param1 The first parameter of the smoothing operation, the aperture width. Must be a positive odd number (1, 3, 5, ...)
param2 The second parameter of the smoothing operation, the aperture height. Ignored by CV_MEDIAN and CV_BILATERAL methods. In the case of simple scaled/non-scaled and Gaussian blur if param2 is zero, it is set to param1. Otherwise it must be a positive odd number.
param3 In the case of a Gaussian parameter this parameter may specify Gaussian standard deviation. If it is zero, it is calculated from the kernel size: sigma = 0.3 (n/2 - 1) + 0.8, where n = param1 for horizontal kernel and param2 for vertical kernel
param4 In case of non-square Gaussian kernel the parameter may be used to specify a different (from param3) sigma in the vertical direction.

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