
Public Member Functions | |
| ColorCorrectionMatrix (string name, float[,] data) | |
| Creates an instance of class ColorCorrectionMatrix. | |
| ColorCorrectionMatrix (float[,] data) | |
| Creates an instance of class ColorCorrectionMatrix with data . | |
| ColorCorrectionMatrix (float[] data) | |
| Creates an instance of class ColorCorrectionMatrix with data . | |
| void | Serialize (IArchive archive) |
| Serializes the object's internal state into the provided archive. | |
| void | Deserialize (IArchive archive) |
| Restores the object's state from the provided archive. | |
| IEnumerator< T > | GetEnumerator () |
| override int | GetHashCode () |
| Computes a hash code based on all elements in the matrix. | |
| override string | ToString () |
| Returns a string representation of the matrix. | |
Static Public Member Functions | |
| static ColorCorrectionMatrix | Diagonal (float value) |
| Constructs a uniform diagonal matrix. | |
| static ColorCorrectionMatrix | Identity () |
| Constructs a uniform identity matrix. | |
| static Matrix< T > | Diagonal (uint size, T value) |
| Creates a diagonal matrix with the given value on the diagonal. | |
| static Matrix< T > | Identity (uint size) |
| Creates an identity matrix of given size. | |
Properties | |
| static new IEqualityComparer< ColorCorrectionMatrix > | Comparer = new MatrixEqualityComparer() [get] |
| Gets a default equality comparer for comparing ColorCorrectionMatrix data values. | |
| uint | Rows [get] |
| Number of rows in the matrix. | |
| uint | Columns [get] |
| Number of columns in the matrix. | |
| T | this[uint row, uint col] [get, set] |
| Gets or sets the element at the specified row and column. | |
Color correction matrix.
A color correction matrix is a 3x3 transformation matrix used to adjust RGB color values. It is typically used to convert colors from a camera sensors native RGB space to a standard color space, or to perform color balancing and correction.
The color correction matrix is represented as a 3x3 float array:
for more information.
Definition at line 32 of file ColorCorrectionMatrix.cs.
|
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 47 of file ColorCorrectionMatrix.cs.
|
inline |
Creates an instance of class ColorCorrectionMatrix with data .
| data | The initial data for the color correction matrix. |
Definition at line 58 of file ColorCorrectionMatrix.cs.
|
inline |
Creates an instance of class ColorCorrectionMatrix with data .
| data | The initial data for the color correction matrix. |
Definition at line 68 of file ColorCorrectionMatrix.cs.
|
inline |
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 114 of file ColorCorrectionMatrix.cs.
|
inlinestatic |
Constructs a uniform diagonal matrix.
| value | The scalar value to be placed along the diagonal. |
Definition at line 137 of file ColorCorrectionMatrix.cs.
|
inlinestaticinherited |
Creates a diagonal matrix with the given value on the diagonal.
|
inlineinherited |
Computes a hash code based on all elements in the matrix.
|
inlinestatic |
Constructs a uniform identity matrix.
Definition at line 155 of file ColorCorrectionMatrix.cs.
|
inlinestaticinherited |
Creates an identity matrix of given size.
|
inline |
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 98 of file ColorCorrectionMatrix.cs.
|
inlineinherited |
Returns a string representation of the matrix.
|
getinherited |
Number of columns in the matrix.
|
staticget |
Gets a default equality comparer for comparing ColorCorrectionMatrix data values.
Definition at line 85 of file ColorCorrectionMatrix.cs.
|
getinherited |
Number of rows in the matrix.
|
getsetinherited |
Gets or sets the element at the specified row and column.