Main Page   Namespace List   Compound List   File List   Compound Members   File Members  

IChain Class Reference

#include <TreatChain.hpp>

List of all members.

Public Member Functions

 IChain ()
 ~IChain ()
void imageChain (Image *)

Public Attributes

OHL * il

Protected Member Functions

void junctionFind ()
int iNCount (OPoint &p)
void junctionChain (OPoint &)
bool entryFind ()
int mNCount (OPoint &)
void lineChain (bool)
void pointChain (OPoint &, bool)
int chainFollow ()

Protected Attributes

Image * map
Image * img
OPoint ep
OPoint cp
OPoint np
bool dual
OHL * cl
OHL * jl

Static Protected Attributes

int jlab = -2
int plab = -1


Detailed Description

IChain class


Constructor & Destructor Documentation

IChain::IChain  ) 
 

Constructor

IChain::~IChain  ) 
 

Destructor


Member Function Documentation

int IChain::chainFollow  )  [protected]
 

Find a neighboor point 'np' of current point 'cp' return n the number of neighboor

bool IChain::entryFind  )  [protected]
 

Find an entry point if pixel color is black, if it is no labelled, and the neigboor number is equal to 0, 1 or 2 start the find process at the current entry point !

void IChain::imageChain Image *  img  ) 
 

Main process

int IChain::iNCount OPoint &  p  )  [protected]
 

Count the neighboors of a given point on initial image

void IChain::junctionChain OPoint &  p  )  [protected]
 

Chain a given pixel 1- store it in the current hlo 2- label the image map with junction label

void IChain::junctionFind  )  [protected]
 

Find junction point

void IChain::lineChain bool  s  )  [protected]
 

Chain an image's line according the found entry point bool s : sens, true normal add, false reverse add

int IChain::mNCount OPoint &  p  )  [protected]
 

Count the neighboors of a given point on the map image

void IChain::pointChain OPoint &  p,
bool  s
[protected]
 

Chain a given pixel, param sens : true back push, false front push (reverse) 1- store it in the current hlo 2- label the image map with -1


Member Data Documentation

OHL* IChain::cl [protected]
 

OPoint IChain::cp [protected]
 

bool IChain::dual [protected]
 

OPoint IChain::ep [protected]
 

OHL* IChain::il
 

Image * IChain::img [protected]
 

OHL * IChain::jl [protected]
 

int IChain::jlab = -2 [static, protected]
 

Image* IChain::map [protected]
 

OPoint IChain::np [protected]
 

int IChain::plab = -1 [static, protected]
 

Static member


The documentation for this class was generated from the following files:
Generated on Fri Jul 30 16:56:28 2004 for LGALib by doxygen1.3