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 More... | |
Public Types inherited from C3DImage | |
typedef C3DBounds | dimsize_type |
generic type for the dimension of the image More... | |
typedef std::shared_ptr< C3DImage > | Pointer |
Pointer type of the image. More... | |
Public Member Functions | |
const_iterator | begin () const |
constant iterator More... | |
iterator | begin () |
read/write iterator, issues copy-on-write More... | |
const_iterator | begin_at (size_t x, size_t y, size_t z) const |
constant iterator starting at the given location More... | |
iterator | begin_at (size_t x, size_t y, size_t z) |
read/write iterator starting at the given location More... | |
range_iterator | begin_range (const C3DBounds &begin, const C3DBounds &end) |
forwarding function to access the specified range of the underlying T3DDatafield More... | |
const_range_iterator | begin_range (const C3DBounds &begin, const C3DBounds &end) const |
forwarding function to access the specified range of the underlying T3DDatafield More... | |
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 More... | |
const_iterator | end () const |
constant iterator More... | |
iterator | end () |
read/write iterator, issues copy-on-write More... | |
range_iterator | end_range (const C3DBounds &begin, const C3DBounds &end) |
forwarding function to access the specified range of the underlying T3DDatafield More... | |
const_range_iterator | end_range (const C3DBounds &begin, const C3DBounds &end) const |
forwarding function to access the specified range of the underlying T3DDatafield More... | |
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 More... | |
T2DImage< T > | get_data_plane_xz (size_t y) const |
forwarding function to access the underlying T3DDatafield More... | |
T2DImage< T > | get_data_plane_yz (size_t x) const |
forwarding function to access the underlying T3DDatafield More... | |
C3DFVector | get_gradient (int index) const |
read/write access to the underlying data More... | |
std::pair< double, double > | get_minmax_intensity () const |
virtual const C3DBounds & | get_size () const |
const_reference | operator() (size_t x, size_t y, size_t z) const |
element access operator - read only More... | |
reference | operator() (size_t x, size_t y, size_t z) |
element access operator - read/write More... | |
const_reference | operator() (const C3DBounds &l) const |
element access operator - read only More... | |
reference | operator() (const C3DBounds &l) |
element access operator - read/write More... | |
T3DImage & | operator= (const T3DImage< T > &orig) |
T3DImage & | operator= (T3DImage< T > &&orig) |
const_reference | operator[] (int i) const |
reference | operator[] (int i) |
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 More... | |
void | put_data_plane_xz (size_t y, const T2DImage< T > &p) |
forwarding function to access the underlying T3DDatafield More... | |
void | put_data_plane_yz (size_t x, const T2DImage< T > &p) |
forwarding function to access the underlying T3DDatafield More... | |
size_t | size () const |
T3DImage (const C3DBounds &size, const T *init_data) | |
T3DImage (const C3DBounds &size, const CAttributedData &attr) | |
T3DImage (const C3DBounds &size, const data_array &init_data) | |
T3DImage (const C3DBounds &size) | |
T3DImage (const T3DImage< T > &orig) | |
T3DImage (T3DImage< T > &&orig) | |
T3DImage (const T3DDatafield< T > &orig) | |
T3DImage () | |
Public Member Functions inherited from C3DImage | |
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) More... | |
void | set_rotation (const C3DRotation &voxel) |
set the rotation about the origin of the image More... | |
void | set_voxel_size (const C3DFVector &voxel) |
set the voxel size on world units More... | |
virtual | ~C3DImage () |
Public Member Functions inherited from CAttributedData | |
CAttributeMap::const_iterator | begin_attributes () const |
void | delete_attribute (const std::string &key) |
CAttributeMap::const_iterator | end_attributes () const |
const PAttribute | get_attribute (const std::string &key) const |
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 |
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 More... | |
bool | has_attribute (const std::string &key) const |
CAttributedData & | operator= (const CAttributedData &org) |
Assignemt operator. More... | |
void | print (std::ostream &os) const |
void | set_attribute (const std::string &key, PAttribute attr) |
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) |
void | set_attributes (CAttributeMap::const_iterator begin, CAttributeMap::const_iterator end) |
CAttributedData () | |
CAttributedData (const CAttributedData &org) | |
CAttributedData (PAttributeMap attr) | |
Additional Inherited Members | |
Static Public Attributes inherited from C3DImage | |
static const char * | data_descr |
data type description for the plug-in path component More... | |
Protected Member Functions inherited from C3DImage | |
C3DImage (const CAttributedData &data, EPixelType type) | |
C3DImage (EPixelType type) | |
C3DImage () | |
standard constructor More... | |
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 148 of file 3d/image.hh.
define the super class of this class for generic processing
Definition at line 151 of file 3d/image.hh.
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 | ||
) |
Construct a new image of a given size
size |
|
explicit |
Constructor to create the image by using a 3D data field
orig | the input data field |
standart costructor creates an image of size (0,0,0)
|
inline |
constant iterator
Definition at line 288 of file 3d/image.hh.
Referenced by FConvert3DImageToPixeltypeO< O >::operator()().
|
inline |
read/write iterator, issues copy-on-write
Definition at line 344 of file 3d/image.hh.
|
inline |
constant iterator starting at the given location
Definition at line 354 of file 3d/image.hh.
Referenced by FDeformer3D::operator()().
|
inline |
read/write iterator starting at the given location
Definition at line 359 of file 3d/image.hh.
|
inline |
forwarding function to access the specified range of the underlying T3DDatafield
Definition at line 298 of file 3d/image.hh.
|
inline |
forwarding function to access the specified range of the underlying T3DDatafield
Definition at line 308 of file 3d/image.hh.
|
inline |
Definition at line 319 of file 3d/image.hh.
|
inline |
Definition at line 331 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 |
constant iterator
Definition at line 293 of file 3d/image.hh.
Referenced by FConvert3DImageToPixeltypeO< O >::operator()().
|
inline |
read/write iterator, issues copy-on-write
Definition at line 349 of file 3d/image.hh.
|
inline |
forwarding function to access the specified range of the underlying T3DDatafield
Definition at line 303 of file 3d/image.hh.
|
inline |
forwarding function to access the specified range of the underlying T3DDatafield
Definition at line 313 of file 3d/image.hh.
|
inline |
Definition at line 324 of file 3d/image.hh.
|
inline |
Definition at line 336 of file 3d/image.hh.
References C3DImage::size().
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 387 of file 3d/image.hh.
References C3DImage::get_minmax_intensity(), and C3DImage::get_size().
|
virtual |
Implements C3DImage.
Implements C3DImage.
Referenced by FDeformer3D::operator()(), and FConvert3DImageToPixeltypeO< O >::operator()().
|
inline |
element access operator - read only
Definition at line 268 of file 3d/image.hh.
|
inline |
element access operator - read/write
Definition at line 273 of file 3d/image.hh.
element access operator - read only
Definition at line 278 of file 3d/image.hh.
References T3DVector< T >::x, T3DVector< T >::y, and T3DVector< T >::z.
element access operator - read/write
Definition at line 283 of file 3d/image.hh.
References T3DVector< T >::x, T3DVector< T >::y, and T3DVector< T >::z.
|
inline |
a linear read only access operator
Definition at line 364 of file 3d/image.hh.
|
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 372 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.