#include <TreatChain.hpp>
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 |
|
Constructor |
|
Destructor |
|
Find a neighboor point 'np' of current point 'cp' return n the number of neighboor |
|
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 ! |
|
Main process |
|
Count the neighboors of a given point on initial image |
|
Chain a given pixel 1- store it in the current hlo 2- label the image map with junction label |
|
Find junction point |
|
Chain an image's line according the found entry point bool s : sens, true normal add, false reverse add |
|
Count the neighboors of a given point on the map image |
|
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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Static member |