0

I have a collection of images associated to 2d points. I want tot plot those points on a figure and when I click on the points I expect to see the corresponding image on the screen. Suppose I have a matrix IMAGES that is nxd where n is number of images and d dimension of each image and I have Points matrix that is nx2 which shows the corresponding points as I said.

Can you please any method to do that?

erogol
  • 13,156
  • 33
  • 101
  • 155

1 Answers1

1

Try to create a callback function for ButtonDownFcn. It will allow you to get which area has been clicked and execute your code.

tashuhka
  • 5,028
  • 4
  • 45
  • 64