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

The Annotation class is used by annotations attached to SimpleDatum's and used in SSD. More...

Public Member Functions

 Annotation (NormalizedBBox bbox, int nInstanceId=0)
 The constructor. More...
 
Annotation Clone ()
 Returns a copy of the Annotation. More...
 
void Normalize (Rectangle rc)
 Normalize all annotations to the given rectangle. More...
 
void Save (BinaryWriter bw)
 Save the annotation data using the binary writer. More...
 

Static Public Member Functions

static Annotation Load (BinaryReader br)
 Load the annotation using a binary reader. More...
 

Properties

int instance_id [getset]
 Get/set the instance ID. More...
 
NormalizedBBox bbox [getset]
 Get/set the bounding box. More...
 

Detailed Description

The Annotation class is used by annotations attached to SimpleDatum's and used in SSD.

See also
SSD: Single Shot MultiBox Detector by Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, Alexander C. Berg, 2016.
GitHub: SSD: Single Shot MultiBox Detector, by weiliu89/caffe, 2016

Definition at line 21 of file Annotation.cs.

Constructor & Destructor Documentation

◆ Annotation()

MyCaffe.basecode.Annotation.Annotation ( NormalizedBBox  bbox,
int  nInstanceId = 0 
)

The constructor.

Parameters
bboxSpecifies the bounding box.
nInstanceIdSpecifies the instance ID.

Definition at line 31 of file Annotation.cs.

Member Function Documentation

◆ Clone()

Annotation MyCaffe.basecode.Annotation.Clone ( )

Returns a copy of the Annotation.

Returns
A new copy of the annotation is returned.

Definition at line 41 of file Annotation.cs.

◆ Load()

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

Load the annotation using a binary reader.

Parameters
brSpecifies the binary reader used to load the data.
Returns
The newly loaded annoation is returned.

Definition at line 110 of file Annotation.cs.

◆ Normalize()

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

Normalize all annotations to the given rectangle.

Parameters
rcSpecifies the rectangle used to normalize all annotations.

Definition at line 73 of file Annotation.cs.

◆ Save()

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

Save the annotation data using the binary writer.

Parameters
bwSpecifies the binary writer used to save the data.

Definition at line 99 of file Annotation.cs.

Property Documentation

◆ bbox

NormalizedBBox MyCaffe.basecode.Annotation.bbox
getset

Get/set the bounding box.

Definition at line 63 of file Annotation.cs.

◆ instance_id

int MyCaffe.basecode.Annotation.instance_id
getset

Get/set the instance ID.

Definition at line 54 of file Annotation.cs.


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