MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The Bytemap operates similar to a bitmap but is actually just an array of bytes. More...
Public Member Functions | |
Bytemap (int nChannels, int nHeight, int nWidth, byte[] rgData=null) | |
The constructor. More... | |
Bytemap (Bytemap data) | |
The constructorl More... | |
void | SetPixel (int nX, int nY, byte clr) |
Set a given pixel to a given color. More... | |
void | SetPixel (int nX, int nY, Color clr) |
Set a given pixel to a given color. More... | |
Color | GetPixel (int nX, int nY) |
Get the color of a pixel in the map. More... | |
void | Clear () |
Reset all values to zero. More... | |
Bitmap | ToImage () |
Converts the Bytemap into a Bitmap. More... | |
Static Public Member Functions | |
static Bytemap | FromImage (Bitmap bmp) |
Converts a bitmap into a new Bytemap. More... | |
Properties | |
byte[] | Bytes [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 Bytemap operates similar to a bitmap but is actually just an array of bytes.
Definition at line 14 of file Bytemap.cs.
MyCaffe.basecode.Bytemap.Bytemap | ( | int | nChannels, |
int | nHeight, | ||
int | nWidth, | ||
byte[] | 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 Bytemap.cs.
MyCaffe.basecode.Bytemap.Bytemap | ( | Bytemap | data | ) |
The constructorl
data | Specifies another Bytemap to copy. |
Definition at line 43 of file Bytemap.cs.
void MyCaffe.basecode.Bytemap.Clear | ( | ) |
Reset all values to zero.
Definition at line 124 of file Bytemap.cs.
|
static |
Converts a bitmap into a new Bytemap.
bmp | Specifies the bitmap. |
Definition at line 191 of file Bytemap.cs.
Color MyCaffe.basecode.Bytemap.GetPixel | ( | int | nX, |
int | nY | ||
) |
Get the color 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 105 of file Bytemap.cs.
void MyCaffe.basecode.Bytemap.SetPixel | ( | int | nX, |
int | nY, | ||
byte | 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 color to set the pixel. |
Definition at line 65 of file Bytemap.cs.
void MyCaffe.basecode.Bytemap.SetPixel | ( | int | nX, |
int | nY, | ||
Color | 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 color to set the pixel. |
Definition at line 83 of file Bytemap.cs.
Bitmap MyCaffe.basecode.Bytemap.ToImage | ( | ) |
Converts the Bytemap into a Bitmap.
Definition at line 165 of file Bytemap.cs.
|
get |
Specifies the data itself.
Definition at line 132 of file Bytemap.cs.
|
get |
Specifies the channels of the data.
Definition at line 140 of file Bytemap.cs.
|
get |
Specifies the height of the data.
Definition at line 148 of file Bytemap.cs.
|
get |
Specifies the width of the data.
Definition at line 156 of file Bytemap.cs.