My Project
|
Specific type of the 3D images that hold real pixel data. More...
#include <mia/3d/image.hh>
Public Types | |
typedef C3DImage | Super |
define the super class of this class for generic processing | |
![]() | |
typedef C3DBounds | dimsize_type |
generic type for the dimension of the image | |
typedef std::shared_ptr< C3DImage > | Pointer |
Pointer type of the image. | |
Public Member Functions | |
iterator | begin () |
read/write iterator, issues copy-on-write | |
const_iterator | begin () const |
constant iterator | |
iterator | begin_at (size_t x, size_t y, size_t z) |
read/write iterator starting at the given location | |
const_iterator | begin_at (size_t x, size_t y, size_t z) const |
constant iterator starting at the given location | |
range_iterator | begin_range (const C3DBounds &begin, const C3DBounds &end) |
forwarding function to access the specified range of the underlying T3DDatafield | |
const_range_iterator | begin_range (const C3DBounds &begin, const C3DBounds &end) const |
forwarding function to access the specified range of the underlying T3DDatafield | |
range_iterator_with_boundary_flag | begin_range_with_boundary_flags (const C3DBounds &begin, const C3DBounds &end) |
const_range_iterator_with_boundary_flag | begin_range_with_boundary_flags (const C3DBounds &begin, const C3DBounds &end) const |
virtual Pointer | clone () const |
const T3DDatafield< T > & | data () const |
read only access to the underlying data | |
iterator | end () |
read/write iterator, issues copy-on-write | |
const_iterator | end () const |
constant iterator | |
range_iterator | end_range (const C3DBounds &begin, const C3DBounds &end) |
forwarding function to access the specified range of the underlying T3DDatafield | |
const_range_iterator | end_range (const C3DBounds &begin, const C3DBounds &end) const |
forwarding function to access the specified range of the underlying T3DDatafield | |
range_iterator_with_boundary_flag | end_range_with_boundary_flags (const C3DBounds &begin, const C3DBounds &end) |
const_range_iterator_with_boundary_flag | end_range_with_boundary_flags (const C3DBounds &begin, const C3DBounds &end) const |
void | get_data_line_x (int y, int z, std::vector< T > &buffer) const |
void | get_data_line_y (int x, int z, std::vector< T > &buffer) const |
void | get_data_line_z (int x, int y, std::vector< T > &buffer) const |
T2DImage< T > | get_data_plane_xy (size_t z) const |
forwarding function to access the underlying T3DDatafield | |
T2DImage< T > | get_data_plane_xz (size_t y) const |
forwarding function to access the underlying T3DDatafield | |
T2DImage< T > | get_data_plane_yz (size_t x) const |
forwarding function to access the underlying T3DDatafield | |
C3DFVector | get_gradient (int index) const |
read/write access to the underlying data | |
std::pair< double, double > | get_minmax_intensity () const |
virtual const C3DBounds & | get_size () const |
reference | operator() (const C3DBounds &l) |
element access operator - read/write | |
const_reference | operator() (const C3DBounds &l) const |
element access operator - read only | |
reference | operator() (size_t x, size_t y, size_t z) |
element access operator - read/write | |
const_reference | operator() (size_t x, size_t y, size_t z) const |
element access operator - read only | |
T3DImage & | operator= (const T3DImage< T > &orig) |
T3DImage & | operator= (T3DImage< T > &&orig) |
reference | operator[] (int i) |
const_reference | operator[] (int i) const |
void | put_data_line_x (int y, int z, const std::vector< T > &buffer) |
void | put_data_line_y (int x, int z, const std::vector< T > &buffer) |
void | put_data_line_z (int x, int y, const std::vector< T > &buffer) |
void | put_data_plane_xy (size_t z, const T2DImage< T > &p) |
forwarding function to access the underlying T3DDatafield | |
void | put_data_plane_xz (size_t y, const T2DImage< T > &p) |
forwarding function to access the underlying T3DDatafield | |
void | put_data_plane_yz (size_t x, const T2DImage< T > &p) |
forwarding function to access the underlying T3DDatafield | |
size_t | size () const |
T3DImage () | |
T3DImage (const C3DBounds &size) | |
T3DImage (const C3DBounds &size, const CAttributedData &attr) | |
T3DImage (const C3DBounds &size, const data_array &init_data) | |
T3DImage (const C3DBounds &size, const T *init_data) | |
T3DImage (const T3DDatafield< T > &orig) | |
T3DImage (const T3DImage< T > &orig) | |
T3DImage (T3DImage< T > &&orig) | |
![]() | |
E3DImageOrientation | get_orientation () const |
C3DFVector | get_origin () const |
EPixelType | get_pixel_type () const |
C3DRotation | get_rotation () const |
C3DFVector | get_voxel_size () const |
void | set_orientation (E3DImageOrientation orient) |
void | set_origin (const C3DFVector &voxel) |
set the origin i.e. world units of the pixel at (0,0,0) | |
void | set_rotation (const C3DRotation &voxel) |
set the rotation about the origin of the image | |
void | set_voxel_size (const C3DFVector &voxel) |
set the voxel size on world units | |
virtual | ~C3DImage () |
![]() | |
CAttributedData () | |
CAttributedData (const CAttributedData &org) | |
CAttributedData (PAttributeMap attr) | |
CAttributedData & | operator= (const CAttributedData &org) |
Assignemt operator. | |
const PAttribute | get_attribute (const std::string &key) const |
CAttributeMap::const_iterator | begin_attributes () const |
CAttributeMap::const_iterator | end_attributes () const |
void | set_attribute (const std::string &key, PAttribute attr) |
void | set_attributes (CAttributeMap::const_iterator begin, CAttributeMap::const_iterator end) |
void | set_attribute (const std::string &key, const std::string &value) |
template<typename T > | |
void | set_attribute (const std::string &key, const T &value) |
void | set_attribute (const std::string &key, const char *value) |
const std::string | get_attribute_as_string (const std::string &key) const |
returns the requested attribute as string, returns an empty string if attribute doesn't exist | |
template<typename T > | |
const T | get_attribute_as (const std::string &key) const |
template<typename T > | |
const T | get_attribute_as (const std::string &key, T default_value) const |
void | delete_attribute (const std::string &key) |
bool | has_attribute (const std::string &key) const |
void | print (std::ostream &os) const |
Additional Inherited Members | |
![]() | |
static const char * | data_descr |
data type description for the plug-in path component | |
![]() | |
C3DImage () | |
standard constructor | |
C3DImage (const CAttributedData &data, EPixelType type) | |
C3DImage (EPixelType type) | |
Specific type of the 3D images that hold real pixel data.
This template defines a 3D image holding a certain type T as pixel type.
Definition at line 149 of file 3d/image.hh.
define the super class of this class for generic processing
Definition at line 153 of file 3d/image.hh.
T3DImage< T >::T3DImage | ( | const C3DBounds & | size, |
const T * | init_data | ||
) |
Construct a new image of a given size and with the given input date.
size | |
init_data | input data |
T3DImage< T >::T3DImage | ( | const C3DBounds & | size, |
const CAttributedData & | attr | ||
) |
Construct a new image of a given size and with the given attribute list.
size | |
attr |
T3DImage< T >::T3DImage | ( | const C3DBounds & | size, |
const data_array & | init_data | ||
) |
|
explicit |
Construct a new image of a given size
size |
T3DImage< T >::T3DImage | ( | const T3DImage< T > & | orig | ) |
copy constructor
T3DImage< T >::T3DImage | ( | T3DImage< T > && | orig | ) |
move constructor
|
explicit |
Constructor to create the image by using a 3D data field
orig | the input data field |
T3DImage< T >::T3DImage | ( | ) |
standart costructor creates an image of size (0,0,0)
|
inline |
read/write iterator, issues copy-on-write
Definition at line 360 of file 3d/image.hh.
|
inline |
constant iterator
Definition at line 294 of file 3d/image.hh.
Referenced by FConvert3DImageToPixeltypeO< O >::operator()().
|
inline |
read/write iterator starting at the given location
Definition at line 378 of file 3d/image.hh.
|
inline |
constant iterator starting at the given location
Definition at line 372 of file 3d/image.hh.
Referenced by FDeformer3D::operator()().
|
inline |
forwarding function to access the specified range of the underlying T3DDatafield
Definition at line 306 of file 3d/image.hh.
|
inline |
forwarding function to access the specified range of the underlying T3DDatafield
Definition at line 318 of file 3d/image.hh.
|
inline |
Definition at line 331 of file 3d/image.hh.
|
inline |
Definition at line 345 of file 3d/image.hh.
Implements C3DImage.
const T3DDatafield< T > & T3DImage< T >::data | ( | ) | const |
read only access to the underlying data
Referenced by FDeformer3D::operator()().
|
inline |
read/write iterator, issues copy-on-write
Definition at line 366 of file 3d/image.hh.
|
inline |
constant iterator
Definition at line 300 of file 3d/image.hh.
Referenced by FConvert3DImageToPixeltypeO< O >::operator()().
|
inline |
forwarding function to access the specified range of the underlying T3DDatafield
Definition at line 312 of file 3d/image.hh.
|
inline |
forwarding function to access the specified range of the underlying T3DDatafield
Definition at line 324 of file 3d/image.hh.
|
inline |
Definition at line 337 of file 3d/image.hh.
|
inline |
Definition at line 351 of file 3d/image.hh.
void T3DImage< T >::get_data_line_x | ( | int | y, |
int | z, | ||
std::vector< T > & | buffer | ||
) | const |
Get some Data along some line parallel to X axis
void T3DImage< T >::get_data_line_y | ( | int | x, |
int | z, | ||
std::vector< T > & | buffer | ||
) | const |
Get some Data along some line parallel to Y axis
void T3DImage< T >::get_data_line_z | ( | int | x, |
int | y, | ||
std::vector< T > & | buffer | ||
) | const |
Get some Data along some line parallel to Z axis
forwarding function to access the underlying T3DDatafield
forwarding function to access the underlying T3DDatafield
forwarding function to access the underlying T3DDatafield
|
inline |
read/write access to the underlying data
Evaluate the gradient at a given location of the image
Definition at line 407 of file 3d/image.hh.
|
virtual |
Implements C3DImage.
Implements C3DImage.
Referenced by FConvert3DImageToPixeltypeO< O >::operator()(), and FDeformer3D::operator()().
element access operator - read/write
Definition at line 288 of file 3d/image.hh.
References T3DVector< T >::x, T3DVector< T >::y, and T3DVector< T >::z.
element access operator - read only
Definition at line 282 of file 3d/image.hh.
References T3DVector< T >::x, T3DVector< T >::y, and T3DVector< T >::z.
|
inline |
element access operator - read/write
Definition at line 276 of file 3d/image.hh.
|
inline |
element access operator - read only
Definition at line 270 of file 3d/image.hh.
copy operator
|
inline |
A linear read/write access operator. The refcount of Data must be 1, else the program will abort with a failed assertion (if assert is enabled)
Definition at line 392 of file 3d/image.hh.
|
inline |
a linear read only access operator
Definition at line 384 of file 3d/image.hh.
void T3DImage< T >::put_data_line_x | ( | int | y, |
int | z, | ||
const std::vector< T > & | buffer | ||
) |
Put some Data along some line parallel to X axis
void T3DImage< T >::put_data_line_y | ( | int | x, |
int | z, | ||
const std::vector< T > & | buffer | ||
) |
Put some Data along some line parallel to Y axis
void T3DImage< T >::put_data_line_z | ( | int | x, |
int | y, | ||
const std::vector< T > & | buffer | ||
) |
Put some Data along some line parallel to Z axis
forwarding function to access the underlying T3DDatafield
forwarding function to access the underlying T3DDatafield
forwarding function to access the underlying T3DDatafield
|
virtual |
Implements C3DImage.