add back edge detection and contrast for testing
add back edge detection and contrast for testing