answered 2014-10-28 14:58:24 -0600
It tests for 9 contiguous pixels that are brighter or darker. That is the standard.