Graphics Hardware: Input & Output Devices
Graphics Hardware: Input & Output Devices
Lecture
GRAPHICS HARDWARE
Input & Output Devices
Ref: Donald Hearn & M. Pauline Baker ,
Computer Graphics (Chapter 2)
Foley, van Dam, Feiner & Hughes,
Computer Graphics Principles & Practice
Dr Pavan Chakraborty
IIIT-Allahabad
Indian Institute of Information Technology - Allahabad
GRAPHICS HARDWARE
Graphics Input Devices
Components of an Interactive
Graphics System
Graphics Hardware
- Graphics Input and Storage devices
- Graphics Display devices
Graphics Software
- General Programming packages
- Special-purpose applications packages
Indian Institute of Information Technology - Allahabad
Paddle control,
Trackball,
Mouse, and
Joystick
Indian Institute of Information Technology - Allahabad
Paddle Control
Simplest of the analog input devices.
The paddle control varies its resistance,
thereby changing the voltage of the input
circuit in relation to the movement of the
paddles control knob.
Commonly, two paddle controls are used in
graphics system, one to control movement
in the x-direction and one to control
movement in the y-direction.
Indian Institute of Information Technology - Allahabad
Trackball
Trackball is normally operated by rolling
the ball with the palm of the hand.
It mechanically combines two variable
resistors in a single device, thus allowing
the user to use one hand to enter both x and
y information with a single device.
Figure: Trackball
Mouse
The mouse, like trackball, combines two variable
resistors in a single device.
Wheels or rollers on the bottom of the mouse can
be used to record the amount and direction of
movement. Another method for detecting mouse
motion is with an optical sensor.
One, two or three buttons are usually included on
the top of the mouse for signaling the execution of
some operation, such as recording cursor position
or invoking a function.
Indian Institute of Information Technology - Allahabad
Figure: Mouse
Joystick
A joystick consists of a small, vertical lever
(stick) mounted on a base that is used to
steer the screen cursor around.
The distance that the stick is moved in any
direction from its center position
corresponds to screen-cursor movement in
that direction.
Indian Institute of Information Technology - Allahabad
Figure: Joystick
Light Pen
Light pens are used to select screen
positions by detecting the light coming from
the points on the CRT screen.
They are sensitive to the short burst of light
emitted from the phosphor coating at the
instant the electron beam strikes a particular
point.
The recorded light-pen coordinates can be
used to position an object or to select a
processing option.
Indian Institute of Information Technology - Allahabad
Touch Panel
Touch panels allow displayed objects or
screen positions to be selected with the
touch of a finger.
Optical touch panels make use of a series of
infrared light-emitting diodes (LEDs) and
sensors located around the perimeter of the
display.
When the user touches the screen, light
beams are broken, indicating the location of
the users finger.
Indian Institute of Information Technology - Allahabad
Keyboard
The keyboard is an efficient device for inputting
nongraphic data as picture levels associated with a
graphic display.
Keyboards can also be provided with features to
facilitate entry of screen coordinates, menu
selections, or graphic functions.
Function keys allow users to enter frequently used
operations in a single keystroke, and cursor-control
keys can be used to select displayed objects or
coordinate positions by positioning the screen
cursor.
Indian Institute of Information Technology - Allahabad
Digitizers
A common device for interactively selecting
coordinate positions on a object is a
digitizer.
These discrete coordinate positions can be
joined with straight-line segments to
approximate the curve or surface shapes.
Graphic tablets provide a highly accurate
method for selecting coordinate positions
with accuracy of about 0.05 mm.
Indian Institute of Information Technology - Allahabad
Digitizers
Contd
Figure: Digitizer
Image Scanners
An image scanner records the gradations of
gray scale/color of a given color or b/w
photos and stores in an array.
On stores image, we can apply
transformations to rotate, scale, crop the
picture to a particular screen area.
We can also apply various image processing
methods to modify the array representation
of the picture (e.g. contrast enhancement).
Indian Institute of Information Technology - Allahabad
Figure: DataGlove
Image-Only Storage
Here the video image is retained on video
tape or video disk or as a photograph.
Storage of images in this fashion is
relatively inexpensive.
Once the image is stored, it is difficult and
expensive to restore it to the computer for
further manipulation.
Indian Institute of Information Technology - Allahabad
Display-Memory Storage
Here the bit pattern that represents the
image is copied directly from display
memory to the storage medium.
A utility program may be used to save
blocks of the computer memory by passing
the starting and ending addresses of the
display memory.
Drawback: Storing images in this manner
requires a great deal of memory.
Indian Institute of Information Technology - Allahabad
Compressed-Memory Storage
Storage space can be greatly reduced by
storing images in compressed format.
Compression takes advantage of repeated
patterns in display memory.
Compression routines can be very complex,
taking advantage of long series of
replication.
It may not be useful when images to be
saved contain no or few series of replicated
bytes.
Indian Institute of Information Technology - Allahabad
Figure: 32 x 14 display
Information Storage
It retains the information (series of
commands that describe the image) used to
construct the image.
It can save considerable time and memory if
the image to be stored is composed entirely
of standard objects.
This approach is not fruitful if nonstandard
objects are used.
Indian Institute of Information Technology - Allahabad
GRAPHICS HARDWARE
Graphics Output Devices
Raster-Scan CRT
Interactive computer graphics demands display
devices whose images can be changed quickly.
Nonpermanent image displays allow an image to
be changed, making possible dynamic movement
of portions of an image.
Raster-scan CRTs are used in common television
sets. The term raster is synonym for the term
matrix. A raster-scan CRT scans a matrix with
an electron beam.
The basic understanding of CRTs internal
operations is useful in graphics programming.
Indian Institute of Information Technology - Allahabad
Electron gun
Control electrode
Focusing electrode
Deflection yoke
Phosphorus-coated screen
Electron Gun
It consists of a series of components
(primarily a heater and a cathode) which
together cause electrons to collect at the end
of the electron gun.
These electrons are then accelerated by
application of an electric field.
Control Electrode
It is used to regulate the flow of electrons.
It is a metal cylinder that fits over the
cathode.
A negative voltage on the control electrode
simply decreases the number of electrons
passing through.
Hence intensity of the electron beam is
controlled by setting voltage levels on the
control electrode.
Indian Institute of Information Technology - Allahabad
Focusing Electrode
It is used to create a clear picture by
focusing the electron beam into a narrow
beam.
The focusing electrode serves this purpose
by extracting an electromagnetic force on
the electrons in the electron beam.
The effect resembles that of a glass lens on
light wave.
Indian Institute of Information Technology - Allahabad
Deflection Yoke
It is used to control the direction of the
electron beam.
The deflection yoke creates a magnetic field
which will bend the electron beam as it
passes through the field.
In a conventional CRT the yoke is
connected to a scan generator.
Indian Institute of Information Technology - Allahabad
Phosphorus-coated Screen
The CRT surface is coated with special crystals
called phosphors.
Phosphors glow when they are hit by a high-energy
electron beam.
The glow given off by the phosphor during exposure
to the electron beam is known as fluorescence.
The continuing glow given off after the beam is
removed is known as phosphorescence. Its duration
is known as the phosphors persistence.
Interlacing
Interlacing is primarily used with slower
refreshing rates to avoid flicker.
Here each frame is displayed in two passes
(so the entire screen is displayed in one-half
the time).
In the first pass, the beam sweeps across
every other scan line from top to bottom.
Then after the vertical retrace, the beam
sweeps out the remaining scan lines.
Indian Institute of Information Technology - Allahabad
Figure: Interlacing
Plasma Display
It is one of the flat-panel display under
emissive (convert electrical energy into light)
display category.
Plasma displays do not have to be refreshed;
that is, once a pixel is displayed on the
screen, it will remain lit until it is
intentionally turned off.
The electrofluorescent material is nothing but
an array of tiny neon bulbs. Each bulb can be
put into an on state or an off state, and
remains in the state until explicitly changed to
the other.
Indian Institute of Information Technology - Allahabad
Plotters
All plotters behave like slow vector devices
from the graphics programmers point of
view.
Examples:
Flatbed plotter
Drum plotter
Components of a Flatbed plotter:
Pen an actual pen that draws on the paper.
Indian Institute of Information Technology - Allahabad
Display Processor
- Its purpose is to free the CPU from the
graphics chores.
- It digitizes a picture definition given in an
application program into a set of pixel
intensity values for storage in the frame
buffer.
- Other functions include generating various
line styles (dashed, dotted or solid),
displaying color areas and performing
manipulations on displayed objects.
Indian Institute of Information Technology - Allahabad
System bus