OpenCV453
公開メンバ関数 | 公開変数類 | 全メンバ一覧
cv::MatExpr クラス

Matrix expression representation This is a list of implemented matrix operations that can be combined in arbitrary complex expressions (here A, B stand for matrices ( Mat ), s for a scalar ( Scalar ), alpha for a real-valued scalar ( double )): [詳解]

#include <mat.hpp>

公開メンバ関数

 MatExpr (const Mat &m)
 
 MatExpr (const MatOp *_op, int _flags, const Mat &_a=Mat(), const Mat &_b=Mat(), const Mat &_c=Mat(), double _alpha=1, double _beta=1, const Scalar &_s=Scalar())
 
 operator Mat () const
 
template<typename _Tp >
 operator Mat_< _Tp > () const
 
Size size () const
 
int type () const
 
MatExpr row (int y) const
 
MatExpr col (int x) const
 
MatExpr diag (int d=0) const
 
MatExpr operator() (const Range &rowRange, const Range &colRange) const
 
MatExpr operator() (const Rect &roi) const
 
MatExpr t () const
 
MatExpr inv (int method=DECOMP_LU) const
 
MatExpr mul (const MatExpr &e, double scale=1) const
 
MatExpr mul (const Mat &m, double scale=1) const
 
Mat cross (const Mat &m) const
 
double dot (const Mat &m) const
 
void swap (MatExpr &b)
 

公開変数類

const MatOpop
 
int flags
 
Mat a
 
Mat b
 
Mat c
 
double alpha
 
double beta
 
Scalar s
 

関連関数

(これらはメソッドではありません)

CV_EXPORTS MatExpr operator+ (const Mat &a, const Mat &b)
 
CV_EXPORTS MatExpr operator+ (const Mat &a, const Scalar &s)
 
CV_EXPORTS MatExpr operator+ (const Scalar &s, const Mat &a)
 
CV_EXPORTS MatExpr operator+ (const MatExpr &e, const Mat &m)
 
CV_EXPORTS MatExpr operator+ (const Mat &m, const MatExpr &e)
 
CV_EXPORTS MatExpr operator+ (const MatExpr &e, const Scalar &s)
 
CV_EXPORTS MatExpr operator+ (const Scalar &s, const MatExpr &e)
 
CV_EXPORTS MatExpr operator+ (const MatExpr &e1, const MatExpr &e2)
 
template<typename _Tp , int m, int n>
static MatExpr operator+ (const Mat &a, const Matx< _Tp, m, n > &b)
 
template<typename _Tp , int m, int n>
static MatExpr operator+ (const Matx< _Tp, m, n > &a, const Mat &b)
 
CV_EXPORTS MatExpr operator- (const Mat &a, const Mat &b)
 
CV_EXPORTS MatExpr operator- (const Mat &a, const Scalar &s)
 
CV_EXPORTS MatExpr operator- (const Scalar &s, const Mat &a)
 
CV_EXPORTS MatExpr operator- (const MatExpr &e, const Mat &m)
 
CV_EXPORTS MatExpr operator- (const Mat &m, const MatExpr &e)
 
CV_EXPORTS MatExpr operator- (const MatExpr &e, const Scalar &s)
 
CV_EXPORTS MatExpr operator- (const Scalar &s, const MatExpr &e)
 
CV_EXPORTS MatExpr operator- (const MatExpr &e1, const MatExpr &e2)
 
template<typename _Tp , int m, int n>
static MatExpr operator- (const Mat &a, const Matx< _Tp, m, n > &b)
 
template<typename _Tp , int m, int n>
static MatExpr operator- (const Matx< _Tp, m, n > &a, const Mat &b)
 
CV_EXPORTS MatExpr operator- (const Mat &m)
 
CV_EXPORTS MatExpr operator- (const MatExpr &e)
 
CV_EXPORTS MatExpr operator* (const Mat &a, const Mat &b)
 
CV_EXPORTS MatExpr operator* (const Mat &a, double s)
 
CV_EXPORTS MatExpr operator* (double s, const Mat &a)
 
CV_EXPORTS MatExpr operator* (const MatExpr &e, const Mat &m)
 
CV_EXPORTS MatExpr operator* (const Mat &m, const MatExpr &e)
 
CV_EXPORTS MatExpr operator* (const MatExpr &e, double s)
 
