why getpts doesn't give the correct points?
4 次查看(过去 30 天)
显示 更早的评论
I have the following image:
When I plot the points got by getpts, the image is flipped upside down:
My code is the following:
figure
imshow("carro.png")
[x,y] = getpts;
plot(x,y,'b*')
0 个评论
采纳的回答
Walter Roberson
2019-4-20
imshow() by default sets YDir reverse so that the "top" of the array (lowest row number) appears at the top of the screen (which would otherwise correspond to highest row number).
When you then plot the points without YDir reverse then they appear upside down.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!