24.02.1
|
PPM Image loader concrete implementation. More...
#include <ImageLoader.h>
Public Member Functions | |
PPMLoader () | |
Default Constructor. More... | |
bool | is_open () override |
Return true if the image file is currently open. More... | |
void | open (const std::string &filename) override |
Open an image file and reads its metadata (Width, height) More... | |
void | close () override |
Closes an image file. More... | |
Public Member Functions inherited from IImageLoader | |
IImageLoader () | |
Default Constructor. More... | |
virtual | ~IImageLoader ()=default |
Virtual base destructor. More... | |
unsigned int | width () const |
Return the width of the currently open image file. More... | |
unsigned int | height () const |
Return the height of the currently open image file. More... | |
template<typename T > | |
void | init_image (T &image, Format format) |
Initialise an image's metadata with the dimensions of the image file currently open. More... | |
template<typename T > | |
void | fill_image (T &image) |
Fill an image with the content of the currently open image file. More... | |
template<typename T > | |
void | fill_planar_tensor (T &tensor, bool bgr=false) |
Fill a tensor with 3 planes (one for each channel) with the content of the currently open image file. More... | |
PPM Image loader concrete implementation.
Definition at line 369 of file ImageLoader.h.
|
inline |
Default Constructor.
Definition at line 373 of file ImageLoader.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Return true if the image file is currently open.
Implements IImageLoader.
Definition at line 378 of file ImageLoader.h.
|
inlineoverridevirtual |
Open an image file and reads its metadata (Width, height)
[in] | filename | File to open |
Implements IImageLoader.
Definition at line 382 of file ImageLoader.h.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_MSG_VAR, and arm_compute::utils::parse_ppm_header().