Add edge detection, Otsu method and SPTA