Meaning of Channels
What's the meaning of channels ?
Channels are different dimensions of an image that holds value for every pixel - mainly - independently from the value of the other channels. So for example in case of an RGB image all pixels are represented as a Red, a Green, and a Blue values and there is no one summed value for a single pixel.
Here you can find some more information about channels.
There are several image types with different channel sets, exact meaning and content of a channel depends on this image type.
OpenCV can handle lots of image types, the documentation of the cvtColor function defines the conversion rules among some of them.
Here is an example usage of the cvtColor function.
Do you mean the function channels() of a Mat-Object? It gives you the number of channels an image has, thus typically three (in BGR order).
Asked: 2013-02-18 06:52:23 -0600
Seen: 12,704 times
Last updated: Feb 18 '13