How to update data from imdistline function?
Show older comments
In GUIDE , how is it possible to get the updated data (distance) from imdistline function by using 'addNewPositionCallback'. How it works? In my image when I tried to get the distance value it shows only one default value. It is not showing updated position value when the position of the line is changed.
Thanks
Answers (1)
Image Analyst
on 12 Dec 2015
0 votes
I would not mess with addNewPositionCallback. Just have a button for the user that says "Measure distance" and in that button's callback, just call imdistline() or improfile().
Categories
Find more on Build Interactive Tools in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!