#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 |
Definition at line 42 of file peak_icv_color_correction_matrix.hpp.
|
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. |
Definition at line 63 of file peak_icv_color_correction_matrix.hpp.
|
inline |
Creates an instance of class ColorCorrectionMatrix with data.
| matrix | The initial matrix for the color correction matrix. |
Definition at line 74 of file peak_icv_color_correction_matrix.hpp.
|
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. |
Definition at line 86 of file peak_icv_color_correction_matrix.hpp.
|
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. |
Definition at line 99 of file peak_icv_color_correction_matrix.hpp.
|
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. |
Definition at line 103 of file peak_icv_array_2d.hpp.
|
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. |
Definition at line 126 of file peak_icv_array_2d.hpp.
|
inherited |
Returns an iterator to the beginning of the array.
Definition at line 166 of file peak_icv_array_2d.hpp.
|
inherited |
Returns a const iterator to the beginning of the array.
Definition at line 173 of file peak_icv_array_2d.hpp.
|
inherited |
Returns a const iterator to the end of the array.
Definition at line 189 of file peak_icv_array_2d.hpp.
|
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.
Definition at line 145 of file peak_icv_color_correction_matrix.hpp.
|
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.Definition at line 58 of file peak_icv_matrix.hpp.
|
inherited |
Returns an iterator to the end of the array.
Definition at line 182 of file peak_icv_array_2d.hpp.
|
inlineconstexprinherited |
Returns a pointer to the underlying data of the array.
Definition at line 84 of file peak_icv_array_2d.hpp.
|
inlineconstexprinherited |
Gets the number of columns in the array.
Definition at line 154 of file peak_icv_array_2d.hpp.
|
inlineconstexprinherited |
Gets the number of rows in the array.
Definition at line 142 of file peak_icv_array_2d.hpp.
|
inlinestaticinherited |
Creates and returns an identity matrix.
Definition at line 44 of file peak_icv_matrix.hpp.
|
inline |
Definition at line 153 of file peak_icv_color_correction_matrix.hpp.
|
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.
Definition at line 136 of file peak_icv_color_correction_matrix.hpp.