320 likes | 484 Views
Hardware issues in graphics. Istvan Pely (www.movkup.com). It’s a magic act. Computer graphics cheats Two dimensional Discrete frames Light calculations are approximate But it works Cheats are designed for our visual system. Does A = B?. Constructing the world.
E N D
It’s a magic act • Computer graphics cheats • Two dimensional • Discrete frames • Light calculations are approximate • But it works • Cheats are designed for our visual system
Constructing the world • We see color, shape and motion that does not really exist - we infer and interpret
FAA Human Factors • FAA
Psychophysics • Joy of Visual Perception • Michael Bach • Hoffman • Temporal resolution/stop motion
Bitmap graphics • Image stored as array of numbers • What monitors display
Vector graphics • Picture stored as commands to draw shapes • Takes less storage • Can be resized without pixelation • Used in PowerPoint Disk (50,50,100, red) Square(60,60,200, orange) Line(50,50,100,100)
Vector graphic has to be rendered to display as bitmap on screen Need to convert mathematical shape to pixels on screen Which pixels to turn on? Rasterization Vector to Bitmap
Antialiasing • Smoothing at edges of object • Average colors to avoid the “jaggies” • Average by portion covered
Image Dimension (resolution?) • Dimensions of image • Width by height • Example: 200 by 200 = 4,000 pixels • Example: 20 by 30 = 600 pixels • Example: 1,000 by 2,000 = 2 million • Mega pixel camera • Pixels greater than 1 million
Print resolution • Size of image when printed • Measured in DPI (Dots Per Inch) • Most printers are effective > 100 DPI • A 1000 pixel image would be 10 inches across when printed at 100 DPI
Color monitors • Additive color scheme • Red Green Blue • Matches RGB rods in our eyes • Printers - subtractive color scheme CYMK • Cyan, Yellow, Magenta, K for black
Red Channel Green Channel Blue Channel Original RGB Greyscale
Bits/pixel Original at 8 bits (256 levels)
Color resolution • Color depth - number of bits per pixel • Black and white - 1 bits (2 values) • Greyscale - 8 bits (256 values) • True color - 24 bits per pixel • 8 bits each for Red, Green, Blue (RGB) • Indexed color • 8 bit index into 24 bit color table (palette)
Two palettes • Web safe system Full spectrum
Image size problem • 400 by 400, true color image • Size in bytes is ? _________________ • 400 * 400 = 16,000 pixels • True color is 24 bits per pixel (3 bytes) • Result: 16,000 * 3 = 48,000 bytes • 48KB using 1000 = K approximation
Size problem 2 • 100 by 100 image • 8 bit Indexed color image • Size in bytes?
Image problem 3 • 1024 by 1024 image • Black and white (bits per pixel?) • How many bytes?
Fourth problem • 500 by 200 image • 10 bits per color (RGB) • Size in bytes?
Basic Graphics Card Video controller Scan controller Video DAC
CRT video trace (scan controller) • Horizontal retrace • Vertical retrace • Blanking periods • Used for double buffering
Graphic acceleration Graphics Processing Unit (GPU) NVIDIA GeForce 7800
Output Primitives • Polylines • Text • Filled regions • Raster images • Incomplete list, but polyline is essential idea
Input primitives • String • Choice • Valuator • Locator • Pick