Image Processing Vacobulary
Image Processing Vacobulary
c) 2016-2017
The image on the right is an original image from the internet with a resolution
size of 1920x1200. The image on the left is a zoomed in version of the original
image on the right. The zoomed in version shows all the various pixels which are
use to make up that part of the image.
1
Prepared by : Haval Akrawi (MS.c) 2016-2017
Vector vs raster
Raster images are grids of dots, or pixels, each pixel containing color
information. They are also known as bitmaps
Vector image
If this image were sent to a pen plotter, the image would translate as instructions
to the plotter to lift the pen off the paper, move to coordinate x1,y1, lower the pen
onto the paper and move to x2,y2, so drawing the line.
In this way, straight lines, arcs and circles can be drawn and the lines are perfect.
2
Prepared by : Haval Akrawi (MS.c) 2016-2017
Raster image
In the raster image below, the area is divided into a number of pixels and the
impression of a line is given by some pixels being black and others white.
3
Prepared by : Haval Akrawi (MS.c) 2016-2017
8 * 6 = 48 pixels
16 * 12 = 192 pixels
If you multiply the width and height by 2, the file size increases by a factor of 4.
So, if you scale your image by 50 percent, you are halving the width and
height, but you are reducing the file size by a factor of 4.
4
Prepared by : Haval Akrawi (MS.c) 2016-2017
5
Prepared by : Haval Akrawi (MS.c) 2016-2017
Bit depth
6
Prepared by : Haval Akrawi (MS.c) 2016-2017
A bit is a binary digit, which can only have a value of 0 or 1. This is a 1 bit digital
representation of the image. That is, the color of each pixel can be stored in just
1 bit of space in the computer.
However, images will normally need more colors than that, so the definition of
the color of each pixel will take up more space in the file. 256 color values can be
fitted into 8 bits, 16 million colors need 24 bits.
2-bit 4 colors
4-bit 16 colors
7
Prepared by : Haval Akrawi (MS.c) 2016-2017
An example
Monochrome 256
10
Prepared by : Haval Akrawi (MS.c) 2016-2017
File formats
There are very many file formats, so I'll only describe a few of the more common
ones.
Older versions of Microsoft Office products (Word, Excel, Power point) were quite
fussy about what graphics files they would import, but current versions will take
almost anything. However, you are usually safe with tiffs and picts
bmp
alternative to gifs
use on web pages, but not universally supported yet
24 bit color
lossless compression
11
Prepared by : Haval Akrawi (MS.c) 2016-2017
pict
proprietary to MACs
format similar to tiffs, allowing for file transfer between
programs
compressed
support 16 to 32 bit color
can be used for vector and bitmap images
psd
eps
wmf
12
Prepared by : Haval Akrawi (MS.c) 2016-2017
Resolution
The higher the DPI or PPI, the more dots that are in an inch and generally, the
better the image quality and the larger the file size.
Screen Resolution
If the monitor is set to a resolution of 640 * 480, the image will take up a quarter
of the screen.
If the monitor is set to a resolution of 1280 * 1024, the image will appear
smaller.
The PCs in the PC suite are set up so that you should not be able to alter the
screen resolution, but they do sometimes get changed. When set to a high
13
Prepared by : Haval Akrawi (MS.c) 2016-2017
resolution, text appears very small and you can fit quite a lot on the screen at
once. For lower resolutions, text is larger and buttons are larger.
1152 x 864 96
Especially when designing web pages, consider the screens people may be using
to view your pages. If you design a page on a big screen, and it looks great,
remember to try it out on a 15 inch monitor. If people have to scroll down for
some vital part, they may not ever see that information.
14
Prepared by : Haval Akrawi (MS.c) 2016-2017
Also, if people have to wait ages for a huge image to download, they may give up
and go to another page.
Printer resolution
The advertised resolution for a Deskjet 1220C is 600dpi (though they claim
2400x1200dpi with HP Photoret III Precision Technology)
The advertised resolution for a Laserjet 4500DN is 600dpi (though they claim
2400dpi with HP ImageREt 2400)
If you took the Epson figure literally and tried to print an image of 1440 ppi . . . .
15
Prepared by : Haval Akrawi (MS.c) 2016-2017
1. No machine in this department can handle an image
that enormous
2. The printer would throw most of it away
That is because each pixel is made up from dots of black, cyan, magenta and
yellow
For an image of pure black and white - that's no colors and no greys - then a 600
dpi printer could print a 600 ppi image exactly, without throwing any pixels away.
For color or greyscale images, then the impression of each color is given by dots
of the different inks and it may take four dots for each pixel.
For a 600 dpi printer there is no point in sending an image of resolution greater
than 150 ppi
16
Prepared by : Haval Akrawi (MS.c) 2016-2017
Compression
Compression - the process of compacting an image by
removing redundant information.
If I take a photo for the mugshot board, it's probably just a head and shoulders
against a white background. For that white background, it's a waste of filespace
to hold 8 or 24 bits of information for each pixel, all with the value for white. It
would be much more efficient to say that the next 285 pixels (or whatever) are all
white.
Compression
Uncompressed
5 5 5 6 5 5 6 6 6 6 5 5 5 5
Lossless compression
For lossless compression I could say I have 3 pixels of color 5 and then 1 of color
6 and then 2 of color 5 etc
5(3),6,5(2),6(4),5(4)
This could be expanded back to what we started with.
17
Prepared by : Haval Akrawi (MS.c) 2016-2017
Lossy compression
To compress the image further, I could say that color 6 is very nearly the same
as color 5, so why don't we just say we have 14 pixels of color 5
5(14)
Information is then lost and this could not be expanded back to what we started
with.
18