Turi Create
4.0
|
Abstract interface for images that a training pipeline can consume. More...
#include <ml/neural_net/Image.hpp>
Public Member Functions | |
virtual size_t | Height () const =0 |
The number of rows of pixels. | |
virtual size_t | Width () const =0 |
The number of columns of pixels. | |
size_t | Size () const |
virtual void | WriteCHW (Span< float > buffer) const =0 |
virtual void | WriteHWC (Span< float > buffer) const =0 |
Abstract interface for images that a training pipeline can consume.
|
inline |
|
pure virtual |
Writes the image in CHW order to the provided span or throws if the span does not have the expected size.
Implemented in turi::neural_net::CoreImageImage, and turi::neural_net::PortableImage.
|
pure virtual |
Writes the image in HWC order to the provided span or throws if the span does not have the expected size.
Implemented in turi::neural_net::CoreImageImage, and turi::neural_net::PortableImage.