12 UnsignedInteger8, Integer8,
13 UnsignedInteger16, Integer16,
14 UnsignedInteger32, Integer32,
22 Image(
const QByteArray& _data, quint64 _width, quint64 _height, quint64 _channels, Type _type);
23 Image(
const QByteArray& _data, quint64 _width, quint64 _height, ColorSpace _colorSpace, Type _type);
26 Image(quint64 _width, quint64 _height, quint64 _channels, Type _type);
27 Image(quint64 _width, quint64 _height, ColorSpace _colorSpace, Type _type);
31 QByteArray toArray()
const;
33 const quint8* dataPtr()
const;
34 quint64 width()
const;
35 quint64 height()
const;
36 quint64 channels()
const;
38 Image convert(Type _type)
const;
39 quint64 pixelSize()
const;
52 bool operator==(
const Image& _rhs)
const;
59 static quint64 scalarSize(Type _type);
82 QExplicitlySharedDataPointer<Private> d;
88KNOWCORE_CORE_DECLARE_FORMATTER_ENUM(knowCore::Image::Type, UnsignedInteger8, Integer8, UnsignedInteger16, Integer16, UnsignedInteger32, Integer32, Float32, Float64)
static knowCore::ReturnValue< Image > fromRawData(const QByteArray &_data, quint64 _width, quint64 _height, quint64 _channels, Type _type)
Definition Image.cpp:217