1, the general color image: its every pixel is composed of three channels, namely, Red (R), Green (G) and Blue (B), 8-bit three-channel color image is the value of each channel in each pixel range is 0~255 (that is, the number of 8 digits in the binary), The entire color image is composed of three channels of the image. Storage in the data is continuously stored in pixels, and the data store in each pixel is continuously stored in RGB. Of course, some image formats have pixel data stored in BGR, depending on the situation.
2. Grayscale Image: It has only one color channel, so it is very fast when doing image processing, each pixel of it is calculated by three channels of color image: Gray = r*0.30 + g*0.59 + b*0.11.
(These two image data are basically the highest usage rate.)
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Qt 5.3 OpenCV 2.4.11 Development (0) basic concept of image processing