2020-10-22 11:05:06 -0600 | received badge | ● Student (source) |
2014-03-29 22:39:18 -0600 | received badge | ● Editor (source) |
2014-03-29 22:38:35 -0600 | asked a question | How to convert a CV_32SC1 to int I'm now using opencv for super-resolution. In one step I have to get the affine matrix and apply the transform to another matrix (which is not a Mat). I have some problems when trying to get the data from affine matrix (a 2*3 Mat). My code: I output the 'affine' matrix twice, using different methods. The results is as below: [1.004656149032001, -0.02000349563412032, 2.860194169683911; 0.01286062523971824, 0.9765526069572313, 1.203057387073405] 1400706429 1072698130 -566786328 -428060329 1066030763 1085705763 The first one seems to be reasonable, but the second one is totally a mess. I suppose the problem occurs when forcing CV_32SC1 to int but I don't know how to convert the data type properly. |