I have 2 images i need to show an arrow mark from one image to another image

1 view (last 30 days)
I have 2 images i need to show an arrow mark from one image to another image
Images are loaded after i click on push button.Then my arrow should be displayed pointing from one image to another
Imp Note:there is only one edit box,browse and pushbutton only in the panel
How can i do it.
Thanking in advance

Answers (1)

Image Analyst
Image Analyst on 6 May 2012
Use the annotation command. I think it will work if you use it on the figure, and not on a particular image axes that your images live in. This is because I think if you use it within a particular axes, I think the arrow will be clipped when it would extend beyond that axes. The tricky part is that you have to figure out what figure coordinate corresponds to a particular location inside the axes. Like row 30, column 42 in your image corresponds to coordinate (543, 753) of your figure. But I think you need to do this if you want to have your arrow go from a pixel in one image, across blank space in the figure, to some pixel in the other image.

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!