RGB and displays dots in a
CRT monitor s in an LCD TV (on the right: an orange and a blue color; on the left: a close-up) One common application of the RGB color model is the display of colors on a
cathode-ray tube (CRT),
liquid-crystal display (LCD),
plasma display, or
organic light emitting diode (OLED) display such as a television, a computer's monitor, or a large scale screen. Each
pixel on the screen is built by driving three small and very close but still separated RGB light sources. At common viewing distance, the separate sources are indistinguishable, which the eye interprets as a given solid color. All the pixels together arranged in the rectangular screen surface conforms the color image. During
digital image processing each pixel can be represented in the
computer memory or interface hardware (for example, a
graphics card) as
binary values for the red, green, and blue color components. When properly managed, these values are converted into intensities or voltages via
gamma correction to correct the inherent nonlinearity of some devices, such that the intended intensities are reproduced on the display. The
Quattron released by Sharp uses RGB color and adds yellow as a sub-pixel, supposedly allowing an increase in the number of available colors.
Video electronics RGB is also the term referring to a type of
component video signal used in the
video electronics industry. It consists of three signals—red, green, and blue—carried on three separate cables/pins. RGB signal formats are often based on modified versions of the RS-170 and RS-343 standards for monochrome video. This type of video signal is widely used in Europe since it is the best quality signal that can be carried on the standard
SCART connector. This signal is known as
RGBS (4
BNC/
RCA terminated cables exist as well), but it is directly compatible with
RGBHV used for computer monitors (usually carried on 15-pin cables terminated with 15-pin
D-sub or 5 BNC connectors), which carries separate horizontal and vertical sync signals. Outside Europe, RGB is not very popular as a video signal format; S-Video takes that spot in most non-European regions. However, almost all computer monitors around the world use RGB.
Video framebuffer A
framebuffer is a digital device for computers which stores data in the so-called
video memory (comprising an array of
Video RAM or similar
chips). This data goes either to three
digital-to-analog converters (DACs) (for analog monitors), one per primary color or directly to digital monitors. Driven by
software, the
CPU (or other specialized chips) write the appropriate
bytes into the video memory to define the image. Modern systems encode pixel color values by devoting 8
bits to each of the R, G, and B components. RGB information can be either carried directly by the pixel bits themselves or provided by a separate
color look-up table (
CLUT) if
indexed color graphic modes are used. A CLUT is a specialized
RAM that stores R, G, and B values that define specific colors. Each color has its own address (index)—consider it as a descriptive reference number that provides that specific color when the image needs it. The content of the CLUT is much like a palette of colors. Image data that uses indexed color specifies addresses within the CLUT to provide the required R, G, and B values for each specific pixel, one pixel at a time. Of course, before displaying, the CLUT has to be loaded with R, G, and B values that define the palette of colors required for each image to be rendered. Some video applications store such palettes in
PAL files (
Age of Empires game, for example, uses over half-a-dozen) and can combine CLUTs on screen. ;RGB24 and RGB32 This indirect scheme restricts the number of available colors in an image CLUT—typically 256-cubed (8 bits in three
color channels with values of 0–255)—although each color in the RGB24 CLUT table has only 8 bits representing 256 codes for each of the R, G, and B primaries, making 16,777,216 possible colors. However, the advantage is that an indexed-color image file can be significantly smaller than it would be with only 8 bits per pixel for each primary. Modern storage, however, is far less costly, greatly reducing the need to minimize image file size. By using an appropriate combination of red, green, and blue intensities, many colors can be displayed. Current typical
display adapters use up to
24 bits of information for each pixel: 8-bit per component multiplied by three components (see the
Numeric representations section below (24 bits = 2563, each primary value of 8 bits with values of 0–255). With this system, 16,777,216 (2563 or 224) discrete combinations of R, G, and B values are allowed, providing millions of different (though not necessarily distinguishable) hue, saturation and
lightness shades. Increased shading has been implemented in various ways, some formats such as
.png and
.tga files among others using a fourth
grayscale color channel as a masking layer, often called
RGB32. For images with a modest range of brightnesses from the darkest to the lightest, 8 bits per primary color provides good-quality images, but extreme images require more bits per primary color as well as the advanced display technology. For more information see
High Dynamic Range (HDR) imaging.
Nonlinearity In classic CRT devices, the brightness of a given point over the
fluorescent screen due to the impact of accelerated
electrons is not proportional to the voltages applied to the
electron gun control grids, but to an expansive function of that voltage. The amount of this deviation is known as its
gamma value (\gamma), the argument for a
power law function, which closely describes this behavior. A linear response is given by a gamma value of 1.0, but actual CRT nonlinearities have a gamma value around 2.0 to 2.5. Similarly, the intensity of the output on TV and computer display devices is not directly proportional to the R, G, and B applied electric signals (or file data values which drive them through digital-to-analog converters). On a typical standard 2.2-gamma CRT display, an input intensity RGB value of (0.5, 0.5, 0.5) only outputs about 22% of full brightness (1.0, 1.0, 1.0), instead of 50%. To obtain the correct response, a
gamma correction is used in encoding the image data, and possibly further corrections as part of the
color calibration process of the device. Gamma affects
black-and-white TV as well as color. In standard color TV, broadcast signals are gamma corrected.
RGB and cameras arrangement of color filters on the pixel array of a digital image sensor In color
television and video cameras manufactured before the 1990s, the incoming light was separated by
prisms and filters into the three RGB primary colors feeding each color into a separate
video camera tube (or
pickup tube). These tubes are a type of cathode-ray tube, not to be confused with that of CRT displays. With the arrival of commercially viable
charge-coupled device (CCD) technology in the 1980s, first, the pickup tubes were replaced with this kind of sensor. Later, higher scale integration electronics was applied (mainly by
Sony), simplifying and even removing the intermediate optics, thereby reducing the size of home
video cameras and eventually leading to the development of full
camcorders. Current
webcams and
mobile phones with cameras are the most miniaturized commercial forms of such technology. Photographic
digital cameras that use a
CMOS or CCD
image sensor often operate with some variation of the RGB model. In a
Bayer filter arrangement, green is given twice as many detectors as red and blue (ratio 1:2:1) in order to achieve higher
luminance resolution than
chrominance resolution. The sensor has a grid of red, green, and blue detectors arranged so that the first row is RGRGRGRG, the next is GBGBGBGB, and that sequence is repeated in subsequent rows. For every channel, missing pixels are obtained by
interpolation in the
demosaicing process to build up the complete image. Also, other processes used to be applied in order to map the camera RGB measurements into a standard color space as sRGB.
RGB and scanners In computing, an
image scanner is a device that optically scans images (printed text, handwriting, or an object) and converts it to a digital image which is transferred to a computer. Among other formats, flat, drum and film scanners exist, and most of them support RGB color. They can be considered the successors of early
telephotography input devices, which were able to send consecutive
scan lines as
analog amplitude modulation signals through standard telephonic lines to appropriate receivers; such systems were in use in
press since the 1920s to the mid-1990s. Color telephotographs were sent as three separated RGB filtered images consecutively. Currently available scanners typically use CCD or
contact image sensor (CIS) as the image sensor, whereas older drum scanners use a
photomultiplier tube as the image sensor. Early color film scanners used a
halogen lamp and a three-color filter wheel, so three exposures were needed to scan a single color image. Due to heating problems, the worst of them being the potential destruction of the scanned film, this technology was later replaced by non-heating light sources such as color
LEDs. ==Numeric representations==