MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
Defines a collection of AnnotationGroups. More...
Public Member Functions | |
AnnotationGroupCollection () | |
The constructor. More... | |
void | Add (AnnotationGroupCollection col) |
Add another AnnotationGroupCollection to this one. More... | |
void | Add (AnnotationGroup g) |
Add a new AnnotationGroup to the collection. More... | |
bool | Remove (AnnotationGroup g) |
Remove an AnnotationGroup from the collection if it exists. More... | |
void | RemoveAt (int nIdx) |
Remove an item at a given index. More... | |
void | Clear () |
Clear all items from the collection. More... | |
IEnumerator< AnnotationGroup > | GetEnumerator () |
Returns the enumerator for the collection. More... | |
Annotation | GetMaxScoringAnnotation () |
Returns the maximum scoring annotation within a collection of groups. More... | |
AnnotationGroup | Find (int nLabel) |
Find the annotation group with the given label. More... | |
AnnotationGroupCollection | Clone () |
Return a copy of the collection. More... | |
Tuple< int, int > | GetMinMaxLabels () |
Return the min/max labels found int the collection. More... | |
void | Normalize (Rectangle rc) |
Normalize all annotations to the given rectangle. More... | |
Static Public Member Functions | |
static void | SaveList (BinaryWriter bw, AnnotationGroupCollection rg) |
Save an AnnotationGroupCollection to a binary writer. More... | |
static void | SaveLabels (BinaryWriter bw, AnnotationGroupCollection rg) |
Save the labels to a binary writer. More... | |
static AnnotationGroupCollection | LoadList (BinaryReader br) |
Load an AnnotationGroupCollection from a binary stream. More... | |
static Dictionary< int, string > | LoadLabels (BinaryReader br) |
Load the labels from a binary reader. More... | |
static byte[] | ToByteArray (AnnotationGroupCollection rg, bool bIncludeLabels=false) |
Saves a AnnotationGroupCollection to a byte array. More... | |
static AnnotationGroupCollection | FromByteArray (byte[] rg) |
Returns an AnnotationGroupCollection from a byte array. More... | |
Properties | |
bool | HasDataCriteria [getset] |
Get/set whether or not the image has a data criteria associated with it. More... | |
bool | HasDebugData [getset] |
Get/set whether or not the image has debug data associated with it. More... | |
int | ImageID [getset] |
Specifies the ImageID. More... | |
int | ImageIdx [getset] |
Specifies the Image Index. More... | |
int | CreatorID [getset] |
Specifies the Dataset Creator ID. More... | |
int | DatasetID [getset] |
Specifies the Dataset ID. More... | |
int | SourceID [getset] |
Specifies the Data Source ID. More... | |
Dictionary< int, string > | Labels [getset] |
Get/set the label name mappings. More... | |
int | Count [get] |
Specifies the number of items in the collection. More... | |
AnnotationGroup | this[int nIdx] [getset] |
Get/set a specific item within the collection at a given index. More... | |
Defines a collection of AnnotationGroups.
Definition at line 255 of file Annotation.cs.
MyCaffe.basecode.AnnotationGroupCollection.AnnotationGroupCollection | ( | ) |
The constructor.
Definition at line 270 of file Annotation.cs.
void MyCaffe.basecode.AnnotationGroupCollection.Add | ( | AnnotationGroup | g | ) |
Add a new AnnotationGroup to the collection.
g | Specifies the AnnotationGroup to add. |
Definition at line 381 of file Annotation.cs.
void MyCaffe.basecode.AnnotationGroupCollection.Add | ( | AnnotationGroupCollection | col | ) |
Add another AnnotationGroupCollection to this one.
col | Specifies the annotation group to add. |
Definition at line 369 of file Annotation.cs.
void MyCaffe.basecode.AnnotationGroupCollection.Clear | ( | ) |
Clear all items from the collection.
Definition at line 408 of file Annotation.cs.
AnnotationGroupCollection MyCaffe.basecode.AnnotationGroupCollection.Clone | ( | ) |
Return a copy of the collection.
Definition at line 474 of file Annotation.cs.
AnnotationGroup MyCaffe.basecode.AnnotationGroupCollection.Find | ( | int | nLabel | ) |
Find the annotation group with the given label.
nLabel | Specifies the label to look for. |
Definition at line 459 of file Annotation.cs.
|
static |
Returns an AnnotationGroupCollection from a byte array.
rg | Specifies the byte array to load. |
Definition at line 649 of file Annotation.cs.
IEnumerator< AnnotationGroup > MyCaffe.basecode.AnnotationGroupCollection.GetEnumerator | ( | ) |
Returns the enumerator for the collection.
Definition at line 417 of file Annotation.cs.
Annotation MyCaffe.basecode.AnnotationGroupCollection.GetMaxScoringAnnotation | ( | ) |
Returns the maximum scoring annotation within a collection of groups.
Definition at line 435 of file Annotation.cs.
Tuple< int, int > MyCaffe.basecode.AnnotationGroupCollection.GetMinMaxLabels | ( | ) |
Return the min/max labels found int the collection.
Definition at line 503 of file Annotation.cs.
|
static |
Load the labels from a binary reader.
br | Specifies the binary reader. |
Definition at line 598 of file Annotation.cs.
|
static |
Load an AnnotationGroupCollection from a binary stream.
br | Specifies the binary reader. |
Definition at line 572 of file Annotation.cs.
void MyCaffe.basecode.AnnotationGroupCollection.Normalize | ( | Rectangle | rc | ) |
Normalize all annotations to the given rectangle.
rc | Specifies the rectangle used to normalize all annotations. |
Definition at line 521 of file Annotation.cs.
bool MyCaffe.basecode.AnnotationGroupCollection.Remove | ( | AnnotationGroup | g | ) |
Remove an AnnotationGroup from the collection if it exists.
g | Specifies the AnnotationGroup to remove. |
Definition at line 391 of file Annotation.cs.
void MyCaffe.basecode.AnnotationGroupCollection.RemoveAt | ( | int | nIdx | ) |
Remove an item at a given index.
nIdx | Specifies the index of the item to remove. |
Definition at line 400 of file Annotation.cs.
|
static |
Save the labels to a binary writer.
bw | Specifies the binary writer. |
rg | Specifies the AnnotationGroupCollection to save. |
Definition at line 557 of file Annotation.cs.
|
static |
Save an AnnotationGroupCollection to a binary writer.
bw | Specifies the binary writer. |
rg | Specifies the AnnotationGroupCollection to save. |
Definition at line 534 of file Annotation.cs.
|
static |
Saves a AnnotationGroupCollection to a byte array.
rg | Specifies the list of AnnotationGroup to save. |
bIncludeLabels | Optionally, include the labels. |
Definition at line 620 of file Annotation.cs.
|
get |
Specifies the number of items in the collection.
Definition at line 349 of file Annotation.cs.
|
getset |
Specifies the Dataset Creator ID.
Definition at line 313 of file Annotation.cs.
|
getset |
Specifies the Dataset ID.
Definition at line 322 of file Annotation.cs.
|
getset |
Get/set whether or not the image has a data criteria associated with it.
Definition at line 277 of file Annotation.cs.
|
getset |
Get/set whether or not the image has debug data associated with it.
Definition at line 286 of file Annotation.cs.
|
getset |
Specifies the ImageID.
Definition at line 295 of file Annotation.cs.
|
getset |
Specifies the Image Index.
Definition at line 304 of file Annotation.cs.
|
getset |
Get/set the label name mappings.
Definition at line 340 of file Annotation.cs.
|
getset |
Specifies the Data Source ID.
Definition at line 331 of file Annotation.cs.
|
getset |
Get/set a specific item within the collection at a given index.
nIdx | Specifies the index of the item to get/set. |
Definition at line 359 of file Annotation.cs.