필터 지우기
필터 지우기

how to use slider for image processing?

조회 수: 1 (최근 30일)
Varian Adisuryo
Varian Adisuryo 2016년 7월 24일
댓글: Image Analyst 2018년 6월 12일
Hello guys, I want to ask about slider in GUI. How do I use the slider for increment level value to thresholding grayscale image and then show it in the axes box? I hope you guys understand,please help me.

채택된 답변

Image Analyst
Image Analyst 2016년 7월 24일
First set up the min and max properties, like 0 and 255, either in GUIDE or in your code. Then, when you need to use its value, get the slider value from any callback like this:
sliderValue = handles.slider1.Value;
Then use it to binarize an image like
binaryImage = grayImage > sliderValue;
imshow(binaryImage);
or however you want to use it.
  댓글 수: 6
Bram Mast
Bram Mast 2018년 6월 12일
Hi Varian
How did you finally implement this ?
Image Analyst
Image Analyst 2018년 6월 12일
I imagine he used my code. But you might switch now to App Designer instead of GUIDE as that's their new way forward.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by