|
mlpack
|
Implements meta-data of images required by data::Load and data::Save for loading and saving images into arma::Mat. More...
#include <image_info.hpp>
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 & | Width () const |
| Get the image width. | |
| size_t & | Width () |
| Modify the image width. | |
| const size_t & | Height () const |
| Get the image height. | |
| size_t & | Height () |
| Modify the image height. | |
| const size_t & | Channels () const |
| Get the image channels. | |
| size_t & | Channels () |
| Modify the image channels. | |
| const size_t & | Quality () const |
| Get the image quality. | |
| size_t & | Quality () |
| Modify the image quality. | |
| template<typename Archive > | |
| void | serialize (Archive &ar, const uint32_t) |
Implements meta-data of images required by data::Load and data::Save for loading and saving images into arma::Mat.
|
inline |
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). |
1.8.13