latest version v1.9 - last update 10 Apr 2010 |
Snake segmentation. More...
#include <ltiSnake.h>
Classes | |
class | element |
Structure for a snake element. More... | |
class | parameters |
Parameters for the snakes. More... | |
Public Member Functions | |
snake () | |
snake (const snake &other) | |
~snake () | |
snake & | copy (const snake &other) |
virtual functor * | clone () const |
bool | apply (const image &imgIn, areaPoints &newAreaPoints) |
const parameters & | getParameters () const |
parameters & | getParameters () |
Protected Member Functions | |
void | setSnake (const borderPoints &aSnake) |
bool | objectRight (const chainCode &prev, const chainCode &next) const |
bool | getContour (areaPoints &newAreaPoints) |
Protected Attributes | |
point | size |
const image * | img |
Snake segmentation.
This is a very old class that do not implement the "real" snakes but a form of connected region growing algorithms (a very simple case of geometrical snakes).
If you have implemented a real snake functor, we would be glad to replace this one with it.
lti::snake::snake | ( | ) |
default constructor
lti::snake::~snake | ( | ) |
destructor
bool lti::snake::apply | ( | const image & | imgIn, | |
areaPoints & | newAreaPoints | |||
) |
OnCopy apply.
virtual functor* lti::snake::clone | ( | ) | const [virtual] |
clone member
Reimplemented from lti::segmentation.
bool lti::snake::getContour | ( | areaPoints & | newAreaPoints | ) | [protected] |
returns the snake as areaPoints
parameters& lti::snake::getParameters | ( | ) |
get parameters
Reimplemented from lti::functor.
const parameters& lti::snake::getParameters | ( | ) | const |
get parameters
Reimplemented from lti::functor.
void lti::snake::setSnake | ( | const borderPoints & | aSnake | ) | [protected] |
set a snake The firstSnake must contain a valid borderPoints list!!
const image* lti::snake::img [protected] |
pointer to the image
point lti::snake::size [protected] |
image rows and columns