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

2 ビュー (過去 30 日間)
Muhammad Harith Ramli
Muhammad Harith Ramli 2016 年 10 月 10 日
I making GUI to find min and max gray level value. i do not know how to implement the function into the GUI.
<<
>>

採用された回答

Image Analyst
Image Analyst 2016 年 10 月 10 日
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 件のコメント
Muhammad Harith Ramli
Muhammad Harith Ramli 2016 年 10 月 10 日
編集済み: Muhammad Harith Ramli 2016 年 10 月 10 日
Thanks for the answer. It's work.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRed についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by