added 3-channels support to cv::Canny