how to calculate "statmoments" and "statxture" of an image by using MATLAB GUI ?
8 views (last 30 days)
Show older comments
Hi, i have two m files in order to calculate STATMOMENTS & STATXTURE of an image. [*statmoments.m & statxture.m*]. the statmoments m file is inside the statxture m file. i need to make a pushbotton with text boxes to display my result of the m files in them. so, the question is HOW TO USE THOES M FILES IN PUSH BOTTON ? AND DISPLAY THE RESULTS IN TEXT BOXES ?
thanks for your time and helping !
0 Comments
Answers (1)
Image Analyst
on 19 Jan 2013
See this:
You can find out how to use GUIDE to build a GUI and put code in so that when you click a button your code executes. You can also use sprintf() and set() to put text onto the GUI in a text control.
% Make a string.
theText = sprintf('Your number = %.3f', theNumber);
% Now, send it to the text control.
set(handles.text1, 'String', theText);
3 Comments
Image Analyst
on 31 Jan 2013
That's what the last portion of my answer shows you. Did you put that code into your function?
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!