cvr::filledUpsampling Class Reference
[Linear filtering]
Filled upsampling (or upsampling with zero-order interpolation).
More...
#include <cvrFilledUpsampling.h>
List of all members.
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 |
( |
|
) |
|
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.
Copy constructor.
- Parameters:
-
virtual cvr::filledUpsampling::~filledUpsampling |
( |
|
) |
[virtual] |
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:
-
- 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:
-
- 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] |
const parameters& cvr::filledUpsampling::getParameters |
( |
|
) |
const |
virtual const std::string& cvr::filledUpsampling::name |
( |
|
) |
const [virtual] |
virtual functor* cvr::filledUpsampling::newInstance |
( |
|
) |
const [virtual] |
The documentation for this class was generated from the following file: