10 #include <ml/neural_net/Image.hpp> 12 #import <CoreImage/CoreImage.h> 15 namespace neural_net {
31 CIImage* AsCIImage()
const {
return impl_; }
33 size_t Height()
const override;
34 size_t Width()
const override;
35 void WriteCHW(Span<float> buffer)
const override;
36 void WriteHWC(Span<float> buffer)
const override;
void WriteHWC(Span< float > buffer) const override
size_t Height() const override
The number of rows of pixels.
Abstract interface for images that a training pipeline can consume.
Concrete implementation of the Image interface that wraps a CIImage.
size_t Width() const override
The number of columns of pixels.
void WriteCHW(Span< float > buffer) const override