LArOpenCV
1
|
Meant to be a storage class for an image into a ROOT file. More...
#include <Image2D.h>
Public Member Functions | |
Image2D (size_t width_npixel=0, size_t height_npixel=0) | |
Image2D (const ImageMeta &) | |
Image2D (const Image2D &) | |
virtual | ~Image2D () |
unsigned int | height () const |
unsigned int | width () const |
float | pixel (size_t w, size_t h) const |
bool | isInBounds (size_t w, size_t h) const |
Image2D | copy_compress (size_t width_npixel, size_t height_npixel) const |
size_t | index (size_t w, size_t h) const |
void | copy (size_t w, size_t h, const float *src, size_t num_pixel) |
void | copy (size_t w, size_t h, const std::vector< float > &src, size_t num_pixel=0) |
void | copy (size_t w, size_t h, const short *src, size_t num_pixel) |
void | copy (size_t w, size_t h, const std::vector< short > &src, size_t num_pixel=0) |
const std::vector< float > & | as_vector () const |
const ImageMeta & | meta_data () const |
void | resize (size_t width_npixel, size_t height_npixel) |
void | set_pixel (size_t w, size_t h, float value) |
void | paint (float value) |
void | clear_data () |
void | compress (size_t width_npixel, size_t height_npixel) |
Protected Attributes | |
T | elements |
STL member. More... | |
Private Member Functions | |
void | clear () |
Private Attributes | |
ImageMeta | _meta |
Meant to be a storage class for an image into a ROOT file.
Not yet implemented (don't bother reading!)
larcaffe::Image2D::Image2D | ( | size_t | width_npixel = 0 , |
size_t | height_npixel = 0 |
||
) |
Definition at line 8 of file Image2D.cxx.
larcaffe::Image2D::Image2D | ( | const ImageMeta & | meta) |
Definition at line 13 of file Image2D.cxx.
larcaffe::Image2D::Image2D | ( | const Image2D & | rhs) |
Definition at line 18 of file Image2D.cxx.
|
inlinevirtual |
|
inline |
|
private |
Definition at line 29 of file Image2D.cxx.
References _meta, and larcaffe::ImageMeta::update().
void larcaffe::Image2D::clear_data | ( | ) |
Definition at line 35 of file Image2D.cxx.
void larcaffe::Image2D::compress | ( | size_t | width_npixel, |
size_t | height_npixel | ||
) |
void larcaffe::Image2D::copy | ( | size_t | w, |
size_t | h, | ||
const float * | src, | ||
size_t | num_pixel | ||
) |
void larcaffe::Image2D::copy | ( | size_t | w, |
size_t | h, | ||
const std::vector< float > & | src, | ||
size_t | num_pixel = 0 |
||
) |
void larcaffe::Image2D::copy | ( | size_t | w, |
size_t | h, | ||
const short * | src, | ||
size_t | num_pixel | ||
) |
Definition at line 75 of file Image2D.cxx.
References index().
void larcaffe::Image2D::copy | ( | size_t | w, |
size_t | h, | ||
const std::vector< short > & | src, | ||
size_t | num_pixel = 0 |
||
) |
Image2D larcaffe::Image2D::copy_compress | ( | size_t | width_npixel, |
size_t | height_npixel | ||
) | const |
Definition at line 94 of file Image2D.cxx.
References larcaffe::ImageMeta::_height_npixel, _meta, larcaffe::ImageMeta::_width_npixel, height(), larcaffe::ImageMeta::update(), and width().
Referenced by compress().
|
inline |
Definition at line 36 of file Image2D.h.
References larcaffe::ImageMeta::_height_npixel, and _meta.
Referenced by copy_compress().
size_t larcaffe::Image2D::index | ( | size_t | w, |
size_t | h | ||
) | const |
Definition at line 49 of file Image2D.cxx.
References larcaffe::ImageMeta::_height_npixel, _meta, and isInBounds().
Referenced by copy(), and pixel().
|
inline |
Definition at line 39 of file Image2D.h.
References larcaffe::ImageMeta::_height_npixel, _meta, and larcaffe::ImageMeta::_width_npixel.
Referenced by index().
|
inline |
void larcaffe::Image2D::paint | ( | float | value) |
Definition at line 43 of file Image2D.cxx.
float larcaffe::Image2D::pixel | ( | size_t | w, |
size_t | h | ||
) | const |
void larcaffe::Image2D::resize | ( | size_t | width_npixel, |
size_t | height_npixel | ||
) |
Definition at line 23 of file Image2D.cxx.
References _meta, and larcaffe::ImageMeta::update().
void larcaffe::Image2D::set_pixel | ( | size_t | w, |
size_t | h, | ||
float | value | ||
) |
Definition at line 37 of file Image2D.cxx.
References larcaffe::ImageMeta::_height_npixel, _meta, and larcaffe::ImageMeta::_width_npixel.
|
inline |
Definition at line 37 of file Image2D.h.
References _meta, and larcaffe::ImageMeta::_width_npixel.
Referenced by copy_compress().
|
private |
Definition at line 59 of file Image2D.h.
Referenced by clear(), copy_compress(), height(), index(), isInBounds(), meta_data(), resize(), set_pixel(), and width().
|
inherited |
STL member.