How to have a user prompt window to submit real time values
Show older comments
Hi
I am using a Local Gaussian Distribution algorithm to auto segment some images.
This algorithm contains a few parameters as optimization parameters. A few of them are, kernel size, time step, number of iterations, outer/inner weight, length and data terms and more.
By tuning those parameters you get different segmentation results and different behaviour of the active contour.
What I need is a panel, with boxes (same number of boxes as the parameters), that the user shall be able to modify all those values while performing the auto segmentation. For instance, if a higher number of iterations are necessary then he/she shall go and adjust acordingly the Number of Iterations Box, and he can also experiement with the other boxes at the same time. The active contour should change behaviour and characteristics as the values are changing real time.
Is this possible?
Thanks
Accepted Answer
More Answers (1)
Cris LaPierre
on 31 Jan 2019
0 votes
Perhaps a quicker way if you are using a live script is to add interactive controls. Right now (r18b) there are two options: slider and dropdown.
If you just want a dialog box to appear, my suggestion would be to look into the inputdlg function, which allows you to create a dialog box to gather user input(s).
4 Comments
Stelios Fanourakis
on 31 Jan 2019
Edited: Stelios Fanourakis
on 31 Jan 2019
Stelios Fanourakis
on 31 Jan 2019
Cris LaPierre
on 31 Jan 2019
The variable us does not contain the user inputs from the dialog box. Those are assigned to the variable U. The following lines of code appear to be unnecessary and can be removed.
t = cell2mat(us);
e = str2num(t);
Stelios Fanourakis
on 31 Jan 2019
Edited: madhan ravi
on 31 Jan 2019
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!