Compare between current and surrounding pixels