CASToR
2.0
Tomographic Reconstruction (PET/SPECT/CT)
Main Page
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
image
iDeformationTemplate.hh
Go to the documentation of this file.
1
/*
2
This file is part of CASToR.
3
4
CASToR is free software: you can redistribute it and/or modify it under the
5
terms of the GNU General Public License as published by the Free Software
6
Foundation, either version 3 of the License, or (at your option) any later
7
version.
8
9
CASToR is distributed in the hope that it will be useful, but WITHOUT ANY
10
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12
details.
13
14
You should have received a copy of the GNU General Public License along with
15
CASToR (in file GNU_GPL.TXT). If not, see <http://www.gnu.org/licenses/>.
16
17
Copyright 2017-2018 all CASToR contributors listed below:
18
19
--> current contributors: Thibaut MERLIN, Simon STUTE, Didier BENOIT, Claude COMTAT, Marina FILIPOVIC, Mael MILLARDET
20
--> past contributors: Valentin VIELZEUF
21
22
This is CASToR version 2.0.
23
*/
24
31
#ifndef IDEFORMATIONTEMPLATE_HH
32
#define IDEFORMATIONTEMPLATE_HH 1
33
34
// (Optional) may be required if one want access to the image matrices
35
#include "
oImageSpace.hh
"
36
// Required to automatically add the class in the CASToR code
37
#include "
sAddonManager.hh
"
38
// Mother class of deformation model
39
#include "
vDeformation.hh
"
40
46
class
iDeformationTemplate
:
public
vDeformation
47
{
48
// -----------------------------------------------------------------------------------------
49
// Constructor & Destructor
50
public
:
55
iDeformationTemplate
();
60
~iDeformationTemplate
();
61
62
63
// -----------------------------------------------------------------------------------------
64
// Public member functions
65
public
:
66
// Function for automatic insertion (put the class name as the parameters and do not add semi-colon at the end of the line)
67
FUNCTION_DEFORMATION
(
iDeformationTemplate
)
74
int
ReadAndCheckConfigurationFile
(
const
string
& a_fileOptions);
81
int
ReadAndCheckOptionsList
(
const
string
& a_listOptions);
88
int
CheckSpecificParameters
();
95
int
Initialize
();
100
void
ShowHelp
();
110
int
ApplyDeformations
(
FLTNB
* ap_inputImage,
FLTNB
* ap_outputImage,
int
a_direction,
int
a_defIdx);
111
112
113
// -----------------------------------------------------------------------------------------
114
// Private member functions
115
private
:
116
117
118
// -----------------------------------------------------------------------------------------
119
// Data members
120
private
:
121
122
};
123
124
// Class for automatic insertion (set here the visible image deformation's name, put the class name as the parameters and do not add semi-colon at the end of the line)
125
CLASS_DEFORMATION
(
template
,
iDeformationTemplate
)
126
127
#endif
FLTNB
#define FLTNB
Definition:
gVariables.hh:81
iDeformationTemplate::CheckSpecificParameters
int CheckSpecificParameters()
This function is an implementation of the pure virtual mother function. It is used to check parameter...
Definition:
iDeformationTemplate.cc:146
CLASS_DEFORMATION
#define CLASS_DEFORMATION(NAME, CLASS)
Definition:
vDeformation.hh:277
iDeformationTemplate::~iDeformationTemplate
~iDeformationTemplate()
Destructor of iDeformationTemplate. Free memory from all allocated tabs.
Definition:
iDeformationTemplate.cc:56
iDeformationTemplate::Initialize
int Initialize()
This function is an implementation of the pure virtual mother function. It is used to initialize spec...
Definition:
iDeformationTemplate.cc:173
FUNCTION_DEFORMATION
#define FUNCTION_DEFORMATION(CLASS)
Definition:
vDeformation.hh:273
vDeformation
This is the mother class of image-based transformation class.
Definition:
vDeformation.hh:65
iDeformationTemplate::ReadAndCheckConfigurationFile
int ReadAndCheckConfigurationFile(const string &a_fileOptions)
This function is an implementation of the pure virtual mother function. It is used to read options fr...
Definition:
iDeformationTemplate.cc:93
vDeformation.hh
Declaration of class vDeformation.
iDeformationTemplate::ShowHelp
void ShowHelp()
This function is used to print out specific help about the deformation model and its options...
Definition:
iDeformationTemplate.cc:71
oImageSpace.hh
Declaration of class oImageSpace.
iDeformationTemplate::ReadAndCheckOptionsList
int ReadAndCheckOptionsList(const string &a_listOptions)
This function is an implementation of the pure virtual mother function. It is used to read options fr...
Definition:
iDeformationTemplate.cc:120
iDeformationTemplate
This class is a child of the vDeformation class implementing a template squeleton.
Definition:
iDeformationTemplate.hh:46
iDeformationTemplate::iDeformationTemplate
iDeformationTemplate()
Constructor of iDeformationTemplate. Simply set all data members to default values.
Definition:
iDeformationTemplate.cc:41
iDeformationTemplate::ApplyDeformations
int ApplyDeformations(FLTNB *ap_inputImage, FLTNB *ap_outputImage, int a_direction, int a_defIdx)
This function is an implementation of the pure virtual mother function. The actual deformation should...
Definition:
iDeformationTemplate.cc:208
sAddonManager.hh
Declaration of class sAddonManager.
Generated on Mon Apr 23 2018 18:04:33 for CASToR by
1.8.6