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

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

Akzeptierte Antwort

Image Analyst
Image Analyst am 10 Okt. 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));

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by