24.02.1
|
#include <GraphUtils.h>
Public Member Functions | |
ImageAccessor (std::string filename, bool bgr=true, std::unique_ptr< IPreprocessor > preprocessor=nullptr) | |
Constructor. More... | |
ImageAccessor (ImageAccessor &&)=default | |
Allow instances of this class to be move constructed. More... | |
bool | access_tensor (ITensor &tensor) override |
Interface to be implemented to access a given tensor. More... | |
Public Member Functions inherited from ITensorAccessor | |
virtual | ~ITensorAccessor ()=default |
Default virtual destructor. More... | |
virtual bool | access_tensor_data () |
Returns true if the tensor data is being accessed. More... | |
Image accessor class.
Definition at line 235 of file GraphUtils.h.
ImageAccessor | ( | std::string | filename, |
bool | bgr = true , |
||
std::unique_ptr< IPreprocessor > | preprocessor = nullptr |
||
) |
Constructor.
[in] | filename | Image file |
[in] | bgr | (Optional) Fill the first plane with blue channel (default = false - RGB format) |
[in] | preprocessor | (Optional) Image pre-processing object |
Definition at line 264 of file GraphUtils.cpp.
|
default |
Allow instances of this class to be move constructed.
|
overridevirtual |
Interface to be implemented to access a given tensor.
[in] | tensor | Tensor to be accessed |
Implements ITensorAccessor.
Definition at line 269 of file GraphUtils.cpp.
References ARM_COMPUTE_EXIT_ON_MSG, ARM_COMPUTE_EXIT_ON_MSG_VAR, ImageLoaderFactory::create(), arm_compute::NCHW, tensor, Dimensions< T >::x(), and Dimensions< T >::y().