Chapter 05
Chapter 05
Principles
Chapter 5
Image
TMH Chapter - 5 1
Image
Image Types
The typical images that we usually come across are the pictures
that have been printed on paper or some other kinds of surfaces
like plastic, cloth, wood etc. These are also called hardcopy
images.
TMH Chapter - 5 2
Image
Image Types
Sometimes due to limitations of the display or printing devices,
all the colors of a photograph cannot be represented adequately.
TMH Chapter - 5 3
Image
Image Types
TMH Chapter - 5 4
Image
Color
The phenomenon of seeing color is dependent on a triad of
factors: the nature of light, the interaction of light and matter, and
the physiology of human vision.
TMH Chapter - 5 5
Image
Color
The second part of the color triad is human vision. The retina is
the light-sensitive part of the eye and its surface is composed of
photoreceptors or nerve endings.
These receive the light and pass it along through the optic nerve
as a stimulus to the brain. The different frequencies gives rise to
the different color sensations in our eyes.
Researchers have found out that most of the colors that we see
around us can be derived from mixing a few elementary colors.
These elementary colors are known as primary colors.
TMH Chapter - 5 7
Image
Color Models
The RGB color model is used to describe behavior of colored
lights like those emitted from a TV screen or a computer monitor.
This model has three primary colors : red, green, blue.
50% of the color results from a beam having half the peak
strength.
TMH Chapter - 5 8
Image
Color Models
TMH Chapter - 5 9
Image
Color Models
An arbitrary color, say orange, can be specified as 96% red, 40%
green and 14% blue.
TMH Chapter - 5 11
Image
Color Models
The RGB model is only valid for describing behaviour of colored lights.
When specifying colors of ink on paper we require a different model.
This new model is named CMY model and is used to specify printed
colors. The primary colors of this model are cyan, magenta and yellow.
Due to impurities in the ink the actual color obtained is dark brown
instead of black. So an extra black ink is added to produce pure black
which is why the color model is known as CMYK, the K standing for the
black component.
TMH Chapter - 5 12
Image
Color Models
TMH Chapter - 5 13
Image
Color Models
It is to be noted that both the RGB and the CMYK models do not have
universal or absolute color values.
Different devices will give rise to slightly different sets of colors. For this
reason both the RGB and the CMYK models are known as device
dependent color models.
It has been found that the RGB model has a larger gamut than the
CMYK model. This essentially means that all colors in the RGB model
cannot be expressed in terms of the CMYK model.
TMH Chapter - 5 14
Image
Color Models
TMH Chapter - 5 15
Image
Image Processing Stages
Image input is the first stage of image processing. It is concerned
with getting natural images into a computer system for
subsequent work. Essentially it deals with the conversion of
analog images into digital forms.
TMH Chapter - 5 17
Image
Image Processing Stages
Image output is the last stage in image processing concerned
with displaying the edited image to the user.
TMH Chapter - 5 18
Image
Scanner
To start a scanning operation, the paper document to be scanned is
placed face down on the glass panel of the scanner, and the scanner is
activated using a software from the host computer.
The scan head contains a source of white light. As the head moves
across the paper, the light illuminates the paper progressively.
The electronic sensors are called charge coupled devices (CCD) and
are basically converters of the light energy into voltage pulses.
TMH Chapter - 5 19
Image
Scanner
TMH Chapter - 5 20
Image
Scanner
After a complete scan, the image is converted from a continuous entity
into a discrete form represented by a series of separate varying voltage
pulses. This process is called sampling
TMH Chapter - 5 21
Image
Scanner
The flatbed scanners are the most common type in office
environments and has been described above. It looks like a
photocopying machine with a glass panel on which the document
to be scanned is placed face down.
TMH Chapter - 5 23
Image
Scanner
To include the color or chrominance (or chroma) information,
there are three CCD elements for each pixel of the image
formed. These three elements are sensitive to the red, blue and
green components of light.
White light reflected off the paper document is split into the
primary color components by a glass prism and made to fall on
the corresponding CCD sub-components.
TMH Chapter - 5 25
Image
Scanner
To describe a color digital image, the pixels need to contain both
the luma and the chroma values i.e. not only the color values but
the proportion of each color.
TMH Chapter - 5 26
Image
Scanner
Thus to represent the orange color we write : R = 245 (96% of
255), G = 102 (40% of 255), B = 36 (14% of 255). This is called a
RGB triplet and expressed as RGB(245,102,36).
TMH Chapter - 5 27
Image
Scanner
TMH Chapter - 5 28
Image
Scanner
Scanners however are often rated with resolution values higher
than that of the optical resolution e.g. 5400, 7200 or 9600 dpi.
TMH Chapter - 5 29
Image
Scanner
To scan an image, the user needs a scanning software to be
installed on the computer. The software lets the user interact with
the scanner and set parameters like bit depth and resolution.
TMH Chapter - 5 30
Image
Scanner
TMH Chapter - 5 31
Image
Digital Camera
Apart from the scanner used to digitize paper documents and
film, another device used to digitize real world images is the
digital camera.
TMH Chapter - 5 32
Image
Digital Camera
TMH Chapter - 5 33
Image
Digital Camera
Just like a scanner, the voltage pulses from the CCD array travel
to an ADC where they are converted to binary representations
and stored as a digital image file.
TMH Chapter - 5 34
Image
Digital Camera
TMH Chapter - 5 35
Image
Digital Camera
Digital cameras also have some kind of software utility resident in a
ROM chip inside it which allow the user to toggle between the CAMERA
mode (for taking pictures) and PLAY mode (for displaying pictures
taken).
In the PLAY mode the user is presented with a menu structure having
some of the functionalities like : displaying all the images on the floppy,
selecting a particular image, deleting selected images, write-protecting
the important images from deletion etc.
TMH Chapter - 5 36
Image
Digital Camera
TMH Chapter - 5 37
Image
Interface
Interface standards determine how data from acquisition devices
like scanners and digital cameras flow to the computer in an
efficient way. Two main interface standards exist : TWAIN and
ISIS.
TMH Chapter - 5 38
Image
Interface
TWAIN is a software protocol which regulates the flow of
information between software applications and imaging devices
like scanners. The standard is managed by the TWAIN Working
Group.
ISIS has a wider set of features than TWAIN and typically uses
the SCSI-2 interface while TWAIN mostly uses the USB interface
TMH Chapter - 5 39
Image
Specifications
The number of pixels along the height and width of a bitmap
image is known as the pixel dimensions of the image.
Images with more pixels may produce more detail but they
require more storage space and may be slower to edit and print.
The color depth defines the number of bits required to store the
information of each pixel in the image, and in turn determines the
total number of possible colors that can be displayed in the
image.
TMH Chapter - 5 41
Image
Specifications
A bitmap image is stored internally as collection of dots called
pixels, each representing a particular color. A bitmap image is
suitable for representing continuous tone photographic pictures.
TMH Chapter - 5 42
Image
Specifications
TMH Chapter - 5 43
Image
Specifications
Secondly a vector graphic is quite compact and has a small file
size compared to a raster or bitmap image/graphic as the former
contains no pixel information, only certain instructions as to how
the image should look when rendered on screen.
TMH Chapter - 5 44
Image
CMS
A color management system (CMS) is a collection of software
tools designed to reconcile the different color capabilities of
scanners, monitors, printers, image-setters, and printing presses
to ensure consistent color throughout the print production
process.
TMH Chapter - 5 45
Image
CMS
An ICC color management system has three major components:
TMH Chapter - 5 46
Image
CMS
A color management system works by determining the color space of
each device stored as a set of parameters in a file called the device
profile.
The device profile file (also called ICC profiles) are either supplied by
the manufacturer of the device or generated by a series of parameters
obtained from the device.
TMH Chapter - 5 47
Image
CMS
To minimize that, the second component of the CMS called the
color management module (CMM) would read the two device
profiles, analyze the difference between them and adjust the
image colors accordingly so that it looks the same when
displayed in the second monitor.
For translating from one color space to another, the CMM needs
to map the first color space to a device–independent color space
and then maps it again to the second color space.
TMH Chapter - 5 48
Image
Device independence
A device independent color model communicates color
information in a way the human eye perceives them and is not
dependent on any specific device like a monitor or printer.
CIELAB indicates these values with three axes: L*, a*, and b*.
TMH Chapter - 5 50
Image
Device independence
Another device independent model frequently used is known as
the HSB model which uses the concepts of hue, saturation and
brightness to communicate color information.
Hue defines the color itself, for example, red in distinction to blue
or yellow.
The values for the hue axis run from 0–360° beginning and
ending with red and running through green, blue and all
intermediary colors like greenish-blue, orange, purple, etc.
TMH Chapter - 5 52
Image
Device independence
Saturation indicates the degree to which the hue differs from a
neutral gray. The values run from 0%, which is no color
saturation, to 100%, which is the fullest saturation of a given hue
at a given percentage of illumination.
TMH Chapter - 5 53
Image
Gamma
When a perfectly linear gradient ranging from black to white is
shown on the monitor, the monitor distorts the gradient
somewhat.
The gradient would appear to be dark for most of its width and
then suddenly become bright.
TMH Chapter - 5 54
Image
Gamma
Thus a pixel brightness of 50% will result in a screen brightness
of only 20%. This can be represented mathematically by a power
function whose value turns out to be approximately 2.5.
Thus 0.5 raised to the power 2.5 results in 0.2. i.e.(output pixel) =
(input pixel)gamma
TMH Chapter - 5 56
Image
Gamma
TMH Chapter - 5 57
Image
Editing Software
An image processing software offers a wide variety of ways to
manipulate and enhance images. We discuss below some of the
salient features of a typical image processing software.
Painting tools are used to paint lines, shapes etc. or fill regions
with specified colors.
TMH Chapter - 5 60
Image
Editing Software
The concept of layers allow the user to edit portions of an image
independent of other portions, by splitting the image into
separate layers.
TMH Chapter - 5 61
Image
Editing Software
TMH Chapter - 5 62
Image
Editing Software
When displaying images with curves and diagonal lines on the
screen one can often find that these lines look jagged instead of
smooth.
TMH Chapter - 5 64
Image
File Formats
BMP - BMP is a standard Windows image format on DOS and
Windows-compatible computers. BMP format supports RGB,
Indexed Color, Grayscale, and Bitmap color modes, and does
not support alpha channels
TMH Chapter - 5 65
Image
File Formats
GIF - Graphics Interchange Format (GIF) is the file format
commonly used to display indexed-color graphics and images in
hypertext markup language (HTML) documents over the World
Wide Web and other online services. GIF format preserves
transparency in indexed-color images; however, it does not
support alpha channels.
TMH Chapter - 5 66
Image
Image Output
Image output on the monitor depends on both the monitor size
and monitor resolution.
Absolute size of the image increases with the monitor size and if
image resolution is more than the monitor resolution.
TMH Chapter - 5 67
Image
Image Output
A typical 13" monitor displays 640 pixels horizontally and 480
pixels vertically. An image with pixel dimensions of 640 by 480
would fill this small screen.
On a larger 15" monitor with a 640 by 480 setting, the same
image would still fill the screen but each pixel would appear
larger. Changing the setting of this larger monitor to 832 by 624
pixels would display the image at a smaller size occupying part
of the screen.
On a 20" monitor, if setting is kept at 640 by 480, the same
image would again fill the screen, but at a higher setting of 1024
by 768, the image will occupy a very small portion of the screen.
TMH Chapter - 5 68
Image
Image Output
TMH Chapter - 5 69
Image
Image Output
Image output on printers can either be on LASER printers or Ink-
jet printers.
TMH Chapter - 5 71
Image
Image Output
Ink-jet printers use water based colored inks which are transferred on to
paper from reservoirs through nozzles.
Most inkjets use thermal technology, whereby heat is used to fire ink
onto the paper. The ink emission is initiated by heating the ink to create
a bubble until the pressure forces it to burst and hit the paper.
TMH Chapter - 5 72
Image
Image Output
TMH Chapter - 5 73