Show / Hide Table of Contents

Class ImgFilter

Defines the operations used on the byte array generated from LockBits in ColorblindFilters.cs.

Inheritance
System.Object
ImgFilter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.Tiresias
Assembly: Phoenix.Plugin.Tiresias.dll
Syntax
public sealed class ImgFilter

Fields

View Source

DeuAdj

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[]
View Source

DeuMat

Condensed deuteranopia matrix.

Declaration
public static readonly double[][] DeuMat
Field Value
Type Description
System.Double[][]
View Source

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[]
View Source

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[]
View Source

ProMat

Condensed protanopia conversion matrix.

Declaration
public static readonly double[][] ProMat
Field Value
Type Description
System.Double[][]
View Source

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[]
View Source

TriMat

Condensed tritanopia matrix.

Declaration
public static readonly double[][] TriMat
Field Value
Type Description
System.Double[][]

Methods

View Source

FixValue(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.

View Source

MakeCondensedDeuteranopiaMatrix()

Performs matrix multiplications to get a condensed matrix.

Declaration
public static double[][] MakeCondensedDeuteranopiaMatrix()
Returns
Type Description
System.Double[][]

Condensed Deuteranopia matrix.

View Source

MakeCondensedProtanopiaMatrix()

Performs matrix multiplications to get a condensed matrix.

Declaration
public static double[][] MakeCondensedProtanopiaMatrix()
Returns
Type Description
System.Double[][]

Condensed matrix.

View Source

MakeCondensedTritanopiaMatrix()

Performs matrix multiplications to get a condensed matrix.

Declaration
public static double[][] MakeCondensedTritanopiaMatrix()
Returns
Type Description
System.Double[][]

Condensed Tritanopia matrix.

View Source

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.

  • View Source
In This Article
Back to top Generated by DocFX