MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.basecode.NormalizedBBox Class Reference

The NormalizedBBox manages a bounding box used in SSD. More...

Public Member Functions

 NormalizedBBox (float fxmin, float fymin, float fxmax, float fymax, int nLabel=0, bool bDifficult=false, float fScore=0, float fSize=0)
 The constructor. More...
 
void Set (float fxmin, float fymin, float fxmax, float fymax, int? nLabel=null, bool? bDifficult=null, float? fScore=null, float? fSize=null)
 Set the values of the NormalizedBbox. More...
 
NormalizedBBox Clone ()
 Return a copy of the object. More...
 
void Save (BinaryWriter bw)
 Save the NormalizedBbox using the binary writer. More...
 
override string ToString ()
 Returns a string representation of the NormalizedBBox. More...
 
RectangleF GetBounds (int nWidth, int nHeight)
 Calculates and returns the non-normalized bounding rectangle based in the specified width and height. More...
 

Static Public Member Functions

static NormalizedBBox Load (BinaryReader br)
 Load and return a new NormalizedBbox. More...
 

Properties

float xmin [getset]
 Get/set the x minimum. More...
 
float xmax [getset]
 Get/set the x maximum. More...
 
float ymin [getset]
 Get/set the y minimum. More...
 
float ymax [getset]
 Get/set the y maximum. More...
 
int label [getset]
 Get/set the label. More...
 
bool difficult [getset]
 Get/set the difficulty. More...
 
float score [getset]
 Get/set the score. More...
 
float size [getset]
 Get/set the size. More...
 

Detailed Description

The NormalizedBBox manages a bounding box 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 19 of file NormalizedBBox.cs.

Constructor & Destructor Documentation

◆ NormalizedBBox()

MyCaffe.basecode.NormalizedBBox.NormalizedBBox ( float  fxmin,
float  fymin,
float  fxmax,
float  fymax,
int  nLabel = 0,
bool  bDifficult = false,
float  fScore = 0,
float  fSize = 0 
)

The constructor.

Parameters
fxminSpecifies the bounding box x minimum.
fyminSpecifies the bounding box y minimum.
fxmaxSpecifies the bounding box x maximum.
fymaxSpecifies the bounding box y maximum.
nLabelSpecifies the label.
bDifficultSpecifies the difficulty.
fScoreSpecifies the score.
fSizeSpecifies the size.

Definition at line 41 of file NormalizedBBox.cs.

Member Function Documentation

◆ Clone()

NormalizedBBox MyCaffe.basecode.NormalizedBBox.Clone ( )

Return a copy of the object.

Returns
A new copy of the object is returned.

Definition at line 81 of file NormalizedBBox.cs.

◆ GetBounds()

RectangleF MyCaffe.basecode.NormalizedBBox.GetBounds ( int  nWidth,
int  nHeight 
)

Calculates and returns the non-normalized bounding rectangle based in the specified width and height.

Parameters
nWidthSpecifies the non-normalized width.
nHeightSpecifies the non-normalized height.
Returns
The non-normalized bounding rectangle is returned.

Definition at line 218 of file NormalizedBBox.cs.

◆ Load()

static NormalizedBBox MyCaffe.basecode.NormalizedBBox.Load ( BinaryReader  br)
static

Load and return a new NormalizedBbox.

Parameters
brSpecifies the binary reader used to load the data.
Returns
The newly loaded NormalizedBbox is returned.

Definition at line 179 of file NormalizedBBox.cs.

◆ Save()

void MyCaffe.basecode.NormalizedBBox.Save ( BinaryWriter  bw)

Save the NormalizedBbox using the binary writer.

Parameters
bwSpecifies the binary writer used to save the data.

Definition at line 162 of file NormalizedBBox.cs.

◆ Set()

void MyCaffe.basecode.NormalizedBBox.Set ( float  fxmin,
float  fymin,
float  fxmax,
float  fymax,
int?  nLabel = null,
bool?  bDifficult = null,
float?  fScore = null,
float?  fSize = null 
)

Set the values of the NormalizedBbox.

Parameters
fxminSpecifies the bounding box x minimum.
fyminSpecifies the bounding box y minimum.
fxmaxSpecifies the bounding box x maximum.
fymaxSpecifies the bounding box y maximum.
nLabelOptionally, specifies the label (default = null, which is ignored).
bDifficultOptionally, specifies the difficulty (default = null, which is ignored).
fScoreOptionally, specifies the score (default = null, which is ignored).
fSizeOptionally, specifies the size (default = null, which is ignored).

Definition at line 57 of file NormalizedBBox.cs.

◆ ToString()

override string MyCaffe.basecode.NormalizedBBox.ToString ( )

Returns a string representation of the NormalizedBBox.

Returns
The string representation is returned.

Definition at line 197 of file NormalizedBBox.cs.

Property Documentation

◆ difficult

bool MyCaffe.basecode.NormalizedBBox.difficult
getset

Get/set the difficulty.

Definition at line 134 of file NormalizedBBox.cs.

◆ label

int MyCaffe.basecode.NormalizedBBox.label
getset

Get/set the label.

Definition at line 125 of file NormalizedBBox.cs.

◆ score

float MyCaffe.basecode.NormalizedBBox.score
getset

Get/set the score.

Definition at line 143 of file NormalizedBBox.cs.

◆ size

float MyCaffe.basecode.NormalizedBBox.size
getset

Get/set the size.

Definition at line 152 of file NormalizedBBox.cs.

◆ xmax

float MyCaffe.basecode.NormalizedBBox.xmax
getset

Get/set the x maximum.

Definition at line 98 of file NormalizedBBox.cs.

◆ xmin

float MyCaffe.basecode.NormalizedBBox.xmin
getset

Get/set the x minimum.

Definition at line 89 of file NormalizedBBox.cs.

◆ ymax

float MyCaffe.basecode.NormalizedBBox.ymax
getset

Get/set the y maximum.

Definition at line 116 of file NormalizedBBox.cs.

◆ ymin

float MyCaffe.basecode.NormalizedBBox.ymin
getset

Get/set the y minimum.

Definition at line 107 of file NormalizedBBox.cs.


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