Image enhancement in the spatial domain. Human vision for dummies Anatomy and physiology Wavelength Wavelength sensitivity.

Slides:



Advertisements
Similar presentations
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 4 – Digital Image Representation Klara Nahrstedt Spring 2009.
Advertisements

Digital Image Processing
Spatial Filtering (Chapter 3)
Creation of a digital image from an analog signal. Analog-Digital Converter (ADC)
Image Processing Lecture 4
CS & CS Multimedia Processing Lecture 2. Intensity Transformation and Spatial Filtering Spring 2009.
Chapter 3 Image Enhancement in the Spatial Domain.
ECE 472/572 - Digital Image Processing Lecture 7 - Image Restoration - Noise Models 10/04/11.
Digital Image Processing
Image Enhancement in the Spatial Domain II Jen-Chang Liu, 2006.
Digital Image Processing
BYST Eh-1 DIP - WS2002: Enhancement in the Spatial Domain Digital Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department Image Enhancement.
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.
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.
6/9/2015Digital Image Processing1. 2 Example Histogram.
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
Digital Image Processing
1 Vladimir Botchko Lecture 4. Image Enhancement Lappeenranta University of Technology (Finland)
Image Enhancement.
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
Lecture 2. Intensity Transformation and Spatial Filtering
ECE 472/572 - Digital Image Processing Lecture 4 - Image Enhancement - Spatial Filter 09/06/11.
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
Neighborhood Operations
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Spatial Filtering: Basics
Medical Image Analysis Image Enhancement Figures come from the textbook: Medical Image Analysis, by Atam P. Dhawan, IEEE Press, 2003.
Digital Image Processing Image Enhancement Part IV.
Digital Image Processing
Digital Image Processing Lecture 4: Image Enhancement: Point Processing Prof. Charlene Tsai.
Filtering and Enhancing Images. Major operations 1. Matching an image neighborhood with a pattern or mask 2. Convolution (FIR filtering)
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
Digital Image Processing (DIP) Lecture # 5 Dr. Abdul Basit Siddiqui Assistant Professor-FURC 1FURC-BCSE7.
Chapter 5: Neighborhood Processing
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
Autonomous Robots Vision © Manfred Huber 2014.
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
İmage enhancement Prepare image for further processing steps for specific applications.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Lecture Reading  3.1 Background  3.2 Some Basic Gray Level Transformations Some Basic Gray Level Transformations  Image Negatives  Log.
Digital Image Processing Lecture 4: Image Enhancement: Point Processing January 13, 2004 Prof. Charlene Tsai.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Lecture 10 Chapter 5: Image Restoration. Image restoration Image restoration is the process of recovering the original scene from the observed scene which.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Medical Image Analysis
REMOTE SENSING Digital Image Processing Radiometric Enhancement Geometric Enhancement Reference: Chapters 4 and 5, Remote Sensing Digital Image Analysis.
Image enhancement algorithms & techniques Point-wise operations
Image Pre-Processing in the Spatial and Frequent Domain
ECE 692 – Advanced Topics in Computer Vision
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Image Enhancement.
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
CIS 350 – 3 Image ENHANCEMENT SPATIAL DOMAIN
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Digital Image Processing
Digital Image Processing Week IV
Topic 1 Three related sub-fields Image processing Computer vision
Intensity Transformation
IT523 Digital Image Processing
Image Enhancement in the Spatial Domain
Presentation transcript:

Image enhancement in the spatial domain

Human vision for dummies Anatomy and physiology Wavelength Wavelength sensitivity

Human vision for dummies (2) Visual perception of the image  Contrast (local change in brightness) eye has logarithmic perception of brightness  Acuity (details) best resolution: 500 lux, 40 cm => 0.16 mm => 0.16 mm  Object border Borders are important and also context-dependent  Color The human eye is more sensitive to color than brightness

Optical illusions

Image enhancement We want to create an image which is ”better” in some sense. ► Transformation is pointwise ► Helps visual interpretation (brightening, sharpening…) => SUBJECTIVE ► Pre-processing for a subsequent image analysis algorithm => PERF = PERF of IA TASK ► Make the image more ”specific” => APPLICATION DEPENDENT f(x,y)g(x,y) Original imageNew image T

Image (pre-) Processing Image processing can be performed in the ► Spatial domain ► Frequency domain that is after Fourier transform (next two lectures) We have three types of transforms in the spatial domain : ► Pixel brightness transforms, point processing (depend only on the pixel value itself) ► Spatial filters, local transforms or local processing (depend on a small neighborhood around the pixel) ► Geometric transforms

Pixel brightness transforms ► Each pixel in the output image depends directly on the corresponding pixel in the input image One-to-one transform: pointwise ► Common transforms  inverse  contrast stretching  logarithmic  exponential ► With more than one input image:  sums, mean images  statistical operations (variance, t-test…) ► Pixel brightness transforms are easy to generalize to 3D

Grey scale histogram ► A grey scale histogram shows how many pixels there are of each grey level (intensity level).

original image inverse transform logarithmic transform (neutral transform)

How is the histogram changed? ► Explains the terms - compression - expansion you find sometimes in the textbooks.

Example : the inverse transform

brightness (addition/subtraction) contrast = histogram stretching original image

Paint Shop Pro example ► What do the function do? ► How to use them to get the best results? And why it is best. ► Implementation: Look Up Table (LUT) Note: MATLAB V6.0 with IP Toolbox 3.0, also has these tools

Histogram equalization ► Contrast / Brightness adjustments sometimes need to be automatized ► What can be “optimal” contrast for an image? => FLAT histogram ► It can also be useful to do histogram normalization i.e.: to get a given shape for the histogram (see GW 3.3.2)

r k n k p r (r k ) s k output 0 /7= /7= /7= /7= /7= /7= /7= /7= Histogram Equalization, example quantization interval [0 7], image size 256x256

original image histogram equalization transformation by probability density function - see black board notes

Adaptative / localized histogram equalization

Relations between pixels A picture element (pixel) has 4 or 8 neighbors in 2D depending on neighbor definition: ► 4-neihgborhood - each neighbor must share an edge with the pixel ► 8- neighborhood - each neighbor must share an edge or a corner with the pixel 4- neighborhood 8- neighborhood

Spatial filtering In spatial filtering, the pixel in the output image is given a value calculated from a local neighborhood in the input image. The local neighborhood is described by a mask, or spatial filter (typical sizes 3x3, 5x5, 7x7… pixels) Filtering is performed by letting the mask move over the image. The center pixel in the output image is given a value that depends on the input image and the weights of the mask. Several types of spatial filters: ► Linear filters ► Fractile filters ► Adaptative filters (steerable)

Convolution

Filtering: implementation ► Generic code for P(x,y) in image for F(u,v) in filter Q(x,y) += F(u,v)  P(x-u,y-v) end ► Managing the border  Outside pixel value set to zero  Mirroring of the border pixel values  Changing filter size along the border (BEST, but slower) (-1,-1)(0,-1)(1,-1) (-1,0)(0,0)(1,0) (-1,1)(0,1)(1,1)

Spatial filtering original image mean filter = ”smoothing” Laplace filterLaplace + original image = ”sharpening”

Spatial filters Linear filters: Smoothing filters mean filters Gauss filters Edge enhancing filter Sobel operator Prewitt operator Laplace operator Fractile filters** Median, Min, Max **have no correspondence in frequency domain For details, see next lecture…

Mean filtering original image mean 3x3mean 5x5mean 11x11

Edge enhancing filters ► The Sobel operator: detection of horizontal edges

► The Laplace operator: detection of edges independent of direction Edge enhancing filters004 00