two level threshold (center of apple should be gray)