Canny Edge implentation in C++ using OpenCV library