aimsdata
5.1.2
Neuroimaging data handling
motion.h
Go to the documentation of this file.
1
/* This software and supporting documentation are distributed by
2
* Institut Federatif de Recherche 49
3
* CEA/NeuroSpin, Batiment 145,
4
* 91191 Gif-sur-Yvette cedex
5
* France
6
*
7
* This software is governed by the CeCILL-B license under
8
* French law and abiding by the rules of distribution of free software.
9
* You can use, modify and/or redistribute the software under the
10
* terms of the CeCILL-B license as circulated by CEA, CNRS
11
* and INRIA at the following URL "http://www.cecill.info".
12
*
13
* As a counterpart to the access to the source code and rights to copy,
14
* modify and redistribute granted by the license, users are provided only
15
* with a limited warranty and the software's author, the holder of the
16
* economic rights, and the successive licensors have only limited
17
* liability.
18
*
19
* In this respect, the user's attention is drawn to the risks associated
20
* with loading, using, modifying and/or developing or reproducing the
21
* software by the user in light of its specific status of free software,
22
* that may mean that it is complicated to manipulate, and that also
23
* therefore means that it is reserved for developers and experienced
24
* professionals having in-depth computer knowledge. Users are therefore
25
* encouraged to load and test the software's suitability as regards their
26
* requirements in conditions enabling the security of their systems and/or
27
* data to be ensured and, more generally, to use and operate it in the
28
* same conditions as regards security.
29
*
30
* The fact that you are presently reading this means that you have had
31
* knowledge of the CeCILL-B license and that you accept its terms.
32
*/
33
34
/*
35
* Non elastic AffineTransformation3d ( rotation + translation )
36
*/
37
#ifndef AIMS_RESAMPLING_MOTION_H
38
#define AIMS_RESAMPLING_MOTION_H
39
40
#include <
aims/config/aimsdata_config.h
>
41
#include <
aims/transformation/affinetransformation3d.h
>
42
43
namespace
aims
44
{
45
46
//------------------------------------//
47
// DecomposedAffineTransformation3d //
48
//------------------------------------//
49
50
51
//-----------------------------------------------------------------------------
52
class
DecomposedAffineTransformation3d
53
:
public
AffineTransformation3d
54
{
55
public
:
56
57
DecomposedAffineTransformation3d
();
58
DecomposedAffineTransformation3d
(
const
DecomposedAffineTransformation3d
& other );
59
inline
virtual
~DecomposedAffineTransformation3d
() {}
60
DecomposedAffineTransformation3d
&
operator =
(
const
DecomposedAffineTransformation3d
& other );
61
virtual
AffineTransformation3d
&
operator =
(
const
AffineTransformation3d
& other );
62
63
// Get shearing
64
carto::VolumeRef<float>
&
shearing
() {
return
_shear
; }
65
const
carto::VolumeRef<float>
&
shearing
()
const
{
return
_shear
; }
66
67
// Get scaling
68
carto::VolumeRef<float>
&
scaling
() {
return
_scaling
; }
69
const
carto::VolumeRef<float>
&
scaling
()
const
{
return
_scaling
; }
70
71
// Get rot
72
carto::VolumeRef<float>
&
rot
() {
return
_rot
;}
73
const
carto::VolumeRef<float>
&
rot
()
const
{
return
_rot
;}
74
75
virtual
void
setToIdentity
() ;
76
77
// AffineTransformation3d algebraic operation
78
virtual
void
scale
(
const
Point3df
& sizeFrom,
const
Point3df
& sizeTo );
79
80
//Initialisation
81
virtual
void
setRotationAffine
(
float
rx,
float
ry,
float
rz,
82
const
Point3df
& c =
Point3df
( 0.0 ) );
83
//void setRotationVectorial( const Point3df& v1, const Point3df& v2 );
84
void
setShearing
(
float
Cx,
float
Cy,
float
Cz ) ;
85
void
setScaling
(
float
Sx,
float
Sy,
float
Sz ) ;
86
void
setRotation
(
float
Rx,
float
Ry,
float
Rz ) ;
87
void
transAffine
(
Point3df
cg =
Point3df
( 0.0 ) );
88
89
protected
:
90
91
carto::VolumeRef<float>
_shear
;
92
carto::VolumeRef<float>
_scaling
;
93
carto::VolumeRef<float>
_rot
;
94
95
};
96
97
}
98
99
100
typedef
aims::AffineTransformation3d
Motion
;
101
typedef
aims::DecomposedAffineTransformation3d
DecomposedMotion
;
102
103
#endif
affinetransformation3d.h
aimsdata_config.h
AimsVector< float, 3 >
aims::AffineTransformation3d
Affine 3D transformation.
Definition:
affinetransformation3d.h:148
aims::DecomposedAffineTransformation3d
Definition:
motion.h:54
aims::DecomposedAffineTransformation3d::rot
const carto::VolumeRef< float > & rot() const
Definition:
motion.h:73
aims::DecomposedAffineTransformation3d::_rot
carto::VolumeRef< float > _rot
Definition:
motion.h:93
aims::DecomposedAffineTransformation3d::DecomposedAffineTransformation3d
DecomposedAffineTransformation3d()
aims::DecomposedAffineTransformation3d::scaling
carto::VolumeRef< float > & scaling()
Definition:
motion.h:68
aims::DecomposedAffineTransformation3d::scaling
const carto::VolumeRef< float > & scaling() const
Definition:
motion.h:69
aims::DecomposedAffineTransformation3d::setToIdentity
virtual void setToIdentity()
aims::DecomposedAffineTransformation3d::setRotation
void setRotation(float Rx, float Ry, float Rz)
aims::DecomposedAffineTransformation3d::DecomposedAffineTransformation3d
DecomposedAffineTransformation3d(const DecomposedAffineTransformation3d &other)
aims::DecomposedAffineTransformation3d::shearing
carto::VolumeRef< float > & shearing()
Definition:
motion.h:64
aims::DecomposedAffineTransformation3d::rot
carto::VolumeRef< float > & rot()
Definition:
motion.h:72
aims::DecomposedAffineTransformation3d::shearing
const carto::VolumeRef< float > & shearing() const
Definition:
motion.h:65
aims::DecomposedAffineTransformation3d::scale
virtual void scale(const Point3df &sizeFrom, const Point3df &sizeTo)
aims::DecomposedAffineTransformation3d::_shear
carto::VolumeRef< float > _shear
Definition:
motion.h:91
aims::DecomposedAffineTransformation3d::~DecomposedAffineTransformation3d
virtual ~DecomposedAffineTransformation3d()
Definition:
motion.h:59
aims::DecomposedAffineTransformation3d::transAffine
void transAffine(Point3df cg=Point3df(0.0))
aims::DecomposedAffineTransformation3d::operator=
DecomposedAffineTransformation3d & operator=(const DecomposedAffineTransformation3d &other)
aims::DecomposedAffineTransformation3d::setRotationAffine
virtual void setRotationAffine(float rx, float ry, float rz, const Point3df &c=Point3df(0.0))
aims::DecomposedAffineTransformation3d::setScaling
void setScaling(float Sx, float Sy, float Sz)
aims::DecomposedAffineTransformation3d::_scaling
carto::VolumeRef< float > _scaling
Definition:
motion.h:92
aims::DecomposedAffineTransformation3d::setShearing
void setShearing(float Cx, float Cy, float Cz)
carto::VolumeRef< float >
Motion
aims::AffineTransformation3d Motion
Definition:
motion.h:100
DecomposedMotion
aims::DecomposedAffineTransformation3d DecomposedMotion
Definition:
motion.h:101
aims
The class for EcatSino data write operation.
Definition:
borderfiller.h:13
aims
resampling
motion.h
Generated by
1.9.1