latest version v1.9 - last update 10 Apr 2010 |
Homotopy preserving Skeleton. More...
#include <ltiSkeleton.h>
Classes | |
class | parameters |
the parameters for the class skeleton More... | |
Public Member Functions | |
skeleton () | |
skeleton (const skeleton &other) | |
virtual | ~skeleton () |
virtual const char * | getTypeName () const |
channel & | apply (channel &srcdest) const |
channel8 & | apply (channel8 &srcdest) const |
channel & | apply (const channel &src, channel &dest) const |
channel8 & | apply (const channel8 &src, channel8 &dest) const |
skeleton & | copy (const skeleton &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
Protected Member Functions | |
channel8 & | img_or (const channel8 &src1, channel8 &srcdest) const |
channel8 & | difference (const channel8 &img, const channel8 &stamp, channel8 &dest) const |
channel8 & | calc_jpoints (const channel8 &src, const channel8 &match, channel8 &dest) const |
channel8 & | visualize (channel8 &srcdest, const int &val) const |
Homotopy preserving Skeleton.
This class implements the algorithm of Ji and Piper (IEEE Transactions on Pattern Analysis and Maschine Intelligence, vol. 14, no. 6, june 1992).
The generated skeletons will keep the original homotopy of the input channel.
The input data must be segmented, with values 0 (background) and not 0 (object).
lti::skeleton::skeleton | ( | ) |
default constructor
lti::skeleton::skeleton | ( | const skeleton & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::skeleton::~skeleton | ( | ) | [virtual] |
destructor
operates on a copy of the given parameters.
dest
. operates on a copy of the given parameters.
dest
. operates on the given parameter.
srcdest | channel8 with the source data. The result will be left here too. |
srcdest
. operates on the given parameter.
srcdest | channel with the source data. The result will be left here too. |
srcdest
. channel8& lti::skeleton::calc_jpoints | ( | const channel8 & | src, | |
const channel8 & | match, | |||
channel8 & | dest | |||
) | const [protected] |
calculate the jpoints for every pixel in src jpoints are needed to preserve homotopy
virtual functor* lti::skeleton::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
channel8& lti::skeleton::difference | ( | const channel8 & | img, | |
const channel8 & | stamp, | |||
channel8 & | dest | |||
) | const [protected] |
returns img \ stamp.
(img with all pixels of stamp left out)
const parameters& lti::skeleton::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::transform.
virtual const char* lti::skeleton::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("skeleton")
Reimplemented from lti::transform.
provides logical or of two channel8s
sets all non-zero values of a channel to int val