Effacer les filtres
Effacer les filtres

How to display images using the ginput function ?

6 vues (au cours des 30 derniers jours)
Kyle Ramphal
Kyle Ramphal le 18 Fév 2022
Commenté : Image Analyst le 19 Fév 2022
Good day,
To expand more in my question. I am building an app within matlab app desinger with allows the user to place and delete components(image file) on the ui.axis. I would like to display the components(image file) when the user clicks on the UI axis. My method was that to use the ginput fucntion to obtain to simulataneously obtain the corrdinates and place the image file at the position choosen on the ui axis and to place a separate button to delete the image. Any assistance would be appreciated.
Additonally, the ginput function is set to 1 since i am applying a counter to count the number of times the user presses each button.
The attached Zip file is the progress i have made so far.

Réponses (1)

Image Analyst
Image Analyst le 18 Fév 2022
Sounds like you want to copy and paste image at the location where the user clicks. If so, see my attached demo.
  2 commentaires
Kyle Ramphal
Kyle Ramphal le 19 Fév 2022
thank you for your respinse but I don't think the copy method would work for my case since I do not want the user to crop the image and then place it. The image files are used as component symbols for a wiring simulator therefore i would prefer to not crop the image of the symbols. So that when the user clicks the "component button" the "ginput cross" comes up and where the user clicks on a spot on the ui.axis the image file/component symbol comes ups and the user is allowed to place multiple images therefore the paste action would be usefull. Is there any method of just using the paste fucntion alone and setting the fuction to only paste that selectec image file/component symbol.
Image Analyst
Image Analyst le 19 Fév 2022
I don't care how you get the image. You can get it via whatever method you want. Via copying or reading it in or synthesizing it or whatever - it doesn't matter. All that matters is you have some image that you're going to paste onto a canvass (a larger, underlying image).

Connectez-vous pour commenter.

Catégories

En savoir plus sur Image Processing and Computer Vision dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by