24.02.1
|
Class to load the content of a JPEG file into an Image. More...
#include <ImageLoader.h>
Public Member Functions | |
JPEGLoader () | |
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... | |
void | release () |
Explicitly Releases the memory of the loaded data. 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... | |
Class to load the content of a JPEG file into an Image.
Definition at line 433 of file ImageLoader.h.
|
inline |
Default Constructor.
Definition at line 447 of file ImageLoader.h.
|
inlineoverridevirtual |
Closes an image file.
Implements IImageLoader.
Definition at line 473 of file ImageLoader.h.
References ARM_COMPUTE_ERROR_ON.
|
inlineoverridevirtual |
Return true if the image file is currently open.
Implements IImageLoader.
Definition at line 452 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 456 of file ImageLoader.h.
References ARM_COMPUTE_ERROR_VAR.
Referenced by ValidationInputAccessor::access_tensor().
|
inline |
Explicitly Releases the memory of the loaded data.
Definition at line 484 of file ImageLoader.h.