MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The SimpleDatum class holds a data input within host memory. More...
Public Types | |
enum | ANNOTATION_TYPE { NONE = -1 , BBOX = 0 } |
Specifies the annotation type when using annotations. More... | |
enum | DATA_FORMAT { NONE , IMAGE_1CH , IMAGE_3CH , SEGMENTATION , DICTIONARY , CUSTOM , BITMAP , LIST_DOUBLE , LIST_FLOAT , ANNOTATION_DATA } |
Defines the data format of the DebugData and DataCriteria when specified. More... | |
Public Member Functions | |
SimpleDatum () | |
The SimpleDatum constructor. More... | |
SimpleDatum (bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel=-1, DateTime? dtTime=null, int nBoost=0, bool bAutoLabeled=false, int nIdx=-1, int nVirtualID=0, int nImageID=0, int nSourceID=0, int nOriginalSourceID=0) | |
The SimpleDatum constructor. More... | |
SimpleDatum (bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel, DateTime dtTime, List< byte > rgData, int nBoost, bool bAutoLabeled, int nIdx, int nVirtualID=0, int nImageID=0, int nSourceID=0, int nOriginalSourceID=0) | |
The SimpleDatum constructor. More... | |
SimpleDatum (bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel, DateTime dtTime, List< double > rgfData, int nBoost, bool bAutoLabeled, int nIdx, int nVirtualID=0, int nImageID=0, int nSourceID=0, int nOriginalSourceID=0) | |
The SimpleDatum constructor. More... | |
SimpleDatum (bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel, DateTime dtTime, List< float > rgfData, int nBoost, bool bAutoLabeled, int nIdx, int nVirtualID=0, int nImageID=0, int nSourceID=0, int nOriginalSourceID=0) | |
The SimpleDatum constructor. More... | |
SimpleDatum (bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel, DateTime dtTime, byte[] rgData, int nBoost, bool bAutoLabeled, int nIdx, int nVirtualID=0, int nImageID=0, int nSourceID=0, int nOriginalSourceID=0) | |
The SimpleDatum constructor. More... | |
SimpleDatum (bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel, DateTime dtTime, double[] rgdfData, int nBoost, bool bAutoLabeled, int nIdx, int nVirtualID=0, int nImageID=0, int nSourceID=0, int nOriginalSourceID=0) | |
The SimpleDatum constructor. More... | |
SimpleDatum (bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel, DateTime dtTime, float[] rgfData, int nBoost, bool bAutoLabeled, int nIdx, int nVirtualID=0, int nImageID=0, int nSourceID=0, int nOriginalSourceID=0) | |
The SimpleDatum constructor. More... | |
SimpleDatum (bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel, DateTime dtTime, int nBoost=0, bool bAutoLabeled=false, int nIdx=-1, int nVirtualID=0, int nImageID=0, int nSourceID=0, int nOriginalSourceID=0) | |
The SimpleDatum constructor. More... | |
SimpleDatum (int nChannels, int nWidth, int nHeight, float[] rgf, int nOffset, int nCount, bool bDataIsReal=true) | |
The SimpleDatum constructor. More... | |
SimpleDatum (int nChannels, int nWidth, int nHeight) | |
The SimpleDatum constructor. More... | |
SimpleDatum (Bytemap data) | |
The SimpleDatum constructor. More... | |
SimpleDatum (Valuemap data) | |
The SimpleDatum constructor. More... | |
SimpleDatum (SimpleDatum d, bool bCopyData=false) | |
The SimpleDatum constructor. More... | |
SimpleDatum (SimpleDatum d, int nHeight, int nWidth) | |
The SimpleDatum constructor. More... | |
SimpleDatum (List< SimpleDatum > rg, bool bAlignChannels) | |
Constructor that copies an array into a single SimpleDatum by appending each to the other in order. More... | |
void | Clip (int nDataLen, int? nNewChannel, int? nNewHeight, int? nNewWidth) |
Clip the data length down to a smaller size and copies the clipped data. More... | |
List< int > | GetNonZeroIndexes () |
Returns all indexes with non-zero data. More... | |
void | Zero () |
Zero out all data in the datum but keep the size and other settings. More... | |
bool | Sub (SimpleDatum sd, bool bSetNegativeToZero=false) |
Subtract the data of another SimpleDatum from this one, so this = this - sd. More... | |
bool | SubAbs (SimpleDatum sd) |
Subtract the data of another SimpleDatum from this one, and take the absolute value, so this = Math.Abs(this - sd). More... | |
void | Scale (double dfScale, double dfMin=-double.MaxValue, double dfMax=double.MaxValue) |
Scale the values by the scaling factor. More... | |
void | ScalePow (double dfScalePow, double dfMin=-double.MaxValue, double dfMax=double.MaxValue) |
Scale the values by the scaling factor that raises each value by the specified power. More... | |
void | Copy (SimpleDatum d, bool bCopyData, int? nHeight=null, int? nWidth=null) |
Copy another SimpleDatum into this one. More... | |
void | CopyData (SimpleDatum d) |
Copy just the data from another SimpleDatum, making sure to update the C x H x W dimensions and IsReal settings to fit the new data. More... | |
void | SetData (SimpleDatum d) |
Set the data of the current SimpleDatum by copying the data of another. More... | |
bool | GetDataValid (bool bByType=true) |
Returns true if the ByteData or RealDataD or RealDataF are not null, false otherwise. More... | |
List< T > | ClipToLastColumnsX< T > (int nLastColumns=10) |
DEPRECIATED: Clips the SimpleDatum to the last nLastColumns and returns the data. More... | |
void | MaskOutAllButLastColumnsX (int nLastColumsToRetain, int nMaskingValue) |
DEPRECIATED: Masks out all data except for the last columns of data. More... | |
void | SetData (List< byte > rgByteData, int nLabel, bool bAllowVirtualOverride=false) |
Sets the byte data of the SimpleDatum and its Label. More... | |
void | SetData (List< double > rgRealData, int nLabel, bool bAllowVirtualOverride=false) |
Sets the double data of the SimpleDatum and its Label. More... | |
void | SetData (List< float > rgRealData, int nLabel, bool bAllowVirtualOverride=false) |
Sets the float data of the SimpleDatum and its Label. More... | |
void | SetData (byte[] rgb, int nLabel) |
Set the data to the byte array specified. More... | |
void | SetData (double[] rgdf, int nLabel) |
Set the data to the double array specified. More... | |
void | SetData (float[] rgf, int nLabel) |
Set the data to the float array specified. More... | |
void | SetLabel (int nLabel) |
Sets the label. More... | |
void | ResetLabel () |
Resets the label to the original label used when creating the SimpleDatum. More... | |
T | GetDataAt< T > (int nIdx) |
Returns the item at a specified index in the type specified. More... | |
double | GetDataAtD (int nIdx) |
Returns the item at a specified index in the double type. More... | |
float | GetDataAtF (int nIdx) |
Returns the item at a specified index in the float type. More... | |
byte | GetDataAtByte (int nIdx) |
Returns the item at a specified index in the byte type. More... | |
T[] | GetData< T > (int nImagePadX=0, int nImagePadY=0) |
Returns the data as a generic array and optionally pads the data. More... | |
byte[] | GetByteData (out bool bEncoded) |
Returns the data as a byte array regardless of how it is stored. More... | |
SimpleDatum | Add (SimpleDatum d) |
Creates a new SimpleDatum and adds another SimpleDatum to it. More... | |
SimpleDatum | Div (double dfVal, bool bConvertToByte) |
Divides all elements of the SimpleDatum by a value and returns the result as a new SimpleDatum. More... | |
void | SetImageID (int nID) |
Set the image ID. More... | |
void | ResetBoost () |
Reset the boost to the original boost. More... | |
SimpleDatum | Resize (int nH, int nW) |
Resize the data and return it as a new SimpleDatum. More... | |
override string | ToString () |
Return a string representation of the SimpleDatum. More... | |
string | ToArrayAsString (int nMaxItems) |
Returns a string containing the items of the SimpleDatum. More... | |
Bytemap | ToBytemap () |
Return the SimpleData data as a Bytemap. More... | |
void | SaveAnnotationDataToDataCriteria () |
Save the annotation data and type to the data criteria. More... | |
bool | LoadAnnotationDataFromDataCriteria () |
Load the annotation data and type from the data criteria. More... | |
void | SaveInfo (string strFile) |
Save the SimpleDatum information to a text file. More... | |
Static Public Member Functions | |
static byte[] | GetByteData (byte[] rgData, int nImagePadX, int nImagePadY, int nHeight, int nWidth, int nChannels) |
Return the non-real data as a byte array after padding the data. More... | |
static Tuple< double[], float[]> | GetRealData (byte[] rgData, int nImagePadX, int nImagePadY, int nHeight, int nWidth, int nChannels) |
Return the real data as a double or float array (depending on the original encoding data type) after padding the data. More... | |
static T[] | PadData< T > (List< T > rgData, int nImagePadX, int nImagePadY, int nHeight, int nWidth, int nChannels) |
Padd the data. More... | |
static byte[] | GetByteData (List< double > rgData) |
Encodes a list of double values to an encoded byte array. More... | |
static byte[] | GetByteData (List< float > rgData) |
Encodes a list of float values to an encoded byte array. More... | |
static Tuple< double[], float[]> | GetRealData (byte[] rgData) |
Decodes an array of byte values into a array of either double or float values depending on how the original encoding was made. More... | |
static bool | AccumulateMean (ref double[] rgdfMean, SimpleDatum sd, int nTotal) |
Accumulate a portion of a SimpleDatum to calculate the mean value. More... | |
static SimpleDatum | CalculateMean (Log log, SimpleDatum[] rgImg, WaitHandle[] rgAbort) |
Calculate the mean of an array of SimpleDatum and return the mean as a new SimpleDatum. More... | |
static byte[] | SaveAnnotationDataToDataCriteriaByteArray (ANNOTATION_TYPE type, AnnotationGroupCollection annotations) |
Save the annotation data to a byte array. More... | |
static AnnotationGroupCollection | LoadAnnotationDataFromDataCriteria (byte[] rg, DATA_FORMAT fmt, out ANNOTATION_TYPE type) |
Load the AnnotationGroups from the byte array. More... | |
static SimpleDatum | LoadInfo (string strFile) |
Load a SimpleData from text file information previously saved with SaveInfo. More... | |
static List< SimpleDatum > | LoadFromPath (string strPath) |
Load all SimpleDatums from a directory of files previously stored with SaveInfo. More... | |
static float[] | Transpose (float[] rg, int nH, int nW, int nDim=1) |
Transpose the data within a float array. More... | |
static double[] | Transpose (double[] rg, int nH, int nW, int nDim=1) |
Transpose the data within a double array. More... | |
Static Protected Member Functions | |
static double[] | getRealDataD (byte[] rgData, int nIdx) |
Decodes an array of byte values into a array of double values. More... | |
static float[] | getRealDataF (byte[] rgData, int nIdx) |
Decodes an array of byte values into a array of float values. More... | |
Protected Attributes | |
object | m_tag = null |
Specifies a user value. More... | |
string | m_strTagName = null |
Specifies the name of the user value. More... | |
Properties | |
int | HitCount [getset] |
Get/set the hit count for the SimpleDatum. More... | |
object | Tag [getset] |
Specifies user data associated with the SimpleDatum. More... | |
string | TagName [getset] |
Returns a user-defined name of the tag associated with the data. More... | |
double | Min [get] |
Returns the minimum value in the data or double.NaN if there is no data. More... | |
double | Max [get] |
Returns the maximum value in the data or double.NaN if there is no data. More... | |
int | ItemCount [get] |
Returns the number of data items. More... | |
bool | HasRealData [get] |
Returns true if either the RealDataD or RealDataF are non null and have length > 0. More... | |
int | SourceID [get] |
Returns the ID of the data source that owns this image. More... | |
int | OriginalSourceID [get] |
Returns the original source ID which is set when using a virtual ID. More... | |
int | ImageID [get] |
Returns the ID of the image in the database. More... | |
int | VirtualID [get] |
Returns the virtual ID of the SimpleDatum. More... | |
int | GroupID [getset] |
Get/set the group ID of the SimpleDatum. More... | |
int | Index [getset] |
Returns the index of the SimpleDatum. More... | |
DateTime | TimeStamp [getset] |
Get/set the Timestamp. More... | |
bool | AutoLabeled [getset] |
Get/set whether or not the label was auto generated. More... | |
bool | IsRealData [get] |
Returns whether or not the data contains real numbers or byte data. More... | |
int | Height [get] |
Return the height of the data. More... | |
int | Width [get] |
Return the width of the data. More... | |
int | Channels [get] |
Return the number of channels of the data. More... | |
int | Label [get] |
Return the known label of the data. More... | |
int | OriginalLabel [getset] |
Get/set the original known label of the data. More... | |
byte[] | ByteData [get] |
Return the byte data. This field is valid when IsRealData = false. More... | |
double[] | RealDataD [get] |
Return the double data. This field is valid when IsRealData = true. More... | |
float[] | RealDataF [get] |
Return the float data. This field is valid when IsRealData = true. More... | |
int | Boost [getset] |
Get/set the boost for this data. More... | |
DATA_FORMAT | DataCriteriaFormat [getset] |
Get/set the data format of the data criteria. More... | |
byte[] | DataCriteria [getset] |
Get/set data criteria associated with the data. More... | |
DATA_FORMAT | DebugDataFormat [getset] |
Get/set the data format of the debug data. More... | |
byte[] | DebugData [getset] |
Get/set debug data associated with the data. More... | |
string | Description [getset] |
Get/set a description of the data. More... | |
ANNOTATION_TYPE | annotation_type [getset] |
When using annotations, the annotation type specifies the type of annotation. Currently, only the BBOX annotation type is supported. More... | |
AnnotationGroupCollection | annotation_group [getset] |
When using annoations, each annotation group contains an annotation for a particular class used with SSD. More... | |
The SimpleDatum class holds a data input within host memory.
Definition at line 160 of file SimpleDatum.cs.
Specifies the annotation type when using annotations.
Enumerator | |
---|---|
NONE | Specifies that annotations are not used. |
BBOX | Specifies to use the bounding box annoation type. |
Definition at line 203 of file SimpleDatum.cs.
Defines the data format of the DebugData and DataCriteria when specified.
Enumerator | |
---|---|
NONE | Specifies that there is no data. |
IMAGE_1CH | Specifies that the data contains a black and white square image packed as a set of byte values [0-255] in the order: image wxh. |
IMAGE_3CH | Specifies that the data contains a RGB square image packed as a set of byte values [0-255] in the order: wxh of R, wxh of G and wxh of B. |
SEGMENTATION | Specifies that the data contains segmentation data where the height and width are equal. |
DICTIONARY | Specifies that the data contains a dictionary of values. |
CUSTOM | Specifies that the data contains custom data. |
BITMAP | Specifies that the data contains an image converted to a byte array using ImageTools.ImageToByteArray. To convert back to an image, use the ImageTools.ByteArrayToImage method. |
LIST_DOUBLE | Specifies that the data contains a list of double values where the first item is an Int32 which is the count followed by that many double values. |
LIST_FLOAT | Specifies that the data contains a list of float values where the first item is an Int32 which is the count followed by that many float values. |
ANNOTATION_DATA | Specifies that the data contains annotation data used with SSD. |
Definition at line 222 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | ) |
The SimpleDatum constructor.
Definition at line 281 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | bool | bIsReal, |
int | nChannels, | ||
int | nWidth, | ||
int | nHeight, | ||
int | nLabel = -1 , |
||
DateTime? | dtTime = null , |
||
int | nBoost = 0 , |
||
bool | bAutoLabeled = false , |
||
int | nIdx = -1 , |
||
int | nVirtualID = 0 , |
||
int | nImageID = 0 , |
||
int | nSourceID = 0 , |
||
int | nOriginalSourceID = 0 |
||
) |
The SimpleDatum constructor.
bIsReal | Specifies whether or not the data values are double or byte. |
nChannels | Specifies the number of channels in the data (e.g. 3 for color, 1 for black and white images) |
nWidth | Specifies the width of the data (e.g. the number of pixels wide). |
nHeight | Specifies the height of the data (e.g. the number of pixels high). |
nLabel | Optionally, specifies the known label of the data (default = -1). |
dtTime | Optionally, specifies a time-stamp associated with the data (default = null). |
nBoost | Optionally, specifies the boost to use with the data (default = 0, where a value of 0 indicates no boost). |
bAutoLabeled | Optionally, specifies whether or not the label was auto-generated (default = false). |
nIdx | Optionally, specifies the index of the data (default = -1). |
nVirtualID | Optionally, specifies a virtual index for the data (default = 0). When specified, the SimpleDatum is used to reference another. |
nImageID | Optionally, specifies the image ID within the database (default = 0). |
nSourceID | Optionally, specifies the data source ID of the data source that owns this image (default = 0). |
nOriginalSourceID | Optionally, specifies the ogiginal source ID which is set when using a virtual ID - the original source ID is the ID of the source associated with the image with the ID of the virtual ID. |
Definition at line 301 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | bool | bIsReal, |
int | nChannels, | ||
int | nWidth, | ||
int | nHeight, | ||
int | nLabel, | ||
DateTime | dtTime, | ||
List< byte > | rgData, | ||
int | nBoost, | ||
bool | bAutoLabeled, | ||
int | nIdx, | ||
int | nVirtualID = 0 , |
||
int | nImageID = 0 , |
||
int | nSourceID = 0 , |
||
int | nOriginalSourceID = 0 |
||
) |
The SimpleDatum constructor.
bIsReal | Specifies whether or not the data values are double or byte. |
nChannels | Specifies the number of channels in the data (e.g. 3 for color, 1 for black and white images) |
nWidth | Specifies the width of the data (e.g. the number of pixels wide). |
nHeight | Specifies the height of the data (e.g. the number of pixels high). |
nLabel | Specifies the known label of the data. |
dtTime | Specifies a time-stamp associated with the data. |
rgData | Specifies the data as a list of bytes (expects bIsReal = false). |
nBoost | Specifies the boost to use with the data (a value of 0 indicates no boost). |
bAutoLabeled | Specifies whether or not the label was auto-generated. |
nIdx | Specifies the index of the data. |
nVirtualID | Specifies a virtual index for the data (default = 0). When specified, the SimpleDatum is used to reference another. |
nImageID | Specifies the image ID within the database. |
nSourceID | Specifies the data source ID of the data source that owns this image. |
nOriginalSourceID | Optionally, specifies the ogiginal source ID which is set when using a virtual ID - the original source ID is the ID of the source associated with the image with the ID of the virtual ID. |
Definition at line 337 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | bool | bIsReal, |
int | nChannels, | ||
int | nWidth, | ||
int | nHeight, | ||
int | nLabel, | ||
DateTime | dtTime, | ||
List< double > | rgfData, | ||
int | nBoost, | ||
bool | bAutoLabeled, | ||
int | nIdx, | ||
int | nVirtualID = 0 , |
||
int | nImageID = 0 , |
||
int | nSourceID = 0 , |
||
int | nOriginalSourceID = 0 |
||
) |
The SimpleDatum constructor.
bIsReal | Specifies whether or not the data values are double or byte. |
nChannels | Specifies the number of channels in the data (e.g. 3 for color, 1 for black and white images) |
nWidth | Specifies the width of the data (e.g. the number of pixels wide). |
nHeight | Specifies the height of the data (e.g. the number of pixels high). |
nLabel | Specifies the known label of the data. |
dtTime | Specifies a time-stamp associated with the data. |
rgfData | Specifies the data as a list of double (expects bIsReal = true). |
nBoost | Specifies the boost to use with the data (a value of 0 indicates no boost). |
bAutoLabeled | Specifies whether or not the label was auto-generated. |
nIdx | Specifies the index of the data. |
nVirtualID | Specifies a virtual index for the data (default = 0). When specified, the SimpleDatum is used to reference another. |
nImageID | Specifies the image ID within the database. |
nSourceID | Specifies the data source ID of the data source that owns this image. |
nOriginalSourceID | Optionally, specifies the ogiginal source ID which is set when using a virtual ID - the original source ID is the ID of the source associated with the image with the ID of the virtual ID. |
Definition at line 378 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | bool | bIsReal, |
int | nChannels, | ||
int | nWidth, | ||
int | nHeight, | ||
int | nLabel, | ||
DateTime | dtTime, | ||
List< float > | rgfData, | ||
int | nBoost, | ||
bool | bAutoLabeled, | ||
int | nIdx, | ||
int | nVirtualID = 0 , |
||
int | nImageID = 0 , |
||
int | nSourceID = 0 , |
||
int | nOriginalSourceID = 0 |
||
) |
The SimpleDatum constructor.
bIsReal | Specifies whether or not the data values are double or byte. |
nChannels | Specifies the number of channels in the data (e.g. 3 for color, 1 for black and white images) |
nWidth | Specifies the width of the data (e.g. the number of pixels wide). |
nHeight | Specifies the height of the data (e.g. the number of pixels high). |
nLabel | Specifies the known label of the data. |
dtTime | Specifies a time-stamp associated with the data. |
rgfData | Specifies the data as a list of float (expects bIsReal = true). |
nBoost | Specifies the boost to use with the data (a value of 0 indicates no boost). |
bAutoLabeled | Specifies whether or not the label was auto-generated. |
nIdx | Specifies the index of the data. |
nVirtualID | Specifies a virtual index for the data (default = 0). When specified, the SimpleDatum is used to reference another. |
nImageID | Specifies the image ID within the database. |
nSourceID | Specifies the data source ID of the data source that owns this image. |
nOriginalSourceID | Optionally, specifies the ogiginal source ID which is set when using a virtual ID - the original source ID is the ID of the source associated with the image with the ID of the virtual ID. |
Definition at line 419 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | bool | bIsReal, |
int | nChannels, | ||
int | nWidth, | ||
int | nHeight, | ||
int | nLabel, | ||
DateTime | dtTime, | ||
byte[] | rgData, | ||
int | nBoost, | ||
bool | bAutoLabeled, | ||
int | nIdx, | ||
int | nVirtualID = 0 , |
||
int | nImageID = 0 , |
||
int | nSourceID = 0 , |
||
int | nOriginalSourceID = 0 |
||
) |
The SimpleDatum constructor.
bIsReal | Specifies whether or not the data values are double or byte. |
nChannels | Specifies the number of channels in the data (e.g. 3 for color, 1 for black and white images) |
nWidth | Specifies the width of the data (e.g. the number of pixels wide). |
nHeight | Specifies the height of the data (e.g. the number of pixels high). |
nLabel | Specifies the known label of the data. |
dtTime | Specifies a time-stamp associated with the data. |
rgData | Specifies the data as a list of bytes (expects bIsReal = false). |
nBoost | Specifies the boost to use with the data (a value of 0 indicates no boost). |
bAutoLabeled | Specifies whether or not the label was auto-generated. |
nIdx | Specifies the index of the data. |
nVirtualID | Specifies a virtual index for the data (default = 0). When specified, the SimpleDatum is used to reference another. |
nImageID | Specifies the image ID within the database. |
nSourceID | Specifies the data source ID of the data source that owns this image. |
nOriginalSourceID | Optionally, specifies the ogiginal source ID which is set when using a virtual ID - the original source ID is the ID of the source associated with the image with the ID of the virtual ID. |
Definition at line 460 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | bool | bIsReal, |
int | nChannels, | ||
int | nWidth, | ||
int | nHeight, | ||
int | nLabel, | ||
DateTime | dtTime, | ||
double[] | rgdfData, | ||
int | nBoost, | ||
bool | bAutoLabeled, | ||
int | nIdx, | ||
int | nVirtualID = 0 , |
||
int | nImageID = 0 , |
||
int | nSourceID = 0 , |
||
int | nOriginalSourceID = 0 |
||
) |
The SimpleDatum constructor.
bIsReal | Specifies whether or not the data values are double or byte. |
nChannels | Specifies the number of channels in the data (e.g. 3 for color, 1 for black and white images) |
nWidth | Specifies the width of the data (e.g. the number of pixels wide). |
nHeight | Specifies the height of the data (e.g. the number of pixels high). |
nLabel | Specifies the known label of the data. |
dtTime | Specifies a time-stamp associated with the data. |
rgdfData | Specifies the data as a list of double (expects bIsReal = true). |
nBoost | Specifies the boost to use with the data (a value of 0 indicates no boost). |
bAutoLabeled | Specifies whether or not the label was auto-generated. |
nIdx | Specifies the index of the data. |
nVirtualID | Specifies a virtual index for the data (default = 0). When specified, the SimpleDatum is used to reference another. |
nImageID | Specifies the image ID within the database. |
nSourceID | Specifies the data source ID of the data source that owns this image. |
nOriginalSourceID | Optionally, specifies the ogiginal source ID which is set when using a virtual ID - the original source ID is the ID of the source associated with the image with the ID of the virtual ID. |
Definition at line 501 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | bool | bIsReal, |
int | nChannels, | ||
int | nWidth, | ||
int | nHeight, | ||
int | nLabel, | ||
DateTime | dtTime, | ||
float[] | rgfData, | ||
int | nBoost, | ||
bool | bAutoLabeled, | ||
int | nIdx, | ||
int | nVirtualID = 0 , |
||
int | nImageID = 0 , |
||
int | nSourceID = 0 , |
||
int | nOriginalSourceID = 0 |
||
) |
The SimpleDatum constructor.
bIsReal | Specifies whether or not the data values are double or byte. |
nChannels | Specifies the number of channels in the data (e.g. 3 for color, 1 for black and white images) |
nWidth | Specifies the width of the data (e.g. the number of pixels wide). |
nHeight | Specifies the height of the data (e.g. the number of pixels high). |
nLabel | Specifies the known label of the data. |
dtTime | Specifies a time-stamp associated with the data. |
rgfData | Specifies the data as a list of float (expects bIsReal = true). |
nBoost | Specifies the boost to use with the data (a value of 0 indicates no boost). |
bAutoLabeled | Specifies whether or not the label was auto-generated. |
nIdx | Specifies the index of the data. |
nVirtualID | Specifies a virtual index for the data (default = 0). When specified, the SimpleDatum is used to reference another. |
nImageID | Specifies the image ID within the database. |
nSourceID | Specifies the data source ID of the data source that owns this image. |
nOriginalSourceID | Optionally, specifies the ogiginal source ID which is set when using a virtual ID - the original source ID is the ID of the source associated with the image with the ID of the virtual ID. |
Definition at line 542 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | bool | bIsReal, |
int | nChannels, | ||
int | nWidth, | ||
int | nHeight, | ||
int | nLabel, | ||
DateTime | dtTime, | ||
int | nBoost = 0 , |
||
bool | bAutoLabeled = false , |
||
int | nIdx = -1 , |
||
int | nVirtualID = 0 , |
||
int | nImageID = 0 , |
||
int | nSourceID = 0 , |
||
int | nOriginalSourceID = 0 |
||
) |
The SimpleDatum constructor.
bIsReal | Specifies whether or not the data values are double or byte. |
nChannels | Specifies the number of channels in the data (e.g. 3 for color, 1 for black and white images) |
nWidth | Specifies the width of the data (e.g. the number of pixels wide). |
nHeight | Specifies the height of the data (e.g. the number of pixels high). |
nLabel | Specifies the known label of the data. |
dtTime | Specifies a time-stamp associated with the data. |
nBoost | Specifies the boost to use with the data (a value of 0 indicates no boost). |
bAutoLabeled | Specifies whether or not the label was auto-generated. |
nIdx | Specifies the index of the data. |
nVirtualID | Specifies a virtual index for the data (default = 0). When specified, the SimpleDatum is used to reference another. |
nImageID | Specifies the image ID within the database. |
nSourceID | Specifies the data source ID of the data source that owns this image. |
nOriginalSourceID | Optionally, specifies the ogiginal source ID which is set when using a virtual ID - the original source ID is the ID of the source associated with the image with the ID of the virtual ID. |
Definition at line 582 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | int | nChannels, |
int | nWidth, | ||
int | nHeight, | ||
float[] | rgf, | ||
int | nOffset, | ||
int | nCount, | ||
bool | bDataIsReal = true |
||
) |
The SimpleDatum constructor.
nChannels | Specifies the number of channels in the data (e.g. 3 for color, 1 for black and white images) |
nWidth | Specifies the width of the data (e.g. the number of pixels wide). |
nHeight | Specifies the height of the data (e.g. the number of pixels high). |
rgf | Specifies the data to copy. |
nOffset | Specifies the offset into the data where the copying should start. |
nCount | Specifies the number of data items to copy. |
bDataIsReal | Optionally, specifies whether or not the data is real. |
Definition at line 614 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | int | nChannels, |
int | nWidth, | ||
int | nHeight | ||
) |
The SimpleDatum constructor.
nChannels | Specifies the number of channels in the data (e.g. 3 for color, 1 for black and white images) |
nWidth | Specifies the width of the data (e.g. the number of pixels wide). |
nHeight | Specifies the height of the data (e.g. the number of pixels high). |
Definition at line 660 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | Bytemap | data | ) |
The SimpleDatum constructor.
data | Specifies the byte data to fill the SimpleDatum with. |
Definition at line 681 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | Valuemap | data | ) |
The SimpleDatum constructor.
data | Specifies the valuse data to fill the SimpleDatum with. |
Definition at line 697 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | SimpleDatum | d, |
bool | bCopyData = false |
||
) |
The SimpleDatum constructor.
d | Specifies a SimpleDatum used to create this new Datum. |
bCopyData | Specifies whether or not to copy the data, or just share it (default = false, share the data). |
Definition at line 714 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | SimpleDatum | d, |
int | nHeight, | ||
int | nWidth | ||
) |
The SimpleDatum constructor.
d | Specifies a SimpleDatum used to create this new Datum. |
nHeight | Specifies a height override. |
nWidth | Specifies a width override. |
Definition at line 725 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | List< SimpleDatum > | rg, |
bool | bAlignChannels | ||
) |
Constructor that copies an array into a single SimpleDatum by appending each to the other in order.
Data is ordered by HxWxC where C is filled with the channels of each input. So if three inputs are used the output is HxWx[c1,c2,c3].
rg | Specifies the array of SimpleDatum to append together. |
bAlignChannels | When true, the data is packed with each channel following the other. For example, packing three hxw images together using channel ordering, so three single channel images would then result in the following ordering: |
h0,w0,c0,c1,c2 h0,w1,c0,c1,c2 ...
When false (default), the channel data from each data item are stacked back to back similar to the way a single data item is already ordered.
Definition at line 747 of file SimpleDatum.cs.
|
static |
Accumulate a portion of a SimpleDatum to calculate the mean value.
rgdfMean | Specifies the accumulated mean value. |
sd | Specifies the SimpleDatum to add to the mean. |
nTotal | Specifies the overall total used to calculate the portion of the sd to add to the mean value. |
Definition at line 2524 of file SimpleDatum.cs.
SimpleDatum MyCaffe.basecode.SimpleDatum.Add | ( | SimpleDatum | d | ) |
Creates a new SimpleDatum and adds another SimpleDatum to it.
d | Specifies the other SimpleDatum. |
Definition at line 2046 of file SimpleDatum.cs.
|
static |
Calculate the mean of an array of SimpleDatum and return the mean as a new SimpleDatum.
log | Specifies the Log used for output. |
rgImg | Specifies the input SimpleDatum. |
rgAbort | Specifies a set of wait handles used to abort the process. |
Definition at line 2568 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.Clip | ( | int | nDataLen, |
int? | nNewChannel, | ||
int? | nNewHeight, | ||
int? | nNewWidth | ||
) |
Clip the data length down to a smaller size and copies the clipped data.
nDataLen | Specifies the new, smaller, size. |
nNewChannel | Specifies the new channel size, or null to ignore. |
nNewHeight | Specifies the new height size, or null to ignore. |
nNewWidth | Specifies the new width size, or null to ignore. |
Definition at line 974 of file SimpleDatum.cs.
List< T > MyCaffe.basecode.SimpleDatum.ClipToLastColumnsX< T > | ( | int | nLastColumns = 10 | ) |
DEPRECIATED: Clips the SimpleDatum to the last nLastColumns and returns the data.
T | Specifies base the type of data returned, either double or float. |
nLastColumns | Specifies the number of last columns of data to keep. |
Definition at line 1410 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.Copy | ( | SimpleDatum | d, |
bool | bCopyData, | ||
int? | nHeight = null , |
||
int? | nWidth = null |
||
) |
Copy another SimpleDatum into this one.
d | Specifies the SimpleDatum to copy. |
bCopyData | Specifies whether or not to copy the data. |
nHeight | Optionally, specifies a height override. |
nWidth | Optionally, specifies a width override. |
Definition at line 1294 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.CopyData | ( | SimpleDatum | d | ) |
Copy just the data from another SimpleDatum, making sure to update the C x H x W dimensions and IsReal settings to fit the new data.
d | Specifies the SimpleDatum whos data is to be copied. |
Definition at line 1352 of file SimpleDatum.cs.
SimpleDatum MyCaffe.basecode.SimpleDatum.Div | ( | double | dfVal, |
bool | bConvertToByte | ||
) |
Divides all elements of the SimpleDatum by a value and returns the result as a new SimpleDatum.
dfVal | Specifies the non-zero divisor. |
bConvertToByte | If the SimpleDatum contains real numbers, specifies whether or not to convert the data to byte data. |
Definition at line 2110 of file SimpleDatum.cs.
|
static |
Return the non-real data as a byte array after padding the data.
rgData | Specifies the data. |
nImagePadX | Specifies the amount to pad the data width. |
nImagePadY | Specifies the amount to pad the data height. |
nHeight | Specifies the height of the original data. |
nWidth | Specifies the width of the original data. |
nChannels | Specifies the number of channels in the original data. |
Definition at line 1797 of file SimpleDatum.cs.
|
static |
Encodes a list of double values to an encoded byte array.
Each double in the stored data is converted using a BitConverter.
rgData | Specifies the data as list of double values. |
Definition at line 1910 of file SimpleDatum.cs.
|
static |
Encodes a list of float values to an encoded byte array.
Each double in the stored data is converted using a BitConverter.
rgData | Specifies the data as list of float values. |
Definition at line 1945 of file SimpleDatum.cs.
byte[] MyCaffe.basecode.SimpleDatum.GetByteData | ( | out bool | bEncoded | ) |
Returns the data as a byte array regardless of how it is stored.
bEncoded | Returns whether or not the original data is real (true) or not (false). |
Definition at line 1884 of file SimpleDatum.cs.
T[] MyCaffe.basecode.SimpleDatum.GetData< T > | ( | int | nImagePadX = 0 , |
int | nImagePadY = 0 |
||
) |
Returns the data as a generic array and optionally pads the data.
T | Specifies the base type float or double. Using float is recommended to conserve GPU memory. |
nImagePadX | Optionally, specifies the amount to pad the data width. |
nImagePadY | Optionally, specifies the amount to pad the data height. |
Definition at line 1730 of file SimpleDatum.cs.
T MyCaffe.basecode.SimpleDatum.GetDataAt< T > | ( | int | nIdx | ) |
Returns the item at a specified index in the type specified.
T | Specifies the output type. |
nIdx | Specifies the index of the data to retrieve. |
Definition at line 1636 of file SimpleDatum.cs.
byte MyCaffe.basecode.SimpleDatum.GetDataAtByte | ( | int | nIdx | ) |
Returns the item at a specified index in the byte type.
nIdx | Specifies the index of the data to retrieve. |
Definition at line 1702 of file SimpleDatum.cs.
double MyCaffe.basecode.SimpleDatum.GetDataAtD | ( | int | nIdx | ) |
Returns the item at a specified index in the double type.
nIdx | Specifies the index of the data to retrieve. |
Definition at line 1658 of file SimpleDatum.cs.
float MyCaffe.basecode.SimpleDatum.GetDataAtF | ( | int | nIdx | ) |
Returns the item at a specified index in the float type.
nIdx | Specifies the index of the data to retrieve. |
Definition at line 1680 of file SimpleDatum.cs.
bool MyCaffe.basecode.SimpleDatum.GetDataValid | ( | bool | bByType = true | ) |
Returns true if the ByteData or RealDataD or RealDataF are not null, false otherwise.
bByType | Specifies to only test if real (RealDataD and RealDataF) or if not real (ByteData). When false, all data types are tested. |
Definition at line 1386 of file SimpleDatum.cs.
List< int > MyCaffe.basecode.SimpleDatum.GetNonZeroIndexes | ( | ) |
Returns all indexes with non-zero data.
Definition at line 1004 of file SimpleDatum.cs.
|
static |
Decodes an array of byte values into a array of either double or float values depending on how the original encoding was made.
rgData | Specifies the array of byte values containing the encoded double or float values. |
Definition at line 1977 of file SimpleDatum.cs.
|
static |
Return the real data as a double or float array (depending on the original encoding data type) after padding the data.
rgData | Specifies the data. |
nImagePadX | Specifies the amount to pad the data width. |
nImagePadY | Specifies the amount to pad the data height. |
nHeight | Specifies the height of the original data. |
nWidth | Specifies the width of the original data. |
nChannels | Specifies the number of channels in the original data. |
Definition at line 1815 of file SimpleDatum.cs.
|
staticprotected |
Decodes an array of byte values into a array of double values.
rgData | Specifies the array of byte values containing the encoded double values. |
nIdx | Specifies the offset where reading is to start. |
Definition at line 2009 of file SimpleDatum.cs.
|
staticprotected |
Decodes an array of byte values into a array of float values.
rgData | Specifies the array of byte values containing the encoded float values. |
nIdx | Specifies the offset where reading is to start. |
Definition at line 2028 of file SimpleDatum.cs.
bool MyCaffe.basecode.SimpleDatum.LoadAnnotationDataFromDataCriteria | ( | ) |
Load the annotation data and type from the data criteria.
Definition at line 2776 of file SimpleDatum.cs.
|
static |
Load the AnnotationGroups from the byte array.
rg | Specifies the byte array containing the annotation data. |
fmt | Specifies the annotation data format (expected to be ANNOATION_DATA). |
type | Returns the annoation data type. |
Definition at line 2746 of file SimpleDatum.cs.
|
static |
Load all SimpleDatums from a directory of files previously stored with SaveInfo.
strPath | Specifies the path to the files to load. |
Definition at line 2879 of file SimpleDatum.cs.
|
static |
Load a SimpleData from text file information previously saved with SaveInfo.
Note, the SimpleDatum only contains the information but no data for this is used for debugging.
strFile | Specifies the file to load the SimpleDatum from. |
Definition at line 2819 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.MaskOutAllButLastColumnsX | ( | int | nLastColumsToRetain, |
int | nMaskingValue | ||
) |
DEPRECIATED: Masks out all data except for the last columns of data.
nLastColumsToRetain | Specifies the number of last columns to retain. |
nMaskingValue | Specifies the value to use for the masked columns. |
Definition at line 1441 of file SimpleDatum.cs.
|
static |
Padd the data.
T | Specifies the base type float or double. Using float is recommended to conserve GPU memory. |
rgData | Specifies the data to pad. |
nImagePadX | Optionally, specifies the amount to pad the data width. |
nImagePadY | Optionally, specifies the amount to pad the data height. |
nHeight | Specifies the height of the original data. |
nWidth | Specifies the width of the original data. |
nChannels | Specifies the number of channels in the original data. |
Definition at line 1841 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.ResetBoost | ( | ) |
Reset the boost to the original boost.
Definition at line 2353 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.ResetLabel | ( | ) |
Resets the label to the original label used when creating the SimpleDatum.
Definition at line 1587 of file SimpleDatum.cs.
SimpleDatum MyCaffe.basecode.SimpleDatum.Resize | ( | int | nH, |
int | nW | ||
) |
Resize the data and return it as a new SimpleDatum.
nH | Specifies the new height. |
nW | Specifies the new width. |
Definition at line 2428 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.SaveAnnotationDataToDataCriteria | ( | ) |
Save the annotation data and type to the data criteria.
Definition at line 2733 of file SimpleDatum.cs.
|
static |
Save the annotation data to a byte array.
type | Specifies the annotation type. |
annotations | Specifies the annotations to save. |
Definition at line 2704 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.SaveInfo | ( | string | strFile | ) |
Save the SimpleDatum information to a text file.
This function is typically used for debugging.
strFile | Specifies the name of the target file. |
Definition at line 2793 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.Scale | ( | double | dfScale, |
double | dfMin = -double.MaxValue , |
||
double | dfMax = double.MaxValue |
||
) |
Scale the values by the scaling factor.
dfScale | Specifies the scaling factor. |
dfMin | Optionally, specifies a minimum cutoff value. |
dfMax | Optionally, specifies a maximum cutoff value. |
Definition at line 1201 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.ScalePow | ( | double | dfScalePow, |
double | dfMin = -double.MaxValue , |
||
double | dfMax = double.MaxValue |
||
) |
Scale the values by the scaling factor that raises each value by the specified power.
dfScalePow | Specifies the scaling factor. |
dfMin | Optionally, specifies a minimum cutoff value. |
dfMax | Optionally, specifies a maximum cutoff value. |
Definition at line 1247 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.SetData | ( | byte[] | rgb, |
int | nLabel | ||
) |
Set the data to the byte array specified.
rgb | Specifies the data to set. |
nLabel | Specifies the label to set. |
The data of the array is cast to either (double) for real data, or (byte) for the byte data.
Definition at line 1529 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.SetData | ( | double[] | rgdf, |
int | nLabel | ||
) |
Set the data to the double array specified.
rgdf | Specifies the data to set. |
nLabel | Specifies the label to set. |
The data of the array is cast to either (double) for real data, or (byte) for the byte data.
Definition at line 1547 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.SetData | ( | float[] | rgf, |
int | nLabel | ||
) |
Set the data to the float array specified.
rgf | Specifies the data to set. |
nLabel | Specifies the label to set. |
The data of the array is cast to either (double) for real data, or (byte) for the byte data.
Definition at line 1565 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.SetData | ( | List< byte > | rgByteData, |
int | nLabel, | ||
bool | bAllowVirtualOverride = false |
||
) |
Sets the byte data of the SimpleDatum and its Label.
rgByteData | Specifies the byte data. |
bAllowVirtualOverride | Optionally, allow virtual ID override. When true the data can be set on a virtual SimpleDatum, otherwise it cannot. |
nLabel | Specifies the label. |
Definition at line 1470 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.SetData | ( | List< double > | rgRealData, |
int | nLabel, | ||
bool | bAllowVirtualOverride = false |
||
) |
Sets the double data of the SimpleDatum and its Label.
rgRealData | Specifies the double data. |
nLabel | Specifies the label. |
bAllowVirtualOverride | Optionally, allow virtual ID override. When true the data can be set on a virtual SimpleDatum, otherwise it cannot. |
Definition at line 1489 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.SetData | ( | List< float > | rgRealData, |
int | nLabel, | ||
bool | bAllowVirtualOverride = false |
||
) |
Sets the float data of the SimpleDatum and its Label.
rgRealData | Specifies the float data. |
nLabel | Specifies the label. |
bAllowVirtualOverride | Optionally, allow virtual ID override. When true the data can be set on a virtual SimpleDatum, otherwise it cannot. |
Definition at line 1508 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.SetData | ( | SimpleDatum | d | ) |
Set the data of the current SimpleDatum by copying the data of another.
d | Specifies the SimpleDatum to copy. |
Definition at line 1367 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.SetImageID | ( | int | nID | ) |
Set the image ID.
nID | Specifies the image ID. |
Definition at line 2219 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.SetLabel | ( | int | nLabel | ) |
Sets the label.
nLabel | Specifies the label. |
Definition at line 1579 of file SimpleDatum.cs.
bool MyCaffe.basecode.SimpleDatum.Sub | ( | SimpleDatum | sd, |
bool | bSetNegativeToZero = false |
||
) |
Subtract the data of another SimpleDatum from this one, so this = this - sd.
sd | Specifies the other SimpleDatum to subtract. |
bSetNegativeToZero | Optionally, specifies to zero out any negative values (default = false). |
Definition at line 1064 of file SimpleDatum.cs.
bool MyCaffe.basecode.SimpleDatum.SubAbs | ( | SimpleDatum | sd | ) |
Subtract the data of another SimpleDatum from this one, and take the absolute value, so this = Math.Abs(this - sd).
sd | Specifies the other SimpleDatum to subtract. |
Definition at line 1146 of file SimpleDatum.cs.
string MyCaffe.basecode.SimpleDatum.ToArrayAsString | ( | int | nMaxItems | ) |
Returns a string containing the items of the SimpleDatum.
nMaxItems | Specifies the maximum number of items to output. |
Definition at line 2465 of file SimpleDatum.cs.
Bytemap MyCaffe.basecode.SimpleDatum.ToBytemap | ( | ) |
Return the SimpleData data as a Bytemap.
This function is only suported on byte based SimpleDatum's.
Definition at line 2509 of file SimpleDatum.cs.
override string MyCaffe.basecode.SimpleDatum.ToString | ( | ) |
Return a string representation of the SimpleDatum.
Definition at line 2444 of file SimpleDatum.cs.
|
static |
Transpose the data within a double array.
rg | Specifies the array of data. |
nH | Specifies the height of the data. |
nW | Specifies the width of the data. |
nDim | Specifies the inner dimension of the data, default = 1 |
Definition at line 2929 of file SimpleDatum.cs.
|
static |
Transpose the data within a float array.
rg | Specifies the array of data. |
nH | Specifies the height of the data. |
nW | Specifies the width of the data. |
nDim | Specifies the inner dimension of the data, default = 1 |
Definition at line 2900 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.Zero | ( | ) |
Zero out all data in the datum but keep the size and other settings.
Definition at line 1046 of file SimpleDatum.cs.
|
protected |
Specifies the name of the user value.
Definition at line 196 of file SimpleDatum.cs.
|
protected |
Specifies a user value.
Definition at line 192 of file SimpleDatum.cs.
|
getset |
When using annoations, each annotation group contains an annotation for a particular class used with SSD.
Definition at line 2416 of file SimpleDatum.cs.
|
getset |
When using annotations, the annotation type specifies the type of annotation. Currently, only the BBOX annotation type is supported.
Definition at line 2407 of file SimpleDatum.cs.
|
getset |
Get/set whether or not the label was auto generated.
Definition at line 2262 of file SimpleDatum.cs.
|
getset |
Get/set the boost for this data.
Definition at line 2344 of file SimpleDatum.cs.
|
get |
Return the byte data. This field is valid when IsRealData = false.
Definition at line 2320 of file SimpleDatum.cs.
|
get |
Return the number of channels of the data.
Definition at line 2295 of file SimpleDatum.cs.
|
getset |
Get/set data criteria associated with the data.
Definition at line 2370 of file SimpleDatum.cs.
|
getset |
Get/set the data format of the data criteria.
Definition at line 2361 of file SimpleDatum.cs.
|
getset |
Get/set debug data associated with the data.
Definition at line 2388 of file SimpleDatum.cs.
|
getset |
Get/set the data format of the debug data.
Definition at line 2379 of file SimpleDatum.cs.
|
getset |
Get/set a description of the data.
Definition at line 2397 of file SimpleDatum.cs.
|
getset |
Get/set the group ID of the SimpleDatum.
Definition at line 2235 of file SimpleDatum.cs.
|
get |
Returns true if either the RealDataD or RealDataF are non null and have length > 0.
Definition at line 1616 of file SimpleDatum.cs.
|
get |
Return the height of the data.
Definition at line 2279 of file SimpleDatum.cs.
|
getset |
Get/set the hit count for the SimpleDatum.
Definition at line 891 of file SimpleDatum.cs.
|
get |
Returns the ID of the image in the database.
Definition at line 2210 of file SimpleDatum.cs.
|
getset |
Returns the index of the SimpleDatum.
Definition at line 2244 of file SimpleDatum.cs.
|
get |
Returns whether or not the data contains real numbers or byte data.
Definition at line 2271 of file SimpleDatum.cs.
|
get |
Returns the number of data items.
Definition at line 1595 of file SimpleDatum.cs.
|
get |
Return the known label of the data.
Definition at line 2303 of file SimpleDatum.cs.
|
get |
Returns the maximum value in the data or double.NaN if there is no data.
Definition at line 944 of file SimpleDatum.cs.
|
get |
Returns the minimum value in the data or double.NaN if there is no data.
Definition at line 918 of file SimpleDatum.cs.
|
getset |
Get/set the original known label of the data.
Definition at line 2311 of file SimpleDatum.cs.
|
get |
Returns the original source ID which is set when using a virtual ID.
Definition at line 2202 of file SimpleDatum.cs.
|
get |
Return the double data. This field is valid when IsRealData = true.
Definition at line 2328 of file SimpleDatum.cs.
|
get |
Return the float data. This field is valid when IsRealData = true.
Definition at line 2336 of file SimpleDatum.cs.
|
get |
Returns the ID of the data source that owns this image.
Definition at line 2194 of file SimpleDatum.cs.
|
getset |
Specifies user data associated with the SimpleDatum.
Definition at line 900 of file SimpleDatum.cs.
|
getset |
Returns a user-defined name of the tag associated with the data.
Definition at line 909 of file SimpleDatum.cs.
|
getset |
Get/set the Timestamp.
Definition at line 2253 of file SimpleDatum.cs.
|
get |
Returns the virtual ID of the SimpleDatum.
Definition at line 2227 of file SimpleDatum.cs.
|
get |
Return the width of the data.
Definition at line 2287 of file SimpleDatum.cs.