You are on page 1of 41

X L NH S:

Ci thin nh (X l im nh)

2 of 41

Ni dung
Trong phn ny, chng ta s tm hiu cc k thut ci thin nh thao tc im nh:
Th no l x l im nh? nh o Ct ngng Bin i BLogarithmic Power law transforms Grey level slicing Bit plane slicing

3 of 41

C s ci thin nh trong min k.gian


Hu ht cc thao tc ci thin nh trong min khng gian u c dng Origin x g (x, y) = T[ f (x, y)] Vi f (x, y) l nh vo, g (x, y) l nh x l, (x, y) v T l ton t c nh ngha trn ln cn ca (x, y)
y Image f (x, y)

4 of 41

X l im nh
Cc thao tc min khng gian n gin nht xy ra khi ln cn cng l chnh l im nh Trong trng hp ny T c xem nh hm chuyn i mc xm hoc thao tc x l im nh Cc thao tc x l im nh c dng s=T(r) vi s l im nh x l, r l im nh ban u

5 of 41

V d x l im nh: nh o
nh o hu ch cho vic ci thin cc chi tit mu trng hay mu xm nm trong vng ti ca nh
M trong nh o di y r rng hn

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Original Image

s = 1.0 - r

Negative Image

6 of 41 Original Image

V d x l im nh: nh o (tt)
x Enhanced Image

Image f (x, y)

Image f (x, y)

s = intensitymax - r

7 of 41

V d x l im nh: ct ngng
Ct ngng rt hu ch vi phn on nh: chng ta mun c lp mt i tng so vi nn

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

s=

1.0 r > threshold 0.0 r <= threshold

8 of 41 Original Image

V d x l im nh: ct ngng (tt)


x Enhanced Image

Image f (x, y)

Image f (x, y)

s=

1.0 r > threshold 0.0 r <= threshold

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

9 of 41

Chuyn i sng

10 of 41

C s chuyn i xm
C nhiu kiu chuyn i xm khc nhau Ba kiu hay dng
Tuyn tnh
Negative/Identity

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Logarithmic
Log/Inverse log

Lut hm m
nth power/nth root

11 of 41

Bin i Logarithmic
Dng tng qut ca bin i log l s = c * log(1 + r) Bin i log nh x vng hp cc mc sng u vo thnh vng rng cc mc sng u ra Bin i log ngc thc hin chuyn i ngc li

12 of 41

Bin i Logarithmic (tt)


Cc hm log rt hu ch khi cc gi tr xm ca nh u vo c mt min gi tr rng. Trong v d sau, bin i Fourier ca mt nh c chuyn sang bin i log lm r hn cc chi tit.

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

s = log(1 + r)

13 of 41 Original Image

Bin i Logarithmic (tt)


x Enhanced Image

Image f (x, y)

Image f (x, y)

s = log(1 + r)
Ta thng thit lp c=1 Cc mc xm trong phm vi [0.0, 1.0]

14 of 41

Bin i hm m
Cc bin i ly tha c dng sau s=c*r nh x phm vi hp cc gi tr xm u vo sang phm vi rng hn cc gi tr u ra hoc ngc li Thay i cho ta h ng cong

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

15 of 41 Original Image

Bin i hm m (tt)
x Enhanced Image

Image f (x, y)

Image f (x, y)

s=r
Ta thng thit lp c=1 Cc mc xm trong phm vi [0.0, 1.0]

16 of 41

V d bin i hm m

17 of 41

V d bin i hm m (tt)
= 0.6
1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 0.2 0.4 0.6 0.8 1 Old Intensities
Transformed Intensities

18 of 41

V d bin i hm m (tt)
= 0.4
1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 0.2 0.4 0.6 0.8 1 Original Intensities

Transformed Intensities

19 of 41

V d bin i hm m (tt)
= 0.3
1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 0.2 0.4 0.6 0.8 1 Original Intensities

Transformed Intensities

20 of 41

V d bin i hm m (tt)
Hnh nh bn phi cho ta nh cng hng t ca bnh nhn b gy ct sng
s = r 0.4

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

s = r 0.6

Cc ng cong lm ni cc chi tit khc nhau

21 of 41

V d bin i hm m

22 of 41

V d bin i hm m (tt)
= 5.0

1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 0.2 0.4 0.6 0.8 1 Original Intensities

Transformed Intensities

23 of 41

Bin i hm m (tt)
nh ng bng chp t trn khng Bin i hm m c s dng lm ti nh Cc ng cong khc khau hin th cc chi tit khc nhau

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

s = r 3.0

s = r 4.0

24 of 41

Hiu chnh Gamma


Nhiu bn c th quen vi hiu chnh gamma ca mn hnh my tnh Vn l cc thit b hin th khng p ng tuyn tnh vi cc sng khc nhau Chng c th c hiu chnh s dng bin i log

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

25 of 41

Mt s vn khc v tng phn

26 of 41

Cc hm chuyn i tuyn tnh phn on (Piecewise)


Thay v s dng cc hm ton hc thng dng, ta c th s dng bin i bt k do ngi dng nh ngha nh di y m t bin i tuyn tnh m rng tng phn cng tng phn vo nh cht lng km

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

27 of 41

Ct lt xm (slicing)
Lm ni mt vng xm
Tng t nh ct ngng Cc mc khc c th b loi b hoc gi nguyn Rt hu ch lm ni cc chi tit trong nh

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

28 of 41

Ct lt mt bt (Bit Plane Slicing)


Bng cch c lp cc bit c bit ca cc gi tr pixel trong nh, chng ta c th lm ni cc kha cnh quan tm ca nh
Cc bit th t cao thng cha thng tin trc quan quan trng Cc bit th t thp thng cha cc chi tit tinh t

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

29 of 41

Ct lt mt bt (Bit Plane Slicing)


[10000000]

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

[01000000]

[00100000]

[00001000]

[00000100]

[00000001]

30 of 41

Ct lt mt bt (Bit Plane Slicing)

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

31 of 41

Ct lt mt bt (Bit Plane Slicing)

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

32 of 41

Ct lt mt bt (Bit Plane Slicing)

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

33 of 41

Ct lt mt bt (Bit Plane Slicing)

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

34 of 41

Ct lt mt bt (Bit Plane Slicing)

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

35 of 41

Ct lt mt bt (Bit Plane Slicing)

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

36 of 41

Ct lt mt bt (Bit Plane Slicing)

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

37 of 41

Ct lt mt bt (Bit Plane Slicing)

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

38 of 41

Ct lt mt bt (Bit Plane Slicing)

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

39 of 41

Ct lt mt bt (Bit Plane Slicing)

40 of 41

Ct lt mt bt (Bit Plane Slicing)


Reconstructed image using only bit planes 8 and 7 Reconstructed image using only bit planes 8, 7 and 6 Reconstructed image using only bit planes 7, 6 and 5

Images taken from Gonzalez & Woods, Digital Image Processing (2002)

41 of 41

Tm tt
Chng ta tm hiu cc kiu ci thin nh khc nhau thao tc ln bit

You might also like