MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
Specifies the sample of a bbox in the normalized space [0,1] with provided constraints used in SSD. More...
Public Member Functions | |
Sampler () | |
The Sample constructor. More... | |
void | Save (BinaryWriter bw) |
Save the Sample to a binary writer. More... | |
object | Load (BinaryReader br, bool bNewInstance) |
Load the Sample from a binary reader. More... | |
Sampler | Clone () |
Creates a copy of the Sample. More... | |
bool | Compare (Sampler bs) |
Compares this Sample to another. More... | |
int | CompareTo (object obj) |
Compares this Sample to another. More... | |
override RawProto | ToProto (string strName) |
Converts the Sample to a RawProto. More... | |
override string | ToString () |
Return the string representation of the shape. More... | |
Public Member Functions inherited from MyCaffe.basecode.BaseParameter | |
BaseParameter () | |
Constructor for the parameter. More... | |
virtual bool | Compare (BaseParameter p) |
Compare this parameter to another parameter. More... | |
Static Public Member Functions | |
static Sampler | Load (BinaryReader br) |
Load the Sample from a binary reader. More... | |
static Sampler | FromProto (RawProto rp) |
Parse a new Sample from a RawProto. More... | |
Static Public Member Functions inherited from MyCaffe.basecode.BaseParameter | |
static double | ParseDouble (string strVal) |
Parse double values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More... | |
static bool | TryParse (string strVal, out double df) |
Parse double values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More... | |
static float | ParseFloat (string strVal) |
Parse float values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More... | |
static bool | TryParse (string strVal, out float f) |
Parse doufloatble values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More... | |
Properties | |
float | min_scale [getset] |
Get/set the minimum scale of the sampled bbox. More... | |
float | max_scale [getset] |
Get/set the maximum scale of the sampled bbox. More... | |
float | min_aspect_ratio [getset] |
Get/set the minimum aspect ratio of the sampled bbox. More... | |
float | max_aspect_ratio [getset] |
Get/set the maximum aspect ratio of the sampled bbox. More... | |
Specifies the sample of a bbox in the normalized space [0,1] with provided constraints used in SSD.
Definition at line 21 of file Sampler.cs.
MyCaffe.param.ssd.Sampler.Sampler | ( | ) |
The Sample constructor.
Definition at line 31 of file Sampler.cs.
Sampler MyCaffe.param.ssd.Sampler.Clone | ( | ) |
Creates a copy of the Sample.
Definition at line 119 of file Sampler.cs.
bool MyCaffe.param.ssd.Sampler.Compare | ( | Sampler | bs | ) |
Compares this Sample to another.
bs | Specifies the other Sample to compare this one to. |
Definition at line 145 of file Sampler.cs.
int MyCaffe.param.ssd.Sampler.CompareTo | ( | object | obj | ) |
Compares this Sample to another.
obj | Specifies the other Sample to compare this one to. |
Definition at line 165 of file Sampler.cs.
Parse a new Sample from a RawProto.
rp | Specifies the RawProto containing a representation of the Sample. |
Definition at line 200 of file Sampler.cs.
|
static |
Load the Sample from a binary reader.
br | The binary reader to use. |
Definition at line 73 of file Sampler.cs.
object MyCaffe.param.ssd.Sampler.Load | ( | BinaryReader | br, |
bool | bNewInstance | ||
) |
Load the Sample from a binary reader.
br | The binary reader to use. |
bNewInstance | When true, a the Sample is read into a new instance, otherwise it is read into the current instance. |
Implements MyCaffe.basecode.IBinaryPersist.
Definition at line 53 of file Sampler.cs.
void MyCaffe.param.ssd.Sampler.Save | ( | BinaryWriter | bw | ) |
Save the Sample to a binary writer.
bw | The binary writer to use. |
Implements MyCaffe.basecode.IBinaryPersist.
Definition at line 39 of file Sampler.cs.
|
virtual |
Converts the Sample to a RawProto.
strName | Specifies a name for the RawProto. |
Implements MyCaffe.basecode.BaseParameter.
Definition at line 183 of file Sampler.cs.
override string MyCaffe.param.ssd.Sampler.ToString | ( | ) |
Return the string representation of the shape.
Definition at line 222 of file Sampler.cs.
|
getset |
Get/set the maximum aspect ratio of the sampled bbox.
Definition at line 109 of file Sampler.cs.
|
getset |
Get/set the maximum scale of the sampled bbox.
Definition at line 91 of file Sampler.cs.
|
getset |
Get/set the minimum aspect ratio of the sampled bbox.
Definition at line 100 of file Sampler.cs.
|
getset |
Get/set the minimum scale of the sampled bbox.
Definition at line 82 of file Sampler.cs.