![]() |
MyCaffe
1.12.0.60
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 18 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 59 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 74 of file SimpleDatum.cs.
MyCaffe.basecode.SimpleDatum.SimpleDatum | ( | ) |
The SimpleDatum constructor.
Definition at line 123 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 143 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 179 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 220 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 261 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 302 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 343 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 384 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 424 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 456 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 502 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 523 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 539 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 556 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 567 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 589 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 2366 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 1888 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 2410 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 816 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 1252 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 1136 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 1194 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 1952 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 1639 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 1752 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 1787 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 1726 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 1572 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 1478 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 1544 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 1500 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 1522 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 1228 of file SimpleDatum.cs.
List< int > MyCaffe.basecode.SimpleDatum.GetNonZeroIndexes | ( | ) |
Returns all indexes with non-zero data.
Definition at line 846 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 1819 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 1657 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 1851 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 1870 of file SimpleDatum.cs.
bool MyCaffe.basecode.SimpleDatum.LoadAnnotationDataFromDataCriteria | ( | ) |
Load the annotation data and type from the data criteria.
Definition at line 2618 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 2588 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 2721 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 2661 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 1283 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 1683 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.ResetBoost | ( | ) |
Reset the boost to the original boost.
Definition at line 2195 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.ResetLabel | ( | ) |
Resets the label to the original label used when creating the SimpleDatum.
Definition at line 1429 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 2270 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.SaveAnnotationDataToDataCriteria | ( | ) |
Save the annotation data and type to the data criteria.
Definition at line 2575 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 2546 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 2635 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 1043 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 1089 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 1371 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 1389 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 1407 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 1312 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 1331 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 1350 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 1209 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.SetImageID | ( | int | nID | ) |
Set the image ID.
nID | Specifies the image ID. |
Definition at line 2061 of file SimpleDatum.cs.
void MyCaffe.basecode.SimpleDatum.SetLabel | ( | int | nLabel | ) |
Sets the label.
nLabel | Specifies the label. |
Definition at line 1421 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 906 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 988 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 2307 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 2351 of file SimpleDatum.cs.
override string MyCaffe.basecode.SimpleDatum.ToString | ( | ) |
Return a string representation of the SimpleDatum.
Definition at line 2286 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 2771 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 2742 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 888 of file SimpleDatum.cs.
|
protected |
Specifies the name of the user value.
Definition at line 54 of file SimpleDatum.cs.
|
protected |
Specifies a user value.
Definition at line 50 of file SimpleDatum.cs.
|
getset |
When using annoations, each annotation group contains an annotation for a particular class used with SSD.
Definition at line 2258 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 2249 of file SimpleDatum.cs.
|
getset |
Get/set whether or not the label was auto generated.
Definition at line 2104 of file SimpleDatum.cs.
|
getset |
Get/set the boost for this data.
Definition at line 2186 of file SimpleDatum.cs.
|
get |
Return the byte data. This field is valid when IsRealData = false.
Definition at line 2162 of file SimpleDatum.cs.
|
get |
Return the number of channels of the data.
Definition at line 2137 of file SimpleDatum.cs.
|
getset |
Get/set data criteria associated with the data.
Definition at line 2212 of file SimpleDatum.cs.
|
getset |
Get/set the data format of the data criteria.
Definition at line 2203 of file SimpleDatum.cs.
|
getset |
Get/set debug data associated with the data.
Definition at line 2230 of file SimpleDatum.cs.
|
getset |
Get/set the data format of the debug data.
Definition at line 2221 of file SimpleDatum.cs.
|
getset |
Get/set a description of the data.
Definition at line 2239 of file SimpleDatum.cs.
|
getset |
Get/set the group ID of the SimpleDatum.
Definition at line 2077 of file SimpleDatum.cs.
|
get |
Returns true if either the RealDataD or RealDataF are non null and have length > 0.
Definition at line 1458 of file SimpleDatum.cs.
|
get |
Return the height of the data.
Definition at line 2121 of file SimpleDatum.cs.
|
getset |
Get/set the hit count for the SimpleDatum.
Definition at line 733 of file SimpleDatum.cs.
|
get |
Returns the ID of the image in the database.
Definition at line 2052 of file SimpleDatum.cs.
|
getset |
Returns the index of the SimpleDatum.
Definition at line 2086 of file SimpleDatum.cs.
|
get |
Returns whether or not the data contains real numbers or byte data.
Definition at line 2113 of file SimpleDatum.cs.
|
get |
Returns the number of data items.
Definition at line 1437 of file SimpleDatum.cs.
|
get |
Return the known label of the data.
Definition at line 2145 of file SimpleDatum.cs.
|
get |
Returns the maximum value in the data or double.NaN if there is no data.
Definition at line 786 of file SimpleDatum.cs.
|
get |
Returns the minimum value in the data or double.NaN if there is no data.
Definition at line 760 of file SimpleDatum.cs.
|
getset |
Get/set the original known label of the data.
Definition at line 2153 of file SimpleDatum.cs.
|
get |
Returns the original source ID which is set when using a virtual ID.
Definition at line 2044 of file SimpleDatum.cs.
|
get |
Return the double data. This field is valid when IsRealData = true.
Definition at line 2170 of file SimpleDatum.cs.
|
get |
Return the float data. This field is valid when IsRealData = true.
Definition at line 2178 of file SimpleDatum.cs.
|
get |
Returns the ID of the data source that owns this image.
Definition at line 2036 of file SimpleDatum.cs.
|
getset |
Specifies user data associated with the SimpleDatum.
Definition at line 742 of file SimpleDatum.cs.
|
getset |
Returns a user-defined name of the tag associated with the data.
Definition at line 751 of file SimpleDatum.cs.
|
getset |
Get/set the Timestamp.
Definition at line 2095 of file SimpleDatum.cs.
|
get |
Returns the virtual ID of the SimpleDatum.
Definition at line 2069 of file SimpleDatum.cs.
|
get |
Return the width of the data.
Definition at line 2129 of file SimpleDatum.cs.