CV_EXPORTS MatExpr operator* (double s, const MatExpr &e)
 
CV_EXPORTS MatExpr operator* (const MatExpr &e1, const MatExpr &e2)
 
template<typename _Tp , int m, int n>
static MatExpr operator* (const Mat &a, const Matx< _Tp, m, n > &b)
 
template<typename _Tp , int m, int n>
static MatExpr operator* (const Matx< _Tp, m, n > &a, const Mat &b)
 
CV_EXPORTS MatExpr operator/ (const Mat &a, const Mat &b)
 
CV_EXPORTS MatExpr operator/ (const Mat &a, double s)
 
CV_EXPORTS MatExpr operator/ (double s, const Mat &a)
 
CV_EXPORTS MatExpr operator/ (const MatExpr &e, const Mat &m)
 
CV_EXPORTS MatExpr operator/ (const Mat &m, const MatExpr &e)
 
CV_EXPORTS MatExpr operator/ (const MatExpr &e, double s)
 
CV_EXPORTS MatExpr operator/ (double s, const MatExpr &e)
 
CV_EXPORTS MatExpr operator/ (const MatExpr &e1, const MatExpr &e2)
 
template<typename _Tp , int m, int n>
static MatExpr operator/ (const Mat &a, const Matx< _Tp, m, n > &b)
 
template<typename _Tp , int m, int n>
static MatExpr operator/ (const Matx< _Tp, m, n > &a, const Mat &b)
 
CV_EXPORTS MatExpr operator< (const Mat &a, const Mat &b)
 
CV_EXPORTS MatExpr operator< (const Mat &a, double s)
 
CV_EXPORTS MatExpr operator< (double s, const Mat &a)
 
template<typename _Tp , int m, int n>
static MatExpr operator< (const Mat &a, const Matx< _Tp, m, n > &b)
 
template<typename _Tp , int m, int n>
static MatExpr operator< (const Matx< _Tp, m, n > &a, const Mat &b)
 
CV_EXPORTS MatExpr operator<= (const Mat &a, const Mat &b)
 
CV_EXPORTS MatExpr operator<= (const Mat &a, double s)
 
CV_EXPORTS MatExpr operator<= (double s, const Mat &a)
 
template<typename _Tp , int m, int n>
static MatExpr operator<= (const Mat &a, const Matx< _Tp, m, n > &b)
 
template<typename _Tp , int m, int n>
static MatExpr operator<= (const Matx< _Tp, m, n > &a, const Mat &b)
 
CV_EXPORTS MatExpr operator== (const Mat &a, const Mat &b)
 
CV_EXPORTS MatExpr operator== (const Mat &a, double s)
 
CV_EXPORTS MatExpr operator== (double s, const Mat &a)
 
template<typename _Tp , int m, int n>
static MatExpr operator== (const Mat &a, const Matx< _Tp, m, n > &b)
 
template<typename _Tp , int m, int n>
static MatExpr operator== (const Matx< _Tp, m, n > &a, const Mat &b)
 
CV_EXPORTS MatExpr operator!= (const Mat &a, const Mat &b)
 
CV_EXPORTS MatExpr operator!= (const Mat &a, double s)
 
CV_EXPORTS MatExpr operator!= (double s, const Mat &a)
 
template<typename _Tp , int m, int n>
static MatExpr operator!= (const Mat &a, const Matx< _Tp, m, n > &b)
 
template<typename _Tp , int m, int n>
static MatExpr operator!= (const Matx< _Tp, m, n > &a, const Mat &b)
 
CV_EXPORTS MatExpr operator>= (const Mat &a, const Mat &b)
 
CV_EXPORTS MatExpr operator>= (const Mat &a, double s)
 
CV_EXPORTS MatExpr operator>= (double s, const Mat &a)
 
template<typename _Tp , int m, int n>
static MatExpr operator>= (const Mat &a, const Matx< _Tp, m, n > &b)
 
template<typename _Tp , int m, int n>
static MatExpr operator>= (const Matx< _Tp, m, n > &a, const Mat &b)
 
CV_EXPORTS MatExpr operator> (const Mat &a, const Mat &b)
 
CV_EXPORTS MatExpr operator> (const Mat &a, double s)
 
CV_EXPORTS MatExpr operator> (double s, const Mat &a)
 
