how to use slider for image processing?

1 次查看(过去 30 天)
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