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