Filter löschen
Filter löschen

How to use an impoint?

5 Ansichten (letzte 30 Tage)
Pani
Pani am 19 Jul. 2013
Kommentiert: karan padariya am 28 Jun. 2022
I want to use impoint in the gui that I've created, but I don't know how should I do that. There is a part in my gui that the user should be able to choose 2 pixel on the loaded image and then the program runs another function with the coordinates of those 2 pixels. I want also that the program updates the coordinates when the user changes that points.
  1 Kommentar
karan padariya
karan padariya am 28 Jun. 2022
imshow(image,'Parent',app.UIAxes);hold on;
adding this in your code might work

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Chad Gilbert
Chad Gilbert am 19 Jul. 2013
See help ginput. A minimal working example:
pcolor(rand);
[x,y] = ginput(1);
% User clicks a value.
x = floor(x);
y = floor(y);
  7 Kommentare
Caleb
Caleb am 19 Jul. 2013
When I'm using impoint() the points are draggable. Is there some way you can post a sample of your code?
Pani
Pani am 19 Jul. 2013
I did, in my first comment

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Code Generation for ARM Cortex-M and ARM Cortex-A Processors finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by