Enhancing Images Ch 5:Shapiro, Ch 3:Gonzales. Gray level Mapping Brightness Transform: 1. Position Dependent f(i,j)= g(i,j). e(i,j) g:Clean image e:position.

Slides:



Advertisements
Similar presentations
Spatial Filtering (Chapter 3)
Advertisements

Image Processing Lecture 4
CS & CS Multimedia Processing Lecture 2. Intensity Transformation and Spatial Filtering Spring 2009.
Transforming images to images
Chapter 3 Image Enhancement in the Spatial Domain.
CS 4487/9587 Algorithms for Image Analysis
EE4H, M.Sc Computer Vision Dr. Mike Spann
EE 4780 Image Enhancement. Bahadir K. Gunturk2 Image Enhancement The objective of image enhancement is to process an image so that the result is more.
Digital Image Processing
Image Enhancement in the Spatial Domain II Jen-Chang Liu, 2006.
Digital Image Processing
Digital image processing Chapter 6. Image enhancement IMAGE ENHANCEMENT Introduction Image enhancement algorithms & techniques Point-wise operations Contrast.
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Chapter 3: Image Enhancement in the Spatial Domain
Face Recognition and Biometric Systems 2005/2006 Filters.
Digital Image Processing
6/9/2015Digital Image Processing1. 2 Example Histogram.
Vector Spaces Space of vectors, closed under addition and scalar multiplication.
The Fourier Transform Jean Baptiste Joseph Fourier.
Chapter 4 Image Enhancement in the Frequency Domain.
1 Image filtering Hybrid Images, Oliva et al.,
Machine Vision and Dig. Image Analysis 1 Prof. Heikki Kälviäinen CT50A6100 Lectures 6&7: Image Enhancement Professor Heikki Kälviäinen Machine Vision and.
The Fourier Transform Jean Baptiste Joseph Fourier.
2007Theo Schouten1 Enhancements Techniques for editing an image such that it is more suitable for a specific application than the original image. Spatial.
Digital Image Processing
MSU CSE 803 Stockman Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute.
1 Vladimir Botchko Lecture 4. Image Enhancement Lappeenranta University of Technology (Finland)
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering
Image Enhancement.
1 Image filtering
Lecture 2. Intensity Transformation and Spatial Filtering
MSU CSE 803 Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute some result.
Chapter 4 Image Enhancement in the Frequency Domain.
Chapter 3 Image Enhancement in the Spatial Domain.
Image Filtering. Problem! Noise is a problem, even in images! Gaussian NoiseSalt and Pepper Noise.
 Image Enhancement in Spatial Domain.  Spatial domain process on images can be described as g(x, y) = T[f(x, y)] ◦ where f(x,y) is the input image,
Introduction to Image Processing Grass Sky Tree ? ? Review.
Chapter 2. Image Analysis. Image Analysis Domains Frequency Domain Spatial Domain.
Medical Image Analysis Image Enhancement Figures come from the textbook: Medical Image Analysis, by Atam P. Dhawan, IEEE Press, 2003.
Chapter 3 Image Enhancement in the Spatial Domain.
ENG4BF3 Medical Image Processing Image Enhancement in Frequency Domain.
Chapter 5: Neighborhood Processing
Digital Image Processing (Digitaalinen kuvankäsittely) Exercise 2
Image Subtraction Mask mode radiography h(x,y) is the mask.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
İmage enhancement Prepare image for further processing steps for specific applications.
CSE 6367 Computer Vision Image Operations and Filtering “You cannot teach a man anything, you can only help him find it within himself.” ― Galileo GalileiGalileo.
EE 7730 Image Enhancement. Bahadir K. Gunturk2 Image Enhancement The objective of image enhancement is to process an image so that the result is more.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
Digital Image Processing Lecture 8: Image Enhancement in Frequency Domain II Naveed Ejaz.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Medical Image Analysis
Miguel Tavares Coimbra
Image Subtraction Mask mode radiography h(x,y) is the mask.
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering Northern Arizona University.
Chapter 10 Image Segmentation
Image enhancement algorithms & techniques Point-wise operations
Image Pre-Processing in the Spatial and Frequent Domain
IMAGE ENHANCEMENT TECHNIQUES
The Chinese University of Hong Kong
ENG4BF3 Medical Image Processing
Image Enhancement in the Spatial Domain
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Digital Image Processing
Linear Operations Using Masks
Image Enhancement To process an image so that the result is more suitable than the original image for a specific application. Spatial domain methods and.
Image Enhancement – Simple Intensity Processing
Image Enhancement in the Spatial Domain
Presentation transcript:

Enhancing Images Ch 5:Shapiro, Ch 3:Gonzales

Gray level Mapping Brightness Transform: 1. Position Dependent f(i,j)= g(i,j). e(i,j) g:Clean image e:position dependent noise 2. Position independent

2. Position Independent Gray Level Mapping s=T(r) 2. Position Independent Gray Level Mapping s=T(r)

Negation

2. Gamma Transformation s=T(r) 2. Gamma Transformation s=T(r)

Gamma Correction of CRT

Image Enhancement by Gamma Transform: s=c.r ɣ

Image Enhancement by Gray level mapping: s=c.r ɣ

Image Enhancement by Contrast Stretching

Image Enhancement by Gray level mapping

HİSTOGRAM PROCESSİNG: H(rk)=nk rk: kth gray level, nk: number of pixels with gray value rk HİSTOGRAM PROCESSİNG: H(rk)=nk rk: kth gray level, nk: number of pixels with gray value rk

