필터 지우기
필터 지우기

How to use an impoint?

조회 수: 5 (최근 30일)
Pani
Pani 2013년 7월 19일
댓글: karan padariya 2022년 6월 28일
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
karan padariya
karan padariya 2022년 6월 28일
imshow(image,'Parent',app.UIAxes);hold on;
adding this in your code might work

댓글을 달려면 로그인하십시오.

답변 (1개)

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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Code Generation for ARM Cortex-M and ARM Cortex-A Processors에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by