Documente Academic
Documente Profesional
Documente Cultură
1. Input Devices:-
The input devices are mouse, keyboard, joysticks, trackball
and space ball, data glove, digitizers, image scanners, touch
panels, light pens, voice systems.
Keyboards:
A keyboard is generally used for entering the text strings,
cursor control and functions. Function keys allows users to
enter frequently used operations in a single keystroke. Cursor
control keys can be used to select displayed objects or co-
ordinate positions by positioning the screen cursor.
Mouse:
A mouse is small hand-held box used to position the screen
cursor. Wheels or rollers on the bottom of the mouse can be
used to record the amount and direction of movement.
Trackball:-
A trackball is a ball that can be rotated with the fingers or
palm of the hand to produce screen cursor movement.
Trackballs are often mounted on keyboards or other devices
such as the Z mouse. Ex:- Potentiometer.
Space ball:-
A space-ball provides six degrees of freedom while trackball is
a 2-D positioning device. Space-balls are used for 3-D
positioning and selection operations in virtual reality systems,
modeling, animation, CAD and other application. Ex:- Strain
gauge
Joysticks:-
Most joysticks select screen positions with actual stick
movement; other respond to pressure on the stick.
Data Glove:-
Data glove is used for to grasp a virtual object. The glove is
constructed with a series of sensors that detect hand and finger
motions.
Digitizers:-
A common device for drawing, painting or interactively
selecting co-ordinate positions on an object is a digitizer.
Typically, a digitizer is used to scan over a drawing or object
and to input a set of discrete co-ordinate positions, which can
be joined with straight line segment to approximate the curve
or surface shapes. Graphics table (data table) is used to input
2-D co-ordinates by activating a hand cursor or stylus at
selected positions on a flat surface.
Acoustic (sonic) tables use sound waves to detect a stylus
position. Either strip microphones or point microphones can
be used to detect the sound emitted by an electrical spark from
a stylus tip.
Image Scanner:-
Drawing, graphs, color and black & white photos, or text can
be stored for computer processing with an image scanner by
passing an optical scanning mechanism over the information to
be stored. The gradation of gray scale or color are then
recorded and stored in an array.
Touch Panels:-
Touch panels allow displayed objects or screen positions to be
selected with the touch of a finger. Touch input can be
recorded using optical, electrical or acoustical methods.
Light Pens:-
The light pen is a pointing device. Such pencil shaped devices
are used to select screen positions by detecting the light coming
from points on the CRT screen .
Voice Systems:-
The voice system input can be used to initiate graphics
operations or to enter data. These systems operate by matching
an input against a predefined dictionary of words and phrases.
2. Output devices:-
Video Display Devices, Hard copy technology.
Display Devices:-
Pixel:-
The finer the pixels the more the number of pixels displayable
on a monitor screen.
Resolution:-
Aspect Ratio :-
Refresh Rate:-
During the plug and play monitor, just plug the monitor,
windows will detect it and set the correct display type and
choose the optimal refresh rate automatically.
Ex.: Find out the refresh rate of a monitor with 640 x 480
resolution having average access time to access a pixel is 200ns.
So
to access 1 pixel requires 200 ns
to access 640 x 480 pixel requires = 640 x 480 x 200 ns
= 640 x 480 x 200 x 10 -9 s
Thus 640 x 480 x 200 x 10-9 sec takes to access 1 frame i.e., 640
x 480 bits.
= 1 bits
200 x 10-9
Interlacing :
Vertical retrace
Figure::
Figure ::
In CRT we use a cathode and a control grid. Heating
filament heated the cathode which heated the electrons and the
electrons then accelerated towards the phosphor coating by the
voltage.
Figure ::
Frame Buffer:-
Color Depth:-
Figure::
Figure::
The more the number of bits used per pixel, the finer the
color detail of the image. However, increased color depths also
requires significantly more memory for storage and also more
data for the video card to process which reduces the allowable
refresh rate.
Figure::
Lookup Table:-
Using look up table, pixel values do not code colors
directly. Instead, they are addresses or indices into a table of
color values. The color of a particular pixel is determined by
the color value in the table entry that the value of the pixel
references.
The lookup table must contain 2N entries. Each entry in
the lookup table is W bits wide. (W > N). When this occurs, 2W
intensities are available, but only 2N different intensities are
available at a time.
Since there are 3 primary color, (RGB), a simple color
frame buffer is implemented with 3 bit planes, one for each
primary color. Each bit plane drives an individual color gun
for each of the 3 primary colors used in color video. These
colors are combined at the CRT to yield 8 colors.
It is important to remember that, using the lookup table
representation, an image is defined not only by its pixel values
but also by the color values in the corresponding lookup table.
Those color values from a color map for the image.
Figure:
Figure:
Figure:
Ans:- Suppose there are single bit plane are used i.e. N = 1
To access 1 pixel requires 200ns
To access 512 x 512 requires 200 x 512 x 512 ns.
= 200 x 512 x 512 10-9 s
= 0.0524 sec.
Thus it requires 0.0524 sec to access all the pixel in a 512 x 512
frame buffer.
Example: Find out same with 1024 x 1024 frame buffer and
4096 x 4096 frame buffer.
(i) To access 1 pixel requires 200ns.
To access 1024 x 1024 requires = 200 x 1024 x 1024 ns
= 200 x 1024 x 1024 x 10-9 s
= 0.2097 sec.
So in 0.2097 sec access 1024 x 1024 bits
In 1 sec = 1024 x 1024
0.2097
= 5 x 106 bits
Memory Size :-
Ex 1:- What is the memory size of the frame buffer having the
resolution of the computer 512 x 512 with single bit plane.
Ans.: Here single bit plane is used i.e., n = 1, it means that 1 bit
defines 1 pixel.
Total 1 bit defines 1 pixel.
Total no. of pixels is the frame buffer is = 512 x 512
= 29 x 29
= 218 bits
As 1 bit defines 1 pixel
218 bit = 218 pixels
= 210 x 28 bit
= 210 x 23 x 25 bit
= 32kb
So memory size = 32kb
Ans.: N=8
Memory size = N x X x Y
= 8 x 1024 x 1024
= 23 x 210 x 210
= 223 bit
= 220 byte
= 210 kb
= 1 MB.
CRT DVST
1. It requires refreshing. 1 It does not require
. refreshing.
2. It display low resolution 2 High resolution picture.
picture .
3. The pictures are 3 There is no flickering of
flickering. . picture.
4. They produce colored 4 They do not display colors.
picture .
5. We can erase the 5 We can not erase the
particular pictures on the . particular picture.
entire screen.
Solved Problem
1. What is the resolution of an image?
Ans.:- The no. of pixels(Picture elements) per unit length(inch)
in the horizontal as well as vertical direction.
2. Compute the size of a 640 x 480 images at 240 pixels per
inch?
640 by 480
240 240
or 2 2/3 by 2 inches.
3. Compute the resolution of a 2 x 2 inch image that has 512 x
512 pixels?
512 = 256 pixels per inch
2
4. What is an image’s aspect ratio?
The ratio of its width to its height, measured in unit
lengths or number of pixels.
5. If an image has a height of a 2 inches and an aspect ratio of
1.5, what is its width?
Width = Aspect Ratio
Height
=> width =Aspect ratio x height
= 1.5 x 2
= 3 inches
6. If we want to resize a 1024 x 768 image to one that is 640
pixels wide with the same aspect ratio, what would be the
height of the resized image?
Aspect ratio of 1024 x 768 image is = 1024 = 1.33
768
Now we change the width to 640. So what is the height with the
same aspect ratio.
We know that
Width = Aspect ratio
Height
=> Height = Width
Aspect ratio
= 640 = 480
1.33
7. If we want to cut a 512 x 512 sub image out from the centre
of an 800 x 800 image, what are the co-ordinates of the pixel in
the large image that is at the lower left corner of the small
image?
x co-ordinate = (800 – 572) / 2 = 144
y co-ordinate = (600 – 512) / 2 = 44
so the co-ordinate is (144, 44)
Note: In RGB color model, we begin with black and add on the
appropriate primary components to yield a desired color. RGB
model is an additive process. (Display monitor).
On the other hand, CM4 color model, defines colors using
subtractive process which closely matches the working
principle of printer.
The formula for summarize the conversion between the
two color models.
R 1 C C 1 R
G = 1 − M => M = 1 − G
B 1 Y Y 1 B
13. If we use 5 bits each for red and blue and 6 bits for green
for a total of 16 bits per pixel, how many possible simultaneous
colors do we have?
25 x 25 x 26 = 216 = 65,536
Electrostatic Deflection
Magnetic Deflection
21. What do you call the path the electron beam takes at the
end of each refresh cycle?
Vertical retrace.
22. What do you call the path the electron beam takes when
returning to the left side of the CRT screen?
Horizontal retrace.
Output Primitives
Scan Conversion:-
Scan conversion of the object refers to the operation of finding
out the location of pixels to be intensified and then setting the
values of corresponding bits, in the graphics memory, to the
desired intensity code.
The graphics system or the application program convert each
primitive from its geometric definition into a set of pixels that
make up the primitive in the image space.
Points:-
Point plotting is accomplished by converting a single co-
ordinate position furnished by an application program into
appropriate operations for the output devices in use.
The point in the computer language is called as pixel. But due
to the display surface depending upon the screen resolution, a
pixel can not represent a single mathematical point We
consider each pixel as a unit square area identified by the co-
ordinates of its lower left corner.
y
Pixel grid
P2
. P1
O(0, 0) x
Example:-
P1(1.7, 0.8) is represented by (1, 0)
P2(2.2, 1.3) is represented by (2, 1)
P3(2.8, 1.9) is represented by (2, 1)
Example:-
P1(1.7, 0.8) is represented by (2, 1)
P2(2.2, 1.3) is represented by (2, 1)
P3(2.8, 1.9) is represented by (3, 2)
Lines:-
Line drawing is accomplished by calculating intermediate
positions along the line path between two specified end point
positions.
A line in computer graphics refers to a line segment. It is
defined by its end points and the line equation y = mx + c,
where m is the slope and c is the y intercept.
Let the line is generated by two end points P1(x1, y1) and P2(x2,
y2)
So m = y2 – y1
X2 – x1
6 = y1 – mx1
For any value of xi, we can calculate yi
Let the step size of xi+1=xi+1
yi+1 = m xi+1 + C
= m(xi + 1) + C
= m( xi + ∆x) + C = mxi + m∆x + C = (mxi + C ) + m∆x
if ∆x = 1,
then
yi +1 = (mxi + σ ) + m
=> yi +1 = yi + m
For any given x, interval ∆ x along a line, the corresponding y
interval ∆ y is
∆y = m∆x