last update 20 Sep 2009 |
#include <cvrBoundaryExpansion.h>
Classes | |
class | parameters |
The parameters for the class boundaryExpansion. More... | |
Public Member Functions | |
boundaryExpansion () | |
boundaryExpansion (const int width, const eBoundaryType type=Zero, const bool normalize=false) | |
boundaryExpansion (const parameters &par) | |
boundaryExpansion (const boundaryExpansion &other) | |
virtual | ~boundaryExpansion () |
template<typename T > | |
bool | apply (matrix< T > &srcdest) const |
template<typename T , typename U > | |
bool | apply (const matrix< T > &src, matrix< U > &dest) const |
boundaryExpansion & | copy (const boundaryExpansion &other) |
boundaryExpansion & | operator= (const boundaryExpansion &other) |
virtual const std::string & | name () const |
virtual boundaryExpansion * | clone () const |
virtual boundaryExpansion * | newInstance () const |
const parameters & | getParameters () const |
This class is used to expand the border of an image and fill it according to the boundary type specified in the parameters. It is employed by several functors to work using "internal" pixels only, without worring about the specific border type to be used.
If negative values of border are given in the parameters, the image will be clipped.
cvr::boundaryExpansion::boundaryExpansion | ( | ) |
Default constructor.
cvr::boundaryExpansion::boundaryExpansion | ( | const int | width, | |
const eBoundaryType | type = Zero , |
|||
const bool | normalize = false | |||
) |
Construct a functor with a border of homogeneous width all around, and the given boundary type.
width | width of the border | |
type | boundary type | |
normalize | indicate if normalization by the type conversion has to be made. |
cvr::boundaryExpansion::boundaryExpansion | ( | const parameters & | par | ) |
Construct a functor using the given parameters.
cvr::boundaryExpansion::boundaryExpansion | ( | const boundaryExpansion & | other | ) |
virtual cvr::boundaryExpansion::~boundaryExpansion | ( | ) | [virtual] |
Destructor.
bool cvr::boundaryExpansion::apply | ( | const matrix< T > & | src, | |
matrix< U > & | dest | |||
) | const [inline] |
Operates on a copy of the given arguments.
src | matrix<T> with the source data. | |
dest | matrix<T> where the result will be left. |
bool cvr::boundaryExpansion::apply | ( | matrix< T > & | srcdest | ) | const [inline] |
virtual boundaryExpansion* cvr::boundaryExpansion::clone | ( | ) | const [virtual] |
boundaryExpansion& cvr::boundaryExpansion::copy | ( | const boundaryExpansion & | other | ) |
const parameters& cvr::boundaryExpansion::getParameters | ( | ) | const |
virtual const std::string& cvr::boundaryExpansion::name | ( | ) | const [virtual] |
virtual boundaryExpansion* cvr::boundaryExpansion::newInstance | ( | ) | const [virtual] |
boundaryExpansion& cvr::boundaryExpansion::operator= | ( | const boundaryExpansion & | other | ) |