Visual depiction of the local thresholding approach.

<p>If the intensity at a pixel (<i>x</i>, <i>y</i>) differs from the mean intensity inside the window by more than some pre-defined threshold, we conclude that it is a foreground pixel.</p>