2using System.Collections.Generic;
5using System.Threading.Tasks;
18 DictionaryMap<List<NormalizedBBox>> m_rgItems =
new DictionaryMap<List<NormalizedBBox>>(
null);
31 public List<KeyValuePair<int, List<NormalizedBBox>>>
ToList()
33 return m_rgItems.Map.ToList();
43 if (m_rgItems[nLabel] ==
null)
44 m_rgItems[nLabel] =
new List<NormalizedBBox>();
46 m_rgItems[nLabel].Add(bbox);
54 get {
return m_rgItems.Count; }
64 return m_rgItems.Map.ContainsKey(nLabel);
72 public List<NormalizedBBox>
this[
int nLabel]
76 if (m_rgItems[nLabel] ==
null)
77 m_rgItems[nLabel] =
new List<NormalizedBBox>();
79 return m_rgItems[nLabel];
83 m_rgItems[nLabel] = value;
The LabelBBox manages a bounding box used in SSD.
LabelBBox()
The constructor.
void Add(int nLabel, NormalizedBBox bbox)
Add a new bbox to the label.
List< KeyValuePair< int, List< NormalizedBBox > > > ToList()
Returns the internal dictionary of items as a list.
void Clear()
Remove all items from the group.
bool Contains(int nLabel)
Returns whether or not the label is contained in the label bounding boxe set.
int Count
Returns the number of items.
The NormalizedBBox manages a bounding box used in SSD.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.