OpenCV453
公開メンバ関数 | 限定公開変数類 | 全メンバ一覧
cv::MatCommaInitializer_< _Tp > クラステンプレート

Comma-separated Matrix Initializer [詳解]

#include <mat.hpp>

公開メンバ関数

 MatCommaInitializer_ (Mat_< _Tp > *_m)
 the constructor, created by "matrix << firstValue" operator, where matrix is cv::Mat
 
template<typename T2 >
MatCommaInitializer_< _Tp > & operator, (T2 v)
 the operator that takes the next value and put it to the matrix
 
 operator Mat_< _Tp > () const
 another form of conversion operator
 

限定公開変数類

MatIterator_< _Tp > it
 

詳解

template<typename _Tp>
class cv::MatCommaInitializer_< _Tp >

Comma-separated Matrix Initializer

The class instances are usually not created explicitly. Instead, they are created on "matrix << firstValue" operator.

The sample below initializes 2x2 rotation matrix:

double angle = 30, a = cos(angle*CV_PI/180), b = sin(angle*CV_PI/180);
Mat R = (Mat_<double>(2,2) << a, -b, b, a);
Quat< T > cos(const Quat< T > &q)
Quat< T > sin(const Quat< T > &q)

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