Turi Create
4.0
|
#include <ml/neural_net/PortableImage.hpp>
Public Member Functions | |
size_t | Height () const override |
The number of rows of pixels. | |
size_t | Width () const override |
The number of columns of pixels. | |
void | WriteCHW (Span< float > buffer) const override |
void | WriteHWC (Span< float > buffer) const override |
size_t | Size () const |
Concrete implementation of the Image interface that wraps the portable image_type class.
Definition at line 18 of file PortableImage.hpp.
|
inlineinherited |
|
overridevirtual |
Writes the image in CHW order to the provided span or throws if the span does not have the expected size.
Implements turi::neural_net::Image.
|
overridevirtual |
Writes the image in HWC order to the provided span or throws if the span does not have the expected size.
Implements turi::neural_net::Image.