mlpack
Public Member Functions | List of all members
mlpack::data::ImageInfo Class Reference

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)
 

Detailed Description

Implements meta-data of images required by data::Load and data::Save for loading and saving images into arma::Mat.

Constructor & Destructor Documentation

◆ ImageInfo()

mlpack::data::ImageInfo::ImageInfo ( const size_t  width = 0,
const size_t  height = 0,
const size_t  channels = 3,
const size_t  quality = 90 
)
inline

Instantiate the ImageInfo object with the given image width, height, number of channels and quality parameter.

Parameters
widthImage width.
heightImage height.
channelsNumber of channels in the image.
qualityCompression of the image if saved as jpg (0 - 100).

The documentation for this class was generated from the following files: