LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::filledUpsampling Class Reference

Filled Upsampling. More...

#include <ltiFilledUpsampling.h>

Inheritance diagram for lti::filledUpsampling:
Inheritance graph
[legend]
Collaboration diagram for lti::filledUpsampling:
Collaboration graph
[legend]

List of all members.

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
filledUpsamplingcopy (const filledUpsampling &other)
virtual functorclone () const
const parametersgetParameters () const
void setKernel (const mathObject &aKernel)

Detailed Description

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).

See also:
lti::scaling, lti::filledUpsampling, lti::decimation, lti::downsampling

Constructor & Destructor Documentation

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

Parameters:
other the object to be copied
virtual lti::filledUpsampling::~filledUpsampling (  )  [virtual]

destructor


Member Function Documentation

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.

Parameters:
src vector<channel::value_type> with the source data.
dest vector<channel::value_type> where the result will be left.
Returns:
true if successful, false otherwise.

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.

Parameters:
src vector<channel8::value_type> with the source data.
dest vector<channel8::value_type> where the result will be left.
Returns:
true if successful, false otherwise.
bool lti::filledUpsampling::apply ( const imatrix src,
imatrix dest 
) const [virtual]

operates on a copy of the given parameters.

Parameters:
src channel with the source data.
dest channel where the result will be left.
Returns:
true if successful, false otherwise.

Reimplemented from lti::modifier.

bool lti::filledUpsampling::apply ( const dmatrix src,
dmatrix dest 
) const

operates on a copy of the given parameters.

Parameters:
src dmatrix with the source data.
dest dmatrix where the result will be left.
Returns:
true if successful, false otherwise.
bool lti::filledUpsampling::apply ( const image src,
image dest 
) const [virtual]

operates on a copy of the given parameters.

Parameters:
src channel with the source data.
dest channel where the result will be left.
Returns:
true if successful, false otherwise.

Reimplemented from lti::modifier.

bool lti::filledUpsampling::apply ( const channel src,
channel dest 
) const [virtual]

operates on a copy of the given parameters.

Parameters:
src channel with the source data.
dest channel where the result will be left.
Returns:
true if successful, false otherwise.

Reimplemented from lti::modifier.

bool lti::filledUpsampling::apply ( const channel8 src,
channel8 dest 
) const [virtual]

operates on a copy of the given parameters.

Parameters:
src channel8 with the source data.
dest channel8 where the result will be left.
Returns:
true if successful, false otherwise.

Reimplemented from lti::modifier.

bool lti::filledUpsampling::apply ( vector< channel::value_type > &  srcdest  )  const

operates on the given parameter.

Parameters:
srcdest vector<channel::value_type> with the source data. The result will be left here too.
Returns:
true if successful, false otherwise.

Reimplemented from lti::modifier.

bool lti::filledUpsampling::apply ( vector< channel8::value_type > &  srcdest  )  const

operates on the given parameter.

Parameters:
srcdest vector<channel8::value_type> with the source data. The result will be left here too.
Returns:
true if successful, false otherwise.
bool lti::filledUpsampling::apply ( imatrix srcdest  )  const [virtual]

operates on the given parameter.

Parameters:
srcdest image with the source data. The result will be left here too.
Returns:
true if successful, false otherwise.

Reimplemented from lti::modifier.

bool lti::filledUpsampling::apply ( dmatrix srcdest  )  const

operates on the given parameter.

Parameters:
srcdest dmatrix with the source data. The result will be left here too.
Returns:
true if successful, false otherwise.
bool lti::filledUpsampling::apply ( image srcdest  )  const [virtual]

operates on the given parameter.

Parameters:
srcdest image with the source data. The result will be left here too.
Returns:
true if successful, false otherwise.

Reimplemented from lti::modifier.

bool lti::filledUpsampling::apply ( channel srcdest  )  const [virtual]

operates on the given parameter.

Parameters:
srcdest channel with the source data. The result will be left here too.
Returns:
true if successful, false otherwise.

Reimplemented from lti::modifier.

bool lti::filledUpsampling::apply ( channel8 srcdest  )  const [virtual]

operates on the given parameter.

Parameters:
srcdest channel8 with the source data. The result will be left here too.
Returns:
true if successful, false otherwise.

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.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

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.


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

Generated on Sat Apr 10 15:27:18 2010 for LTI-Lib by Doxygen 1.6.1