a comparison module configured to compare the brightness of {HEAD ~ each pixel} in the local region to determine the darkest pixels in {TAIL ~ the region}; and 
a comparison module configured to compare the brightness of { HEAD ~ each pixel } in the local region to determine the darkest pixels in { TAIL ~ the region } ; and
OTH OTH OTH OTH OTH OTH OTH OTH OTH HEAD HEAD HEAD HEAD HEAD HEAD OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH TAIL TAIL TAIL TAIL TAIL TAIL OTH OTH