Unit 1 Graphics
Unit 1 Graphics
-Using a computer as a rendering tool for the generation (from models) and
manipulation of images is called computer graphics.
-Computer graphics is used today in many different areas of industry,
business, government, education, entertainment, and most recently, the home.
-Computer graphics is the creation and manipulation of pictures with the aid
of computer. There are two types of computer graphics.
Interactive computer graphics
Non-interactive graphics or passive computer graphics
Computers have become powerful tool for the rapid and economical
production of pictures. Computer graphics are used in several areas such as
1
Computer aided design referred as CAD methods are now routinely used in the
design of buildings, automobiles, aircraft, space craft and textiles etc.,
Presentation Graphics:
Presentation graphics used to produce illustration for reports or generate
35mm slides etc., These graphics are commonly used to summarize and economic
data for research reports, managerial reports, consumer information bulletins etc.,
Example: bar charts, line graphs and pie charts.
Computer art:
Computer graphics methods are widely used in both fine art and commercial
art applications. Artists uses variety of computer methods including special purpose
hardware, paint brush programs etc.,
Entertainment:
Computer graphics methods are now commonly used in making motion
pictures, music videos and television shows.
Sometimes graphics are displayed by themselves i.e., computer animation
and sometimes graphics objects are combined with the actors and live scenes.
Visualization:
Producing graphical representations for scientific, engineering and medical
data sets and processes is generally referred to as scientific visualization. For
2
commerce, industry and other non-scientific areas data sets and processes is
generally referred to as business visualization.
Image processing:
Image processing applies techniques to modify or interpret existing pictures
such as photographs and TV scans. Two principal applications of image processing
are
1. Improving picture quality
2. Machine perception of visual information as used in robotics.
Uses:
To enhance the quality of a picture.
In medical applications such as in tomography and in simulations of operations.
The most common graphics output device is the video monitor which is
based on the standard cathode ray tube (CRT) design, but several other technologies
exist and solid state monitors may eventually predominate.
1. Refresh CRT
Basic Operation of CRT
3
Figure1 illustrates the basic operation of a CRT. A beam of electrons
(cathode rays), emitted by an electron gun, passes through focusing and deflection
systems that direct the beam toward specified positions on the phosphor-coated
screen.
The phosphor then emits a small spot of light at each position contacted by
the electron beam.
Because the light emitted by the phosphor fades very rapidly, some method
is needed for maintaining the screen picture.
One Way to keep the phosphor glowing is to redraw the picture repeatedly
by quickly directing the electron beam back over the same points. This type of
display is called a refresh CRT.
Working
-Beam passes between two pairs of metal plates, one vertical and other
horizontal. A voltage difference is applied to each pair of plates according to the
amount that the beam is to be deflected in each direction. As the electron beam
passes between each pair of plates, it is bent towards the plate with the higher
positive voltage.
-In figure 2 the beam is first deflected towards one side of the screen. Then,
as the beam passes through the horizontal plates, it is deflected towards, the top or
bottom of the screen. To get the proper deflection, adjust the current through coils
4
placed around the outside of the CRT loop. The primary components of an electron
gun in a CRT are the heated metal cathode and a control grid (Fig. 2).
-Heat is supplied to the cathode by directing a current through a coil of wire,
called the filament, inside the cylindrical cathode structure. This causes electrons to
be "boiled off" the hot cathode surface.
-In the vacuum inside the CRT envelope, the free, negatively charged
electrons are then accelerated toward the phosphor coating by a high positive
voltage.
-The accelerating voltage can be generated with a positively charged metal
coating on the in- side of the CRT envelope near the phosphor screen, or an
accelerating anode can be used, as in Fig. 2.
5
-Horizontal deflection is accomplished with one pair of coils, and vertical
deflection by the other pair. The proper deflection amounts are attained by adjusting
the current through the coils.
-When electrostatic deflection is used, two pairs of parallel plates are
mounted inside the CRT envelope.
-One pair of plates is mounted horizontally to control the vertical deflection,
and the other pair is mounted vertically to control horizontal deflection (Fig.3).
Properties of CRT
Persistence- Persistence means how long they continue to emit light after the CRT
beam is removed. It is defined as the time it takes the emitted light from screen to
decay to one-tenth of its original intensity.
Resolution
The maximum number of points that can be displayed without overlap on a
CRT is referred to as the resolution.
Aspect Ratio
Another property of video monitors is aspect ratio. This number gives the
ratio of vertical points to horizontal points necessary to produce equal-length lines
in both directions on the screen. (Sometimes aspect ratio is stated in terms of the
ratio of horizontal to vertical points.)
An aspect ratio of 3/4 means that a vertical line plotted with three points has
the same length as a horizontal line plotted with four points.
6
2. Raster scan and Random scan displays
Random scan display
-Random scan system uses an electron beam which operates like a pencil to
create a line image on the CRT. The image is constructed out of a sequence of
straight line segments.
-Each line segment is drawn on the screen by directing the beam to move
from one point on screen to the next, where each point is defined by its x and y
coordinates.
-After drawing the picture, the system cycles back to the first line and design
all the lines of the picture 30 to 60 time each second.
-Random-scan monitors draw a picture one line at a time and for this reason
are also referred to as vector displays (or stroke-writing or calligraphic displays)
Fig. 4.
-A pen plotter operates in a similar way and is an example of a random-scan,
hard-copy device.
7
-Random-scan systems are designed for line-drawing applications and can-
not display realistic shaded scenes. Since picture definition is stored as a set of line-
drawing instructions and not as a set of intensity values for all screen points, vector
displays generally have higher resolution than raster systems.
-Also, vector displays produce smooth line drawings because the CRT beam
directly follows the line path.
Raster-Scan Displays
-In raster scan approach, the viewing screen is divided into a large number of
discrete phosphor picture elements, called pixels.
-Each pixel on the screen can be made to glow with a different brightness.
Color screen provide for the pixels to have different colors as well as brightness.
-In a raster-scan system, the electron beam is swept across the screen, one
row at a time from top to bottom. As the electron beam moves across each row, the
beam intensity is turned on and off to create a pattern of illuminated spots.
-Picture definition is stored in a memory area called the refresh buffer or
frame buffer. This memory area holds the set of intensity values for all the screen
points. Stored intensity values are then retrieved from the refresh buffer and
"painted" on the screen one row (scan line) at a time (Fig.6).
Each screen point is referred to as a pixel or pel (shortened forms of picture
element). The capability of a raster-scan system to store intensity information for
each screen point makes it well suited for the realistic display of scenes containing
subtle shading and color patterns.
Home television sets and printers are examples of other systems using raster-
scan methods.
8
Figure 5: A raster-scan system displays an object as a set of discrete points
across each scan line
Advantages
produce realistic images
produced different colors and shadows scenes.
Disadvantages
low resolution
expensive
electron beam directed to whole screen
9
The beam-penetration method for displaying color pictures has been used
with random-scan monitors.
Two layers of phosphor, usually red and green, are coated onto the inside of
the CRT screen, and the displayed color depends on how far the electron beam
penetrates into the phosphor layers.
A beam of slow electrons excites only the outer red layer. A beam of very
fast electrons penetrates through the red layer and excites the inner green layer. At
intermediate beam speeds, combinations of red and green light are emitted to show
two additional colors, orange and yellow.
The speed of the electrons, and hence the screen color at any point, is
controlled by the beam-acceleration voltage.
Beam penetration has been an inexpensive way to produce color in random-
scan monitors, but only four colors are possible, and the quality of pictures is not as
good as with other methods.
10
Figure 6: Operation of a delta–delta, shadow-mask CRT.
5. Flat-Panel Displays
The term flat panel display refers to a class of video device that have
reduced volume, weight and power requirement compared to a CRT.
11
A significant feature of flat-panel displays is that they are thinner than
CRTs, and we can hang them on walls or wear them on our wrists.
Current uses for flat-panel displays include small TV monitors, calculators,
pocket video games, laptop computers, armrest viewing of movies on airlines, as
advertisement boards in elevators, and as graphics displays in applications requiring
rugged, portable monitors.
We can separate flat-panel displays into two categories: emissive displays
and non emissive displays.
The emissive displays (or emitters) are devices that convert electrical energy
into light. Plasma panels, thin-film electroluminescent displays, and- light-emitting
diodes are examples of emissive displays.
Non emissive displays (or non emitters) use optical effects to convert
sunlight or light from some other source into graphics patterns. The most important
example of a non emissive flat-panel display is a liquid-crystal device.
Plasma panels
- also called gas discharge displays
- It is constructed by filling the region between two glass plates with a mixture of
gases that usually includes neon
- A series of vertical ribbons is placed on one glass panel, and set of horizontal
ribbons in to other glass panels
- A voltage is applied to these conductors to break down in to a glowing plasma of
voltages
Figure Refer text page no 66
12
In LED, a matrix of diodes is arranged to form the pixel positions in the
display and picture definition is stored in a refresh buffer.
Information is read from the refresh buffer and converted to voltage levels
that are applied to the diodes to produce the light patterns in the display.
13
Figure7 : The light-twisting, shutter effect used in the design of most liquid-
crystal display devices
14
Raster Scan Systems
15
Video Controller
A fixed area of the system memory is reserved for the frame buffer, and the
video controller is given direct access to the frame buffer memory.
The co-ordinates of the graphics monitor starts at the lower left screen
corner. Positive x values increasing to the right and y values increasing from bottom
to top.
16
The above diagram shows the refresh operation of video controller. Two
registers are used to store the co-ordinates of the screen pixels. Initially x=0 and
y=ymax. The value stored in the frame buffer corresponding to this pixel position is
retrieved. And the x value is incremented by 1 and the corresponding y value is
retrieved, like that the pixel values are retrieved line by line. Once the last pixel is
reached again the registers are reset to initial value to repeat the process.
Random-scan Systems:
17
An application program is input and stored in the system memory along with
a graphics package. Graphics commands in the program are translated by the
graphics package into a display file stored in the system memory.
This display file is then accessed by the display processor to refresh the
screen.
-The display processor cycles through each command in the display file
program once during every refresh cycle. Sometimes the display processor in a
random-scan system is refreshed to as a display processing unit or a graphics
controller.
Graphical patterns are drawn on a random scan system by directing the
electron beam along the component lines of the picture. Lines are defined by the
values for their co-ordinate endpoints, and these input co-ordinate values are
converted to x and y deflection voltages. A scene is then drawn one line at a time by
positioning the beam to fill in the line between specified endpoints.
Base of
Raster Scan System Random Scan System
Difference
18
Its resolution is poor because Its resolution is good because this
raster system in contrast produces system produces smooth lines drawings
Resolution
zig-zag lines that are plotted as because CRT beam directly follows the
discrete point sets. line path.
Picture definition is stored
Picture definition is stored as a set
Picture as a set of intensity values for all
of line drawing instructions in a display
Definition screen points, called pixels in a
file.
refresh buffer area.
19