Fundamental Image Processing Steps: sensors/cameras/CCD Cameras Etc.. in Digital Form
Fundamental Image Processing Steps: sensors/cameras/CCD Cameras Etc.. in Digital Form
i 0 j 0
>>a=24
>>b=uint8(a);
>>b
24
Dinesh K. Vishwakarma, Ph.D.
IMAGE CONVERSION
• Image can be converted from one type to
another. We can understand with the below
tables.
Type double, the imshow function expects the values to be between 0 and 1,
where 0 is displayed as black, and 1 is displayed as white.
Dinesh K. Vishwakarma, Ph.D.
>>imshow(cd/255)
>>imshow(cd/512)
>>imshow(cd/128)
(x-1,y-1)
(x-1,y) p (x+1,y)
(x,y-1)
(x+1,y-1)
(x-1,y)
(x-1,y+1) (x,y+1) (x+1,y+1) (x+1,y)
N8(p) = (x-1,y+1)
(x,y+1)
(x+1,y+1)
(x-1,y-1)
p
(x+1,y-1)
ND(p) = (x-1,y1)
(x+1,y+1)
(x-1,y+1) (x+1,y+1)
S1
S2
q
p
p p p
q q q
w D(p,q) = D(q,p)
De ( p, q) ( x - s)2 ( y - t )2
Dinesh K. Vishwakarma, Ph.D.
Distance [Contd..]
D4-distance (city-block distance) is defined as
D4 ( p, q) x - s y - t
2
2 1 2
2 1 0 1 2
2 1 2
D8 ( p, q) max( x - s , y - t )
2 2 2 2 2
2 1 1 1 2
2 1 0 1 2
2 1 1 1 2
2 2 2 2 2