Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxHilditchSkeleton.h File Reference

More...

Go to the source code of this file.

Functions

HxImageRep L_HXIMAGEREP HxHilditchSkeleton (HxImageRep im)
 Hilditch skeleton. More...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxHilditchSkeleton HxImageRep    im
 

Hilditch skeleton.

00019 {
00020     HxImageRep res=im;
00021     bool changed= false;
00022     HxTagList tags;
00023     HxAddTag(tags,"changed",false);
00024     int nriter=0;
00025     do{
00026         changed= false;
00027         res = res.neighbourhoodOp("hilditch", tags);
00028         changed = HxGetTag<bool>(tags,"changed");
00029 //      printf("iteration# %d\n", nriter);
00030         nriter++;
00031     }while(changed && nriter<250);
00032     //  printf("nr iterations %d\n", nriter);
00033 
00034 
00035     return res;
00036 }


Generated on Mon Jan 27 15:48:53 2003 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001