Threshold Filter

A filter that thresholds an image based on the color channel passed in. This example uses the same value for all 3 channels, and leaves pixels that fail the threshold check.