Histogram Equalization Goal: Find a transformation which yields a histogram with uniform density Histogram Equalization Goal: Find a transformation which yields a histogram with uniform density ?

Algorithm: Histogram Equalization Create an array h with L gray values –Initialize with o value Find the histogram h(r k )= h(r k )+1 Find the cumulative histogram hc(r k )= hc(r k-1 )+ hc(r k ) Set T(r k-1 ) =round [{(L-1)/NM}. hc(r k-1 )] Create the equalized image, s k = T(r k )

Histogram Equalization

Equalized Histogram

Histogram Specification

Histogram Modification

Histogram of a dark image

Histogram Equalization

Specified Histogram

Local Histogram Equalization

Image Subtraction

Convolution or crosscorrelation

Position Dependent Gray Level Mapping Use convolution or correlation: f*h Position Dependent Gray Level Mapping Use convolution or correlation: f*h

Define a mask and correlate it with the image

SMOOTHING

Image Enhancement WITH SMOOTING

Averaging blurrs the image

Image Enhancement WITH AVERAGING AND THRESHOLDING Image Enhancement WITH AVERAGING AND THRESHOLDING

Restricted Averaging Apply averaging to only pixels with brightness value outside a predefined interval. Mask h(i,j) = 1For g(m+i,n+j)€ [min, max] 0 otherwise Q: Study edge strenght smoothing, inverse gradient and rotating mask

Median Filtering Find a median value of a given neighborhood. Removes sand like noise

Median filtering breaks the straight lines Square filter: Cross filter

Image Enhancement with averaging and median filtering

EDGE PROFILES Edges are the pixels where the brightness changes abrubtly. It is a vector variable with magnitude and direction

EDGES, GRADIENT AND LAPLACIAN

SMOOT EDGES, NOISY EDGES

Continuous world Gradient Δg(x,y) = ∂g/ ∂x + ∂g/ ∂y Magnitude: |Δg(x,y) | = √ (∂g/ ∂x) 2 + (∂g/ ∂y) 2 Phase : Ψ = arg (∂g/ ∂x, ∂g/ ∂y) radians

Discrete world Use difference in various directions Δi g(i,j) = g(i,j) - g(i+1,j) or Δj g(i,j) = g(i,j) - g(i,j+1) or Δij g(i,j) = g(i,j)- g(i+1,j+1) or |Δ g(i,j) | = |g(i,j)- g(i+1,j+1) | + |g(i,j+1)- g(i+1,j) |

GRADIENT EDGE MASKS Approximation in discrete grid GRADIENT EDGE MASKS Approximation in discrete grid

GRADIENT EDGE MASKS

GRADİENT MASKS

Edge Detection

GRADIENT OPERATIONS

EDGES, GRADIENT AND LAPLACIAN

Edg Detection with Laplacian

Gaussian Masks

L.O.G LAPLACIAN of GAUSSIAN EDGE MASKS

Laplacian Operator

EDGE DETECTION by L.O.G

Image Enhancement WITH LAPLACIAN AND SOBEL

Image Enhancement (cont.)

Edge Detection with High Boost

Image Enhancement with Laplacian

Marr Hildreth Theory L.L HVS constructs primal sketch based on edges, lines and blobs Therefore L.o.G filters are mathematical representation of HVS at low level

Vector Spaces Space of vectors, closed under addition and scalar multiplication

Image Averaging as Vector addition

Scaler product, dot product, norm

Norm of Images

Orthogonal Images, Distance,Basis

Roberts Basis: 2x2 Orthogonal

Frei-Chen Basis: 3x3 orthogonal

Cauchy Schwartz Inequality  U+V  ≤  U  +  V 

Schwartz Inequality

Quotient: Angle Between two images

Fourier Analysis

Fourier Transform Pair Given image I(x,y), its fourier transform is

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Fourier Transform of an Image is a complex matrix Let F =[F(u,v)] F = Φ MM I(x,y) Φ NN I(x,y)= Φ* MM F Φ* MM Where Φ JJ (k,l)= [Φ JJ (k,l) ] and Φ JJ (k,l) = (1/J) exp(2Πjkl/J) for k,l= 0,…,J-1

Fourier Transform

Properties Convolution Given the FT pair of an image I(x,y) F(u,v) I(x,y)* m(x,y) F(u,v). H(u,v) and I(x,y) m(x,y) F(u,v)* H(u,v)

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Design of H(u,v) Low Pass filter H(u,v) = 1 if |u,v |< r 0 o.w. High pass filter H(u,v) = 1 if |u,v |> r 0 o.w Band pass filter H(u,v) = 1 if r1<|u,v |< r2 0 o.w

Fourier Transform-High Pas Filtering

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Chapter 4 Image Enhancement in the Frequency Domain Chapter 4 Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Chapter 4 Image Enhancement in the Frequency Domain Chapter 4 Image Enhancement in the Frequency Domain

Chapter 4 Image Enhancement in the Frequency Domain Chapter 4 Image Enhancement in the Frequency Domain

Chapter 4 Image Enhancement in the Frequency Domain Chapter 4 Image Enhancement in the Frequency Domain

Chapter 4 Image Enhancement in the Frequency Domain Chapter 4 Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Spatial Laplacian Masks and its Fourier Transform

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Chapter 4 Image Enhancement in the Frequency Domain Chapter 4 Image Enhancement in the Frequency Domain

Chapter 4 Image Enhancement in the Frequency Domain Chapter 4 Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain

Image Enhancement in the Frequency Domain Image Enhancement in the Frequency Domain