1 / 55

Image Processing in Freq. Domain

Image Processing in Freq. Domain . Restoration / Enhancement Inverse Filtering Match Filtering / P attern D etection Tomography. Enhancement v.s. Restoration. Image Enhancement : A process which aims to improve bad images so they will “ look ” better. Image Restoration :

jody
Download Presentation

Image Processing in Freq. Domain

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Image Processing in Freq. Domain • Restoration / Enhancement • Inverse Filtering • Match Filtering / Pattern Detection • Tomography

  2. Enhancement v.s. Restoration • Image Enhancement: • A process which aims to improve bad images so they will “look” better. • Image Restoration: • A process which aims to invert known degradation operations applied to images.

  3. Enhancement vs. Restoration • “Better” visual representation • Subjective • No quantitative measures • Remove effects of sensing environment • Objective • Mathematical, model dependent quantitative measures

  4. Typical Degradation Sources Low Illumination Optical distortions (geometric, blurring) Sensor distortion (quantization, sampling, sensor noise, spectral sensitivity, de-mosaicing) Atmospheric attenuation (haze, turbulence, …)

  5. Image Preprocessing Restoration Enhancement • Denoising • Inverse filtering • Wiener filtering Freq. Domain Spatial Domain Filtering Point operations Spatial operations

  6. Examples Hazing

  7. Echo image Motion Blur

  8. Blurred image Blurred image + additive white noise

  9. Reconstruction Algorithm Reconstruction as an Inverse Problem noise Original image Distortion H measurements

  10. So what is the problem? • Typically: • The distortion H is singular or ill-posed. • The noise n is unknown, only its statistical properties can be learnt.

  11. Key point: Stat. Prior of Natural Images likelihood prior MAP estimation:

  12. Most probable solution Bayesian Reconstruction (MAP) • From amongst all possible solutions, choose the one that maximizes the a-posteriori probability: P(f | g)P(g | f) P(f) P(f) measurements P(g|f) Image space

  13. Bayesian Denoising • Assume an additive noise model : g=f + n • A MAP estimate for the original f: • Using Bayes rule and taking the log likelihood :

  14. Bayesian Denoising • If noise component is white Gaussian distributed: g=f + n wheren is distributed ~N(0,) R(f) is a penalty for non probable f prior term data term

  15. Inverse Filtering • Degradation model: g(x,y) = h(x,y)*f(x,y) G(u,v)=H(u,v)F(u,v) F(u,v)=G(u,v)/H(u,v) 

  16. Inverse Filtering (Cont.) Two problems with the above formulation: • H(u,v) might be zero for some (u,v). • In the presence of noise the noise might be amplified: F(u,v)=G(u,v)/H(u,v) + N(u,v)/H(u,v) Solution: Use prior information  prior term data term

  17. Option 1: Prior Term • Use penalty term that restrains high F values: where • Solution:

  18. Degraded Image (echo)

  19. F=G/H

  20. Degraded Image (echo+noise)

  21. The inverse filter is C(H)= H*/(H*H+ ) • At some range of (u,v): S(u,v)/N(u,v) < 1 noise amplification. =10-3

  22. Option 2: Prior Term • Natural images tend to have low energy at high frequencies • White noise tend to have constant energy along freq. where

  23. Solution: • This solution is known as the Wienner Filter • Here we assume N(u,v) is constant. • If N(u,v) is not constant:

  24. Degraded Image (echo+noise)

  25. Wienner Filtering

  26. Wienner Previous

  27. Degraded Image (blurred+noise)

  28. Inverse Filtering

  29. Using Prior (Option 1)

  30. Wienner Filtering

  31. Matched Filter in Freq. Domain • Pattern Matching: • Finding occurrences of a particular pattern in an image. • Pattern: • Typically a 2D image fragment. • Much smaller than the image.

  32. Image Similarity Measures • Image Similarity Measure: • A function that assigns a nonnegative real value to two given images. • Small measure  high similarity • Preferable to be a metric distance (non-negative, identity, symmetric, triangular inequality) • Can be combined with thresholding: d( - ) ≥ 0

  33. The Matching Approach • Scan the entire image pixel by pixel. • For each pixel, evaluate the similarity between its local neighborhood and the pattern.

  34. The Euclidean Distance as a Similarity Measure • Given: • k×k pattern P • n×n image I • kxk window of image I located at x,y - Ix,y • For each pixel (x,y), we compute the distance: • Complexity O(n2k2)

  35. Fixed FFT Implementation • Convolution can be applied rapidly using FFT. • Complexity: O(n2 log n)

  36. Naïve vs. FFT Performance table for a 1024×1024 image, on a 1.8 GHz PC:

  37. Normalized Cross Correlation • NCC: • A similarity measure, based on a normalized cross-correlation function. • Maps two given images to [0,1] (absolute value). • Measures the angle between vectors Ix,y and P • Invariant to intensity scale and offset.

  38. Efficient Implementation • Note that • Thus, • The above expression can be implemented efficiently using 3 convolutions.

  39. NCC similarity measure Euclidean distance similarity measure

  40. Euclidean distance similarity measure NCC similarity measure

  41. Computer Tomography using FFT

  42. CT Scanners • In 1901 W.C. Roentgen won the Nobel Prize (1st in physics) for his discovery of X-rays. Wilhelm Conrad Röntgen

  43. CT Scanners • In 1979 G. Hounsfield & A. Cormack, won the Nobel Prize for developing the computer tomography. • The invention revolutionized medical imaging. Allan M. Cormack Godfrey N. Hounsfield

  44. Tomography: Reconstruction from Projection 1 f(x,y) 2

  45. Projection & Sinogram • Projection: All ray-sums in a direction • Sinogram: collects all projections  y P(t) t p  x f(x,y) t X-rays Sinogram

  46. CT Image & Its Sinogram K. Thomenius & B. Roysam

  47. The Slice Theorem Fourier Transform y v 1 1 x u f(x,y) spatial domain frequency domain

More Related