CGIP Mod1 PPT 2 (CRT, Raster, Random)
CGIP Mod1 PPT 2 (CRT, Raster, Random)
CST304
Module - 1 Part -2
3
Cathode-Ray Tubes (CRT)
Focusing
System
Y deflect
Base
Phosphor
Connector x deflect
Pins
Electron
Gun Control
grid
voltage
4
Cathode Ray Tube (CRT)
A cathode ray tube (CRT) contains four basic parts:
electron gun,
focusing and accelerating systems,
deflecting systems, and
evacuated glass envelope with a phosphorescent screen
that glows visibly when struck by the electron beam
5
Basic operations of a CRT
6
Phosphor Persistence
Definition: The time it takes the emitted light from the screen
to decay to one-tenth of its original intensity .
There are different kind of phosphors for use in a CRT.
Besides color, a major difference is their persistence – how
long they continue to emit light after the CRT beam is
removed.
A phosphor with low-persistence is useful in animation.
A high-persistence phosphor is useful for displaying highly
complex, static pictures.
Graphics monitors are usually constructed with a persistence
in the range from 10 to 60 microseconds.
7
Brightness (Intensity) distribution
The intensity is greater at the center of the spot, and it decreases with
Gaussian distribution out to the edges of the spot.
8
Resolution
9
Aspect Ratio
• Aspect ratio gives the ratio of horizontal points to vertical points
necessary to produce equal-length lines in both directions on the
screen.
• Aspect ratio 4:3 (most common) means that a horizontal line
plotted with 4 points has the same length as a vertical line plotted
with 3 points.
10
Aspect Ratio
11
Addressability
• Addressability is the number of individual dots per
inch (d.p.i.) that can be created.
• If the address of the current dot is (x, y) then the next
dot will be (x + y), (x + y + 1)
• The picture on a screen consists of intensified points.
• The smallest addressable point on the screen is
called pixel or picture element
12
Refresh Rate
Definition: The number of times per second the image is
redrawn.
The entire contents of the frame buffer are displayed on the
CRT at a rate high enough to avoid flicker. This rate is called
the refresh rate.
rate
For a human to see a steady image on most CRT displays,
the same path must be retraced, or refreshed, by the beam
at least 60 times per second.
Current raster-scan displays perform refreshing at the rate
of 60 to 80 frames per second, although some systems now
have refresh rates of up to 120 frames per second.
Refresh rates are described in units of cycles per second, or
Hertz (Hz), where a cycle corresponds to one frame (i.e. a
refresh rate of 60 frames per second = 60 Hz).
13
Refresh-rate for films and TV
• The display technology on a monitor is different from that of film.
– A film projector can maintain the continuous display of a film
frame until the next frame is brought into view.
– On a video monitor a phosphor spot begins to decay as soon as it
is illuminated.
• On films, below 24 frames per second, we can perceive a gap
between successive screen images.
– Old silent films show flicker because they were photographed at a
rate of 16 frames per second.
– When sound systems were developed in the 1920s, motion picture
film rates increased to 24 frames per second removing flickering.
– Today TV refresh rate is 25 frames per second in Europe and 30
frames per second in the USA.
14
Raster Scan Displays
0 800
0
x
y
Frame buffer Display surface
at (800,600)
16
The number of bits per pixel in the frame buffer is called
depth or bit planes
Determines properties such as how many colors can be
represented on a given system.
Buffer with 1 bit per pixel (1-bit-deep) – Bitmap allows 21 colors
(black and white)
Buffer with multiple bits per pixel (8-bit-deep) – Pixmap allows 28
colors (=256)
Full color (RGB-color systems), 24 (or more) bits per pixel in
order to display sufficient colors to represent most images
realistically.
17
Raster Scan Displays
They are based on TV technology
Eg: Home TV sets, Printers
Refresh rate = 60 to 80 frames per second.
Note: Below 24 frames/second, eye detects flicker.
Electron beam sweeps across the screen one row at a time from top to
bottom referred to as a scan line. 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 frame buffer/ refresh buffer, and stored
intensity values are retrieved and painted on the screen one row(scan
line) at a time.
Each screen point is called as pixel (picture element) and is visited
every refresh cycle.
Capable to store intensity information for each screen point, so well
suited for the realistic display of scenes (shading and color patterns).
18
Raster- Scan Displays….
Electron beam sweeps across the screen one row at a time from top to
bottom referred to as a scan line
At the end of each scan line, the electron beam returns to the left side of
the screen to display the next scan line (horizontal retrace)
At the end of each frame, the electron beam returns to the top-left corner
of the screen to display the next frame (vertical retrace)
Scan line
Horizontal Vertical
retrace retrace
19
20
Interlaced Raster Scan Displays
To reduce flicker, divide frame into two fields—one consisting of the
even scan lines and the other of the odd scan lines.
Even and odd fields are scanned out alternately to produce an
interlaced image. Odd/even scan lines covered in successive refresh
cycles.
Hence 30 frames/sec refresh rate appears like 60 frames/sec.
0
1
2
3
4
5
6
21
22
Interlaced vs. Non-interlaced
Interlaced
Refresh every other line on each pass
Lower refresh rate without flicker
Good for fixed graphics
Causes flutter with animated graphics
Inexpensive
Non-interlaced
Refresh every line on each pass
Typical screen sold today
23
Zooming Effects
24
Random-Scan (Vector) displays
Vector stands for line.
Developed in the mid-60’s and in common use until the mid- 80’s
The electron beam is directed only to parts of the screen where the
picture is to be drawn.
MoveTo (300,800)
LineTo (700,800)
LineTo (500,300)
LineTo (300,800)
25
Random Scan Displays
Calligraphic Displays also called vector, stroke or line drawing graphics
Electron beam directed only to the points of picture to be displayed.
Picture is stored as a set of point and line-drawing commands with (x,y) or
(x,y,z) endpoint coordinates, as well as character-plotting commands.
Storage referred as display list, refresh display file, vector file or display
program
System cycles through set of commands in display list, draw lines and
refreshes it.
Refresh rate depends on the number of lines to be displayed. To avoid
flicker it must be at least 30 times per second (30 Hz).
They are designed to draw all the component lines of a picture 30 to 60
times per second – more than 60 could burn the phosphor.
High quality vector systems are capable of handling approximately 100,000
lines at this refresh rate.
They are designed for smooth line drawing applications, higher resolution
Cannot display realistic shaded images, 26
Raster Scan Vs Random Scan
Raster scan
Random scan
27
Raster Scan Vs Random Scan
28
Comparing Raster and Vector (2/2)
Advantages of Vector displays:
– very fine detail of line drawings (sometimes curves),
– whereas raster suffers from jagged edge problem due to pixel
s (aliasing, quantization errors)
– Higher resolution
– geometry objects (lines) whereas raster only handles pixels
– eg. 1000 line plot: vector display computes 2000 endpoints
– raster display computes all pixels on each line
29
Random Scan Raster Scan
1. It has high Resolution 1. Its resolution is low.
2. It is more expensive 2. It is less expensive
3. Any modification if needed is easy 3.Modification is tough
4. Solid pattern is tough to fill 4.Solid pattern is easy to fill
5. Refresh rate does not depend on the
5. Refresh rate depends on picture
picture.
6. Only screen with view on an area is
6. Whole screen is scanned.
displayed.
1 1 1 1 1 1 0 0
0 1 1 0 0 1 1 0
0 1 1 0 0 1 1 0
0 1 1 1 1 1 0 0
0 1 1 0 0 1 1 0
0 1 1 0 0 1 1 0
1 1 1 1 1 1 0 0
0 0 0 0 0 0 0 0
31
Gray Level Images
n-bits per pixel produce 2n gray levels.
Many images use 8-bits per pixel, i.e. 256 gray levels
since it gives acceptable quality.
00 01 10 11
33
The Color Depth
Many images have a color depth of eight (one byte), 3 bits-red, 3 bits -
green and 2 bits for the blue. Each pixel has one of 256 colors.
In highest quality (true-color) images, have a color depth of 24, one
byte for each component.
This achieves the best color production the eye can perceive: More bits do not
improve an image.
However, such images require a lot of memory. A true-color image of 1,080
1,024 pixels requires over 3 million bytes.
pixel value
y
Color depth = 6 bits 26 (= 64) colors 34
Common Colors
35
Color CRT Monitors
• Using a combination of phosphors that emit
different-colored light
• Beam-penetration
– Used in random-scan monitors
– Use red and green phosphors layers
– Only 4 colours- RED, GREEN, YELLOW AND ORANGE
– Color depends on the penetrated length of electrons
• Shadow mask
– Used in raster-scan systems
– Produce wide range of color with RGB color model
36
Color CRT – Beam penetration method
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.
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.
37
Color CRT - Shadow Mask method
Color CRTs have three different colored phosphors (red, green,
blue) usually arranged in triangular (delta) groups called triads at
each pixel position.
– Requires manufacturing very precise geometry
– Uses a pattern of color phosphors on the screen
Shadow mask - This type of CRT has three electron guns, one for
each color dot, and a shadow-mask grid just behind the phosphor-
coated screen. A metal screen with small holes allows electrons from
each gun to hit only corresponding phosphors dots (of proper
color).
are commonly used in raster-scan systems (including color TV)
because they produce a much wider range of colors than the beam-
penetration method.
We obtain color variations in a shadow-mask CRT by varying the
intensity levels of the three electron beams.
38
Shadow Mask Methods
Delta electron gun arrangement
39
Delta-delta vs Inline
• The delta-delta shadow-mask
method, commonly used in color • Another configuration for the
CRT systems. three electron guns is an in-line
• The three electron beams are arrangement.
deflected and focused as a group onto
the shadow mask, which contains a • This in-line arrangement of
series of holes aligned with the electron guns is easier to keep in
phosphor-dot patterns. When the alignment and is commonly used
three beams pass through a hole in in high-resolution color CRTs.
the shadow mask, they activate a dot
triangle, which appears as a small
color spot on the screen.
• The phosphor dots in the triangles are
arranged so that each electron beam
can activate only its corresponding
color dot when it passes through the
shadow mask. 40
Raster-Scan systems
• Organization of raster system
– Fixed area of system memory reserved for frame buffer which can
be directly accessed by video controller
System Video
CPU Monitor
Memory Controller
System Bus
I/O Devices
41
Raster-Scan systems…
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.
Frame-buffer locations, and the corresponding screen
positions, are referenced in Cartesian coordinate
For many graphic monitors, origin is defined at the lower left
screen corner
The screen surface is then represented as the first quadrant of
a two-dimensional system, with positive x values increasing
to the right and positive y values increasing from bottom to
top.
42
Raster-Scan systems
43
Raster-Scan systems
• Video Controller
– Refresh operations
• X, Y register used to indicate pixel position
• Fix Y register and increment X register to generate
scan line
– Double buffering
• Pixel value can be loaded in buffer while it is read
• Provide a fast mechanism for real-time animation
generation
44
Raster-Scan systems
Two registers are used to store
the coordinates of the screen
pixels.
Initially, the x register is set to 0
and the y register is set to ymax.
The value stored in the frame
buffer for this pixel position is
then retrieved and used to set
the intensity of the CRT beam
0 800
0 x
600
y 45
Raster-Scan systems
46
Raster-Scan systems
To speed up pixel processing, video controllers can retrieve
multiple pixel values from the refresh buffer on each pass.
The multiple pixel intensities are then stored in a separate
register and used to control the CRT beam intensity for a
group of adjacent pixels.
When that group of pixels has been processed, the next
block of pixel values is retrieved from the frame buffer.
47
Video Controller
• For various applications, the video controller can also retrieve pixel
intensities from different memory areas on different refresh cycles.
• Also, some transformations can be accomplished by the video
controller.
• In addition, the video controller often contains a lookup table, so
that pixel values in the frame buffer are used to access the lookup
table instead of controlling the CRT beam intensity directly.
• Finally, some systems are designed to allow the video controller to
mix the frame-buffer image with an input image from a television
camera or other input device
48
Raster-Scan Systems
• Raster-Scan Display Processor
– Frees the CPU from the graphics chores
– Provide separate display-processor memory
50
RANDOM-SCAN SYSTEMS
51
RANDOM-SCAN SYSTEMS
Graphics 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 coordinate endpoints, and
these input coordinate 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.
52
Graphics Software
• Classifications
– Special purpose package
• Designed for non-programmers
• No graphics procedures involved
• Communicate with a set of menus
– General programming package
• Designed for programmers
• Provide library of graphics functions used in
programming language
53