-
Notifications
You must be signed in to change notification settings - Fork 1
/
itkModularLevelSetImageFilter.txx
69 lines (55 loc) · 1.65 KB
/
itkModularLevelSetImageFilter.txx
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef __itkModularLevelSetImageFilter_txx_
#define __itkModularLevelSetImageFilter_txx_
#include "itkModularLevelSetImageFilter.h"
namespace itk {
template <class TSolver, class TLevelSetFunction>
ModularLevelSetImageFilter<TSolver, TLevelSetFunction>
::ModularLevelSetImageFilter()
{
m_LevelSetFunction = LevelSetFunctionType::New();
// //TODO: this should be taken care of within the functions.
// // uncomment to use ModularLevelSetImageFilter with any ITK Level Set function
// typename LevelSetFunctionType::RadiusType r;
// r.Fill(1);
//
// m_LevelSetFunction->Initialize(r);
//TODO: in ITK, add an Initialize() method to all the function with r.Fill(1);
m_LevelSetFunction->Initialize();
this->SetDifferenceFunction(m_LevelSetFunction);
}
template <class TSolver, class TLevelSetFunction>
ModularLevelSetImageFilter<TSolver, TLevelSetFunction>
::~ModularLevelSetImageFilter()
{
}
template <class TSolver, class TLevelSetFunction>
void
ModularLevelSetImageFilter<TSolver, TLevelSetFunction>
::Initialize()
{
Superclass::Initialize();
}
template <class TSolver, class TLevelSetFunction>
void
ModularLevelSetImageFilter<TSolver, TLevelSetFunction>
::InitializeIteration()
{
Superclass::InitializeIteration();
}
template <class TSolver, class TLevelSetFunction>
void
ModularLevelSetImageFilter<TSolver, TLevelSetFunction>
::GenerateData()
{
Superclass::GenerateData();
}
template <class TSolver, class TLevelSetFunction>
void
ModularLevelSetImageFilter<TSolver, TLevelSetFunction>
::PrintSelf(std::ostream &os, Indent indent) const
{
Superclass::PrintSelf(os, indent);
os << "LevelSetFunction: " << m_LevelSetFunction;
}
} // end namespace itk
#endif