Problem with displaying image in MATLAB GUI

9 visualizaciones (últimos 30 días)
jolene kuan
jolene kuan el 11 de Mayo de 2017
Respondida: Jan el 11 de Mayo de 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 comentario
Jan
Jan el 11 de Mayo de 2017
There is no attached image. You have to click on the "Insert Image" button after selecting the image.

Iniciar sesión para comentar.

Respuestas (1)

Jan
Jan el 11 de Mayo de 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.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by