Implements meta-data of images required by data::Load and data::Save for loading and saving images into arma::Mat. More...
Public Member Functions | |
ImageInfo (const size_t width=0, const size_t height=0, const size_t channels=3, const size_t quality=90) | |
Instantiate the ImageInfo object with the given image width, height, number of channels and quality parameter. More... | |
const size_t & | Channels () const |
Get the image channels. More... | |
size_t & | Channels () |
Modify the image channels. More... | |
const size_t & | Height () const |
Get the image height. More... | |
size_t & | Height () |
Modify the image height. More... | |
const size_t & | Quality () const |
Get the image quality. More... | |
size_t & | Quality () |
Modify the image quality. More... | |
template < typename Archive > | |
void | serialize (Archive &ar, const uint32_t) |
const size_t & | Width () const |
Get the image width. More... | |
size_t & | Width () |
Modify the image width. More... | |
Implements meta-data of images required by data::Load and data::Save for loading and saving images into arma::Mat.
Definition at line 36 of file image_info.hpp.
ImageInfo | ( | const size_t | width = 0 , |
const size_t | height = 0 , |
||
const size_t | channels = 3 , |
||
const size_t | quality = 90 |
||
) |
Instantiate the ImageInfo object with the given image width, height, number of channels and quality parameter.
width | Image width. |
height | Image height. |
channels | Number of channels in the image. |
quality | Compression of the image if saved as jpg (0 - 100). |
|
inline |
Get the image channels.
Definition at line 64 of file image_info.hpp.
|
inline |
Modify the image channels.
Definition at line 66 of file image_info.hpp.
|
inline |
Get the image height.
Definition at line 59 of file image_info.hpp.
|
inline |
Modify the image height.
Definition at line 61 of file image_info.hpp.
|
inline |
Get the image quality.
Definition at line 69 of file image_info.hpp.
|
inline |
Modify the image quality.
Definition at line 71 of file image_info.hpp.
|
inline |
Definition at line 74 of file image_info.hpp.
|
inline |
Get the image width.
Definition at line 54 of file image_info.hpp.
|
inline |
Modify the image width.
Definition at line 56 of file image_info.hpp.