| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/image/imagefilterop.h>

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 Image * | manipulate (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. | |
| 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.
| 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
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 | ||||
| ) |