I had an issue about the coordinate system of mathematica. I have a {800,600} image acquired with a camera. The projection matrix P of the camera is calculated using the calibration task. Now, when I calculate the projection of a known point {x,y,z} as p.{x,y,z,1}={X,Y} in the image. I remark that the Y is not correct and the real value is given by 600-Y. It seems that the y-axis inversed between the camera and mathematica. Any clarification?
Asked
Active
Viewed 50 times
0
BetterEnglish
- 2,026
- 13
- 19
ImageData[image][[1]]represents the top row. – FJRA Dec 18 '14 at 20:20Graphicstool, and those are "plot" coordinates, so they start bottom left. That means that you have to doheight - coordYto get the row number. – FJRA Dec 18 '14 at 20:26ImageDatais the best function if you need to access directly the pixel values. Check the documentation, maybe some of its options are useful for your case of use. – FJRA Dec 18 '14 at 20:30