A simple problem of openCV(mul function)

1
2
3
4
5
6
7
8
9
10
Mat_<double> const affine = (Mat_<double>(2, 2) << 0.5, 1, 
                                                     0,   2);

  Mat_<double> coordinate = (Mat_<double>(2, 1) << 20, 
                                                   3);
  Mat_<double> C(2, 1);

  C = affine.mul(coordinate); // this line would crash the program

  C = affine * coordinate; // this line is ok 


I don't why and how, did I did something wrong?
Thanks a lot
Last edited on
Topic archived. No new replies allowed.