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

Specifies the parameters for the ResizeParameter for use with SSD. More...

Inheritance diagram for MyCaffe.param.ssd.ResizeParameter:
MyCaffe.param.OptionalParameter

Public Types

enum  ResizeMode { WARP = 1 , FIT_SMALL_SIZE = 2 , FIT_LARGE_SIZE_AND_PAD = 3 }
 Defines the resizing mode. More...
 
enum  PadMode { CONSTANT = 1 , MIRRORED = 2 , REPEAT_NEAREST = 3 }
 Defines the padding mode. More...
 
enum  InterpMode {
  LINEAR = 1 , AREA = 2 , NEAREST = 3 , CUBIC = 4 ,
  LANCZOS4 = 5
}
 Defines the interpolation mode. More...
 

Public Member Functions

 ResizeParameter (bool bActive)
 The constructor. More...
 
ResizeParameter Load (BinaryReader br, bool bNewInstance=true)
 Load the and return a new ResizeParameter. More...
 
override void Copy (OptionalParameter src)
 Copy the source object. More...
 
ResizeParameter Clone ()
 Return a copy of this object. More...
 
override RawProto ToProto (string strName)
 Convert this object to a raw proto. More...
 
- Public Member Functions inherited from MyCaffe.param.OptionalParameter
 OptionalParameter (bool bActive=false)
 The constructor. More...
 

Static Public Member Functions

static new ResizeParameter FromProto (RawProto rp)
 Parses the parameter from a RawProto. More...
 
- Static Public Member Functions inherited from MyCaffe.param.OptionalParameter
static OptionalParameter FromProto (RawProto rp)
 Parses the parameter from a RawProto. More...
 

Properties

float prob [getset]
 Get/set probability of using this resize policy. More...
 
ResizeMode resize_mode [getset]
 Get/set the resizing mode. More...
 
uint height [getset]
 Get/set the resizing height. More...
 
uint width [getset]
 Get/set the resizing width. More...
 
uint height_scale [getset]
 Get/set the resizing height scale used with FIT_SMALL_SIZE mode. More...
 
uint width_scale [getset]
 Get/set the resizing width scale used with FIT_SMALL_SIZE_mode. More...
 
PadMode pad_mode [getset]
 Get/set the pad mode for FIT_LARGE_SIZE_AND_PAD mode. More...
 
List< float > pad_value [getset]
 Get/set the pad value which is repeated once for all channels, or provided one pad value per channel. More...
 
List< InterpModeinterp_mode [getset]
 Get/set the interp mode which is repeated once for all channels, or provided once per channel. More...
 
- Properties inherited from MyCaffe.param.OptionalParameter
bool Active [getset]
 When active, the parameter is used, otherwise it is ignored. More...
 

Detailed Description

Specifies the parameters for the ResizeParameter for use with 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 ResizeParameter.cs.

Member Enumeration Documentation

◆ InterpMode

Defines the interpolation mode.

Enumerator
LINEAR 

Use linear interpolation.

AREA 

Use area interpolation.

NEAREST 

Use nearest neighbor interpolation.

CUBIC 

Use cubic interpolation.

LANCZOS4 

Use LanCZos4 interpolation.

Definition at line 74 of file ResizeParameter.cs.

◆ PadMode

Defines the padding mode.

Enumerator
CONSTANT 

Use constant padding.

MIRRORED 

Use mirrored padding.

REPEAT_NEAREST 

Repeat the nearest padding.

Definition at line 55 of file ResizeParameter.cs.

◆ ResizeMode

Defines the resizing mode.

Enumerator
WARP 

Specifies to warp the sizing.

FIT_SMALL_SIZE 

Specifies to fit into a small size.

FIT_LARGE_SIZE_AND_PAD 

Specifies to fit into a large padded size.

Definition at line 36 of file ResizeParameter.cs.

Constructor & Destructor Documentation

◆ ResizeParameter()

MyCaffe.param.ssd.ResizeParameter.ResizeParameter ( bool  bActive)

The constructor.

Parameters
bActiveSpecifies whether or not the parameter is active or not.

Definition at line 102 of file ResizeParameter.cs.

Member Function Documentation

◆ Clone()

ResizeParameter MyCaffe.param.ssd.ResizeParameter.Clone ( )

Return a copy of this object.

Returns
A new copy of the object is returned.

Definition at line 252 of file ResizeParameter.cs.

◆ Copy()

override void MyCaffe.param.ssd.ResizeParameter.Copy ( OptionalParameter  src)
virtual

Copy the source object.

Parameters
srcSpecifies the source data.

Reimplemented from MyCaffe.param.OptionalParameter.

Definition at line 218 of file ResizeParameter.cs.

◆ FromProto()

static new ResizeParameter MyCaffe.param.ssd.ResizeParameter.FromProto ( RawProto  rp)
static

Parses the parameter from a RawProto.

Parameters
rpSpecifies the RawProto to parse.
Returns
A new instance of the parameter is returned.

Definition at line 297 of file ResizeParameter.cs.

◆ Load()

ResizeParameter MyCaffe.param.ssd.ResizeParameter.Load ( BinaryReader  br,
bool  bNewInstance = true 
)

Load the and return a new ResizeParameter.

Parameters
br
bNewInstance
Returns
The new object is returned.

Definition at line 203 of file ResizeParameter.cs.

◆ ToProto()

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

Convert this object to a raw proto.

Parameters
strNameSpecifies the name of the proto.
Returns
The new proto is returned.

Reimplemented from MyCaffe.param.OptionalParameter.

Definition at line 264 of file ResizeParameter.cs.

Property Documentation

◆ height

uint MyCaffe.param.ssd.ResizeParameter.height
getset

Get/set the resizing height.

Definition at line 130 of file ResizeParameter.cs.

◆ height_scale

uint MyCaffe.param.ssd.ResizeParameter.height_scale
getset

Get/set the resizing height scale used with FIT_SMALL_SIZE mode.

Definition at line 150 of file ResizeParameter.cs.

◆ interp_mode

List<InterpMode> MyCaffe.param.ssd.ResizeParameter.interp_mode
getset

Get/set the interp mode which is repeated once for all channels, or provided once per channel.

Definition at line 190 of file ResizeParameter.cs.

◆ pad_mode

PadMode MyCaffe.param.ssd.ResizeParameter.pad_mode
getset

Get/set the pad mode for FIT_LARGE_SIZE_AND_PAD mode.

Definition at line 170 of file ResizeParameter.cs.

◆ pad_value

List<float> MyCaffe.param.ssd.ResizeParameter.pad_value
getset

Get/set the pad value which is repeated once for all channels, or provided one pad value per channel.

Definition at line 180 of file ResizeParameter.cs.

◆ prob

float MyCaffe.param.ssd.ResizeParameter.prob
getset

Get/set probability of using this resize policy.

Definition at line 110 of file ResizeParameter.cs.

◆ resize_mode

ResizeMode MyCaffe.param.ssd.ResizeParameter.resize_mode
getset

Get/set the resizing mode.

Definition at line 120 of file ResizeParameter.cs.

◆ width

uint MyCaffe.param.ssd.ResizeParameter.width
getset

Get/set the resizing width.

Definition at line 140 of file ResizeParameter.cs.

◆ width_scale

uint MyCaffe.param.ssd.ResizeParameter.width_scale
getset

Get/set the resizing width scale used with FIT_SMALL_SIZE_mode.

Definition at line 160 of file ResizeParameter.cs.


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