OpenCV  5.0.0alpha
Open Source Computer Vision
Loading...
Searching...
No Matches
shape_utils.hpp File Reference
#include <opencv2/dnn/dnn.hpp>
#include <opencv2/core/cvdef.h>
#include <iostream>
#include <ostream>
#include <sstream>
Include dependency graph for shape_utils.hpp:

Classes

struct  cv::dnn::_Range
 

Namespaces

namespace  cv
 
namespace  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, const MatShape &shape)
 
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.
 
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)
 
static std::ostream & cv::dnn::operator<< (std::ostream &strm, const MatShape &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 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)
 
static std::string cv::dnn::toString (const MatShape &shape, const String &name="")
 
template<typename _Tp >
static std::string cv::dnn::toString (const std::vector< _Tp > &shape, const String &name="")
 
static int cv::dnn::total (const Mat &mat, int start=-1, int end=-1)
 
static int cv::dnn::total (const MatShape &shape, int start=-1, int end=-1)