MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
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... | |
The NormalizedBBox manages a bounding box used in SSD.
Definition at line 19 of file NormalizedBBox.cs.
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.
fxmin | Specifies the bounding box x minimum. |
fymin | Specifies the bounding box y minimum. |
fxmax | Specifies the bounding box x maximum. |
fymax | Specifies the bounding box y maximum. |
nLabel | Specifies the label. |
bDifficult | Specifies the difficulty. |
fScore | Specifies the score. |
fSize | Specifies the size. |
Definition at line 41 of file NormalizedBBox.cs.
NormalizedBBox MyCaffe.basecode.NormalizedBBox.Clone | ( | ) |
Return a copy of the object.
Definition at line 81 of file NormalizedBBox.cs.
RectangleF MyCaffe.basecode.NormalizedBBox.GetBounds | ( | int | nWidth, |
int | nHeight | ||
) |
Calculates and returns the non-normalized bounding rectangle based in the specified width and height.
nWidth | Specifies the non-normalized width. |
nHeight | Specifies the non-normalized height. |
Definition at line 218 of file NormalizedBBox.cs.
|
static |
Load and return a new NormalizedBbox.
br | Specifies the binary reader used to load the data. |
Definition at line 179 of file NormalizedBBox.cs.
void MyCaffe.basecode.NormalizedBBox.Save | ( | BinaryWriter | bw | ) |
Save the NormalizedBbox using the binary writer.
bw | Specifies the binary writer used to save the data. |
Definition at line 162 of file NormalizedBBox.cs.
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.
fxmin | Specifies the bounding box x minimum. |
fymin | Specifies the bounding box y minimum. |
fxmax | Specifies the bounding box x maximum. |
fymax | Specifies the bounding box y maximum. |
nLabel | Optionally, specifies the label (default = null, which is ignored). |
bDifficult | Optionally, specifies the difficulty (default = null, which is ignored). |
fScore | Optionally, specifies the score (default = null, which is ignored). |
fSize | Optionally, specifies the size (default = null, which is ignored). |
Definition at line 57 of file NormalizedBBox.cs.
override string MyCaffe.basecode.NormalizedBBox.ToString | ( | ) |
Returns a string representation of the NormalizedBBox.
Definition at line 197 of file NormalizedBBox.cs.
|
getset |
Get/set the difficulty.
Definition at line 134 of file NormalizedBBox.cs.
|
getset |
Get/set the label.
Definition at line 125 of file NormalizedBBox.cs.
|
getset |
Get/set the score.
Definition at line 143 of file NormalizedBBox.cs.
|
getset |
Get/set the size.
Definition at line 152 of file NormalizedBBox.cs.
|
getset |
Get/set the x maximum.
Definition at line 98 of file NormalizedBBox.cs.
|
getset |
Get/set the x minimum.
Definition at line 89 of file NormalizedBBox.cs.
|
getset |
Get/set the y maximum.
Definition at line 116 of file NormalizedBBox.cs.
|
getset |
Get/set the y minimum.
Definition at line 107 of file NormalizedBBox.cs.