13 #include <core/util/Span.hpp> 16 namespace neural_net {
21 static std::unique_ptr<Image> CreateFromPath(
const std::string& path);
26 virtual size_t Height()
const = 0;
29 virtual size_t Width()
const = 0;
37 virtual void WriteCHW(Span<float> buffer)
const = 0;
41 virtual void WriteHWC(Span<float> buffer)
const = 0;
virtual void WriteHWC(Span< float > buffer) const =0
virtual void WriteCHW(Span< float > buffer) const =0
Abstract interface for images that a training pipeline can consume.
virtual size_t Width() const =0
The number of columns of pixels.
virtual size_t Height() const =0
The number of rows of pixels.