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

3 vues (au cours des 30 derniers jours)
Muhammad Harith Ramli
Muhammad Harith Ramli le 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.
<<
>>

Réponse acceptée

Image Analyst
Image Analyst le 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 commentaire
Muhammad Harith Ramli
Muhammad Harith Ramli le 10 Oct 2016
Modifié(e) : Muhammad Harith Ramli le 10 Oct 2016
Thanks for the answer. It's work.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Red dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by