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,488 times
Last updated: Feb 18 '13
What's the best way to segment different coloured blobs?
how to sum a 3 channel matrix to a one channel matrix?
Combining multiple cv::Mat images into single cv::Mat
i want to split and show R B G pictures ,why does it not work?
Pointer image multi-channel access [closed]
How do I Access Channels beyond the First 3 or 4 in an OpenEXR Image?
How to put colors over a 1 channel gray image?
Increase the maximum amount of channels in cv::Mat