Tap / click to switch the filter. The height of the tap / mouse affects filter parameters (where relevant).
After the fun, albeit rather frustrating challenge of implementing a Threshold Camera with openCV, I realised that p5.js already comes with a bunch of filters implemented! So I kicked myself, then put together this simple sketch to see how those filters behaved.
The best part is that they are well optimised and have little impact on frame rate which was not the case with Threshold Camera! Thus I will most likely utilise these in my final project. Make sure to wiggle the mouse around to change the filter parameters in real time.