Lines Matching refs:MAT
59 #include "opencv2/core/mat.hpp"
233 CV_EXPORTS void swap(Mat& a, Mat& b);
279 Mat gray_buf(rgb.rows + border*2, rgb.cols + border*2, rgb.depth());
281 Mat gray(gray_canvas, Rect(border, border, rgb.cols, rgb.rows));
346 @sa subtract, addWeighted, scaleAdd, Mat::convertTo
386 @sa add, addWeighted, scaleAdd, Mat::convertTo
398 There is also a @ref MatrixExpressions -friendly variant of the first function. See Mat::mul .
411 Mat::convertTo
451 Mat A(3, 3, CV_64F);
459 @sa add, addWeighted, subtract, Mat::dot, Mat::convertTo
483 @sa add, subtract, scaleAdd, Mat::convertTo
496 emulated by calling the Mat::convertTo method (or by using matrix
511 @sa Mat::convertTo, cv::abs(const Mat&)
528 @sa convertScaleAbs, Mat::convertTo
554 the non-zero indices as a cv::Mat or std::vector<cv::Point> (x,y)
557 cv::Mat binaryImage; // input, binary image
558 cv::Mat locations; // output, locations of non-zero pixels
566 cv::Mat binaryImage; // input, binary image
574 @param idx the output array, type of cv::Mat or std::vector<Point>, corresponding to non-zero indices in the input
692 min-max but modify the whole array, you can use norm and Mat::convertTo.
707 @sa norm, Mat::convertTo, SparseMat::convertTo
728 elements across all the channels, use Mat::reshape first to reinterpret the array as
737 @sa max, min, compare, inRange, extractImageCOI, mixChannels, split, Mat::reshape
749 maximum elements across all the channels, use Mat::reshape first to reinterpret the array as
814 @sa mixChannels, split, Mat::reshape
816 CV_EXPORTS void merge(const Mat* mv, size_t count, OutputArray dst);
837 CV_EXPORTS void split(const Mat& src, Mat* mvbegin);
855 Mat rgba( 100, 100, CV_8UC4, Scalar(1,2,3,4) );
856 Mat bgr( rgba.rows, rgba.cols, CV_8UC3 );
857 Mat alpha( rgba.rows, rgba.cols, CV_8UC1 );
861 Mat out[] = { bgr, alpha };
868 Mat::create ), mixChannels requires the output arrays to be pre-allocated before calling the
886 CV_EXPORTS void mixChannels(const Mat* src, size_t nsrcs, Mat* dst, size_t ndsts,
988 CV_EXPORTS Mat repeat(const Mat
992 The function horizontally concatenates two or more cv::Mat matrices (with the same number of rows).
994 cv::Mat matArray[] = { cv::Mat(4, 1, CV_8UC1, cv::Scalar(1)),
995 cv::Mat(4, 1, CV_8UC1, cv::Scalar(2)),
996 cv::Mat(4, 1, CV_8UC1, cv::Scalar(3)),};
998 cv::Mat out;
1009 @sa cv::vconcat(const Mat*, size_t, OutputArray), @sa cv::vconcat(InputArrayOfArrays, OutputArray) and @sa cv::vconcat(InputArray, InputArray, OutputArray)
1011 CV_EXPORTS void hconcat(const Mat* src, size_t nsrc, OutputArray dst);
1021 cv::Mat C;
1035 std::vector<cv::Mat> matrices = { cv::Mat(4, 1, CV_8UC1, cv::Scalar(1)),
1036 cv::Mat(4, 1, CV_8UC1, cv::Scalar(2)),
1037 cv::Mat(4, 1, CV_8UC1, cv::Scalar(3)),};
1039 cv::Mat out;
1055 The function vertically concatenates two or more cv::Mat matrices (with the same number of cols).
1057 cv::Mat matArray[] = { cv::Mat(1, 4, CV_8UC1, cv::Scalar(1)),
1058 cv::Mat(1, 4, CV_8UC1, cv::Scalar(2)),
1059 cv::Mat(1, 4, CV_8UC1, cv::Scalar(3)),};
1061 cv::Mat out;
1071 @sa cv::hconcat(const Mat*, size_t, OutputArray), @sa cv::hconcat(InputArrayOfArrays, OutputArray) and @sa cv::hconcat(InputArray, InputArray, OutputArray)
1073 CV_EXPORTS void vconcat(const Mat* src, size_t nsrc, OutputArray dst);
1083 cv::Mat C;
1100 std::vector<cv::Mat> matrices = { cv::Mat(1, 4, CV_8UC1, cv::Scalar(1)),
1101 cv::Mat(1, 4, CV_8UC1, cv::Scalar(2)),
1102 cv::Mat(1, 4, CV_8UC1, cv::Scalar(3)),};
1104 cv::Mat out;
1238 @sa cv::abs(const Mat&)
1279 Mat dst1 = src1 >= src2;
1280 Mat dst2 = src1 < 8;
1307 CV_EXPORTS void min(const Mat& src1, const Mat& src2, Mat& dst);
1328 CV_EXPORTS void max(const Mat& src1, const Mat& src2, Mat& dst);
1355 Mat mask = src < 0;
1410 it can be an empty matrix (=Mat()), in this case, the function assumes
1607 \f[(x', y', z', w') = \texttt{mat} \cdot \begin{bmatrix} x & y & z & 1 \end{bmatrix}\f]
1651 Mat A = Mat::eye(4, 3, CV_32F)*5;
1656 @sa Mat::zeros, Mat::ones, Mat::setTo, Mat::operator=
1758 Mat A = Mat::eye(3,3,CV_32F), B;
1829 CV_EXPORTS void calcCovarMatrix( const Mat* samples, int nsamples, Mat& covar, Mat& mean,
1941 Mat tempA(dftSize, A.type(), Scalar::all(0));
1942 Mat tempB(dftSize, B.type(), Scalar::all(0));
1945 Mat roiA(tempA, Rect(0,0,A.cols,A.rows));
1947 Mat roiB(tempB, Rect(0,0,B.cols,B.rows));
2198 PCA compressPCA(const Mat& pcaset, int maxComponents,
2199 const Mat& testset, Mat& compressed)
2202 Mat(), // we do not have a pre-computed mean vector,
2217 Mat reconstructed;
2220 Mat vec = testset.row(i), coeffs = compressed.row(i), reconstructed;
2321 Mat project(InputArray vec) const;
2350 Mat backProject(InputArray vec) const;
2367 Mat eigenvectors; //!< eigenvectors of the covariation matrix
2368 Mat eigenvalues; //!< eigenvalues of the covariation matrix
2369 Mat mean; //!< mean value subtracted before the projection and added after the back projection
2422 Mat project(InputArray src);
2426 Mat reconstruct(InputArray src);
2430 Mat eigenvectors() const { return _eigenvectors; }
2434 Mat eigenvalues() const { return _eigenvalues; }
2436 static Mat subspaceProject(InputArray W, InputArray mean, InputArray src);
2437 static Mat subspaceReconstruct(InputArray W, InputArray mean, InputArray src);
2442 Mat _eigenvectors;
2443 Mat _eigenvalues;
2498 Mat::create.
2511 Mat A, w, u, vt;
2586 Mat u, w, vt;
2704 @param mat 2D or N-dimensional matrix; currently matrices with more than
2705 4 channels are not supported by the methods, use Mat::reshape as a
2717 range (according to the mat datatype) and then will generate uniformly
2736 void fill( InputOutputArray mat, int distType, InputArray a, InputArray b, bool saturateRange = false );
2753 Inspired by http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/CODES/mt19937ar.c
2812 - Mat points(count, 2, CV_32F);
2813 - Mat points(count, 1, CV_32FC2);
2814 - Mat points(1, count, CV_32FC2);
2843 /////////////////////////////// Formatted output of cv::Mat ///////////////////////////
2868 virtual Ptr<Formatted> format(const Mat& mtx) const = 0;
2914 Mat image = imread("myimage.png", 0), descriptors;
3008 enum { INT=0, BOOLEAN=1, REAL=2, STRING=3, MAT=4, MAT_VECTOR=5, ALGORITHM=6, FLOAT=7,
3046 template<> struct ParamType<Mat>
3048 typedef const Mat& const_param_type;
3049 typedef Mat member_type;
3051 enum { type = Param::MAT };
3054 template<> struct ParamType<std::vector<Mat> >
3056 typedef const std::vector<Mat>& const_param_type;
3057 typedef std::vector<Mat> member_type;