CVR-Lib last update 20 Sep 2009

cvr::filledUpsampling Class Reference
[Linear filtering]

Filled upsampling (or upsampling with zero-order interpolation). More...

#include <cvrFilledUpsampling.h>

Inheritance diagram for cvr::filledUpsampling:

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

Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 The parameters for the class cvr::filledUpsampling. More...

Public Member Functions

 filledUpsampling ()
 filledUpsampling (const ipoint &factor)
 filledUpsampling (const int factor)
 filledUpsampling (const filledUpsampling &other)
virtual ~filledUpsampling ()
virtual const std::string & name () const
template<typename T >
bool apply (matrix< T > &srcdest) const
template<typename T >
bool apply (vector< T > &srcdest) const
template<typename T >
bool apply (const matrix< T > &src, matrix< T > &dest) const
template<typename T >
bool apply (const vector< T > &src, vector< T > &dest) const
template<typename T >
bool apply (const ipoint &factor, matrix< T > &srcdest) const
template<typename T >
bool apply (const int factor, vector< T > &srcdest) const
template<typename T >
bool apply (const ipoint &factor, const matrix< T > &src, matrix< T > &dest) const
template<typename T >
bool apply (const int factor, const vector< T > &src, vector< T > &dest) const
filledUpsamplingcopy (const filledUpsampling &other)
virtual functorclone () const
virtual functornewInstance () const
const parametersgetParameters () const


Detailed Description

Filled upsampling (or upsampling with zero-order interpolation).

The class cvr::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 convolution overhead.


Constructor & Destructor Documentation

cvr::filledUpsampling::filledUpsampling (  ) 

Default constructor.

cvr::filledUpsampling::filledUpsampling ( const ipoint factor  ) 

Constructor to give directly the scaling factor.

cvr::filledUpsampling::filledUpsampling ( const int  factor  ) 

Constructor to give directly the scaling factor.

cvr::filledUpsampling::filledUpsampling ( const filledUpsampling other  ) 

Copy constructor.

Parameters:
other the object to be copied

virtual cvr::filledUpsampling::~filledUpsampling (  )  [virtual]

Destructor.


Member Function Documentation

template<typename T >
bool cvr::filledUpsampling::apply ( const int  factor,
const vector< T > &  src,
vector< T > &  dest 
) const [inline]

Operates on a copy of the given parameters.

Parameters:
factor upsampling factor (this method ignores the value in the parameters).
src vector with the source data.
dest vector where the result will be left.
Returns:
true if successful, false otherwise.

template<typename T >
bool cvr::filledUpsampling::apply ( const ipoint factor,
const matrix< T > &  src,
matrix< T > &  dest 
) const [inline]

Operates on a copy of the given parameters.

Parameters:
factor upsampling factor (this method ignores the value in the parameters).
src channel or matrix with the source data.
dest channel or matrix where the result will be left.
Returns:
true if successful, false otherwise.

template<typename T >
bool cvr::filledUpsampling::apply ( const int  factor,
vector< T > &  srcdest 
) const [inline]

Operates on the given parameter.

Parameters:
factor upsampling factor (this method ignores the value in the parameters).
srcdest vector with the source data. The result will be left here too.
Returns:
true if successful, false otherwise.

template<typename T >
bool cvr::filledUpsampling::apply ( const ipoint factor,
matrix< T > &  srcdest 
) const [inline]

Operates on the given parameter.

Parameters:
factor upsampling factor (this method ignores the value in the parameters).
srcdest channel or matrix with the source data. The result will be left here too.
Returns:
true if successful, false otherwise.

template<typename T >
bool cvr::filledUpsampling::apply ( const vector< T > &  src,
vector< T > &  dest 
) const [inline]

Operates on a copy of the given parameters.

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

template<typename T >
bool cvr::filledUpsampling::apply ( const matrix< T > &  src,
matrix< T > &  dest 
) const [inline]

Operates on a copy of the given parameters.

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

template<typename T >
bool cvr::filledUpsampling::apply ( vector< T > &  srcdest  )  const [inline]

Operates on the given parameter.

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

template<typename T >
bool cvr::filledUpsampling::apply ( matrix< T > &  srcdest  )  const [inline]

Operates on the given parameter.

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

virtual functor* cvr::filledUpsampling::clone (  )  const [virtual]

Returns a pointer to a clone of this functor.

Implements cvr::functor.

filledUpsampling& cvr::filledUpsampling::copy ( const filledUpsampling other  ) 

Copy data of "other" functor.

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

const parameters& cvr::filledUpsampling::getParameters (  )  const

Returns used parameters.

Reimplemented from cvr::parametersManager.

virtual const std::string& cvr::filledUpsampling::name (  )  const [virtual]

Returns the name of this type.

Implements cvr::functor.

virtual functor* cvr::filledUpsampling::newInstance (  )  const [virtual]

Returns a pointer to a new instance of this functor.

Implements cvr::functor.


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

Generated on Sun Sep 20 22:08:45 2009 for CVR-Lib by Doxygen 1.5.8