0% found this document useful (0 votes)
44 views14 pages

2 Image Representation

2d image repr

Uploaded by

Aamir Hamid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views14 pages

2 Image Representation

2d image repr

Uploaded by

Aamir Hamid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

 Color Model (RGB, CMYk)

 Direct Coding
 Lookup Table
 Display Monitor
 Printer
 Halftoning
 Dithering
 Image Files

Computer Graphics | [email protected]


 A color model is an abstract mathematical
model describing the way colors can be
represented as tuples of numbers, typically as
three or four values or color components.

Computer Graphics | [email protected]


 RGB uses additive color mixing, because it
describes what kind of light needs to be
emitted to produce a given color.
 Light is added together to create form from
out of the darkness.
 RGB stores individual values for red, green
and blue.
 (r,g,b)=>(0,0,0) black, (1,1,1) white [ranges 0
to 1]
Computer Graphics | [email protected]
 CMYk uses subtractive color mixing used in the
printing process, because it describes what kind
of inks need to be applied so the light reflected
from the substrate and through the inks
produces a given color.
 One starts with a white substrate (canvas, page,
etc.), and uses ink to subtract color from white
to create an image.
 CMYk stores ink values for cyan, magenta,
yellow and black.
 cmyk(c%, m%, y%, k%)=>(0%,0%,0%,100%)
Black. [ranges from 0 to 100%]
Computer Graphics | [email protected]
Computer Graphics | [email protected]
 Storage space for each pixel to code the color
 Use 3 bytes per pixel (1 for R, 1 for G and 1 for
B) [Industry standard]
 256 different intensity level for each color
Bit 1 R Bit 2 G Bit 3 B Color Name
0 0 0 Black
0 0 1 Blue
0 1 0 Green
1 0 0 Red

Computer Graphics | [email protected]


 Pixel values do not code colors directly
 Refer to a table of color values
 A table with 256 colors with RGB values
0 r g b
1 11111111 11111111 11111111

255

Computer Graphics | [email protected]


Image Source:http://computer.howstuffworks.com
Computer Graphics | [email protected]
Image Source: http://electronics.howstuffworks.com
Computer Graphics | [email protected]
 Halftone
 Dither

 Go through chapter 1 (schaum’s outline) for


details.
 Search in wikipedia (if you are interested)

Computer Graphics | [email protected]


Format/ version identification
Image width and height in pixels
Image type Header
Image data format
Compression type
……..

Color map (if any)


Pixel values

Image Data

Computer Graphics | [email protected]


 Must be done by next Theory class
 Various color model or color spaces
 Conversion between different color models as rgb
to cmyk or rgb to hsv
 Going through the solved problems (2.1 to 2.23)
 Optional
 How monitors work (CRT,LCD,LED)
 Printers, Printing techniques

Computer Graphics | [email protected]


 Computer Graphics, Schaum’s outline
 Chapter 2
 www.wikipedia.com
 Color model
 Color space
 www.howstuffworks.com
 LCD monitors
 CRT monitors

Computer Graphics | [email protected]

You might also like