OpenCV  3.4.20-dev
Open Source Computer Vision
Classes | Namespaces | Functions
shape_utils.hpp File Reference
#include <opencv2/dnn/dnn.hpp>
#include <opencv2/core/types_c.h>
#include <iostream>
#include <ostream>
#include <sstream>

Classes

struct  cv::dnn::_Range
 

Namespaces

 cv
 
 cv::dnn
 

Functions

static MatShape cv::dnn::concat (const MatShape &a, const MatShape &b)
 
static Mat cv::dnn::getPlane (const Mat &m, int n, int cn)
 
static bool cv::dnn::isAllOnes (const MatShape &inputShape, int startPos, int endPos)
 
static int cv::dnn::normalize_axis (int axis, int dims)
 Converts axis from [-dims; dims) (similar to Python's slice notation) to [0; dims) range. More...
 
static int cv::dnn::normalize_axis (int axis, const MatShape &shape)
 
static Range cv::dnn::normalize_axis_range (const Range &r, int axisSize)
 
template<typename _Tp >
static std::ostream & cv::dnn::operator<< (std::ostream &out, const std::vector< _Tp > &shape)
 
template<typename _Tp >
static void cv::dnn::print (const std::vector< _Tp > &shape, const String &name="")
 
static MatShape cv::dnn::shape (const int *dims, const int n)
 
static MatShape cv::dnn::shape (const Mat &mat)
 
static MatShape cv::dnn::shape (const MatSize &sz)
 
static MatShape cv::dnn::shape (const UMat &mat)
 
static MatShape cv::dnn::shape (int a0, int a1=-1, int a2=-1, int a3=-1)
 
static Mat cv::dnn::slice (const Mat &m, const _Range &r0)
 
static Mat cv::dnn::slice (const Mat &m, const _Range &r0, const _Range &r1)
 
static Mat cv::dnn::slice (const Mat &m, const _Range &r0, const _Range &r1, const _Range &r2)
 
static Mat cv::dnn::slice (const Mat &m, const _Range &r0, const _Range &r1, const _Range &r2, const _Range &r3)
 
template<typename _Tp >
static std::string cv::dnn::toString (const std::vector< _Tp > &shape, const String &name="")
 
static int cv::dnn::total (const MatShape &shape, int start=-1, int end=-1)
 
static int cv::dnn::total (const Mat &mat, int start=-1, int end=-1)