2using System.Collections.Generic;
7using System.Threading.Tasks;
20 [TypeConverter(typeof(ExpandableObjectConverter))]
24 float m_fEmitOverlap = 0;
52 [Description(
"Get/set the emit type.")]
55 get {
return m_emitType; }
56 set { m_emitType = value; }
62 [Description(
"Get/set the emit overlap used with MIN_OVERLAP.")]
65 get {
return m_fEmitOverlap; }
66 set { m_fEmitOverlap = value; }
103 RawProto rpBase = base.ToProto(
"option");
106 rgChildren.
Add(rpBase);
107 rgChildren.
Add(
new RawProto(
"emit_type", m_emitType.ToString()));
108 rgChildren.
Add(
new RawProto(
"emit_overlap", m_fEmitOverlap.ToString()));
110 return new RawProto(strName,
"", rgChildren);
124 if (rpOption !=
null)
127 if ((strVal = rp.
FindValue(
"emit_type")) !=
null)
140 throw new Exception(
"Unknown emit_type '" + strVal +
"'!");
144 if ((strVal = rp.
FindValue(
"emit_overlap")) !=
null)
The BaseParameter class is the base class for all other parameter classes.
static float ParseFloat(string strVal)
Parse float values using the US culture if the decimal separator = '.', then using the native culture...
The RawProtoCollection class is a list of RawProto objects.
void Add(RawProto p)
Adds a RawProto to the collection.
The RawProto class is used to parse and output Google prototxt file data.
RawProto FindChild(string strName)
Searches for a given node.
string FindValue(string strName)
Searches for a falue of a node within this nodes children.
The OptionalParameter is the base class for parameters that are optional such as the MaskParameter,...
static OptionalParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
OptionalParameter(bool bActive=false)
The constructor.
bool Active
When active, the parameter is used, otherwise it is ignored.
Specifies the parameters for the EmitConstraint used with SSD.
EmitType emit_type
Get/set the emit type.
float emit_overlap
Get/set the emit overlap used with MIN_OVERLAP.
EmitType
Specifies the emit type.
override void Copy(OptionalParameter src)
Copy the source object.
override RawProto ToProto(string strName)
Convert this object to a raw proto.
EmitConstraint Clone()
Return a copy of this object.
static new EmitConstraint FromProto(RawProto rp)
Parses the parameter from a RawProto.
EmitConstraint(bool bActive)
The constructor.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe.param.ssd namespace contains all SSD related parameter objects that correspond to the nat...
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...