latest version v1.9 - last update 10 Apr 2010 |
Flips an image horizontally or vertically. More...
#include <ltiFlipImage.h>
Classes | |
class | parameters |
the parameters for the class flipImage More... | |
Public Member Functions | |
flipImage () | |
flipImage (const parameters &par) | |
flipImage (const flipImage &other) | |
virtual | ~flipImage () |
virtual const char * | getTypeName () const |
bool | apply (matrix< rgbPixel > &srcdest) const |
bool | apply (const matrix< rgbPixel > &src, matrix< rgbPixel > &dest) const |
bool | apply (matrix< float > &srcdest) const |
bool | apply (const matrix< float > &src, matrix< float > &dest) const |
bool | apply (matrix< ubyte > &srcdest) const |
bool | apply (const matrix< ubyte > &src, matrix< ubyte > &dest) const |
flipImage & | copy (const flipImage &other) |
flipImage & | operator= (const flipImage &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
Flips an image horizontally or vertically.
This is a very simple functor that returns a flipped version of the original image. The mirroring can be done along the horizontal or vertical axes, or both.
This functor is about 20 times faster in release-mode than using the lti::geometricTransform functor. In the debug mode it is even 40 times faster! The reason is that the latter functor is much more general, and the overhead required for the interpolation and rotation (which is zero in this case) is really expensive.
lti::flipImage::flipImage | ( | ) |
default constructor
lti::flipImage::flipImage | ( | const parameters & | par | ) |
Construct a functor using the given parameters.
lti::flipImage::flipImage | ( | const flipImage & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::flipImage::~flipImage | ( | ) | [virtual] |
destructor
operates on the given parameter.
srcdest | image with the source data. The result will be left here too. |
operates on a copy of the given parameters.
Reimplemented from lti::modifier.
bool lti::flipImage::apply | ( | matrix< float > & | srcdest | ) | const [virtual] |
operates on the given parameter.
srcdest | image with the source data. The result will be left here too. |
Reimplemented from lti::modifier.
operates on the given parameter.
srcdest | image with the source data. The result will be left here too. |
virtual functor* lti::flipImage::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
const parameters& lti::flipImage::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::modifier.
virtual const char* lti::flipImage::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("flipImage")
Reimplemented from lti::modifier.