How to display axis on the image ?

Hello,
I have a question how to display visible arbitrary axis on the image when I plot something on the image ? Like here :
I would appreciate for any help please :)

5 commentaires

KSSV
KSSV le 6 Déc 2016
You want a normal axis? or like the one shown in image?
agatte
agatte le 6 Déc 2016
like normal axis shown on the image or it could be also like on this image
Adam
Adam le 6 Déc 2016
The axes shown there appear to just be arbitrarily orientated. Unless you aren't referring to those axes.
agatte
agatte le 6 Déc 2016
yes, I know that they are arbitrary oriented. But I dont know exactly how to display arbitrary oriented axes ?
Adam
Adam le 6 Déc 2016
I don't think you can in normal Matlab. Maybe something in the file exchange can do this.

Connectez-vous pour commenter.

Réponses (1)

KSSV
KSSV le 6 Déc 2016
Modifié(e) : KSSV le 6 Déc 2016

0 votes

Normal axis
imshow('yourimage') ;
axis on
As shown on image
imshow('image.png')
pts = [ 4 67
142 12
137 3
176 107];
hold on
plot(pts(1:2,1),pts(1:2,2),'r') ;
plot(pts(3:4,1),pts(3:4,2),'r') ;

Catégories

En savoir plus sur Images dans Centre d'aide et File Exchange

Question posée :

le 6 Déc 2016

Modifié(e) :

le 6 Déc 2016

Community Treasure Hunt

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

Start Hunting!

Translated by