1. Trang chủ
  2. » Công Nghệ Thông Tin

Tài liệu tiếng anh môn xử lý ảnh

17 268 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 17
Dung lượng 4,19 MB

Nội dung

1 Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Generic, possibly nonlinear, pointwise operator (intensity mapping, gray-level transformation): Chapter 3 Image Enhancement in the Spatial Domain: Gray-level transforms Chapter 3 Image Enhancement in the Spatial Domain: Gray-level transforms Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Basic gray-level transformations: Negative: Generic log: Power law: γ rcs rcs rls = += − − = )1ln( 1 Chapter 3 Image Enhancement in the Spatial Domain: Gray-level transforms Chapter 3 Image Enhancement in the Spatial Domain: Gray-level transforms Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Negative Chapter 3 Image Enhancement in the Spatial Domain: Negative Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Nonlinear mapping Chapter 3 Image Enhancement in the Spatial Domain: Nonlinear mapping 2 Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Nonlinear mapping Chapter 3 Image Enhancement in the Spatial Domain: Nonlinear mapping Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Gamma correction Chapter 3 Image Enhancement in the Spatial Domain: Gamma correction 1) Monitor response can "compensate" for Weber-law sensitivity of HVS: dp = k dL/L  p = k log(L) higher sensit. in dark areas  dark transitions can be compressed with power law L = x^gamma 2) Beware of nonlinearities that are already included in image data (e.g., JPEG) Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Nonlinear mapping Chapter 3 Image Enhancement in the Spatial Domain: Nonlinear mapping Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Nonlinear mapping Chapter 3 Image Enhancement in the Spatial Domain: Nonlinear mapping 3 Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Note: stretching is formally useless if the image has to be thresholded) Chapter 3 Image Enhancement in the Spatial Domain: Piecewise-linear contrast stretching Chapter 3 Image Enhancement in the Spatial Domain: Piecewise-linear contrast stretching Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Gray-level slicing Chapter 3 Image Enhancement in the Spatial Domain: Gray-level slicing Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Bit-plane slicing Chapter 3 Image Enhancement in the Spatial Domain: Bit-plane slicing Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Bit-plane slicing Chapter 3 Image Enhancement in the Spatial Domain: Bit-plane slicing 4 Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Bit-plane slicing Chapter 3 Image Enhancement in the Spatial Domain: Bit-plane slicing 4, 8, 16 gray levels respectively Reconstruction: Sum_n [ bit-plane_n * 2^(n-1) ] May be useful for data compression Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Histogram properties Chapter 3 Image Enhancement in the Spatial Domain: Histogram properties Histogram: normalized frequency (y) of gray level values (x). Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Histogram processing via gray mapping Chapter 3 Image Enhancement in the Spatial Domain: Histogram processing via gray mapping (can be inverted and preserves gray-level ordering) Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Histogram equalization Chapter 3 Image Enhancement in the Spatial Domain: Histogram equalization Let the gray levels in an image be represented as random variables r in the range (0,1), with a probability density function (pdf): Let be a monotonic, invertible transformation on r; )(rp r )(rTs = All the pixels below the curve in the interval are mapped to pixels below in i.e., the two areas are equal: Let us take the particular transformation which is monotonic and invertible, since it is the cumulative distribution function (cdf) of r )(rp r ),( drrr + )(sp s ),( dsss + drrpdssp rs )()( = ∫ == τ 0 )()( dwwprTs r 5 Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Histogram equalization Chapter 3 Image Enhancement in the Spatial Domain: Histogram equalization The derivative of this function is of course Substituting in i.e. the transformed variable has an exactly uniform pdf. In a practical discrete case: i.e., mapping each gray level into the value given above yields a uniform pdf for the output image. In general, only an approximately uniform distribution will be obtained. Note: no parameters are needed; the processing is automatic and straightforward. )(/ rpdrds r = 1)()()( = → = spdrrpdssp srs nnrprTs k j j k j jrkk /)()( 00 ∑∑ == === k s k r Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Histogram equalization Chapter 3 Image Enhancement in the Spatial Domain: Histogram equalization Example (continuous case): Equalization is obtained via the transformation: The transformed variable has a uniform pdf. Indeed: 1022)( ≤ ≤ + − = rrrp r ∫ +−=+−== r rrdwwrTs 0 2 2)22()( S. Das, IIT Madras, Course on Computer Vision Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Histogram equalization Chapter 3 Image Enhancement in the Spatial Domain: Histogram equalization Example (discrete case): S. Das, IIT Madras, Course on Computer Vision Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Histogram equalization Chapter 3 Image Enhancement in the Spatial Domain: Histogram equalization S. Das, IIT Madras, Course on Computer Vision 6 Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Histogram equalization Chapter 3 Image Enhancement in the Spatial Domain: Histogram equalization Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Histogram equalization Chapter 3 Image Enhancement in the Spatial Domain: Histogram equalization Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification Remember that the mapping yields a (approx.) uniformly distributed output. Another variable z, with a different, known and desired pdf pz, will satisfy the same equation: substituting: i.e., mapping each gray level rk into the zk value given above yields the desired histogram (pdf) for the output image. ))(()( 11 kkk rTGsGz −− == k k j jzk szpzG == ∑ =0 )()( nnrprTs k j j k j jrkk /)()( 00 ∑∑ == === Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods sk: uniformly distributed image G: determined as cdf of the desired pdf pz zk: image with desired histogram Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification 7 Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Example: Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification S. Das, IIT Madras, Course on Computer Vision Then determine T(r) and G(z) (cdf’s of the histograms) : Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods T(r) Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification G(z) Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification ))(()( )( 1 kkkkk rTGzzGrTr − =≅≅ S. Das, IIT Madras, Course on Computer Vision Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification S. Das, IIT Madras, Course on Computer Vision distributions: original target obtained n’ k 0 0 0 790 1023 850 656+329 245+122+81 p’(z k) 0 0 0 0.19 0.25 0.21 0.24 0.11 8 Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification Chapter 3 Image Enhancement in the Spatial Domain: Histogram specification Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Local Histogram modification Chapter 3 Image Enhancement in the Spatial Domain: Local Histogram modification At each location the local histogram is computed, the required mapping is determined, and the pixel is mapped. (At the next step, it is convenient to update the histogram rather than to re-calculate it from scratch) 9 Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Enhancement based on local statistics Chapter 3 Image Enhancement in the Spatial Domain: Enhancement based on local statistics Local values can be estimated for different image statistics, and used to locally control a gray-level modification function. E.g.: local mean and variance in the neighborhood Sxy: Enhancement example: pixels in medium-variance, low-mean areas are scaled by a positive factor: Mg and Dg respectively are the global average and s.d. of the image; they are used to make the operator more robust. ∑∑ ∈∈ −== Sxyts SxySxy Sxyts Sxy tsrpmtsrtsrptsrm , 22 , )],([]),([)],([),( σ    <<< = otherwiseyxf DgkDgkMgkmifyxfE yxg SxySxy ),( &),( ),( 2 2 10 σ Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Enhancement based on local statistics Chapter 3 Image Enhancement in the Spatial Domain: Enhancement based on local statistics Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Enhancement based on local statistics Chapter 3 Image Enhancement in the Spatial Domain: Enhancement based on local statistics Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Enhancement based on local statistics Chapter 3 Image Enhancement in the Spatial Domain: Enhancement based on local statistics 10 Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Image subtraction Chapter 3 Image Enhancement in the Spatial Domain: Image subtraction Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Assume an image is formed as: where n(x,y) is i.i.d. zero-mean noise. If we can average K acquisitions of the image, the variance of the noise is reduced by the factor K: This approach is useful when the sensor noise is relatively high: poorly illuminated (static) scenes, astronomical images, … ∑∑ == +== K k k K k k yxn K yxfyxg K yxg 11 ),( 1 ),(),( 1 ),( ),(),(),( yxnyxfyxg + = Chapter 3 Image Enhancement in the Spatial Domain: Image averaging Chapter 3 Image Enhancement in the Spatial Domain: Image averaging Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Image averaging Chapter 3 Image Enhancement in the Spatial Domain: Image averaging Fig.3.30 A) Ideal B) Noise added (s.d.=64) C) K=8 D) K=16 Gianni Ramponi University of Trieste http://www.units.it/ramponi Digital Image Processing Images © R.C.Gonzalez & R.E.Woods Chapter 3 Image Enhancement in the Spatial Domain: Local operators Chapter 3 Image Enhancement in the Spatial Domain: Local operators Generic, possibly nonlinear, neighborhood-based operator: g(x,y)=T[f(x,y)]

Ngày đăng: 03/07/2015, 15:27

TỪ KHÓA LIÊN QUAN

w