Problem with displaying image in MATLAB GUI

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 Kommentar

Jan
Jan am 11 Mai 2017
There is no attached image. You have to click on the "Insert Image" button after selecting the image.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Jan
Jan am 11 Mai 2017

0 Stimmen

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.

Gefragt:

am 11 Mai 2017

Beantwortet:

Jan
am 11 Mai 2017

Community Treasure Hunt

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

Start Hunting!

Translated by