MATLAB Answers

0

How can i change the Threshold value of the image using slider. What code should i enter to change the threshold value from 0 to 255?

Latest activity Commented on by Walter Roberson
on 29 Nov 2018
What code should i enter to change the value of the threshold of the image using the slider? Need to chande the threshold without affecting the other process in the GUI.

  1 Comment

I need a particular colored object in the image to be bordered out as shown in the figure.
How can i do it, for different image in GUI without changing the threshold each time?
I need the coding for doing it.
Thank you

Sign in to comment.

1 Answer

Answer by Walter Roberson
on 10 Nov 2018

Create a uicontrol style 'slider'. Set the minorstep to at least 1. Set Min to 0, Max to 255. Configure a Callback that gets the current value, applies it as a threshold, and updates the image.

  2 Comments

Thank you for your comment but i was expecting something else
I need a particular colored object in the image to be bordered out as shown in the figure.
How can i do it, for different image in GUI without changing the threshold each time?
I need the coding for doing it.
Thank you
It is not clear what that has to do with your original question about changing the threshold using a slider? Now you say you do not want to change the threshold and that you do not want a slider?

Sign in to comment.