MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The ColorMapper maps a value within a number range, to a Color within a color scheme. More...
Public Types | |
enum | COLORSCHEME { NORMAL , GBR } |
Defines the color scheme to use. More... | |
Public Member Functions | |
ColorMapper (double dfMin, double dfMax, Color clrDefault, Color clrError, COLORSCHEME clrScheme=COLORSCHEME.NORMAL, int nResolution=160) | |
The ColorMapper constructor. More... | |
ColorMapper (double dfMin, double dfMax, Color clrDefault, Color clrError, List< double > rgClrStart, List< double > rgClrEnd, int nResolution=160) | |
The ColorMapper constructor. More... | |
Color | GetColorLegacy (double dfVal) |
Returns the color associated with the value. More... | |
double | GetValue (Color clr) |
Returns the value associated with the color. More... | |
Color | GetColor (double dfVal) |
Find the color using a binary search algorithm. More... | |
Properties | |
int | Resolution [get] |
Returns the color resolution used. More... | |
Color | NoMinMaxColor [getset] |
Get/set the color used when the Min and Max both equal 0. More... | |
The ColorMapper maps a value within a number range, to a Color within a color scheme.
Definition at line 13 of file ColorMapper.cs.
Defines the color scheme to use.
Definition at line 33 of file ColorMapper.cs.
MyCaffe.basecode.ColorMapper.ColorMapper | ( | double | dfMin, |
double | dfMax, | ||
Color | clrDefault, | ||
Color | clrError, | ||
COLORSCHEME | clrScheme = COLORSCHEME.NORMAL , |
||
int | nResolution = 160 |
||
) |
The ColorMapper constructor.
dfMin | Specifies the minimum value in the number range. |
dfMax | Specifies the maximum value in the number range. |
clrDefault | Specifies the default color to use. |
clrError | Specifies the color to use when an error is detected. |
clrScheme | Specifies the color scheme to use (default = COLORSCHEME.NORMAL). |
nResolution | Specifies the number of colors to generate (default = 160). |
Definition at line 54 of file ColorMapper.cs.
MyCaffe.basecode.ColorMapper.ColorMapper | ( | double | dfMin, |
double | dfMax, | ||
Color | clrDefault, | ||
Color | clrError, | ||
List< double > | rgClrStart, | ||
List< double > | rgClrEnd, | ||
int | nResolution = 160 |
||
) |
The ColorMapper constructor.
dfMin | Specifies the minimum value in the number range. |
dfMax | Specifies the maximum value in the number range. |
clrDefault | Specifies the default color to use. |
clrError | Specifies the color to use when an error is detected. |
rgClrStart | Specifies the RGB three color starting color with values of 0 to 1. |
rgClrEnd | Specifies the RGB three color ending color with values of 0 to 1. |
nResolution | Specifies the number of colors to generate (default = 160). |
Definition at line 113 of file ColorMapper.cs.
Color MyCaffe.basecode.ColorMapper.GetColor | ( | double | dfVal | ) |
Find the color using a binary search algorithm.
dfVal | Specifies the value to search for. |
Definition at line 350 of file ColorMapper.cs.
Color MyCaffe.basecode.ColorMapper.GetColorLegacy | ( | double | dfVal | ) |
Returns the color associated with the value.
dfVal | Specifies the value. |
Definition at line 184 of file ColorMapper.cs.
double MyCaffe.basecode.ColorMapper.GetValue | ( | Color | clr | ) |
Returns the value associated with the color.
clr |
Definition at line 251 of file ColorMapper.cs.
|
getset |
Get/set the color used when the Min and Max both equal 0.
Definition at line 173 of file ColorMapper.cs.
|
get |
Returns the color resolution used.
Definition at line 165 of file ColorMapper.cs.