LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::snake Class Reference

Snake segmentation. More...

#include <ltiSnake.h>

Inheritance diagram for lti::snake:
Inheritance graph
[legend]
Collaboration diagram for lti::snake:
Collaboration graph
[legend]

List of all members.

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 ()
snakecopy (const snake &other)
virtual functorclone () const
bool apply (const image &imgIn, areaPoints &newAreaPoints)
const parametersgetParameters () const
parametersgetParameters ()

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 imageimg

Detailed Description

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.

Deprecated:
This is not a real snake functor.

Constructor & Destructor Documentation

lti::snake::snake (  ) 

default constructor

lti::snake::snake ( const snake other  )  [inline]

copy constructor

References copy().

lti::snake::~snake (  ) 

destructor


Member Function Documentation

bool lti::snake::apply ( const image imgIn,
areaPoints newAreaPoints 
)

OnCopy apply.

virtual functor* lti::snake::clone (  )  const [virtual]

clone member

Reimplemented from lti::segmentation.

snake& lti::snake::copy ( const snake other  ) 

copy data of "other" functor

Reimplemented from lti::segmentation.

Referenced by snake().

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.

bool lti::snake::objectRight ( const chainCode prev,
const chainCode next 
) const [inline, protected]

uses two chainCodes in the order prev,next to check if there is an object left or right of the element

void lti::snake::setSnake ( const borderPoints aSnake  )  [protected]

set a snake The firstSnake must contain a valid borderPoints list!!


Member Data Documentation

const image* lti::snake::img [protected]

pointer to the image

point lti::snake::size [protected]

image rows and columns


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

Generated on Sat Apr 10 15:27:53 2010 for LTI-Lib by Doxygen 1.6.1