Ask Your Question

Revision history [back]

C++ implementation:

cv::Canny(im, edges, 100, 200);
// convert canny to BGR
cv::cvtColor(edges, edges, CV_GRAY2BGR); 
// multiply to make it red
red_canny = edges.mul(cv::Scalar(255, 0, 0), 1);