Beruflich Dokumente
Kultur Dokumente
Computer Graphics I
1 A. A. Datti
Introduction
Introduction
Applications of Computer Graphics
Graphics System
Hardware
Software
Image Representation
Output Primitives
2D Transformations
2D Viewing
2
*Graphics & Images
*Image processing
*Computer Graphics vs Image Processing
* In computer graphics, a computer is used to create a picture.
Image processing, on the other hand applies techniques to
modify or interpret existing pictures
*Applications:
* Improving picture quality
* Machine perception of visual information, as used in robotics.
* Image Resolution is the number of pixels per unit length (usually inches)
e.g. A 3 inches X 2 inches image at a resolution of 300 pixels per inch will
have a total of 540,000 pixels
* The size of an image is given as the total number of pixels in the horizontal
direction times the number of pixels in the vertical direction e.g. 640 X
480, or 1024 X 768
5
* Memory/Storage requirement
* Factors to consider:
* The height of the graphics
* The width of the graphics
* The colour depth or bit depth
11
*Compression: Lossless
* Rearranges data in the image file, but does not
discard data
* Works better for graphic style images, and for text-
turned-to-image situations, where large blocks of
colour are more effectively compressed
12
*Compression: Lossy
* Rearranges data in the image file, and discards
data that is (generally) not easily perceived by the
eye
13
*Compression: Quality vs. Size
Image File
quality size
14
*Graphic File formats
*Due to the number of choices available in determining
image representation, it is not surprising that a number
of image formats have evolved. Some examples of image
file formats used for storing images are
* Cyan, magenta, and yellow are the subtractive primaries and are
the complements of red, green and blue. Colour is specified by
what is subtracted from white light (which is the sum of R, G and
B).
* Cyan subtracts red from white, and so on. Therefore, white can
only be generated on white paper.
*CMY/CMYK Colour Scheme
* Theoretically, if Cyan, Magenta, and Yellow are mixed, then
all the RGB colours are subtracted, and we get black.
However, in practice inks are not pure, hence a special
black ink is used.
Yellow
Y Red
Green Black
White M
Magenta
C
Blue
Cyan
*Additive Mixing
* White Light : It consists of energy throughout the visible light
spectrum.
* Primary colours : Red (R), Green (G), and Blue (B) are three
primary colours.
R
Yellow
Green
M Y
W Cyan Black
Red
B C G
Blue Magenta
White
*Image Processing
*Image Processing
- Editing
- Filtering
- Compositing
- Geometric transformations
- Conversions