machinevisiontoolbox.Image.threshold_interactive
- Image.threshold_interactive()
Interactive thresholding
- Returns:
selected threshold value
- Return type:
scalar
The image is displayed with a binary threshold displayed in a simple Matplotlib GUI along with the histogram and a slider for threshold value. Adjusting the slider changes the thresholded image view.
The displayed image is
\[\begin{split}Y_{u,v} = \left\{ \begin{array}{l} m \mbox{, if } X_{u,v} > t \\ 0 \mbox{, otherwise} \end{array} \right.\end{split}\]- References:
Robotics, Vision & Control for Python, Section 12.1.1.1, P. Corke, Springer 2023.
- Seealso: