Ask Your Question
0

Meaning of Channels

asked 2013-02-18 06:52:23 -0600

izzo gravatar image

What's the meaning of channels ?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
6

answered 2013-02-18 08:04:35 -0600

rics gravatar image

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.

edit flag offensive delete link more

Comments

Thank you rics, so helpful.

izzo gravatar imageizzo ( 2013-02-18 10:28:42 -0600 )edit
1

answered 2013-02-18 07:50:57 -0600

Guanta gravatar image

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).

edit flag offensive delete link more

Comments

Not the function channels(); i was asking about meaning of channels in general :) Thank you anyway.

izzo gravatar imageizzo ( 2013-02-18 10:30:04 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2013-02-18 06:52:23 -0600

Seen: 12,488 times

Last updated: Feb 18 '13