#include <peak_icv/pipeline/types/peak_icv_color_correction_matrix.hpp>

Public Member Functions | |
| ColorCorrectionMatrix ()=default | |
| Creates an instance of class ColorCorrectionMatrix. | |
| ColorCorrectionMatrix (const float(&data)[3][3]) | |
Creates an instance of class ColorCorrectionMatrix with data. | |
| ColorCorrectionMatrix (Matrix< float, 3, 3 > matrix) | |
Creates an instance of class ColorCorrectionMatrix with data. | |
| ColorCorrectionMatrix (std::string name, const float(&data)[3][3]) | |
| Creates an instance of class ColorCorrectionMatrix. | |
| ColorCorrectionMatrix (std::string name, Matrix< float, 3, 3 > matrix) | |
| 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. | |
| bool | operator== (const ColorCorrectionMatrix &other) const |
| constexpr const float * | GetData () const |
| Returns a pointer to the underlying data of the array. | |
| constexpr float & | At (std::size_t row, std::size_t col) |
| Accesses the element at the specified row and column. | |
| constexpr const float & | At (std::size_t row, std::size_t col) const |
| Accesses the element at the specified row and column (const version). | |
| constexpr std::size_t | GetNumberOfRows () const |
| Gets the number of rows in the array. | |
| constexpr std::size_t | GetNumberOfColumns () const |
| Gets the number of columns in the array. | |
| auto | begin () |
| Returns an iterator to the beginning of the array. | |
| auto | cbegin () const |
| Returns a const iterator to the beginning of the array. | |
| auto | end () |
| Returns an iterator to the end of the array. | |
| auto | cend () const |
| Returns a const iterator to the end of the array. | |
Static Public Member Functions | |
| static Matrix | Identity () |
| Creates and returns an identity matrix. | |
| static Matrix | Diagonal (const float &value) |
| Constructs a uniform diagonal matrix. | |
Color correction matrix.
A color correction matrix is a 3×3 transformation matrix used to adjust RGB color values. It is typically used to convert colors from a camera sensor’s native RGB space to a standard color space, or to perform color balancing and correction.
The color correction matrix is represented as a 3×3 float array:
| m_00 | m_01 | m_02 |
| m_10 | m_11 | m_12 |
| m_20 | m_21 | m_22 |
|
default |
Creates an instance of class ColorCorrectionMatrix.
|
inlineexplicit |
Creates an instance of class ColorCorrectionMatrix with data.
| data | The initial data for the color correction matrix. |
|
inline |
Creates an instance of class ColorCorrectionMatrix with data.
| matrix | The initial matrix for the color correction matrix. |
|
inline |
Creates an instance of class ColorCorrectionMatrix.
| name | The name of the color correction matrix, used for serialization. |
| data | The initial data for the color correction matrix. |
|
inline |
Creates an instance of class ColorCorrectionMatrix.
| name | The name of the color correction matrix, used for serialization. |
| matrix | The initial matrix for the color correction matrix. |
|
inlineconstexprinherited |
Accesses the element at the specified row and column.
This method throws an exception if the indices are out of range.
| row | The row index of the element to access. |
| col | The column index of the element to access. |
| OutOfRangeException | If the row or column index is out of range. |
|
inlineconstexprinherited |
Accesses the element at the specified row and column (const version).
This method throws an exception if the indices are out of range.
| row | The row index of the element to access. |
| col | The column index of the element to access. |
| OutOfRangeException | If the row or column index is out of range. |
|
inherited |
Returns an iterator to the beginning of the array.
|
inherited |
Returns a const iterator to the beginning of the array.
|
inherited |
Returns a const iterator to the end of the array.
|
inlineoverridevirtual |
Restores the object's state from the provided archive.
This function reads and applies all necessary parameters from the given archive to reconstruct the internal state of the object. It ensures that the object is restored to a valid and consistent state.
| archive | The source archive containing the serialized parameters. |
Implements ISerializable.
|
inlinestaticinherited |
Constructs a uniform diagonal matrix.
| value | The scalar value to be placed along the diagonal. |
Matrix with value on the diagonal and zeros elsewhere.
|
inherited |
Returns an iterator to the end of the array.
|
inlineconstexprinherited |
Returns a pointer to the underlying data of the array.
|
inlineconstexprinherited |
Gets the number of columns in the array.
|
inlineconstexprinherited |
|
inlinestaticinherited |
Creates and returns an identity matrix.
|
inline |
|
inlineoverridevirtual |
Serializes the object's internal state into the provided archive.
This function populates the given archive with all parameters required to fully represent the current state of the object. It ensures that the object can be reconstructed or transmitted accurately by saving all relevant data members in a consistent and structured format.
| archive | The target archive that will store the serialized parameters. |
Implements ISerializable.