Go to the source code of this file.
Functions | |
| HxImageRep L_HXIMAGEREP | HxHilditchSkeleton (HxImageRep im) |
| Hilditch skeleton. More... | |
|
|
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 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001