convert single channel to 3 channel
why cant i convert a single channel mat to a 3 channel mat using convertTo ?
Hi, as given in the document of opencv, convertTo converts an array to another data type with optional scaling. And it is clearly mentioned that the number of channels of output and input must be same. rtype – desired output matrix type or, rather, the depth since the number of channels are the same as the input has; if rtype is negative, the output matrix will have the same type as the input.
Asked: 2017-01-26 22:58:06 -0600
Seen: 15,229 times
Last updated: Jan 27 '17