version 3.3

VRS::ImageFilterOp Class Reference

Image filter operations. More...

#include <vrs/image/imagefilterop.h>

Inheritance diagram for VRS::ImageFilterOp:

VRS::ImageManipulator VRS::SharedObj VRS::Visitable

List of all members.

Public Types

enum  OpFilter {
  Median, Percentile, Kuwahara, Maximum,
  Minimum
}

Public Member Functions

 VRS_SERIALIZABLE_CLASS_ENUM (OpFilter)
 ImageFilterOp (OpFilter opType, int filterSizeX=3, int filterSizeY=3, int anchorX=1, int anchorY=1)
void setOperation (OpFilter opType)
OpFilter getOperation () const
 Sets/returns the operation type of the filter-operation object.
int width () const
int height () const
int anchorX () const
int anchorY () const
virtual Imagemanipulate (Image *source, Image *target)
virtual bool operatesInPlace () const
 VRS_TYPEINFO (ImageFilterOp, ImageManipulator)

Static Public Member Functions

static void median (Image *srcImage, Image *dstImage, int sizeX, int sizeY, int anchorX, int anchorY)
static void maximum (Image *srcImage, Image *dstImage, int sizeX, int sizeY, int anchorX, int anchorY)
 Replaces the pixel value by the maximum pixel value of its neighborhood.
static void minimum (Image *srcImage, Image *dstImage, int sizeX, int sizeY, int anchorX, int anchorY)
 Replaces the pixel value by the minimum pixel value of its neighborhood.


Detailed Description

Image filter operations.

Member Enumeration Documentation

Enumerator:
Median 
Percentile 
Kuwahara 
Maximum 
Minimum 


Constructor & Destructor Documentation

VRS::ImageFilterOp::ImageFilterOp ( OpFilter  opType,
int  filterSizeX = 3,
int  filterSizeY = 3,
int  anchorX = 1,
int  anchorY = 1 
)

A region-filter operation object encapsulate one region filter operation applied to a source image. All operations are accessible also as static methods which can be invoked directly.


Member Function Documentation

VRS::ImageFilterOp::VRS_SERIALIZABLE_CLASS_ENUM ( OpFilter   ) 

void VRS::ImageFilterOp::setOperation ( OpFilter  opType  ) 

OpFilter VRS::ImageFilterOp::getOperation (  )  const

Sets/returns the operation type of the filter-operation object.

int VRS::ImageFilterOp::width (  )  const [inline]

int VRS::ImageFilterOp::height (  )  const [inline]

Returns the dimension of the filter

int VRS::ImageFilterOp::anchorX (  )  const [inline]

int VRS::ImageFilterOp::anchorY (  )  const [inline]

Returns the anchor within the filter

virtual Image* VRS::ImageFilterOp::manipulate ( Image srcImage,
Image dstImage 
) [virtual]

The image operation is apply to the source image and the the resulting image is stored in the target image. The handle of the target image is returned.

Implements VRS::ImageManipulator.

virtual bool VRS::ImageFilterOp::operatesInPlace (  )  const [virtual]

See `ImageManipulator'. This manipulator can operate in place.

Reimplemented from VRS::ImageManipulator.

static void VRS::ImageFilterOp::median ( Image srcImage,
Image dstImage,
int  sizeX,
int  sizeY,
int  anchorX,
int  anchorY 
) [static]

Replaces the pixel with the median pixelvalue of its neighborhood.

static void VRS::ImageFilterOp::maximum ( Image srcImage,
Image dstImage,
int  sizeX,
int  sizeY,
int  anchorX,
int  anchorY 
) [static]

Replaces the pixel value by the maximum pixel value of its neighborhood.

static void VRS::ImageFilterOp::minimum ( Image srcImage,
Image dstImage,
int  sizeX,
int  sizeY,
int  anchorX,
int  anchorY 
) [static]

Replaces the pixel value by the minimum pixel value of its neighborhood.

VRS::ImageFilterOp::VRS_TYPEINFO ( ImageFilterOp  ,
ImageManipulator   
)


The documentation for this class was generated from the following file:

Generated on Mon May 21 06:00:18 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact