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

HxSkeleton.h File Reference

More...

#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...


Detailed Description


Function Documentation

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.

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 }


Generated on Tue Feb 3 14:18:51 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001