CMOS Digital Pixel for Binary Morphological Edge Segmentation