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

Specifies the sample of a bbox in the normalized space [0,1] with provided constraints used in SSD. More...

Inheritance diagram for MyCaffe.param.ssd.Sampler:
MyCaffe.basecode.BaseParameter MyCaffe.basecode.IBinaryPersist

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...
 

Detailed Description

Specifies the sample of a bbox in the normalized space [0,1] with provided constraints 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 Sampler.cs.

Constructor & Destructor Documentation

◆ Sampler()

MyCaffe.param.ssd.Sampler.Sampler ( )

The Sample constructor.

Definition at line 31 of file Sampler.cs.

Member Function Documentation

◆ Clone()

Sampler MyCaffe.param.ssd.Sampler.Clone ( )

Creates a copy of the Sample.

Returns
A new instance of the Sample is returned.

Definition at line 119 of file Sampler.cs.

◆ Compare()

bool MyCaffe.param.ssd.Sampler.Compare ( Sampler  bs)

Compares this Sample to another.

Parameters
bsSpecifies the other Sample to compare this one to.
Returns
If the two Sample's are the same true is returned, otherwise false is returned.

Definition at line 145 of file Sampler.cs.

◆ CompareTo()

int MyCaffe.param.ssd.Sampler.CompareTo ( object  obj)

Compares this Sample to another.

Parameters
objSpecifies the other Sample to compare this one to.
Returns
If the two Sample's are the same true is returned, otherwise false is returned.

Definition at line 165 of file Sampler.cs.

◆ FromProto()

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

Parse a new Sample from a RawProto.

Parameters
rpSpecifies the RawProto containing a representation of the Sample.
Returns
A new instance of the Sample is returned.

Definition at line 200 of file Sampler.cs.

◆ Load() [1/2]

static Sampler MyCaffe.param.ssd.Sampler.Load ( BinaryReader  br)
static

Load the Sample from a binary reader.

Parameters
brThe binary reader to use.
Returns
A new Sample instance is returned.

Definition at line 73 of file Sampler.cs.

◆ Load() [2/2]

object MyCaffe.param.ssd.Sampler.Load ( BinaryReader  br,
bool  bNewInstance 
)

Load the Sample from a binary reader.

Parameters
brThe binary reader to use.
bNewInstanceWhen true, a the Sample is read into a new instance, otherwise it is read into the current instance.
Returns
The Sample instance is returned.

Implements MyCaffe.basecode.IBinaryPersist.

Definition at line 53 of file Sampler.cs.

◆ Save()

void MyCaffe.param.ssd.Sampler.Save ( BinaryWriter  bw)

Save the Sample to a binary writer.

Parameters
bwThe binary writer to use.

Implements MyCaffe.basecode.IBinaryPersist.

Definition at line 39 of file Sampler.cs.

◆ ToProto()

override RawProto MyCaffe.param.ssd.Sampler.ToProto ( string  strName)
virtual

Converts the Sample to a RawProto.

Parameters
strNameSpecifies a name for the RawProto.
Returns
A new RawProto representing the Sample is returned.

Implements MyCaffe.basecode.BaseParameter.

Definition at line 183 of file Sampler.cs.

◆ ToString()

override string MyCaffe.param.ssd.Sampler.ToString ( )

Return the string representation of the shape.

Returns
The string representation is returned.

Definition at line 222 of file Sampler.cs.

Property Documentation

◆ max_aspect_ratio

float MyCaffe.param.ssd.Sampler.max_aspect_ratio
getset

Get/set the maximum aspect ratio of the sampled bbox.

Definition at line 109 of file Sampler.cs.

◆ max_scale

float MyCaffe.param.ssd.Sampler.max_scale
getset

Get/set the maximum scale of the sampled bbox.

Definition at line 91 of file Sampler.cs.

◆ min_aspect_ratio

float MyCaffe.param.ssd.Sampler.min_aspect_ratio
getset

Get/set the minimum aspect ratio of the sampled bbox.

Definition at line 100 of file Sampler.cs.

◆ min_scale

float MyCaffe.param.ssd.Sampler.min_scale
getset

Get/set the minimum scale of the sampled bbox.

Definition at line 82 of file Sampler.cs.


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