answered Oct 28 '14
It tests for 9 contiguous pixels that are brighter or darker. That is the standard.