GUIDE multiple images and variable handling
2 ビュー (過去 30 日間)
古いコメントを表示
My GUI runs a script which takes a single video frame and saves it as an image. I run several calculations on the image. My problem is displaying the resulting variables in static textboxes and displaying the fft image in a different axes than the captured image.
So how do I redirect or display Variables in the GUI static textboxes instead of the command window?
Thanks
1 件のコメント
採用された回答
Walter Roberson
2011 年 6 月 29 日
Best is to edit the code that outputs the variables to the command window.
If for some reason that is not possible, then evalc() that code, and then parse the resulting string to extract the values you want to put in to the GUI display.
その他の回答 (2 件)
Krishna Kumar
2011 年 6 月 29 日
The variables can be displayed using sprintf (assign sprintf output to the static text's string property). For plotting the fft in a separate axes, you can use 'axes(h)' to make the axes with handle 'h' the current axes. Then you can plot the fft as you want. What is your problem exactly?
Harry MacDowel
2011 年 6 月 29 日
I am not really clear too about the question.
Anyway, displaying answers on the static textbox should look like this:-
set(handles.yourstatictext1,'String',num2str(yourvariable)); Keep in mind that all static and editable textbox display strings.
3 件のコメント
Walter Roberson
2011 年 6 月 29 日
Edit the code to instead
set(handles.yourstatictext1,'String',num2str(Pixels))
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!