42#ifndef OPENCV_DNN_DNN_ALL_LAYERS_HPP
43#define OPENCV_DNN_DNN_ALL_LAYERS_HPP
44#include <opencv2/dnn.hpp>
48CV__DNN_INLINE_NS_BEGIN
128 CV_DEPRECATED
virtual void setWeights(
const Mat &Wh,
const Mat &Wx,
const Mat &b) = 0;
134 virtual void setOutShape(
const MatShape &outTailShape = MatShape()) = 0;
145 CV_DEPRECATED
virtual void setUseTimstampsDim(
bool use =
true) = 0;
151 CV_DEPRECATED
virtual void setProduceCellOutput(
bool produce =
false) = 0;
213 CV_DEPRECATED_EXTERNAL
Size kernel, stride, pad, dilation, adjustPad;
214 std::vector<size_t> adjust_pads;
215 std::vector<size_t> kernel_size, strides, dilations;
216 std::vector<size_t> pads_begin, pads_end;
239 float alpha, beta, bias;
249 std::vector<size_t> kernel_size, strides;
250 std::vector<size_t> pads_begin, pads_end;
252 std::vector<bool> isGlobalPooling;
259 bool avePoolPaddedArea;
264 int psRoiOutChannels;
288 bool normVariance, acrossChannels;
298 MatShape newShapeDesc;
367 std::vector<std::vector<int> > sliceSteps;
427 virtual void forwardSlice(
const float* src,
float* dst,
int len,
428 size_t outPlaneSize,
int cn0,
int cn1)
const = 0;
442 float minValue, maxValue;
498 float power, scale, shift;
506 float base, scale, shift;
535 bool hasWeights, hasBias;
652 float pnorm, epsilon;
653 CV_DEPRECATED_EXTERNAL
bool acrossSpatial;
n-dimensional dense array class
Definition: mat.hpp:802
Template class specifying a continuous subsequence (slice) of a sequence.
Definition: core/types.hpp:590
Template class for specifying the size of an image or rectangle.
Definition: core/types.hpp:316
Definition: all_layers.hpp:490
Definition: all_layers.hpp:579
Definition: all_layers.hpp:425
Definition: all_layers.hpp:484
Definition: all_layers.hpp:211
Definition: all_layers.hpp:533
Definition: all_layers.hpp:75
Definition: all_layers.hpp:448
Definition: all_layers.hpp:311
bool padding
Add zero padding in case of concatenation of blobs with different spatial sizes.
Definition: all_layers.hpp:320
Definition: all_layers.hpp:84
Definition: all_layers.hpp:222
Definition: all_layers.hpp:573
Definition: all_layers.hpp:687
Definition: all_layers.hpp:514
Definition: all_layers.hpp:567
Definition: all_layers.hpp:228
Detection output layer.
Definition: all_layers.hpp:619
Definition: all_layers.hpp:454
Element wise operation on inputs
Definition: all_layers.hpp:527
Definition: all_layers.hpp:504
Definition: all_layers.hpp:305
Definition: all_layers.hpp:585
Definition: all_layers.hpp:278
Bilinear resize layer from https://github.com/cdmh/deeplab-public-ver2
Definition: all_layers.hpp:675
Definition: all_layers.hpp:234
LSTM recurrent layer
Definition: all_layers.hpp:91
static Ptr< LSTMLayer > create(const LayerParams ¶ms)
virtual void setOutShape(const MatShape &outTailShape=MatShape())=0
Specifies shape of output blob which will be [[T], N] + outTailShape.
int outputNameToIndex(const String &outputName) CV_OVERRIDE
Returns index of output blob in output array.
int inputNameToIndex(String inputName) CV_OVERRIDE
Returns index of input blob into the input array.
This interface class allows to build new Layers - are building blocks of networks.
Definition: dnn/dnn.hpp:196
This class provides all data needed to initialize layer.
Definition: dnn/dnn.hpp:121
Definition: all_layers.hpp:285
Definition: all_layers.hpp:542
Definition: all_layers.hpp:472
- normalization layer.
Definition: all_layers.hpp:650
Adds extra values for specific axes.
Definition: all_layers.hpp:418
Definition: all_layers.hpp:375
Definition: all_layers.hpp:246
bool globalPooling
Flag is true if at least one of the axes is global pooled.
Definition: all_layers.hpp:251
Definition: all_layers.hpp:496
Definition: all_layers.hpp:591
Definition: all_layers.hpp:681
Classical recurrent layer
Definition: all_layers.hpp:182
virtual void setWeights(const Mat &Wxh, const Mat &bh, const Mat &Whh, const Mat &Who, const Mat &bo)=0
virtual void setProduceHiddenOutput(bool produce=false)=0
If this flag is set to true then layer will produce as second output.
static Ptr< RNNLayer > create(const LayerParams ¶ms)
Definition: all_layers.hpp:440
Definition: all_layers.hpp:432
Definition: all_layers.hpp:603
Definition: all_layers.hpp:597
Definition: all_layers.hpp:296
Resize input 4-dimensional blob by nearest neighbor or bilinear strategy.
Definition: all_layers.hpp:664
Definition: all_layers.hpp:552
Definition: all_layers.hpp:561
Definition: all_layers.hpp:390
Definition: all_layers.hpp:478
Definition: all_layers.hpp:358
std::vector< std::vector< Range > > sliceRanges
Vector of slice ranges.
Definition: all_layers.hpp:366
Definition: all_layers.hpp:270
Definition: all_layers.hpp:326
int outputsCount
Number of copies that will be produced (is ignored when negative).
Definition: all_layers.hpp:328
Definition: all_layers.hpp:466
Definition: all_layers.hpp:460
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75
DualQuat< T > power(const DualQuat< T > &dq, const T t, QuatAssumeType assumeUnit=QUAT_ASSUME_NOT_UNIT)
Definition: dualquaternion.inl.hpp:358
Definition: cvstd_wrapper.hpp:74