- photometric aspects of image formation gray level images

Slides:



Advertisements
Similar presentations
3-D Computer Vision CSc83020 / Ioannis Stamos  Revisit filtering (Gaussian and Median)  Introduction to edge detection 3-D Computater Vision CSc
Advertisements

Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Spatial Filtering (Chapter 3)
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.
Motion illusion, rotating snakes. Slide credit Fei Fei Li.
1Ellen L. Walker ImageJ Java image processing tool from NIH Reads / writes a large variety of images Many image processing operations.
E.G.M. PetrakisFiltering1 Linear Systems Many image processing (filtering) operations are modeled as a linear system Linear System δ(x,y) h(x,y)
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Lecture 4 Linear Filters and Convolution
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
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 Image Filtering Readings: Ch 5: 5.4, 5.5, 5.6,5.7.3, 5.8 (This lecture does not follow the book.) Images by Pawan SinhaPawan Sinha formal terminology.
- photometric aspects of image formation gray level images
Image Enhancement.
1 Image filtering Images by Pawan SinhaPawan Sinha.
Linear 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.
Basic Image Processing January 26, 30 and February 1.
02/12/02 (c) 2002 University of Wisconsin, CS 559 Filters A filter is something that attenuates or enhances particular frequencies Easiest to visualize.
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
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.
Image processing Fourth lecture Image Restoration Image Restoration: Image restoration methods are used to improve the appearance of an image.
Why is computer vision difficult?
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
CS 556 – Computer Vision Image Basics & Review. What is an Image? Image: a representation, resemblance, or likeness An image is a signal: a function carrying.
Digital Image Processing (Digitaalinen kuvankäsittely) Exercise 2
Lecture 5 Mask/Filter Transformation 1.The concept of mask/filters 2.Mathematical model of filtering Correlation, convolution 3.Smoother filters 4.Filter.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Digital Image Processing Lecture 10: Image Restoration
Image Subtraction Mask mode radiography h(x,y) is the mask.
Course 2 Image Filtering. Image filtering is often required prior any other vision processes to remove image noise, overcome image corruption and change.
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
CS 691B Computational Photography
Linear filtering. Motivation: Image denoising How can we reduce noise in a photograph?
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
CSE 185 Introduction to Computer Vision Image Filtering: Spatial Domain.
Grauman Today: Image Filters Smooth/Sharpen Images... Find edges... Find waldo…
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
HCI/ComS 575X: Computational Perception Instructor: Alexander Stoytchev
Image Subtraction Mask mode radiography h(x,y) is the mask.
- photometric aspects of image formation gray level images
Fundamentals of Spatial Filtering:
Digital Image Processing Lecture 10: Image Restoration
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Digital Image Processing
All about convolution.
Outline Linear Shift-invariant system Linear filters
Recap from Wednesday Spectra and Color Light capture in cameras and humans.
Image Enhancement in the Spatial Domain
Image filtering Images by Pawan Sinha.
Histogram Probability distribution of the different grays in an image.
Image filtering Images by Pawan Sinha.
Digital Image Processing
Basic Image Processing
Digital Image Processing Week IV
Image filtering
Linear Operations Using Masks
Department of Computer Engineering
Lecture 2: Image filtering
Intensity Transformation
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Lecture 7 Spatial filtering.
Image Enhancement in the Spatial Domain
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Presentation transcript:

- photometric aspects of image formation gray level images point-wise operations linear filtering CS682, Jana Kosecka

Image Brightness values I(x,y) CS682, Jana Kosecka

Analog intensity function Temporal/spatial sampled function Image model Mathematical tools Analog intensity function Temporal/spatial sampled function Quantization of the gray levels Point sets Random fields List of image features, regions Analysis Linear algebra Numerical methods Set theory, morphology Stochastic methods Geometry, AI, logic CS682, Jana Kosecka

Basic Photometry CS682, Jana Kosecka

Basic ingredients Radiance – amount of energy emitted along certain direction Iradiance – amount of energy received along certain direction BRDF – bidirectional reflectance distribution Lambertian surfaces – the appearance depends only on radiance, not on the viewing direction Image intensity for a Lambertian surface CS682, Jana Kosecka

Challenges CS682, Jana Kosecka

Images Images contain noise – sources sensor quality, light fluctuations, quantization effects CS682, Jana Kosecka

Image Noise Models Additive noise: Most commonly used Multiplicative noise: Impulsive noise (salt and pepper): CS682, Jana Kosecka

Additive Noise Models Noise Amount: SNR = s/ n Gaussian - Usually, zero-mean, uncorrelated Uniform CS682, Jana Kosecka

Example CS682, Jana Kosecka

How can we reduce noise? Image acquisition noise due to light fluctuations and sensor noise can be reduced by acquiring a sequence of images and averaging them. Solution – filtering the image CS682, Jana Kosecka

Image Processing 1D signal and its sampled version f = { f(1), f(2), f(3), …, f(n)} f = {0, 1, 2, 3, 4, 5, 5, 6, 10 } CS682, Jana Kosecka

Discrete time system maps 1 discrete time signal to another f[x] g[x] h Special class of systems – linear , time-invariant systems Superposition principle Shift (time) invariant – shift in input causes shift in output Examples CS682, Jana Kosecka

