Added post processing edge detection