2using System.Collections.Generic;
5using System.Threading.Tasks;
24 string m_strDescription;
41 public ImageDescriptor(
int nID,
int nH,
int nW,
int nC,
bool bEncoded,
int nSrcID,
int nIdx,
int nActiveLabel,
bool bActive,
string strDesc, DateTime dt)
47 m_bEncoded = bEncoded;
50 m_nActiveLabel = nActiveLabel;
52 m_strDescription = strDesc;
61 : this(id.
ID, id.
Height, id.
Width, id.
Channels, id.
Encoded, id.
SourceID, id.
Index, id.
ActiveLabel, id.
Active, id.
Description, id.
TimeStamp)
78 get {
return m_nHeight; }
86 get {
return m_nWidth; }
94 get {
return m_nChannels; }
102 get {
return m_bEncoded; }
110 get {
return m_nSourceID; }
118 get {
return m_nIdx; }
126 get {
return m_nActiveLabel; }
134 get {
return m_bActive; }
142 get {
return m_strDescription; }
159 return m_nID.ToString() +
": " + m_nChannels.ToString() +
" x " + m_nHeight.ToString() +
" x " + m_nWidth.ToString();
The ImageDescriptor class describes a single image in the database.
int Channels
Returns the channels of the image (i.e. 3 = RGB, 1 = B/W)
override string ToString()
Creates the string representation of the descriptor.
int Width
Returns the width of the image.
bool Encoded
Returns whether or not the image is encoded.
bool Active
Returns whether or not the image is active.
DateTime TimeStamp
Specifies the time-stamp of the image (if any).
int ActiveLabel
Returns the active label of the image.
int Index
Returns the index of the image.
int Height
Returns the height of the image.
ImageDescriptor(int nID, int nH, int nW, int nC, bool bEncoded, int nSrcID, int nIdx, int nActiveLabel, bool bActive, string strDesc, DateTime dt)
The ImageDescriptor constructor.
string Description
Returns the description of the image.
ImageDescriptor(ImageDescriptor id)
The ImageDescriptor constructor.
int SourceID
Returns the ID of the source associated with the image.
int ID
Returns the ID of the image.
The descriptors namespace contains all descriptor used to describe various items stored within the da...