The class represents a builder for PriorBoxClustered layer. More...
#include <ie_prior_box_clustered_layer.hpp>
Public Member Functions | |
PriorBoxClusteredLayer (const std::string &name="") | |
The constructor creates a builder with the name. More... | |
PriorBoxClusteredLayer (const Layer::Ptr &layer) | |
The constructor creates a builder from generic builder. More... | |
PriorBoxClusteredLayer (const Layer::CPtr &layer) | |
The constructor creates a builder from generic builder. More... | |
PriorBoxClusteredLayer & | setName (const std::string &name) |
Sets the name for the layer. More... | |
const Port & | getOutputPort () const |
Returns output port. More... | |
PriorBoxClusteredLayer & | setOutputPort (const Port &port) |
Sets output port. More... | |
const std::vector< Port > & | getInputPorts () const |
Returns input ports. More... | |
PriorBoxClusteredLayer & | setInputPorts (const std::vector< Port > &port) |
Sets input ports. More... | |
const std::vector< float > | getImgSizes () const |
Returns height and width of input image. More... | |
PriorBoxClusteredLayer & | setImgSizes (const std::vector< float > sizes) |
Sets height and width sizes. More... | |
const std::vector< float > | getSteps () const |
returns distances between (height and width) box centers More... | |
PriorBoxClusteredLayer & | setSteps (const std::vector< float > steps) |
Sets distances between box centers for height and width. More... | |
float | getStep () const |
returns a distance between box centers More... | |
PriorBoxClusteredLayer & | setStep (float step) |
Sets a distance between box centers. More... | |
float | getOffset () const |
Returns shift of box respectively to top left corner. More... | |
PriorBoxClusteredLayer & | setOffset (float offset) |
Sets shift of box respectively to top left corner. More... | |
float | getVariance () const |
Returns a variance of adjusting bounding boxes. More... | |
PriorBoxClusteredLayer & | setVariance (float variance) |
Sets a variance of adjusting bounding boxes. More... | |
float | getWidth () const |
Returns desired boxes width in pixels. More... | |
PriorBoxClusteredLayer & | setWidth (float width) |
Sets desired boxes width in pixels. More... | |
float | getHeight () const |
Returns desired boxes height in pixels. More... | |
PriorBoxClusteredLayer & | setHeight (float height) |
Sets desired boxes height in pixels. More... | |
bool | getClip () const |
Returns clip flag. More... | |
PriorBoxClusteredLayer & | setClip (bool flag) |
sets clip flag More... | |
bool | getFlip () const |
Returns flip flag. More... | |
PriorBoxClusteredLayer & | setFlip (bool flag) |
Sets flip flag. More... | |
Public Member Functions inherited from InferenceEngine::Builder::LayerDecorator | |
LayerDecorator (const std::string &type, const std::string &name) | |
The constructor creates layer builders with layer type and layer name. More... | |
LayerDecorator (const Layer::Ptr &layer) | |
The constructor creates layer builders from reference to generic layer builder. More... | |
LayerDecorator (const Layer::CPtr &layer) | |
The constructor creates layer builders from reference to generic layer builder. More... | |
LayerDecorator (const LayerDecorator &rval) | |
The copy constructor. More... | |
LayerDecorator & | operator= (const LayerDecorator &rval) |
Copy operator for LayerDecorator. More... | |
virtual | ~LayerDecorator ()=default |
Virtual destructor. | |
virtual | operator Layer () const |
The operator creates generic builder. More... | |
virtual | operator Layer::Ptr () |
The operator creates generic builder. More... | |
virtual | operator Layer::CPtr () const |
The operator creates generic builder. More... | |
const std::string & | getType () const |
Returns layer type. More... | |
const std::string & | getName () const |
Returns layer name. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from InferenceEngine::Builder::LayerDecorator | |
Layer::Ptr & | getLayer () |
const Layer::CPtr | getLayer () const |
void | checkType (const std::string &type) const |
Protected Attributes inherited from InferenceEngine::Builder::LayerDecorator | |
Layer::CPtr | cLayer |
The class represents a builder for PriorBoxClustered layer.
|
explicit |
The constructor creates a builder with the name.
name | Layer name |
|
explicit |
The constructor creates a builder from generic builder.
layer | pointer to generic builder |
|
explicit |
The constructor creates a builder from generic builder.
layer | constant pointer to generic builder |
bool InferenceEngine::Builder::PriorBoxClusteredLayer::getClip | ( | ) | const |
Returns clip flag.
bool InferenceEngine::Builder::PriorBoxClusteredLayer::getFlip | ( | ) | const |
Returns flip flag.
float InferenceEngine::Builder::PriorBoxClusteredLayer::getHeight | ( | ) | const |
Returns desired boxes height in pixels.
const std::vector<float> InferenceEngine::Builder::PriorBoxClusteredLayer::getImgSizes | ( | ) | const |
Returns height and width of input image.
const std::vector<Port>& InferenceEngine::Builder::PriorBoxClusteredLayer::getInputPorts | ( | ) | const |
Returns input ports.
float InferenceEngine::Builder::PriorBoxClusteredLayer::getOffset | ( | ) | const |
Returns shift of box respectively to top left corner.
const Port& InferenceEngine::Builder::PriorBoxClusteredLayer::getOutputPort | ( | ) | const |
Returns output port.
float InferenceEngine::Builder::PriorBoxClusteredLayer::getStep | ( | ) | const |
returns a distance between box centers
const std::vector<float> InferenceEngine::Builder::PriorBoxClusteredLayer::getSteps | ( | ) | const |
returns distances between (height and width) box centers
float InferenceEngine::Builder::PriorBoxClusteredLayer::getVariance | ( | ) | const |
Returns a variance of adjusting bounding boxes.
float InferenceEngine::Builder::PriorBoxClusteredLayer::getWidth | ( | ) | const |
Returns desired boxes width in pixels.
PriorBoxClusteredLayer& InferenceEngine::Builder::PriorBoxClusteredLayer::setClip | ( | bool | flag | ) |
sets clip flag
flag | true if each value in the output blob is within [0,1] |
PriorBoxClusteredLayer& InferenceEngine::Builder::PriorBoxClusteredLayer::setFlip | ( | bool | flag | ) |
Sets flip flag.
flag | true if list of boxes is augmented with the flipped ones |
PriorBoxClusteredLayer& InferenceEngine::Builder::PriorBoxClusteredLayer::setHeight | ( | float | height | ) |
Sets desired boxes height in pixels.
height | Height of desired boxes |
PriorBoxClusteredLayer& InferenceEngine::Builder::PriorBoxClusteredLayer::setImgSizes | ( | const std::vector< float > | sizes | ) |
Sets height and width sizes.
sizes | Height and width sizes |
PriorBoxClusteredLayer& InferenceEngine::Builder::PriorBoxClusteredLayer::setInputPorts | ( | const std::vector< Port > & | port | ) |
Sets input ports.
port | Vector of input ports |
PriorBoxClusteredLayer& InferenceEngine::Builder::PriorBoxClusteredLayer::setName | ( | const std::string & | name | ) |
PriorBoxClusteredLayer& InferenceEngine::Builder::PriorBoxClusteredLayer::setOffset | ( | float | offset | ) |
Sets shift of box respectively to top left corner.
offset | Shift |
PriorBoxClusteredLayer& InferenceEngine::Builder::PriorBoxClusteredLayer::setOutputPort | ( | const Port & | port | ) |
Sets output port.
port | Output port |
PriorBoxClusteredLayer& InferenceEngine::Builder::PriorBoxClusteredLayer::setStep | ( | float | step | ) |
Sets a distance between box centers.
steps | A distance between box centers |
PriorBoxClusteredLayer& InferenceEngine::Builder::PriorBoxClusteredLayer::setSteps | ( | const std::vector< float > | steps | ) |
Sets distances between box centers for height and width.
steps | Distances between box centers |
PriorBoxClusteredLayer& InferenceEngine::Builder::PriorBoxClusteredLayer::setVariance | ( | float | variance | ) |
Sets a variance of adjusting bounding boxes.
variance | Variance |
PriorBoxClusteredLayer& InferenceEngine::Builder::PriorBoxClusteredLayer::setWidth | ( | float | width | ) |
Sets desired boxes width in pixels.
width | Width of desired boxes |