ConversionFail.cpp

Philipp Hasper, 2014-09-01 08:29 pm

Download (345 Bytes)

 
1
#include "opencv2/core.hpp"
2
#include <iostream>
3
4
void testConversion(const cv::Matx22d& a)
5
{
6
        std::cout << a << std::endl;
7
}
8
9
int main(int argc)
10
{
11
        cv::Mat_<double> a = (cv::Mat_<double>(2,2) << 10, 11, 12, 13);
12
        cv::Matx22d b(a);
13
14
        std::cout << a << std::endl;
15
        std::cout << b << std::endl;
16
        testConversion(a);
17
        return 1;
18
}
19