Problem with displaying image in MATLAB GUI

9 views (last 30 days)
jolene kuan
jolene kuan on 11 May 2017
Answered: Jan on 11 May 2017
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 Comment
Jan
Jan on 11 May 2017
There is no attached image. You have to click on the "Insert Image" button after selecting the image.

Sign in to comment.

Answers (1)

Jan
Jan on 11 May 2017
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!