Basic data structures for data and meta-data handling. More...
Data Structures | |
class | C2DImage |
This is the base class for 2D images that can hold generic pixel data. More... | |
class | C3DCriticalPoint |
A class to hold a critical point. This class holds a critical point in a 3D vector field It consists of a localtion ![]() ![]() ![]() | |
class | C3DCriticalPointEigen |
A class to hold a criticalpoint with eigenvalues and eigenvectors. More... | |
class | C3DImage |
The generic base type of a 3D image. More... | |
class | C3DLandmark |
a named 3D landmark More... | |
class | C3DLandmarklist |
A list of named landmarks. More... | |
class | C3DValueAttribute< T > |
a 3D vector value used in attributes More... | |
class | C3DValueAttributeTranslator< T > |
a translater for 3D vectors to and from a std::string More... | |
class | CAttribute |
The class of all attributes of data that is considered to ve meta-data. More... | |
class | CAttributedData |
A collection of attributes. More... | |
class | CAttrTranslator |
A class to translate an attribute from a string. More... | |
class | CFFT1D_R2C |
a class to real-to-complex 1D FFTs More... | |
class | CHistory |
This class holds the complete history list of a data set. More... | |
class | CMinimizer |
A class for generalized minimization problems. More... | |
class | CNoiseGenerator |
Base class for the noise generators. More... | |
class | CStringAttrTranslatorMap |
A singelton class to translate strings to attributes based on keys. More... | |
class | CTriangleMesh |
A class to deine a triangle mesh with some attributes. More... | |
class | range3d_iterator< I > |
a 3D iterator that knows its position in the 3D grid ans supports iterating over sub-ranges More... | |
class | T2DDatafield< T > |
A class to hold data on a regular 2D grid. More... | |
class | T2DImage< T > |
This is the template version of a 2D image that is used for holding real data. More... | |
class | T2DVector< T > |
a 2D vector More... | |
class | T2DVectorfield< T > |
2D Vector field More... | |
class | T3DDatafield< T > |
A templated class of a 3D data field. More... | |
class | T3DImage< T > |
Specific type of the 3D images that hold real pixel data. More... | |
struct | T3DMatrix< T > |
a simple 3x3 matrix More... | |
class | T3DVector< T > |
A simple 3D vector type. More... | |
class | T3DVectorfield< T > |
a 3D vector field More... | |
class | TAttribute< T > |
Class of an attribute that holds data of type T. More... | |
class | TShape< T, M > |
a generic class for morphological shapes More... | |
class | TTranslator< T > |
Generic string vs. attribute translator singleton. More... | |
Typedefs | |
typedef T3DVectorfield < C3DDVector > | C3DDVectorfield |
a 3D field of floating point double accuracy 3D vectors More... | |
typedef T3DVectorfield < C3DFVector > | C3DFVectorfield |
a 3D field of floating point single accuracy 3D vectors More... | |
typedef TAttribute < E3DImageOrientation > | C3DImageOrientation |
attribute for 3D image orientation More... | |
typedef C3DValueAttribute< int > | C3DIntAttribute |
a 3D integer vector More... | |
typedef C3DValueAttributeTranslator < int > | C3DIntAttributeTranslator |
attribute translator for a 3D integer vector More... | |
typedef TAttribute< CAttributeMap > | CAttributeList |
providing the possibility to nest attribute lists More... | |
typedef std::map< std::string, PAttribute > | CAttributeMap |
A name:attribute map. More... | |
typedef TAttribute< double > | CDoubleAttribute |
a double attribute More... | |
typedef TAttribute< float > | CFloatAttribute |
a float attribute More... | |
typedef TAttribute< int > | CIntAttribute |
an integer attribute More... | |
typedef TTranslator < E3DImageOrientation > | COrientationTranslator |
translator for 3D image orientations to and from strings More... | |
typedef TAttribute < E3DPatientPositioning > | CPatientPositionAttribute |
attribute for the patient position More... | |
typedef TTranslator < E3DPatientPositioning > | CPatientPositionTranslator |
translator for the patient position More... | |
typedef TAttribute< std::string > | CStringAttribute |
a string attribute More... | |
typedef TAttribute < std::vector< double > > | CVDoubleAttribute |
a vector of doubles attribute More... | |
typedef TAttribute < std::vector< float > > | CVFloatAttribute |
typedef TAttribute < std::vector< int > > | CVIntAttribute |
a vector of integers attribute More... | |
typedef C3DValueAttribute< float > | CVoxelAttribute |
a 3D floating point vector used for the voxel size attribute More... | |
typedef C3DValueAttributeTranslator < float > | CVoxelAttributeTranslator |
attribute translator for a 3D floating point vector used for the voxel size More... | |
typedef TAttribute < std::vector< std::string > > | CVStringAttribute |
a vector of strings attribute More... | |
typedef std::shared_ptr < C3DFVectorfield > | P3DFVectorfield |
pointer type for a 3D vector field More... | |
typedef std::shared_ptr < C3DFVectorfield > | P3DFVectorfield |
a 3D field of floating point single accuracy 3D vectors More... | |
typedef std::shared_ptr < CAttributeMap > | PAttributeMap |
another pointer-usage easy maker More... | |
Enumerations | |
enum | E3DImageOrientation { ior_axial, ior_coronal, ior_saggital, ior_unknown } |
enum | E3DPatientPositioning { ipp_undefined = 0, ipp_hfp, ipp_hfs, ipp_hfdr, ipp_hfdl, ipp_ffp, ipp_ffs, ipp_ffdr, ipp_ffdl, ipp_lastindex } |
Functions | |
template<typename T > | |
void EXPORT_CORE | add_attribute (CAttributeMap &attributes, const std::string &key, T value) |
template<> | |
void EXPORT_CORE | add_attribute (CAttributeMap &attributes, const std::string &key, const char *value) |
template<typename T > | |
T EXPORT_CORE | get_attribute_as (const CAttribute &attr) |
EXPORT_3D C3DFVectorfield | get_gradient (const C3DImage &image) |
EXPORT_3D C3DFVectorfield & | operator+= (C3DFVectorfield &lhs, const C3DFVectorfield &rhs) |
EXPORT_3D std::ostream & | operator<< (std::ostream &os, E3DImageOrientation orient) |
Stream operator to write orientation orient to stream os. More... | |
EXPORT_3D std::ostream & | operator<< (std::ostream &os, E3DPatientPositioning pp) |
Stream operator to write patient position orient to stream os. More... | |
EXPORT_CORE std::ostream & | operator<< (std::ostream &os, const CAttributeMap &data) |
Facility to write an attribute map to a stream. More... | |
EXPORT_CORE bool | operator== (const CAttributeMap &am, const CAttributeMap &bm) |
Compare two attribute data instances a and b. More... | |
EXPORT_3D std::istream & | operator>> (std::istream &is, E3DImageOrientation &orient) |
Stream operator to read orientation orient from stream is. More... | |
EXPORT_3D std::istream & | operator>> (std::istream &is, E3DPatientPositioning &pp) |
Stream operator to read patient position orient from stream is. More... | |
Basic data structures for data and meta-data handling.
typedef T3DVectorfield<C3DDVector> C3DDVectorfield |
a 3D field of floating point double accuracy 3D vectors
Definition at line 72 of file 3d/vectorfield.hh.
typedef T3DVectorfield<C3DFVector> C3DFVectorfield |
a 3D field of floating point single accuracy 3D vectors
Definition at line 60 of file 3d/vectorfield.hh.
attribute for 3D image orientation
Definition at line 115 of file orientation.hh.
typedef C3DValueAttribute<int> C3DIntAttribute |
a 3D integer vector
Definition at line 513 of file 3d/image.hh.
typedef C3DValueAttributeTranslator<int> C3DIntAttributeTranslator |
attribute translator for a 3D integer vector
Definition at line 519 of file 3d/image.hh.
typedef TAttribute<CAttributeMap> CAttributeList |
providing the possibility to nest attribute lists
Definition at line 226 of file attributes.hh.
typedef std::map<std::string, PAttribute> CAttributeMap |
A name:attribute map.
Definition at line 220 of file attributes.hh.
typedef TAttribute<double> CDoubleAttribute |
a double attribute
Definition at line 195 of file attributes.hh.
typedef TAttribute<float> CFloatAttribute |
a float attribute
Definition at line 183 of file attributes.hh.
typedef TAttribute<int> CIntAttribute |
an integer attribute
Definition at line 171 of file attributes.hh.
translator for 3D image orientations to and from strings
Definition at line 121 of file orientation.hh.
attribute for the patient position
Definition at line 127 of file orientation.hh.
translator for the patient position
Definition at line 133 of file orientation.hh.
typedef TAttribute<std::string> CStringAttribute |
a string attribute
Definition at line 208 of file attributes.hh.
typedef TAttribute<std::vector<double> > CVDoubleAttribute |
a vector of doubles attribute
Definition at line 201 of file attributes.hh.
typedef TAttribute<std::vector<float> > CVFloatAttribute |
brief a vector of floats attribute
Definition at line 189 of file attributes.hh.
typedef TAttribute<std::vector<int> > CVIntAttribute |
a vector of integers attribute
Definition at line 177 of file attributes.hh.
typedef C3DValueAttribute<float> CVoxelAttribute |
a 3D floating point vector used for the voxel size attribute
Definition at line 501 of file 3d/image.hh.
typedef C3DValueAttributeTranslator<float> CVoxelAttributeTranslator |
attribute translator for a 3D floating point vector used for the voxel size
Definition at line 507 of file 3d/image.hh.
typedef TAttribute<std::vector<std::string> > CVStringAttribute |
a vector of strings attribute
Definition at line 214 of file attributes.hh.
typedef std::shared_ptr<C3DFVectorfield > P3DFVectorfield |
pointer type for a 3D vector field
Definition at line 36 of file multireg.hh.
typedef std::shared_ptr<C3DFVectorfield > P3DFVectorfield |
a 3D field of floating point single accuracy 3D vectors
Definition at line 66 of file 3d/vectorfield.hh.
typedef std::shared_ptr<CAttributeMap > PAttributeMap |
another pointer-usage easy maker
Definition at line 232 of file attributes.hh.
enum E3DImageOrientation |
Basic image orientations based on viewing direction
Enumerator | |
---|---|
ior_axial |
look from above or below at the head |
ior_coronal |
look from behind or the front on the head |
ior_saggital |
look from left or right on the head |
ior_unknown |
stopper index |
Definition at line 38 of file orientation.hh.
The Patient Position (DICOM 7.3.1.1 specifies the position of the patient relative to the imaging equipment space. This attribute is intended for annotation purposes only. It does not provide an exact mathematical relationship of the patient to the imaging equipment.
When facing the front of the imaging equipment, Head First is defined as the patient’s head being positioned toward the front of the imaging equipment. Feet First is defined as the patient’s feet being positioned toward the front of the imaging equipment. Prone is defined as the patient’s face being positioned in a downward (gravity) direction. Supine is defined as the patient’s face being in an upward direction. Decubitus Right is defined as the patient’s right side being in a downward direction. Decubitus Left is defined as the patient’s left side being in a downward direction.
Definition at line 58 of file orientation.hh.
void EXPORT_CORE add_attribute | ( | CAttributeMap & | attributes, |
const std::string & | key, | ||
T | value | ||
) |
convenience function to set an attribute in an attribute map:
type | of the attribute value to be added |
attributes | map to set the value in |
key | |
value |
Definition at line 438 of file attributes.hh.
References cvdebug().
void EXPORT_CORE add_attribute | ( | CAttributeMap & | attributes, |
const std::string & | key, | ||
const char * | value | ||
) |
convenience function to set an string attribute from a C-string in an attribute map:
type | of the attribute value to be added |
attributes | map to set the value in |
key | |
value |
T EXPORT_CORE get_attribute_as | ( | const CAttribute & | attr) |
Helper function to get the value of an attribute. Thr function throws a bad_cast exception, if the attribute doesn't hold a value ofthe requested type T
T | target type |
attr | attribute to be read |
Definition at line 162 of file attributes.hh.
EXPORT_3D C3DFVectorfield get_gradient | ( | const C3DImage & | image) |
Stand alone function to evaluate the gradient of an image using finite differences. The gradient at the boundaries is set to zero.
image |
EXPORT_3D C3DFVectorfield& operator+= | ( | C3DFVectorfield & | lhs, |
const C3DFVectorfield & | rhs | ||
) |
Concat two vector fields assuming these define transformations A(x) = x - a(x) and B(x) = x - b(x), hence c(x) = a(x-b(x)) + b(x)
[in,out] | lhs | left input vector field and output |
[in] | rhs | right input vector field and output |
EXPORT_3D std::ostream& operator<< | ( | std::ostream & | os, |
E3DImageOrientation | orient | ||
) |
Stream operator to write orientation orient to stream os.
os | |
orient |
EXPORT_3D std::ostream& operator<< | ( | std::ostream & | os, |
E3DPatientPositioning | pp | ||
) |
Stream operator to write patient position orient to stream os.
os | |
pp |
EXPORT_CORE std::ostream& operator<< | ( | std::ostream & | os, |
const CAttributeMap & | data | ||
) |
Facility to write an attribute map to a stream.
os | output stream |
data | map of values |
EXPORT_CORE bool operator== | ( | const CAttributeMap & | am, |
const CAttributeMap & | bm | ||
) |
Compare two attribute data instances a and b.
EXPORT_3D std::istream& operator>> | ( | std::istream & | is, |
E3DImageOrientation & | orient | ||
) |
Stream operator to read orientation orient from stream is.
is | ||
[out] | orient |
EXPORT_3D std::istream& operator>> | ( | std::istream & | is, |
E3DPatientPositioning & | pp | ||
) |
Stream operator to read patient position orient from stream is.
is | ||
[out] | pp |