75 : Matrix(std::move(matrix))
88 , m_name{ std::move(name) }
100 : Matrix(std::move(matrix))
101 , m_name{ std::move(name) }
138 std::vector<double> doubleValues(9);
139 std::transform(
cbegin(),
cend(), doubleValues.begin(), [&](
const float v) {
140 return static_cast<double>(v);
148 std::transform(doubleValues.cbegin(), doubleValues.cend(),
begin(), [&](
const double v) {
149 return static_cast<float>(v);
156 return peak::common::detail::AreAlmostEqual(a, b, 6);
169 std::stringstream ss;
Interface for a hierarchical key-value archive system.
virtual std::vector< double > GetDoubleArray(const std::string &key) const =0
Retrieves an array of doubles by key.
virtual void SetDoubleArray(const std::string &key, const std::vector< double > &value)=0
Stores an array of doubles.
Interface for objects that can be serialized to and deserialized from an archive.
A class template for a two-dimensional matrix.
ColorCorrectionMatrix(const float(&data)[3][3])
Creates an instance of class ColorCorrectionMatrix with data.
bool operator==(const ColorCorrectionMatrix &other) const
ColorCorrectionMatrix(std::string name, const float(&data)[3][3])
Creates an instance of class ColorCorrectionMatrix.
ColorCorrectionMatrix()=default
Creates an instance of class ColorCorrectionMatrix.
void Serialize(peak::common::serialization::IArchive &archive) const override
Serializes the object's internal state into the provided archive.
void Deserialize(const peak::common::serialization::IArchive &archive) override
Restores the object's state from the provided archive.
ColorCorrectionMatrix(std::string name, Matrix< float, 3, 3 > matrix)
Creates an instance of class ColorCorrectionMatrix.
ColorCorrectionMatrix(Matrix< float, 3, 3 > matrix)
Creates an instance of class ColorCorrectionMatrix with data.
std::string ToString(BinningMode mode)
Converts a BinningMode enum value to its string representation.