2using System.Collections.Generic;
7using System.Threading.Tasks;
16 [TypeConverter(typeof(ExpandableObjectConverter))]
22 int m_nMaskBottom = 0;
35 [Description(
"Defines the left side of the masked boundary where 'x' positions >= this value are masked.")]
38 get {
return m_nMaskLeft; }
39 set { m_nMaskLeft = value; }
45 [Description(
"Defines the right side of the masked boundary where 'x' positions <= this value are masked.")]
48 get {
return m_nMaskRight; }
49 set { m_nMaskRight = value; }
55 [Description(
"Defines the top side of the masked boundary where 'y' positions >= this value are masked.")]
58 get {
return m_nMaskTop; }
59 set { m_nMaskTop = value; }
65 [Description(
"Defines the bottom side of the masked boundary where 'y' positions <= this value are masked.")]
68 get {
return m_nMaskBottom; }
69 set { m_nMaskBottom = value; }
101 m_nMaskLeft = p.m_nMaskLeft;
102 m_nMaskRight = p.m_nMaskRight;
103 m_nMaskTop = p.m_nMaskTop;
104 m_nMaskBottom = p.m_nMaskBottom;
126 RawProto rpBase = base.ToProto(
"option");
129 rgChildren.
Add(rpBase);
135 return new RawProto(strName,
"", rgChildren);
149 if (rpOption !=
null)
152 if ((strVal = rp.
FindValue(
"boundary_left")) !=
null)
155 if ((strVal = rp.
FindValue(
"boundary_right")) !=
null)
158 if ((strVal = rp.
FindValue(
"boundary_top")) !=
null)
161 if ((strVal = rp.
FindValue(
"boundary_bottom")) !=
null)
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.
static RawProto Parse(string str)
Parses a prototxt and places it in a new RawProto.
string FindValue(string strName)
Searches for a falue of a node within this nodes children.
Specifies the parameters for the MaskParameter used to mask portions of the transformed data when act...
override RawProto ToProto(string strName)
Convert this object to a raw proto.
static new MaskParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
MaskParameter Clone()
Return a copy of this object.
MaskParameter(bool bActive)
The constructor.
int boundary_bottom
Get/set the mask boundary bottom.
MaskParameter Load(BinaryReader br, bool bNewInstance=true)
Load the and return a new MaskParameter.
int boundary_left
Get/set the mask boundary left.
override void Copy(OptionalParameter src)
Copy the source object.
int boundary_right
Get/set the mask boundary left.
int boundary_top
Get/set the mask boundary top.
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.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe.param namespace contains parameters used to create models.
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...