Call the
edgeDetector method
The stateChanged method in Listing 5
- calls the edgeDetector method
- to get a new edge-detected image
- for which the threshold
is the current value of the slider.
Then the display is repainted
- showing
the new image on the screen.