![]() |
MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The Realmap operates similar to a bitmap but is actually just an array of doubles. More...
Public Member Functions | |
| Valuemap (int nChannels, int nHeight, int nWidth, double[] rgData=null) | |
| The constructor. More... | |
| Valuemap (Valuemap data) | |
| The constructorl More... | |
| void | SetPixel (int nX, int nY, double clr) |
| Set a given pixel to a given color. More... | |
| double | GetPixel (int nX, int nY) |
| Get the value of a pixel in the map. More... | |
| void | SetPixel (int nChannel, int nX, int nY, double clr) |
| Set a given pixel to a given color. More... | |
| double | GetPixel (int nChannel, int nX, int nY) |
| Get the value of a pixel in the map. More... | |
| void | SetAll (double dfVal) |
| Set all values to the specified value. More... | |
| void | SetAll (int nChannel, double dfVal) |
| Set all values of a given channel to a specified value. More... | |
| void | Clear () |
| Reset all values to zero. More... | |
Properties | |
| double[] | Values [get] |
| Specifies the data itself. More... | |
| int | Channels [get] |
| Specifies the channels of the data. More... | |
| int | Height [get] |
| Specifies the height of the data. More... | |
| int | Width [get] |
| Specifies the width of the data. More... | |
The Realmap operates similar to a bitmap but is actually just an array of doubles.
Definition at line 14 of file Valuemap.cs.
| MyCaffe.basecode.Valuemap.Valuemap | ( | int | nChannels, |
| int | nHeight, | ||
| int | nWidth, | ||
| double[] | rgData = null |
||
| ) |
The constructor.
| nChannels | Specifies the number of channels in the map. |
| nHeight | Specifies the height of the map. |
| nWidth | Specifies the width of the map. |
| rgData | Optionally, specifies the data to use. |
Definition at line 29 of file Valuemap.cs.
| MyCaffe.basecode.Valuemap.Valuemap | ( | Valuemap | data | ) |
The constructorl
| data | Specifies another Realmap to copy. |
Definition at line 43 of file Valuemap.cs.
| void MyCaffe.basecode.Valuemap.Clear | ( | ) |
Reset all values to zero.
Definition at line 146 of file Valuemap.cs.
| double MyCaffe.basecode.Valuemap.GetPixel | ( | int | nChannel, |
| int | nX, | ||
| int | nY | ||
| ) |
Get the value of a pixel in the map.
| nChannel | Specifies the channel of the pixel. |
| nX | Specifies the x location of the pixel. |
| nY | Specifies the y location of the pixel. |
Definition at line 109 of file Valuemap.cs.
| double MyCaffe.basecode.Valuemap.GetPixel | ( | int | nX, |
| int | nY | ||
| ) |
Get the value of a pixel in the map.
| nX | Specifies the x location of the pixel. |
| nY | Specifies the y location of the pixel. |
Definition at line 83 of file Valuemap.cs.
| void MyCaffe.basecode.Valuemap.SetAll | ( | double | dfVal | ) |
Set all values to the specified value.
| dfVal | Specifies the value to set all elements. |
Definition at line 119 of file Valuemap.cs.
| void MyCaffe.basecode.Valuemap.SetAll | ( | int | nChannel, |
| double | dfVal | ||
| ) |
Set all values of a given channel to a specified value.
| nChannel | Specifies the channel. |
| dfVal | Specifies the value. |
Definition at line 132 of file Valuemap.cs.
| void MyCaffe.basecode.Valuemap.SetPixel | ( | int | nChannel, |
| int | nX, | ||
| int | nY, | ||
| double | clr | ||
| ) |
Set a given pixel to a given color.
| nChannel | Specifies the channel location of the pixel. |
| nX | Specifies the x location of the pixel. |
| nY | Specifies the y location of the pixel. |
| clr | Specifies the value to set the pixel. |
Definition at line 96 of file Valuemap.cs.
| void MyCaffe.basecode.Valuemap.SetPixel | ( | int | nX, |
| int | nY, | ||
| double | clr | ||
| ) |
Set a given pixel to a given color.
| nX | Specifies the x location of the pixel. |
| nY | Specifies the y location of the pixel. |
| clr | Specifies the value to set the pixel. |
Definition at line 65 of file Valuemap.cs.
|
get |
Specifies the channels of the data.
Definition at line 162 of file Valuemap.cs.
|
get |
Specifies the height of the data.
Definition at line 170 of file Valuemap.cs.
|
get |
Specifies the data itself.
Definition at line 154 of file Valuemap.cs.
|
get |
Specifies the width of the data.
Definition at line 178 of file Valuemap.cs.