This is the template version of a 2D image that is used for holding real data. More...
#include <mia/2d/image.hh>
Public Types | |
typedef C2DImage | Super |
define the super class of this class for generic processing More... | |
Public Types inherited from C2DImage | |
typedef C2DBounds | dimsize_type |
a definition of the image dimension type for More... | |
typedef std::shared_ptr< C2DImage > | Pointer |
2D Image pointer type More... | |
Public Member Functions | |
const_iterator | begin () const |
forwarding function to access the underlying T2DDatafield More... | |
iterator | begin () |
forwarding function to access the underlying T2DDatafield More... | |
const_iterator | begin_at (size_t x, size_t y) const |
forwarding function to access the underlying T2DDatafield More... | |
iterator | begin_at (size_t x, size_t y) |
forwarding function to access the underlying T2DDatafield More... | |
range_iterator | begin_range (const C2DBounds &begin, const C2DBounds &end) |
forwarding function to access the specified range of the underlying T2DDatafield More... | |
const_range_iterator | begin_range (const C2DBounds &begin, const C2DBounds &end) const |
forwarding function to access the specified range of the underlying T2DDatafield More... | |
virtual C2DImage * | clone () const __attribute__((warn_unused_result)) |
const T2DDatafield< T > & | data () const |
get direct access to the data field More... | |
const_iterator | end () const |
forwarding function to access the underlying T2DDatafield More... | |
iterator | end () |
forwarding function to access the underlying T2DDatafield More... | |
range_iterator | end_range (const C2DBounds &begin, const C2DBounds &end) |
forwarding function to access the specified range of the underlying T2DDatafield More... | |
const_range_iterator | end_range (const C2DBounds &begin, const C2DBounds &end) const |
forwarding function to access the specified range of the underlying T2DDatafield More... | |
void | get_data_line_x (size_t y, std::vector< T > &buffer) const |
forwarding function to access the underlying T2DDatafield More... | |
void | get_data_line_y (size_t x, std::vector< T > &buffer) const |
forwarding function to access the underlying T2DDatafield More... | |
C2DFVector | get_gradient (size_t idx) const |
C2DFVector | get_gradient (const C2DFVector &p) const |
std::pair< double, double > | get_minmax_intensity () const |
void | make_single_ref () __attribute__((deprecated)) |
const_reference | operator() (size_t x, size_t y) const |
forwarding function to access the underlying T2DDatafield More... | |
reference | operator() (size_t x, size_t y) |
forwarding function to access the underlying T2DDatafield More... | |
const_reference | operator() (const C2DBounds &l) const |
forwarding function to access the underlying T2DDatafield More... | |
reference | operator() (const C2DBounds &l) |
forwarding function to access the underlying T2DDatafield More... | |
T2DImage< T > & | operator= (T2DImage< T > &&orig) |
T2DImage< T > & | operator= (const T2DImage< T > &orig) |
const_reference | operator[] (size_t idx) const |
forwarding function to access the underlying T2DDatafield More... | |
reference | operator[] (size_t idx) |
forwarding function to access the underlying T2DDatafield More... | |
void | put_data_line_x (size_t y, const std::vector< T > &buffer) |
forwarding function to access the underlying T2DDatafield More... | |
void | put_data_line_y (size_t x, const std::vector< T > &buffer) |
forwarding function to access the underlying T2DDatafield More... | |
size_t | size () const |
forwarding function to access the underlying T2DDatafield More... | |
T2DImage (const C2DBounds &size, const T *init_data) | |
T2DImage (const C2DBounds &size, const std::vector< T > &init_data) | |
T2DImage (const C2DBounds &size, const CAttributedData &attr) | |
T2DImage (const C2DBounds &size) | |
T2DImage (const T2DImage &orig) | |
T2DImage (T2DImage &&orig) | |
T2DImage (const T2DDatafield< T > &orig) | |
T2DImage (const T2DDatafield< T > &orig, const CAttributedData &attr) | |
T2DImage () | |
Public Member Functions inherited from C2DImage | |
C2DFVector | get_origin () const |
C2DFVector | get_pixel_size () const |
EPixelType | get_pixel_type () const |
const C2DBounds & | get_size () const |
void | set_origin (const C2DFVector &origin) |
void | set_pixel_size (const C2DFVector &pixel) |
virtual | ~C2DImage () |
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 C2DImage | |
static const char * | data_descr |
Protected Member Functions inherited from C2DImage | |
C2DImage (C2DImage &&other) | |
C2DImage (const C2DImage &other)=default | |
C2DImage (const C2DBounds &size, EPixelType type) | |
C2DImage (const CAttributedData &attributes, const C2DBounds &size, EPixelType type) | |
C2DImage () | |
C2DImage & | operator= (C2DImage &&other) |
C2DImage & | operator= (const C2DImage &other)=default |
This is the template version of a 2D image that is used for holding real data.
The purpouse of this class is to hold actual pixel data and provide access to it.
Definition at line 138 of file 2d/image.hh.
define the super class of this class for generic processing
Definition at line 141 of file 2d/image.hh.
Create a 2D image with the given size and initialize it with the given data
size | |
init_data | must at least be of size (size.x*size.y) |
T2DImage< T >::T2DImage | ( | const C2DBounds & | size, |
const std::vector< T > & | init_data | ||
) |
Create a 2D image with the given size and initialize it with the given data
size | |
init_data | must at least be of size (size.x*size.y) |
T2DImage< T >::T2DImage | ( | const C2DBounds & | size, |
const CAttributedData & | attr | ||
) |
Create a 2D image with thegiven size and attach the given meta-data list.
size | image size |
attr | meta-data to be added |
Create a 2D image with the given size and initialize it with the given data
size |
T2DImage< T >::T2DImage | ( | const T2DDatafield< T > & | orig | ) |
Constructor to create the image by using a 2D data field
orig | the input data field |
T2DImage< T >::T2DImage | ( | const T2DDatafield< T > & | orig, |
const CAttributedData & | attr | ||
) |
Constructor to create the image by using a 2D data field and a given meta data set.
orig | the input data field |
attr | the meta data |
|
inline |
forwarding function to access the underlying T2DDatafield
Definition at line 261 of file 2d/image.hh.
Referenced by multiply< T2DImage< T > >::apply(), FDeformer2D::operator()(), CImageComparePrinter::operator()(), and FConvert2DImageToPixeltypeO< O >::operator()().
|
inline |
forwarding function to access the underlying T2DDatafield
Definition at line 271 of file 2d/image.hh.
|
inline |
forwarding function to access the underlying T2DDatafield
Definition at line 281 of file 2d/image.hh.
|
inline |
forwarding function to access the underlying T2DDatafield
Definition at line 286 of file 2d/image.hh.
|
inline |
forwarding function to access the specified range of the underlying T2DDatafield
Definition at line 291 of file 2d/image.hh.
|
inline |
forwarding function to access the specified range of the underlying T2DDatafield
Definition at line 301 of file 2d/image.hh.
Implements C2DImage.
const T2DDatafield<T>& T2DImage< T >::data | ( | ) | const |
get direct access to the data field
Referenced by FDeformer2D::operator()().
|
inline |
forwarding function to access the underlying T2DDatafield
Definition at line 266 of file 2d/image.hh.
Referenced by multiply< T2DImage< T > >::apply(), CImageComparePrinter::operator()(), and FConvert2DImageToPixeltypeO< O >::operator()().
|
inline |
forwarding function to access the underlying T2DDatafield
Definition at line 276 of file 2d/image.hh.
|
inline |
forwarding function to access the specified range of the underlying T2DDatafield
Definition at line 296 of file 2d/image.hh.
|
inline |
forwarding function to access the specified range of the underlying T2DDatafield
Definition at line 306 of file 2d/image.hh.
void T2DImage< T >::get_data_line_x | ( | size_t | y, |
std::vector< T > & | buffer | ||
) | const |
forwarding function to access the underlying T2DDatafield
void T2DImage< T >::get_data_line_y | ( | size_t | x, |
std::vector< T > & | buffer | ||
) | const |
forwarding function to access the underlying T2DDatafield
C2DFVector T2DImage< T >::get_gradient | ( | size_t | idx | ) | const |
evaluate the image gradient afthe given grid position by using centered finite differences
idx | linear index into the image data |
C2DFVector T2DImage< T >::get_gradient | ( | const C2DFVector & | p | ) | const |
Evaluate the gradient by using linerly interpolated finite differences
p | continious coordinate into the image domain |
|
virtual |
Implements C2DImage.
|
inline |
forwarding function to access the underlying T2DDatafield
Definition at line 231 of file 2d/image.hh.
|
inline |
forwarding function to access the underlying T2DDatafield
Definition at line 236 of file 2d/image.hh.
forwarding function to access the underlying T2DDatafield
Definition at line 251 of file 2d/image.hh.
forwarding function to access the underlying T2DDatafield
Definition at line 256 of file 2d/image.hh.
Copy operator
|
inline |
forwarding function to access the underlying T2DDatafield
Definition at line 241 of file 2d/image.hh.
|
inline |
forwarding function to access the underlying T2DDatafield
Definition at line 246 of file 2d/image.hh.
void T2DImage< T >::put_data_line_x | ( | size_t | y, |
const std::vector< T > & | buffer | ||
) |
forwarding function to access the underlying T2DDatafield
void T2DImage< T >::put_data_line_y | ( | size_t | x, |
const std::vector< T > & | buffer | ||
) |
forwarding function to access the underlying T2DDatafield
size_t T2DImage< T >::size | ( | ) | const |
forwarding function to access the underlying T2DDatafield