OpenCV c++ application design

- Added the edge detection code in to the main business logic code