2using System.Collections.Generic;
32 public Datum(
bool bIsReal,
int nChannels,
int nWidth,
int nHeight,
int nLabel = -1, DateTime? dtTime =
null,
int nBoost = 0,
bool bAutoLabeled =
false,
int nIdx = -1)
33 : base(bIsReal, nChannels, nWidth, nHeight, nLabel, dtTime, nBoost, bAutoLabeled, nIdx)
50 public Datum(
bool bIsReal,
int nChannels,
int nWidth,
int nHeight,
int nLabel, DateTime dtTime, List<byte> rgData,
int nBoost,
bool bAutoLabeled,
int nIdx)
51 : base(bIsReal, nChannels, nWidth, nHeight, nLabel, dtTime, rgData, nBoost, bAutoLabeled, nIdx)
68 public Datum(
bool bIsReal,
int nChannels,
int nWidth,
int nHeight,
int nLabel, DateTime dtTime, List<double> rgfData,
int nBoost,
bool bAutoLabeled,
int nIdx)
69 : base(bIsReal, nChannels, nWidth, nHeight, nLabel, dtTime, rgfData, nBoost, bAutoLabeled, nIdx)
86 public Datum(
bool bIsReal,
int nChannels,
int nWidth,
int nHeight,
int nLabel, DateTime dtTime, List<float> rgfData,
int nBoost,
bool bAutoLabeled,
int nIdx)
87 : base(bIsReal, nChannels, nWidth, nHeight, nLabel, dtTime, rgfData, nBoost, bAutoLabeled, nIdx)
132 get {
return Width; }
140 get {
return Index; }
172 get {
return Label; }
The Datum class is a simple wrapper to the SimpleDatum class to ensure compatibility with the origina...
Datum(bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel=-1, DateTime? dtTime=null, int nBoost=0, bool bAutoLabeled=false, int nIdx=-1)
The Datum constructor.
double[] double_data
Returns the data as an array of double. The datum must be initialized with bIsReal = true with double...
Datum(bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel, DateTime dtTime, List< byte > rgData, int nBoost, bool bAutoLabeled, int nIdx)
The Datum constructor.
float[] float_data
Returns the data as an array of float. The datum must be initialized with bIsReal = true with float d...
Datum(bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel, DateTime dtTime, List< float > rgfData, int nBoost, bool bAutoLabeled, int nIdx)
The Datum constructor.
int label
Returns the known label of the data.
Datum(bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel, DateTime dtTime, List< double > rgfData, int nBoost, bool bAutoLabeled, int nIdx)
The Datum constructor.
Datum(Datum d, bool bCopyData=false)
The Datum constructor.
int height
Specifies the height of the data.
Datum()
The Datum constructor.
Datum(SimpleDatum d, bool bCopyData=false)
The Datum constructor.
byte[] data
Returns the non-real data as an array of bytes. The datum must be initialized with bIsReal = false.
int index
Specifies the index of the data.
int width
Specifies the width of the data.
int channels
Returns the number of channels in the data.
The SimpleDatum class holds a data input within host memory.
int Channels
Return the number of channels of the data.
float[] RealDataF
Return the float data. This field is valid when IsRealData = true.
int Width
Return the width of the data.
byte[] ByteData
Return the byte data. This field is valid when IsRealData = false.
int Index
Returns the index of the SimpleDatum.
int Height
Return the height of the data.
double[] RealDataD
Return the double data. This field is valid when IsRealData = true.
int Label
Return the known label of the data.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.