CH 1 - Introduction To CG
CH 1 - Introduction To CG
Page 1 of 10
Introduction to CG 2016/17
simulators provide graphics screen for visual operation. Some of them provide only the control
panel.
6) Visualization
The numerical and scientific data are converted to a visual form for analysis and to study the
behavior called visualization. Producing graphical representation for scientific data sets are
called scientific visualization. And business visualization is used to represent the data sets related
to commerce and industry. The visualization can be either 2D or 3D.
7) Image Processing
Computer graphics is used to create a picture. Image processing applies techniques to modify or
interpret existing pictures. To apply image processing methods, the image must be digitized first.
Medical applications also make extensive use of image processing techniques for picture
enhancements, simulations of operations, etc.
8) Graphical User Interface
Nowadays software packages provide graphics user interface (GUI) for the user to work easily.
A major component in GUI is a window. Multiple windows can be opened at a time. To activate
any one of the window, the user needs just to check on that window. Menus and icons are used
for fast selection of processing operations. Icons are used as shortcut to perform functions. The
advantages of icons are which takes less screen space. And some other interfaces like text box,
buttons, and list are also used.
Page 2 of 10
Introduction to CG 2016/17
Displays are often referred to as Video Monitor or Video Display Unit (VDU). The most
common monitor that comes with PC is the Raster Scan type.
Every display system has three basic parts:
Display adapter that creates and holds video information,
Monitor which displays that information, and
Cable that carries image data between display adapter and monitor
Properties of video monitors: pixel, resolution and aspect ratio will be discussed.
Pixel
Pixel (also known as picture element) is the fundamental building block of all computer images
or color spot that can be displayed and addressed on a monitor. Image displayed on the monitor
is made up of thousands of pixels. Each pixel has particular color and brightness value.
Resolution
The maximum number of points that can be displayed without overlap on a screen is referred to
as resolution. Image resolution refers to the pixel spacing, i.e., the distance from one pixel to
the next pixel. A typical PC monitor displays screen images with a resolution somewhere
between 25 pixels per inch and 80 pixels per inch (ppi). A full screen image with resolution 800
600 means that there are 800 columns of pixels, each column comprising 600 pixels, i.e., a
total of 800 600 = 480000 pixels in the image area.
Aspect Ratio
The aspect ratio of an image is the ratio of the number of X pixels to the number of Y pixels. The
standard aspect ratio for PCs is 4:3 and some resolutions even use a ratio of 5:4. Image displayed
using 5:4 aspect ratio will cause the image to appear somewhat distorted. The Table 1.1 shows
common resolutions, respective number of pixels and standard aspect ratios.
Table 1.1 Common resolutions, respective number of pixels and standard aspect ratios
Resolution Number of Aspect
Pixels Ratio
320 200 64,000 8:5
640 480 307,200 4:3
800 600 480,000 4:3
1024 768 786,432 4:3
1280 1024 1,310,720 5:4
1600 1200 1,920,000 4:3
Cathode-Ray Tube (CRT)
CRT works just like picture tube of television set.
Page 3 of 10
Introduction to CG 2016/17
A set of electron guns at the back of CRT produce controlled beam of electrons. Cathode is the
primary component of an electron gun. The phosphor material emits light when struck by high-
energy electrons.
A beam of electrons (cathode rays) emitted by an electron gun, passes through the focusing and
deflection systems that direct the beam toward 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 rapidly, the picture is redrawn repeatedly and quickly, a method
called refresh is used to keep the spot glowing.
In monochrome CRT there is only one electron gun, whereas in a color CRT there are three
electron guns each controlling the display of red, green and blue light, respectively. A color CRT
monitor displays color pictures by using a combination of phosphors that emit different colored
light.
Horizontal retrace
The return of the beam direction to the leftmost position one line down is called horizontal
retrace during which electron flow is shut off
Vertical retrace refers to the movement from bottom to top.
An image in raster scan display is basically composed of a set of dots and lines. Lines are
displayed by making these dots bright (with desired color) which lie as close as possible to the
shortest path between the end points of the line
Refresh Rate
A phosphor material glows for a fraction of second when hit by electron beams and then fades
making the image unstable (results in a flicker in the image). To make the screen stable, the
image must be redrawn a number of times in a second. This process is known as refreshing and
it is depicted on Figure 1.3
In order to avoid flicker, the image should be redrawn quickly in such a way that our eyes cannot
tell what is going on. The number of times per second that the screen is refreshed is known as the
Page 4 of 10
Introduction to CG 2016/17
refresh rate, and is measured in Hertz (Hz), the unit of frequency. Common refresh rates are:
56, 60, 65, 70, 72, 75, 80, 85, 90, 95, 100, 110 and 120 Hz.
The maximum refresh rate possible depends on the resolution of the image. A higher resolution
screen supports less refresh rate than that of lower resolution image due to the more number of
pixels to cover with each sweep.
Color Depth
The number of memory bits required to store color information (intensity values for all three
primary components) about a pixel is called color depth or bit depth. A minimum of one
memory bit (color depth = 1) is required to intensity value either 0 or 1 for every screen pixel.
The block of memory which stores (or is mapped with) bi-level intensity values for each pixel of
a full screen of a full black and white image is called a bit plane or bitmap.
Color or gray levels can be achieved using additional bit planes. For example n bits per pixel
(color depth = n) is a collection of n-bit planes this allows specifying 2n color or gray shades at
each pixel.
The more the number of bits per pixel used, the finer the color detail of the image. However,
increased color depth requires more memory for storage, and more data for the video card to
process, which reduces the allowable refresh rate. Table 1.2 shows common color depths used in
PCs
Page 5 of 10
Introduction to CG 2016/17
Frame Buffer
Frame buffer is the video memory (RAM) that is used to hold or map the image displayed on the
screen. It is a memory area which contains an internal representation of an image. It can be
implemented as part of the main memory or as separate memory.
The amount of memory depends primarily on the resolution of the screen image and also the
color depth used per pixel, i.e.
Type of CRTs
There are two types of CRTs basically: raster scan type and random scan type. The main
difference between the two is the technique with which the image is generated on the screen
Page 6 of 10
Introduction to CG 2016/17
Page 7 of 10
Introduction to CG 2016/17
gifted us LCD panel, plasma panel, LED (Light Emitting Diode) panel and thin CRT. A main
advantage of flat-panel displays is that they are thinner than CRTs and we can hang them on
walls or wear on our wrists. The two categories of flat-panel displays are:
Emissive displays - the device which convert electrical energy into light. (Plasma panel)
Non-Emissive displays - used optical effects to convert sunlight or light from some other
source into graphic patterns. (Liquid Crystal Display - LCD)
These devices are smaller, lighter and specifically thinner than the conventional CRT and thus
termed as Flat Panel Display (FPD). FPDs in general and LCD panels in particular are most
suitable for small systems like calculators, laptop computers but are expensive to produce. Thin
CRT is produced by bending the tube of normal CRT in the middle.
Graphics Software
There are two general classifications for graphics software: general programming packages and
special-purpose applications packages. A general graphics programming package provides an
extensive set of graphics functions that can be used in a high-level programming language, such
as C, FORTRAN, C++, Java etc. An example of a general graphics programming package is the
Graphics Library (GL). Basic functions in a general package include those for generating picture
components (straight lines, polygons, circles, and other figures), setting color and intensity
values, selecting views, and applying transformations. By contrast, application graphics packages
Page 8 of 10
Introduction to CG 2016/17
are designed for nonprogrammers, so that users can generate displays without worrying about
how graphics operations work. The interface to the graphics routines in such packages allows
users to communicate with the programs in their own terms. Examples of applications packages
are the artist's painting programs and various business, medical, and CAD systems.
i) Graphical Kernel System (GKS) - the first graphics software standard by the International
Standards Organization (ISO) and by various national standards organizations, including the
American National Standards Institute (ANSI). Although GKS was originally designed as a
2-D graphics package, a 3-D GKS extension was subsequently developed.
ii) Programmer's Hierarchical Interactive Graphics Standard (PHIGS) was the second
software standard to be developed and approved by the standards organizations, which is an
extension of GKS. Increased capabilities for object modeling, color specifications, surface
rendering, and picture manipulations are provided in PHIGS.
iii) PHIGS+ - an extension of PHIGS, was developed to provide 3-D surface-shading
capabilities not available in PHIGS.
iv) Computer Graphics Interface (CGI) & Computer Graphics Metafile (CGM) systems -
Although PHIGS presents a specification for basic graphics functions; it does not provide a
standard methodology for a graphics interface to output devices. And also does not specify
methods for storing and transmitting pictures. Separate standards have been developed for
these areas. Standardization for device interface methods is given in the CGI system. And
the CGM system specifies standards for archiving and transporting pictures.
Summary Questions
A. Say true or false
1. 3-D graphics can provide more attraction to the presentation.
2. Image processing applies techniques to interpret any pictures.
3. The primary output device in graphics system is a video monitor.
4. Aspect ratio of an image is the ratio of the number of Y pixels to the number of X pixels.
5. In Raster scan the electron beam from electron gun is swept vertically across the phosphor.
6. PHIGS is the first graphics software standard recognized by ISO.
B. Fill in the blank space
Page 9 of 10
Introduction to CG 2016/17
Page 10 of 10