latest version v1.9 - last update 10 Apr 2010 |
Filled Upsampling. More...
#include <ltiFilledUpsampling.h>
Classes | |
class | parameters |
the parameters for the class upsampling More... | |
Public Member Functions | |
filledUpsampling () | |
filledUpsampling (const point &factor) | |
filledUpsampling (const int &factor) | |
filledUpsampling (const filledUpsampling &other) | |
virtual | ~filledUpsampling () |
virtual const char * | getTypeName () const |
bool | apply (channel8 &srcdest) const |
bool | apply (channel &srcdest) const |
bool | apply (image &srcdest) const |
bool | apply (dmatrix &srcdest) const |
bool | apply (imatrix &srcdest) const |
bool | apply (vector< channel8::value_type > &srcdest) const |
bool | apply (vector< channel::value_type > &srcdest) const |
bool | apply (const channel8 &src, channel8 &dest) const |
bool | apply (const channel &src, channel &dest) const |
bool | apply (const image &src, image &dest) const |
bool | apply (const dmatrix &src, dmatrix &dest) const |
bool | apply (const imatrix &src, imatrix &dest) const |
bool | apply (const vector< channel8::value_type > &src, vector< channel8::value_type > &dest) const |
bool | apply (const vector< channel::value_type > &src, vector< channel::value_type > &dest) const |
filledUpsampling & | copy (const filledUpsampling &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
void | setKernel (const mathObject &aKernel) |
Filled Upsampling.
filledUpsampling takes some image or channel and transforms each pixel to a filled square. This could also be obtained with the upsampling functor and an appropriate kernel, but this one is much faster, since it omits all that convolution stuff by default. However, convolution can still be performed by supplying an external kernel (by calling setKernel).
lti::filledUpsampling::filledUpsampling | ( | ) |
default constructor
lti::filledUpsampling::filledUpsampling | ( | const point & | factor | ) |
constructor to give directly the scaling factor
lti::filledUpsampling::filledUpsampling | ( | const int & | factor | ) |
constructor to give directly the scaling factor
lti::filledUpsampling::filledUpsampling | ( | const filledUpsampling & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::filledUpsampling::~filledUpsampling | ( | ) | [virtual] |
destructor
bool lti::filledUpsampling::apply | ( | const vector< channel::value_type > & | src, | |
vector< channel::value_type > & | dest | |||
) | const [virtual] |
operates on a copy of the given parameters.
src | vector<channel::value_type> with the source data. | |
dest | vector<channel::value_type> where the result will be left. |
Reimplemented from lti::modifier.
bool lti::filledUpsampling::apply | ( | const vector< channel8::value_type > & | src, | |
vector< channel8::value_type > & | dest | |||
) | const |
operates on a copy of the given parameters.
src | vector<channel8::value_type> with the source data. | |
dest | vector<channel8::value_type> where the result will be left. |
operates on a copy of the given parameters.
Reimplemented from lti::modifier.
operates on a copy of the given parameters.
src | dmatrix with the source data. | |
dest | dmatrix where the result will be left. |
operates on a copy of the given parameters.
Reimplemented from lti::modifier.
operates on a copy of the given parameters.
Reimplemented from lti::modifier.
operates on a copy of the given parameters.
Reimplemented from lti::modifier.
bool lti::filledUpsampling::apply | ( | vector< channel::value_type > & | srcdest | ) | const |
operates on the given parameter.
srcdest | vector<channel::value_type> with the source data. The result will be left here too. |
Reimplemented from lti::modifier.
bool lti::filledUpsampling::apply | ( | vector< channel8::value_type > & | srcdest | ) | const |
operates on the given parameter.
srcdest | vector<channel8::value_type> with the source data. The result will be left here too. |
bool lti::filledUpsampling::apply | ( | imatrix & | 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.
bool lti::filledUpsampling::apply | ( | dmatrix & | srcdest | ) | const |
operates on the given parameter.
srcdest | dmatrix with the source data. The result will be left here too. |
bool lti::filledUpsampling::apply | ( | image & | 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.
bool lti::filledUpsampling::apply | ( | channel & | srcdest | ) | const [virtual] |
operates on the given parameter.
srcdest | channel with the source data. The result will be left here too. |
Reimplemented from lti::modifier.
bool lti::filledUpsampling::apply | ( | channel8 & | srcdest | ) | const [virtual] |
operates on the given parameter.
srcdest | channel8 with the source data. The result will be left here too. |
Reimplemented from lti::modifier.
virtual functor* lti::filledUpsampling::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
filledUpsampling& lti::filledUpsampling::copy | ( | const filledUpsampling & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
const parameters& lti::filledUpsampling::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::modifier.
virtual const char* lti::filledUpsampling::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("filledUpsampling")
Reimplemented from lti::modifier.
void lti::filledUpsampling::setKernel | ( | const mathObject & | aKernel | ) |
shortcut to set the filter kernel in the functor parameters.
The other parameters remain unchanged.