MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.basecode.AnnotationGroup Class Reference

The AnnoationGroup class manages a group of annotations. More...

Public Member Functions

 AnnotationGroup (List< Annotation > rgAnnotations=null, int nGroupLabel=0)
 The constructor. More...
 
AnnotationGroup Clone ()
 Create a copy of the annotation group. More...
 
Annotation GetMaxScoringAnnotation ()
 Returns the maximum scoring annotation within a group. More...
 
void Normalize (Rectangle rc)
 Normalize all annotations to the given rectangle. More...
 
void Save (BinaryWriter bw)
 Save the annotation group to the binary writer. More...
 

Static Public Member Functions

static AnnotationGroup Load (BinaryReader br)
 Load an annotation group using the binary reader. More...
 

Properties

List< Annotationannotations [getset]
 Get/set the group annoations. More...
 
int group_label [getset]
 Get/set the group label. More...
 

Detailed Description

The AnnoationGroup class manages a group of annotations.

Definition at line 123 of file Annotation.cs.

Constructor & Destructor Documentation

◆ AnnotationGroup()

MyCaffe.basecode.AnnotationGroup.AnnotationGroup ( List< Annotation rgAnnotations = null,
int  nGroupLabel = 0 
)

The constructor.

Parameters
rgAnnotationsOptionally, specifies the list of group annotations.
nGroupLabelSpecifies the group label.

Definition at line 133 of file Annotation.cs.

Member Function Documentation

◆ Clone()

AnnotationGroup MyCaffe.basecode.AnnotationGroup.Clone ( )

Create a copy of the annotation group.

Returns
A copy of the annotation group is returned.

Definition at line 145 of file Annotation.cs.

◆ GetMaxScoringAnnotation()

Annotation MyCaffe.basecode.AnnotationGroup.GetMaxScoringAnnotation ( )

Returns the maximum scoring annotation within a group.

Returns
The annotation with the maximum score is returned, or null if there are no annotations.

Definition at line 166 of file Annotation.cs.

◆ Load()

static AnnotationGroup MyCaffe.basecode.AnnotationGroup.Load ( BinaryReader  br)
static

Load an annotation group using the binary reader.

Parameters
brSpecifies the binary reader used to load the data.
Returns
The new AnnotationGroup loaded is returned.

Definition at line 236 of file Annotation.cs.

◆ Normalize()

void MyCaffe.basecode.AnnotationGroup.Normalize ( Rectangle  rc)

Normalize all annotations to the given rectangle.

Parameters
rcSpecifies the rectangle used to normalize all annotations.

Definition at line 190 of file Annotation.cs.

◆ Save()

void MyCaffe.basecode.AnnotationGroup.Save ( BinaryWriter  bw)

Save the annotation group to the binary writer.

Parameters
bwSpecifies the binary writer used to write the data.

Definition at line 220 of file Annotation.cs.

Property Documentation

◆ annotations

List<Annotation> MyCaffe.basecode.AnnotationGroup.annotations
getset

Get/set the group annoations.

Definition at line 201 of file Annotation.cs.

◆ group_label

int MyCaffe.basecode.AnnotationGroup.group_label
getset

Get/set the group label.

Definition at line 210 of file Annotation.cs.


The documentation for this class was generated from the following file: