i have a GUI which simply opens an image in a new fogure window. i would like to add a buttom that when pushing, add a crosshair or data cursor that takes it's position (coordinate) from two text box (X and Y text box). something inverse to ginput function which return the X and Y. many thanks

回答 (1 件)

per isakson
per isakson 2013 年 11 月 21 日
編集済み: per isakson 2013 年 11 月 21 日

0 投票

1 件のコメント

hamid
hamid 2013 年 11 月 24 日
thank you very much for your guide. but the point is i want to have a crosshair that point to the place (coordinate) that i have enter in a text box. here is the code my code:
% opening the image by pushing button
FileName=uigetfile(*.jpg);
figure
imshow(Filename);
%calling the edit text boxes for entering the coordinates
%function edit1_Callback(hObject, eventdata, handles)
%making a oush button
now i want when i push another button a crosshair jumps to the desired coordinate. thank you very much

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で Data Exploration についてさらに検索

質問済み:

2013 年 11 月 21 日

コメント済み:

2013 年 11 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by