unit impluse – if x = 0 it’s 1 and zero everywhere else Convolution sum: unit impluse – if x = 0 it’s 1 and zero everywhere else Every discrete time signal can be written as a sum of scaled and shifted impulses The output the linear system is related to the input and the transfer function via convolution h f g filter f g Convolution sum: Notation: CS682, Jana Kosecka

Averaging filter Original image Smoothed image CS682, Jana Kosecka

Center pixel weighted more Averaging filter Averaging box filter Averaging filter Center pixel weighted more 2D convolution - next CS682, Jana Kosecka

Convolution in 2D X 10 10 11 9 1 2 99 f g h 1 1 1 1 1 1 1/9 1 1 1 1/9.(10x1 + 11x1 + 10x1 + 9x1 + 10x1 + 11x1 + 10x1 + 9x1 + 10x1) = 1/9.( 90) = 10 CS682, Jana Kosecka

Example: X X X X X X 10 11 10 1 10 7 4 1 X X 9 10 11 1 1 O X X 10 9 10 I 2 1 X X 11 10 9 9 11 10 1 F X X 9 10 11 9 99 11 X X X X X X 10 9 9 11 10 10 1/9 1/9.(10x1 + 0x1 + 0x1 + 11x1 + 1x1 + 0x1 + 10x1 + 0x1 + 2x1) = 1/9.( 34) = 3.7778 CS682, Jana Kosecka

Example: X X X X X X 10 11 10 1 10 7 4 1 X X 9 10 11 1 1 O X X I 10 9 1 10 7 4 1 X X 9 10 11 1 1 O X X I 10 9 10 2 1 X X 11 10 9 9 11 10 1 F X 20 X 9 10 11 9 99 11 X X X X X X 10 9 9 11 10 10 1/9 1/9.(10x1 + 9x1 + 11x1 + 9x1 + 99x1 + 11x1 + 11x1 + 10x1 + 10x1) = 1/9.( 180) = 20 CS682, Jana Kosecka

Example: X X X X X X 10 11 10 1 10 7 4 1 X X 9 10 11 1 1 O X X 10 9 10 I 2 1 X 18 X 11 10 9 9 11 10 1 F X 20 X 9 10 11 9 99 11 X X X X X X 10 9 9 11 10 10 1/9 1/9.(10x1 + 0x1 + 2x1 + 9x1 + 10x1 + 9x1 + 11x1 + 9x1 + 99x1) = 1/9.( 159) = 17.6667 CS682, Jana Kosecka

How big should the mask be? The bigger the mask, more neighbors contribute. smaller noise variance of the output. bigger noise spread. more blurring. more expensive to compute. CS682, Jana Kosecka

Gaussian Filter A particular case of averaging The coefficients are samples of a 1D Gaussian. Gives more weight at the central pixel and less weights to the neighbors. The further away the neighbors, the smaller the weight. Sample from the continuous Gaussian CS682, Jana Kosecka

How big should the mask be? The std. dev of the Gaussian  determines the amount of smoothing. The samples should adequately represent a Gaussian For a 98.76% of the area, we need m = 5 5.(1/)  2    0.796, m 5 5-tap filter g[x] = [0.136, 0.6065, 1.00, 0.606, 0.136] CS682, Jana Kosecka

Image Smoothing Convolution with a 2D Gaussian filter Gaussian filter is separable, convolution can be accomplished as two 1-D convolutions CS682, Jana Kosecka

Non-linear Filtering Replace each pixel with the MEDIAN value of all the pixels in the neighborhood. Non-linear Does not spread the noise Can remove spike noise Expensive to run CS682, Jana Kosecka

Example: 10 11 9 1 2 99 I X 10 O median sort 10,11,10,9,10,11,10,9,10 99 I X 10 O median sort 10,11,10,9,10,11,10,9,10 9,9,10,10,10,10,10,11,11 CS682, Jana Kosecka

Example: 10 11 10 1 X X X X X X 9 10 11 1 1 10 1 1 X 10 X O 10 9 10 I 2 1 X X 11 10 9 9 11 X X 10 9 10 11 9 99 11 X X 10 9 9 11 10 10 X X X X X X median sort 11,10,0,10,11,1,9,10,0 0,0,1,9,10,10,10,11,11 CS682, Jana Kosecka

Example: X X X X X X 10 11 10 1 10 X X 9 10 11 1 1 O X X 10 I 10 9 2 1 1 10 X X 9 10 11 1 1 O X X 10 I 10 9 2 1 X 9 X 11 10 9 9 11 10 X 10 X 9 10 11 9 99 11 X X X X X X 10 9 9 11 10 10 median sort 10,9,11,9,99,11,11,10,10 9,9,10,10,10,11,11,11,99 CS682, Jana Kosecka

Pointwise Image Operations Lookup table – match image intensity to the displayed brightness values Manipulation of the lookup table – different Visual effects – mapping is often non-linear CS682, Jana Kosecka

Contrast gamma Contrast CS682, Jana Kosecka Brightness

Quantization Thresholding Histogram Histogram – frequency gray-level -> empirical distribution h[i] – number of pixels of intensity i Histogram equalization – making histogram flat CS682, Jana Kosecka