found a ccv_visualize() function, replaced my code in edge detection
test