How to plot the world reference coordinate system of an birdsEye image?
조회 수: 2 (최근 30일)
이전 댓글 표시
How do I plot the world reference coordinate system for the image in 2D, i.e. the physical coordinate system of the vehicle, with the x-axis pointing in the forward direction of the vehicle and the y-axis pointing to the left side of the vehicle. x and y are both world coordinates, not image pixel coordinates. I have tried to use imref2d to construct the link between its coordinate systems and the image is drawn as follows, but the direction and position is wrong, how should I modify it to reach the physical coordinate system of the vehicle represented by the red arrow? Your answer would be greatly appreciate!
load data.mat
figure;
hobj = imshow(BEV,Ref) % Ref is imref2d object
xlabel('X(m)');ylabel('Y(m)')
The red arrow coordinate system below is what I want:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1150010/image.png)
Notes:
hobj can modify the position of the origin via hobj.XData, hobj.YData, but the axis direction is set to ax.YDir = ''reverse'' and the image is reversed, which of course is not what I It's not what I want.
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!