Ch-1-Intro To DIP
Ch-1-Intro To DIP
Introduction to Computer
Vision and Image Processing
Overview: Computer Imaging
COMPUTER IMAGING
/Computer
\
Image
Vision Processi
ng
Computer Vision
• Image restoration:
The process of taking an image with some know,
or estimated degradation, and restoring it to its
original appearance.
- Done by performing the reverse of the
degradation process to the image.
- Examples: correcting distortion in the optical
system of a telescope.
Image Processing
• Image enhancement:
- Improve an image visually by taking an advantage
of human visual system's response.
- Example: improve contrast, image sharpening,
and image smoothing.
Image Processing
• Image compression:
Remove the amount of data required to represent
an image by:
• Removing unnecessary data that are visuallly
unnecessary.
• Taking advantage of the redundancy that is
inherent in
most images.
- Example: JPEG, MPEG, etc.
Computer Imaging Systems
Ee
The nput
sensor
Cpt Mer
The
transnision pat
The Human Visual System
gamma near•
rays ultraviolet intrared
7777277
712773 A S 5 1, 2255XX55525252552525252523
x-rays t f radio
visibl warve
e s
J
10-16 106 10 10 10°
c ...
1 I
I
I
Wavelength. nanometers
The Human Visual System
Retina
Bind
spot
;
✓
r
« ✓
, ~ ...~
, .,
r
'
-
%
' '
R e l a tiv e '\ ,; - -
num be r
-
j
of
rods or
--
7
cones
-
60o
Cones
1s°
'
o°
,4
15°
/ Blind
spot
• Cones:
- For daylight vision.
- Sensitive to color.
-- Concentrated in the central region eye.
of
High resolution capability (differentiate small
changes).
The Human Visual System
• Blind spot:
No sensors.
Place for optic nerve.
We do not perceive it as a blind spot because the
brain fills in the missing visual information.
• Why does an object should be in center
field
of vision in order to perceive it in fine detail?
This is where the cones are concentrated.
The Human Visual System
Rods
Relative
response
Gree ed
400 500 n 600 700
Wavelength,
nanometers
a. Rods react even in low Ight levels but see only a single spectral band; they cannot distinguish
colors.
The Human Visual System
Blu
e
Gree
1
n
Relativ \ con
e es
respon I Re
se
t
• I d
I
I
A4aximurn i
Brightness
Space l
m J ] [ ' [ I I
i ' I I I
! I I I
l I l
I I I I
I l l II
I
I II '
I I
I
1
I
'
I
I
I
I
I II !
I ~ I
Ill"/l
li lI l ' l l/ h/ hr i i / i i
ir
bright
light
1 5 5 0 1 0 0
Glare
Limit
Subjective
Brightness Curve tor specific
c o n d i t i o n & ~
D a r
r e s h o l d
Measured Brightness,
log of light intensity
Brightness Adaptation
Image.
- Due to brightness adaptation of our visual system.
Brightness Adaptation
3 bits/pixel
Image.
• Combined with our brightness adaptation
response, this allows us to see outlines even
in dimly lit areas.
Brightness Adaptation
• An illustration of the
Mach Band Effect.
I
I
Brightnes ·«CL
« _ p
Positio »
n logarithmically »
b. Actual brightness values are
spaced.
Brightness Adaptation
Perceive
d
brightnes
s
Position
c. Because of the Mach band
effect, the human visual
system perceives overshoot
at edges.
Temporal Resolution
in
b r i g
h t
T e m p o ra l
light
c o n t ra s t
s e n s i t i v it y
in
d ir r
li g h t
5 5 0 1 0 0
Temporal Resolution
AE
ut z2d - r o rns l sh or adanard
transforr
5605IS
#inc'ud «std10.
inc'uds «stdlip,t»
inc ud @th.h
inc' ud "v Pt: ls .h'
inc'ud '(VP#age.h'
Hae'ude Pdef .h'
IE wt2dC: ·In_IM.E, ·nt ti:, 1nt block.stze)
<i_IE» - potter to
A- ICE structure
«ibtt - (trwsrs a'sh transfor, t-heals :ransf:r I H
I
2·imwer s4 Hadamard transfcr , 3-
H±canard transfor
·blok_size» - bicck siz (+,8,1$,... /argit.d mens ion/2
CIPHO/TRIS F03S./vht2d.c
PAT
DEG111O
Tris function e r"ors z fast d aarz-orders1
a ' sh•
#±c anard Transforn on a inage, The res I : s
t en reor•
d rsd for display ir seq sc y order. The r:ui ne
c ·ks on
ary ' nag; v t h i sensips tha t are o vers of 2.
a. Binary
Q o nal
b, Object outline.
text.zzro-paddir g nay 2s perf ore d ·f i r u: nag; has
11 r ent
dirensi05.
Binary Images
• Why 8 bits/pixel?
- Provides more than adequate brightness
resolution.
_Provides a "noise margin" by allowing
approximately twice gray levels as required.
- Byte (8-bits) is the standard small unit in
computers.
Gray-Scale Images
a. A typical RGB color image can be thought of as three separate images: /,6r,), latr,c), and letr.c).
Color Images
Y - 0.299R + -0.114B
0.587G
Cb = -0.1687R -0.3313G + 0.5B +
128 + 128
Cr = 0.5R -0.4187G - 0.0813B
Multispectral Images
• BIN format:
- Only contain the raw data I(r, c) and no header.
- Users must know the necessary
parameters beforehand.
• PPM format:
- Contain raw image data with a simple
- header. and
PBM (binary), PGM (gray-scale), PPM (color)
PNM (handles any of the other types).
Digital Image File Formats
• SG I file
format:
- Handles up to 16 million colors.
- Supports RLE compression.
Contains 512-byte header, followed image
the data.
- Majority of the bytes in header are not used,
presumably for future extension.
Digital Image File Formats