|
| Datum () |
| The Datum constructor. More...
|
|
| Datum (bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel=-1, DateTime? dtTime=null, int nBoost=0, bool bAutoLabeled=false, int nIdx=-1) |
| The Datum constructor. More...
|
|
| Datum (bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel, DateTime dtTime, List< byte > rgData, int nBoost, bool bAutoLabeled, int nIdx) |
| The Datum constructor. More...
|
|
| Datum (bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel, DateTime dtTime, List< double > rgfData, int nBoost, bool bAutoLabeled, int nIdx) |
| The Datum constructor. More...
|
|
| Datum (bool bIsReal, int nChannels, int nWidth, int nHeight, int nLabel, DateTime dtTime, List< float > rgfData, int nBoost, bool bAutoLabeled, int nIdx) |
| The Datum constructor. More...
|
|
| Datum (SimpleDatum d, bool bCopyData=false) |
| The Datum constructor. More...
|
|
| Datum (Datum d, bool bCopyData=false) |
| The Datum constructor. More...
|
|
| 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...
|
|
|
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...
|
|
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 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...
|
|
object | m_tag = null |
| Specifies a user value. More...
|
|
string | m_strTagName = null |
| Specifies the name of the user value. More...
|
|