Creating code that will recognize colors on a plot.
1 visualización (últimos 30 días)
I am trying to create a code that will register when there is no longer any white pixles and stop. I'm not sure if there is a function in matlab to scan a plot for a particular color but that is what I am looking for. Basically I would like to have it set up so that if it finds white on the plot nothing happens but once it no longer finds white it will increase a variable by 1.
Image Analyst el 29 de Nov. de 2023
Simply use the Color Thresholder on the Apps tab of the tool ribbon. Use HSV or LAB color space. Adjust the sliders to segment out what you consider "white" to be. Then tell it to export the function. You'll get a mask of white pixels. To get a mask of non-white pixels, simply invert the mask. Or you can adjust the sliders to give you non-white pixels right away.