template<typename _Tp , int m, int n>
static MatExpr operator> (const Mat &a, const Matx< _Tp, m, n > &b)
 
template<typename _Tp , int m, int n>
static MatExpr operator> (const Matx< _Tp, m, n > &a, const Mat &b)
 
CV_EXPORTS MatExpr operator& (const Mat &a, const Mat &b)
 
CV_EXPORTS MatExpr operator& (const Mat &a, const Scalar &s)
 
CV_EXPORTS MatExpr operator& (const Scalar &s, const Mat &a)
 
template<typename _Tp , int m, int n>
static MatExpr operator& (const Mat &a, const Matx< _Tp, m, n > &b)
 
template<typename _Tp , int m, int n>
static MatExpr operator& (const Matx< _Tp, m, n > &a, const Mat &b)
 
CV_EXPORTS MatExpr operator| (const Mat &a, const Mat &b)
 
CV_EXPORTS MatExpr operator| (const Mat &a, const Scalar &s)
 
CV_EXPORTS MatExpr operator| (const Scalar &s, const Mat &a)
 
template<typename _Tp , int m, int n>
static MatExpr operator| (const Mat &a, const Matx< _Tp, m, n > &b)
 
template<typename _Tp , int m, int n>
static MatExpr operator| (const Matx< _Tp, m, n > &a, const Mat &b)
 
CV_EXPORTS MatExpr operator^ (const Mat &a, const Mat &b)
 
CV_EXPORTS MatExpr operator^ (const Mat &a, const Scalar &s)
 
CV_EXPORTS MatExpr operator^ (const Scalar &s, const Mat &a)
 
template<typename _Tp , int m, int n>
static MatExpr operator^ (const Mat &a, const Matx< _Tp, m, n > &b)
 
template<typename _Tp , int m, int n>
static MatExpr operator^ (const Matx< _Tp, m, n > &a, const Mat &b)
 
CV_EXPORTS MatExpr operator~ (const Mat &m)
 
CV_EXPORTS MatExpr min (const Mat &a, const Mat &b)
 
CV_EXPORTS MatExpr min (const Mat &a, double s)
 
CV_EXPORTS MatExpr min (double s, const Mat &a)
 
template<typename _Tp , int m, int n>
static MatExpr min (const Mat &a, const Matx< _Tp, m, n > &b)
 
template<typename _Tp , int m, int n>
static MatExpr min (const Matx< _Tp, m, n > &a, const Mat &b)
 
CV_EXPORTS MatExpr max (const Mat &a, const Mat &b)
 
CV_EXPORTS MatExpr max (const Mat &a, double s)
 
CV_EXPORTS MatExpr max (double s, const Mat &a)
 
template<typename _Tp , int m, int n>
static MatExpr max (const Mat &a, const Matx< _Tp, m, n > &b)
 
template<typename _Tp , int m, int n>
static MatExpr max (const Matx< _Tp, m, n > &a, const Mat &b)
 
CV_EXPORTS MatExpr abs (const Mat &m)
 Calculates an absolute value of each matrix element. [詳解]
 
CV_EXPORTS MatExpr abs (const MatExpr &e)
 

詳解

Matrix expression representation This is a list of implemented matrix operations that can be combined in arbitrary complex expressions (here A, B stand for matrices ( Mat ), s for a scalar ( Scalar ), alpha for a real-valued scalar ( double )):

フレンドと関連関数の詳解

◆ abs() [1/2]

CV_EXPORTS MatExpr abs ( const Mat m)
related

Calculates an absolute value of each matrix element.

abs is a meta-function that is expanded to one of absdiff or convertScaleAbs forms:

  • C = abs(A-B) is equivalent to absdiff(A, B, C)
  • C = abs(A) is equivalent to absdiff(A, Scalar::all(0), C)
  • C = Mat_<Vec<uchar,n> >(abs(A*alpha + beta)) is equivalent to convertScaleAbs(A, C, alpha, beta)

The output matrix has the same size and the same type as the input one except for the last case, where C is depth=CV_8U .

引数
mmatrix.
参照
MatrixExpressions, absdiff, convertScaleAbs

◆ abs() [2/2]

CV_EXPORTS MatExpr abs ( const MatExpr e)
related

これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。

引数
ematrix expression.

このクラス詳解は次のファイルから抽出されました: