|
OpenCV 4.5.3(日本語機械翻訳)
|
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 MatOp * | op |
| 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) |
| 各行列要素の絶対値を計算します.[【詳解】(英語]
|
|
| CV_EXPORTS MatExpr | abs (const MatExpr &e) |
行列式の表現これは,実装されている行列演算のリストであり,任意の複素数表現に組み合わせることができます(ここで A, B は行列を表し (Mat),s はスカラ ( Scalar ),alpha は実数値のスカラ ( double ) を表します).
A+B,A-B,A+s,A-s,s+A,s-A,-A
A*alpha
A.mul(B),A/B,alpha/A
A*B
A.t()(意味:AT)A.inv([method]) (~ A<sup>-1</sup>),A.inv([method])*B (~ X: AX=B)
A cmpop B,A cmpop alpha,alpha cmpop Aここでcmpopは一つ>,>=,==,!=,<=,<. 比較の結果は,要素が255(特定の要素または要素のペアが条件を満たす場合)または0に設定される8ビットのシングルチャンネルマスクです.A logicop B,A logicop s,s logicop A,~Aここでロジックオペは一つ&,|,^.min(A, B),min(A, alpha),max(A, B),max(A, alpha)
abs(A)
A.cross(B),A.dot(B)
各行列要素の絶対値を計算します.
abs は,absdiff または convertScaleAbs のいずれかの形式に展開されるメタ関数です.
absdiff(A, B, C)
absdiff(A, Scalar::all(0), C)
Mat_<Vec<uchar,n> >(abs(A*alpha + beta))は次のものと同じです.convertScaleAbs(A, C, alpha, beta)
出力行列は,C が depth=CV_8U である最後の場合を除き,入力行列と同じサイズ,同じ型です.
| m | 行列の行数です. |
これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
| e | の行列表現を行う。 |