hello everyone. How to make the direction of points drawn on Cartesian coordinate system consistent with that drawn on binary image.

1 vue (au cours des 30 derniers jours)
Hello everyone. How to make the direction of points drawn on Cartesian coordinate system consistent with that drawn on binary image. From these two images, we can see that the direction of the points in Cartesian coordinate system is opposite to that in binary image. Thank you very much.
Binary image:
Points drawn in Cartesian coordinate system:

Réponse acceptée

Joseph Cheng
Joseph Cheng le 2 Juin 2021
in a displayed image (0,0) is top left corner but cartesian is bottem left if in the ++ quadrant. so remedy this you can set the displayed direction as normal.
set(gca,'Ydir','normal')
where you can replace gca (get current axis) with the axis handle if you already defined that
  2 commentaires
Wesley
Wesley le 2 Juin 2021
It is very helpful to me. Thank you for your warm-hearted reply.
Wesley
Wesley le 2 Juin 2021
It is very helpful to me. Thank you for your warm-hearted reply.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by