question on triangulate() function
2 次查看(过去 30 天)
显示 更早的评论
The triangulate() function takes 2 sets of matched points.
" matchedPoints1 - Coordinates of points in image 1, specified as an M-by-2 matrix of M number of [x y] coordinates "....
are these in image coordinates (origin is top left, x is column?)
or plot coordinates
(origin is bottom left)...
seems like they should be plot coordinates, but the source is usually an image....
I have coordinates from another source in image (pixel) coordinates and just want to know if I need to flip them....
Thanks
2 个评论
回答(1 个)
Rik
2020-1-6
I don't see any reason why it would matter (as long as you use the same coordinate system for both inputs and the stereoParameters object), but the images in the doc all suggest you should use the image convention (so the origin in the top-left instead of bottom-left).
2 个评论
Rik
2020-1-6
Please stop using the answer field to post comments.
Of course it will matter for the signs of your coordinates, but on a fundamental level for the function itself it shouldn't matter. The function should run independently of wether or not the input is realistic. Try to make a MWE so we can run your code without any other dependencies and can reproduce your issue. Because right now it is impossible to tell if your stereoParameters object matches the coordinate system of your points, which could also plausibly result in incorrect z values.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Point Cloud Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!