MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.param.ssd.LabelMapItem Class Reference

The LabelMapItem class stores the information for a single label. More...

Public Member Functions

 LabelMapItem (int nLabel=0, string strName=null, string strDisplay=null)
 The constructor. More...
 
void Copy (LabelMapItem src)
 Copy the source object. More...
 
LabelMapItem Clone ()
 Return a copy of this object. More...
 
RawProto ToProto (string strName)
 Convert this object to a raw proto. More...
 

Static Public Member Functions

static LabelMapItem FromProto (RawProto rp)
 Parses the parameter from a RawProto. More...
 

Properties

string name [getset]
 Get/set the label name. More...
 
string display [getset]
 Optionally, get/set the display name for the label. More...
 
int label [getset]
 Get/set the label id. More...
 

Detailed Description

The LabelMapItem class stores the information for a single label.

Definition at line 209 of file LabelMap.cs.

Constructor & Destructor Documentation

◆ LabelMapItem()

MyCaffe.param.ssd.LabelMapItem.LabelMapItem ( int  nLabel = 0,
string  strName = null,
string  strDisplay = null 
)

The constructor.

Parameters
nLabelOptionally, specify the label id (default = 0).
strNameOptionally, specify the label name (default = null).
strDisplayOptionally, specify the label display name (default = null).

Definition at line 221 of file LabelMap.cs.

Member Function Documentation

◆ Clone()

LabelMapItem MyCaffe.param.ssd.LabelMapItem.Clone ( )

Return a copy of this object.

Returns
A new copy of the object is returned.

Definition at line 270 of file LabelMap.cs.

◆ Copy()

void MyCaffe.param.ssd.LabelMapItem.Copy ( LabelMapItem  src)

Copy the source object.

Parameters
srcSpecifies the source data.

Definition at line 259 of file LabelMap.cs.

◆ FromProto()

static LabelMapItem MyCaffe.param.ssd.LabelMapItem.FromProto ( RawProto  rp)
static

Parses the parameter from a RawProto.

Parameters
rpSpecifies the RawProto to parse.
Returns
A new instance of the parameter is returned.

Definition at line 298 of file LabelMap.cs.

◆ ToProto()

RawProto MyCaffe.param.ssd.LabelMapItem.ToProto ( string  strName)

Convert this object to a raw proto.

Parameters
strNameSpecifies the name of the proto.
Returns
The new proto is returned.

Definition at line 280 of file LabelMap.cs.

Property Documentation

◆ display

string MyCaffe.param.ssd.LabelMapItem.display
getset

Optionally, get/set the display name for the label.

Definition at line 240 of file LabelMap.cs.

◆ label

int MyCaffe.param.ssd.LabelMapItem.label
getset

Get/set the label id.

Definition at line 249 of file LabelMap.cs.

◆ name

string MyCaffe.param.ssd.LabelMapItem.name
getset

Get/set the label name.

Definition at line 231 of file LabelMap.cs.


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