Problem with displaying image in MATLAB GUI

10 ビュー (過去 30 日間)
jolene kuan
jolene kuan 2017 年 5 月 11 日
回答済み: Jan 2017 年 5 月 11 日
I have a GUI as shown in the image attached. And I would like to apply Otsu threshold on the image displayed after contrast enhancement.But whenever i pressed the apply button for Otsu threshold,the Otsu threshold will be applied on the original image instead of the image after contrast enhancement (refer to attached GUI and coding).So how do I overcome this problem?
  1 件のコメント
Jan
Jan 2017 年 5 月 11 日
There is no attached image. You have to click on the "Insert Image" button after selecting the image.

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

回答 (1 件)

Jan
Jan 2017 年 5 月 11 日
You have to store the image after each operation in a specific location, e.g. in the handles struct or UserData of a GUI object. Then you use this stored image ad input for new operations.
The posted code is too large to expect the members of the forum to examine it in detail. The actual solution is not tricky, and the only proble I see, is that it is tedious to dig in the code to find all locations, where this must be inserted.

Community Treasure Hunt

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

Start Hunting!

Translated by