OpenCV  3.1.0-dev
Open Source Computer Vision
Public Types | Static Public Member Functions | Public Attributes | List of all members
cv::dnn::PoolingLayer Class Reference

#include "all_layers.hpp"

Inheritance diagram for cv::dnn::PoolingLayer:
cv::dnn::Layer

Public Types

enum  Type {
  MAX,
  AVE,
  STOCHASTIC
}
 

Static Public Member Functions

static Ptr< PoolingLayercreate (int type=MAX, Size kernel=Size(2, 2), Size stride=Size(1, 1), Size pad=Size(0, 0))
 

Public Attributes

Size kernel
 
Size pad
 
Size stride
 
int type
 
- Public Attributes inherited from cv::dnn::Layer
std::vector< Blobblobs
 List of learned parameters must be stored here to allow read them by using Net::getParam(). More...
 
String name
 Name of the layer instance, can be used for logging or other internal purposes. More...
 
String type
 Type name which was used for creating layer by layer factory. More...
 

Additional Inherited Members

- Public Member Functions inherited from cv::dnn::Layer
 Layer ()
 
 Layer (const LayerParams &params)
 Initializes only name, type and blobs fields. More...
 
virtual ~Layer ()
 
virtual void allocate (const std::vector< Blob * > &input, std::vector< Blob > &output)=0
 Allocates internal buffers and output blobs with respect to the shape of inputs. More...
 
virtual void forward (std::vector< Blob * > &input, std::vector< Blob > &output)=0
 Given the input blobs, computes the output blobs. More...
 
virtual int inputNameToIndex (String inputName)
 Returns index of input blob into the input array. More...
 
virtual int outputNameToIndex (String outputName)
 Returns index of output blob in output array. More...
 
void setParamsFrom (const LayerParams &params)
 Initializes only name, type and blobs fields. More...
 

Member Enumeration Documentation

Enumerator
MAX 
AVE 
STOCHASTIC 

Member Function Documentation

static Ptr<PoolingLayer> cv::dnn::PoolingLayer::create ( int  type = MAX,
Size  kernel = Size(2, 2),
Size  stride = Size(1, 1),
Size  pad = Size(0, 0) 
)
static

Member Data Documentation

Size cv::dnn::PoolingLayer::kernel
Size cv::dnn::PoolingLayer::pad
Size cv::dnn::PoolingLayer::stride
int cv::dnn::PoolingLayer::type

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