Class ColorCubeHelix
Code for CUBEHELIX adapted from JavaScript code obtained from following website:
https://www.mrao.cam.ac.uk/~dag/CUBEHELIX/
.
Inheritance
ColorCubeHelix
Assembly: TowseyLibrary.dll
Syntax
public class ColorCubeHelix
Constructors
|
Improve this Doc
View Source
ColorCubeHelix(String)
Declaration
public ColorCubeHelix(string mode)
Parameters
Type |
Name |
Description |
String |
mode |
|
Fields
|
Improve this Doc
View Source
CyanScale
Declaration
public const string CyanScale = "cyanscale"
Field Value
|
Improve this Doc
View Source
Default
Declaration
public const string Default = "default"
Field Value
|
Improve this Doc
View Source
Grayscale
Declaration
public const string Grayscale = "grayscale"
Field Value
|
Improve this Doc
View Source
MaxPaletteSize
Declaration
public const int MaxPaletteSize = 256
Field Value
|
Improve this Doc
View Source
RedScale
Declaration
public const string RedScale = "redscale"
Field Value
Methods
|
Improve this Doc
View Source
DrawMatrixWithoutNormalization(Double[,])
Draws matrix without normalizing the values in the matrix.
Assumes some form of normalization already done.
Declaration
public Image<Rgb24> DrawMatrixWithoutNormalization(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
the data.
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
The SixLabors.ImageSharp.Image.
|
|
Improve this Doc
View Source
GetColor(Double)
This method assumes that the intensity lies in [0,1].
Declaration
public Color GetColor(double intensity)
Parameters
Type |
Name |
Description |
Double |
intensity |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Color |
The SixLabors.ImageSharp.Color.
|
|
Improve this Doc
View Source
GetColor(Int32)
Declaration
public Color GetColor(int colorId)
Parameters
Type |
Name |
Description |
Int32 |
colorId |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Color |
|
Extension Methods