-
Notifications
You must be signed in to change notification settings - Fork 1
/
BayesianFilter.h
42 lines (38 loc) · 1.11 KB
/
BayesianFilter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef BAYESIANFILTER_H
#define BAYESIANFILTER_H
#include "typedef.h"
#include "itkImage.h"
class BayesianFilter
{
public:
BayesianFilter();
~BayesianFilter();
void SetImage(ImageType::Pointer inputImage);
void SetLabel(LabelImageType::Pointer labelImage);
void SetNumberOfBayesianInitialClasses(unsigned int numOfInitClasses);
void SetGaussianBlurVariance(float variance);
void SetLabelWeight(float weight);
void SetVerbose(bool verbose);
void SetSmooth(bool smooth);
void SetNumberOfSmoothingIterations(unsigned int smoothItr);
void SetNumberOfGradientAnistropicDiffusionIterations(unsigned int gadItr);
void SetSmoothingTimeStep(float timeStep);
void SetConductanceParameter(float conductance);
void Run();
LabelImageType::Pointer GetOutput();
void SetOutput(LabelImageType::Pointer output);
private:
ImageType::Pointer m_inputImage;
LabelImageType::Pointer m_labelImage;
LabelImageType::Pointer m_output;
unsigned int m_numOfInitClasses;
float m_variance;
float m_weight;
bool m_verbose;
bool m_smooth;
unsigned int m_smoothItr;
unsigned int m_gadItr;
float m_timeStep;
float m_conductance;
};
#endif