Chan-Vese Segmentation
chanvese.h
Go to the documentation of this file.
1 
6 #ifndef _CHANVESE_H_
7 #define _CHANVESE_H_
8 
9 #include "num.h"
10 
11 typedef struct chanvesestruct chanveseopt;
12 
14 void ChanVeseFreeOpt(chanveseopt *Opt);
15 void ChanVeseSetMu(chanveseopt *Opt, num Mu);
16 void ChanVeseSetNu(chanveseopt *Opt, num Nu);
17 void ChanVeseSetLambda1(chanveseopt *Opt, num Lambda1);
18 void ChanVeseSetLambda2(chanveseopt *Opt, num Lambda2);
19 void ChanVeseSetTol(chanveseopt *Opt, num Tol);
20 void ChanVeseSetDt(chanveseopt *Opt, num dt);
21 void ChanVeseSetMaxIter(chanveseopt *Opt, int MaxIter);
23  int (*PlotFun)(int, int, num, const num*, const num*, const num*,
24  int, int, int, void*), void *PlotParam);
25 void ChanVesePrintOpt(const chanveseopt *Opt);
26 
27 int ChanVese(num *Phi, const num *f,
28  int Width, int Height, int NumChannels, const chanveseopt *Opt);
29 
30 void ChanVeseInitPhi(num *Phi, int Width, int Height);
31 
32 void RegionAverages(num *c1, num *c2, const num *Phi, const num *f,
33  int Width, int Height, int NumChannels);
34 
35 #endif /* _CHANVESE_H_ */