#include "HxSF.h"
Go to the source code of this file.
Functions | |
| HxImageRep L_HXIMAGEREP | HxSkeleton (HxImageRep im, HxSF sf) |
| This should be renamed as HxMedialAxisTransform and we should implement HxSkeleton correctly be aware of changes in object topology. More... | |
|
||||||||||||
|
This should be renamed as HxMedialAxisTransform and we should implement HxSkeleton correctly be aware of changes in object topology. function y=mmskelm_equ(f, B) y = mmbinary(zeros(size(f))); for i=0:length(f) nb = mmsesum(B,i); f1 = mmero(f,nb); f2 = mmopenth(f1,B); y = mmunion(y,f2); end;
00034 {
00035 HxImageRep res, tmp;
00036
00037 res= HxMakeFromValue(im.signature(), im.sizes(), 0);
00038
00039 HxSF sfn;
00040
00041 // for(int i=0; i<im.numberOfPixels(); i++)
00042 for(int i=0; i<15; i++)
00043 {
00044 sfn = sf.dilateSF(i);
00045 tmp = HxOpeningTopHat(HxErosion(im, sfn) , sf);
00046 res = HxMax(tmp, res);
00047 }
00048
00049 return res;
00050 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001