How to find min and max gray level value in GUI?
1 view (last 30 days)
Show older comments
Muhammad Harith Ramli
on 10 Oct 2016
Commented: Muhammad Harith Ramli
on 10 Oct 2016
I making GUI to find min and max gray level value. i do not know how to implement the function into the GUI.
<<

>>
0 Comments
Accepted Answer
Image Analyst
on 10 Oct 2016
Try this in your callback after the imshow() call:
minGL = min(X(:));
maxGL = max(X(:));
message = sprintf('The min gray level = %d.\nThe max gray level = %d.', minGL, maxGL);
uiwait(helpdlg(message));
1 Comment
More Answers (0)
See Also
Categories
Find more on Image Processing Toolbox 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!