Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hough Transform example: Result of cvtColor()

I am learning to implement Hough transform and I have this example program from OpenCV documentation. It contains the following two lines of code:

cvtColor(dst,cdst, CV_GRAY2BGR);

I tried displaying both dst and cdst. Both these images look the same. So, I wonder why cvtColor is applied? Is cdst created for the sole purpose of displaying lines detected in dst?