how to use slider for image processing?

3 visualizaciones (últimos 30 días)
Varian Adisuryo
Varian Adisuryo el 24 de Jul. de 2016
Comentada: Image Analyst el 12 de Jun. de 2018
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.

Respuesta aceptada

Image Analyst
Image Analyst el 24 de Jul. de 2016
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 comentarios
Bram Mast
Bram Mast el 12 de Jun. de 2018
Hi Varian
How did you finally implement this ?
Image Analyst
Image Analyst el 12 de Jun. de 2018
I imagine he used my code. But you might switch now to App Designer instead of GUIDE as that's their new way forward.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by