Class CubeHelix
Assembly: TowseyLibrary.dll
Syntax
Constructors
|
Improve this Doc
View Source
CubeHelix(Hsl, Hsl, Double)
Declaration
public CubeHelix(Hsl colorA, Hsl colorB, double gamma = 1)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.ColorSpaces.Hsl |
colorA |
|
SixLabors.ImageSharp.ColorSpaces.Hsl |
colorB |
|
Double |
gamma |
|
|
Improve this Doc
View Source
CubeHelix(String)
Declaration
public CubeHelix(string mode)
Parameters
Type |
Name |
Description |
String |
mode |
|
Fields
|
Improve this Doc
View Source
ColourPallette
Declaration
public Color[] ColourPallette
Field Value
Type |
Description |
SixLabors.ImageSharp.Color[] |
|
|
Improve this Doc
View Source
MaxPalletteIndex
Declaration
public int MaxPalletteIndex
Field Value
|
Improve this Doc
View Source
maxPalletteSize
Declaration
public const int maxPalletteSize = 256
Field Value
Properties
|
Improve this Doc
View Source
Gamma
Declaration
public double Gamma { get; }
Property Value
Methods
|
Improve this Doc
View Source
DrawMatrixWithoutNormalisation(Double[,])
Draws matrix without normalising the values in the matrix.
Assumes some form of normalisation already done.
Declaration
public Image<Rgb24> DrawMatrixWithoutNormalisation(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
the data.
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
DrawTestImage()
Draws a Cube Helix test image.
Declaration
public static void DrawTestImage()
|
Improve this Doc
View Source
GetColor(Double)
Declaration
public Rgb GetColor(double unitValue)
Parameters
Type |
Name |
Description |
Double |
unitValue |
|
Returns
Type |
Description |
SixLabors.ImageSharp.ColorSpaces.Rgb |
|
|
Improve this Doc
View Source
GetColorFromPallette(Double)
Draws matrix without normalising the values in the matrix.
Assumes some form of normalisation already done.
Declaration
public Color GetColorFromPallette(double value)
Parameters
Type |
Name |
Description |
Double |
value |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Color |
|
|
Improve this Doc
View Source
GetColorFromPallette(Int32)
Draws matrix without normalising the values in the matrix.
Assumes some form of normalisation already done.
Declaration
public Color GetColorFromPallette(int colourID)
Parameters
Type |
Name |
Description |
Int32 |
colourID |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Color |
|
|
Improve this Doc
View Source
GetColorID(Double)
Draws matrix without normalising the values in the matrix.
Assumes some form of normalisation already done.
Declaration
public int GetColorID(double value)
Parameters
Type |
Name |
Description |
Double |
value |
|
Returns
|
Improve this Doc
View Source
GetCubeHelix()
This HSL values in this method have been set specially for use with the high-resolution zooming spectrograms.
There are limits to the values that can be used.
The purpose for chaning the default values was to increase the colour saturation.
Declaration
public static CubeHelix GetCubeHelix()
Returns
|
Improve this Doc
View Source
SetCyanScalePallette()
used for drawing the background noise in zooming spectrograms.
Declaration
public void SetCyanScalePallette()
|
Improve this Doc
View Source
SetDefaultCubeHelix()
Declaration
public void SetDefaultCubeHelix()
|
Improve this Doc
View Source
SetRedScalePallette()
used for drawing the background noise in zooming spectrograms.
Declaration
public void SetRedScalePallette()
|
Improve this Doc
View Source
TestImage(String)
Declaration
public void TestImage(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Extension Methods