Class ImgFilter
Defines the operations used on the byte array generated from LockBits in ColorblindFilters.cs.
Inheritance
Inherited Members
Namespace: Phoenix.Tiresias
Assembly: Phoenix.Plugin.Tiresias.dll
Syntax
public sealed class ImgFilter
Fields
View SourceDeuAdj
Deuteranopia compression adjustment as a vector The first element represents the linear component and the second represents the non-linear adjustments.
Declaration
public static readonly double[] DeuAdj
Field Value
Type | Description |
---|---|
System.Double[] |
DeuMat
Condensed deuteranopia matrix.
Declaration
public static readonly double[][] DeuMat
Field Value
Type | Description |
---|---|
System.Double[][] |
MonoVec
Monochromacy vector with order corresponding to the blue, green and red elements of a pixel.
Declaration
public static readonly double[] MonoVec
Field Value
Type | Description |
---|---|
System.Double[] |
ProAdj
Protanopia compression adjustment as a vector The first element represents the linear component and the second represents the non-linear adjustments.
Declaration
public static readonly double[] ProAdj
Field Value
Type | Description |
---|---|
System.Double[] |
ProMat
Condensed protanopia conversion matrix.
Declaration
public static readonly double[][] ProMat
Field Value
Type | Description |
---|---|
System.Double[][] |
TriAdj
Tritanopia compression adjustment as a vector note: this currently has no effect but allows for consistent code The first element represents the linear component and the second represents the non-linear adjustments.
Declaration
public static readonly double[] TriAdj
Field Value
Type | Description |
---|---|
System.Double[] |
TriMat
Condensed tritanopia matrix.
Declaration
public static readonly double[][] TriMat
Field Value
Type | Description |
---|---|
System.Double[][] |
Methods
View SourceFixValue(Double)
Performs the same function as FixRGB in PixelColor.cs.
Declaration
public static double FixValue(double transformedByte)
Parameters
Type | Name | Description |
---|---|---|
System.Double | transformedByte | The value of a byte in the V2 image transforms. |
Returns
Type | Description |
---|---|
System.Double | A valid pixel color. |
MakeCondensedDeuteranopiaMatrix()
Performs matrix multiplications to get a condensed matrix.
Declaration
public static double[][] MakeCondensedDeuteranopiaMatrix()
Returns
Type | Description |
---|---|
System.Double[][] | Condensed Deuteranopia matrix. |
MakeCondensedProtanopiaMatrix()
Performs matrix multiplications to get a condensed matrix.
Declaration
public static double[][] MakeCondensedProtanopiaMatrix()
Returns
Type | Description |
---|---|
System.Double[][] | Condensed matrix. |
MakeCondensedTritanopiaMatrix()
Performs matrix multiplications to get a condensed matrix.
Declaration
public static double[][] MakeCondensedTritanopiaMatrix()
Returns
Type | Description |
---|---|
System.Double[][] | Condensed Tritanopia matrix. |
VectorDotProduct(Double[], Double[])
Computes the dot product between two vectors.
Declaration
public static double VectorDotProduct(double[] vector1, double[] vector2)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | vector1 | The first 1 x N vector. |
System.Double[] | vector2 | The second 1 x N vector. |
Returns
Type | Description |
---|---|
System.Double | Double representing the dot product between vector1 and vector2. |