How to find min and max gray level value in GUI?

3 views (last 30 days)
I making GUI to find min and max gray level value. i do not know how to implement the function into the GUI.
<<
>>

Accepted Answer

Image Analyst
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));

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!