OpenCV SVD Matrix format.

Posted by Rick on Stack Overflow See other posts from Stack Overflow or by Rick
Published on 2010-12-28T12:58:37Z Indexed on 2010/12/28 16:53 UTC
Read the original article Hit count: 368

Filed under:
|
|

I currently have a set of 2D Cartesian coordinates e.g. {(1,3), (2,2), (3,4)} Which will be put into a 2D array, to perform SVD properly would the matrix be put together such that the coordinates form the columns or the rows e.g.

1 3
2 2
3 4

or

1 2 3
3 2 4

I have been doing a little trial and error comparing to examples of SVD I have found online, the resulting matrix usually seems to be negated, with some of the values shuffled around.

To clarify further if I had a matrix E which was MxN as shown here http://upload.wikimedia.org/wikipedia/commons/b/bb/Matrix.svg

To define the matrix as a 2D array would it be Array[M][N] or Array[N][M]

I am assuming this actually matters due to matrix arithmetic not being commutative? Can anyone actually verify this?

© Stack Overflow or respective owner

Related posts about matrix

Related posts about opencv