Digital Image Processing

Slides:



Advertisements
Similar presentations
Ter Haar Romeny, FEV Geometry-driven diffusion: nonlinear scale-space – adaptive scale-space.
Advertisements

Matlab Tutorial. Session 1 Basics, Filters, Color Space, Derivatives, Pyramids, Optical Flow Gonzalo Vaca-Castano.
Regional Processing Convolutional filters. Smoothing  Convolution can be used to achieve a variety of effects depending on the kernel.  Smoothing, or.
Ter Haar Romeny, Computer Vision 2014 Geometry-driven diffusion: nonlinear scale-space – adaptive scale-space.
Color Image Processing
Midterm Review CS485/685 Computer Vision Prof. Bebis.
1 Image filtering Hybrid Images, Oliva et al.,
Color.
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering
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.
What is color for?.
1 Image filtering
Image Features, Hough Transform Image Pyramid CSE399b, Spring 06 Computer Vision Lecture 10
Lecture 2: Image filtering
Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Kavita Bala Hybrid Images, Oliva et al.,
Computer Vision Spring ,-685 Instructor: S. Narasimhan WH 5409 T-R 10:30 – 11:50am.
CS559: Computer Graphics Lecture 3: Digital Image Representation Li Zhang Spring 2008.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Image processing.
September 17, 2013Computer Vision Lecture 5: Image Filtering 1ColorRGB HSI.
Digital Image Processing Part 1 Introduction. The eye.
Instructor: S. Narasimhan
Graphics Lecture 4: Slide 1 Interactive Computer Graphics Lecture 4: Colour.
Edge Detection and Geometric Primitive Extraction Jinxiang Chai.
Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.
Introduction to Computer Graphics
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 15/16 – TP7 Spatial Filters Miguel Tavares Coimbra.
Scale-Space and Edge Detection Using Anisotropic Diffusion Presented By:Deepika Madupu Reference: Pietro Perona & Jitendra Malik.
Digital Image Processing Lecture 17: Segmentation: Canny Edge Detector & Hough Transform Prof. Charlene Tsai.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Computer vision. Applications and Algorithms in CV Tutorial 3: Multi scale signal representation Pyramids DFT - Discrete Fourier transform.
Instructor: Mircea Nicolescu Lecture 7
Last Lecture photomatix.com. Today Image Processing: from basic concepts to latest techniques Filtering Edge detection Re-sampling and aliasing Image.
Image credit: Wikipedia (Fovea) Human Eye Some interesting facts – Rod cells: requires only low light b/w vision blur, all over retina EXCEPT fovea – Cone.
Announcements Final is Thursday, March 18, 10:30-12:20 –MGH 287 Sample final out today.
Sliding Window Filters Longin Jan Latecki October 9, 2002.
EDGE DETECTION Dr. Amnach Khawne. Basic concept An edge in an image is defined as a position where a significant change in gray-level values occur. An.
Color Models Light property Color models.
Medical Image Analysis
Miguel Tavares Coimbra
Graph Spectral Image Smoothing
PDE Methods for Image Restoration
Capturing Light… in man and machine
Image Filtering Spatial filtering
- photometric aspects of image formation gray level images
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering Northern Arizona University.
Color Image Processing
Color Image Processing
Human Eye Some interesting facts Useful fact Rod cells: Cone cells:
Introduction to Electromagnetic waves, Light, and color
CSE 455 HW 1 Notes.
Color Image Processing
Colour Theory Fundamentals
Image gradients and edges
Computer Vision Lecture 9: Edge Detection II
Review: Linear Systems
Human Eye Some interesting facts Useful fact Rod cells: Cone cells:
Color Image Processing
Image Processing with Applications-CSCI597/MATH597/MATH489
Capturing Light… in man and machine
Lecture 2: Edge detection
Filtering Things to take away from this lecture An image as a function
Color Image Processing
Image Perception and Color Space
Lecture 2: Image filtering
Filtering An image as a function Digital vs. continuous images
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
ECE/CSE 576 HW 1 Notes.
Review and Importance CS 111.
Computer Graphics Image processing 紀明德
Presentation transcript:

Digital Image Processing Lecture 3 Scale-space, Colors Tammy Riklin Raviv Electrical and Computer Engineering Ben-Gurion University of the Negev

Last Class: Filtering

Partial Derivatives First order partial derivatives: Left Derivative Right Derivative Central Derivative

Partial Derivatives First order partial derivatives:

Partial Derivatives

Partial Derivatives

Partial Derivatives

Gradients Gradients:

Gradients

Gradients Can you explain the differences?

Gradients You get long function but here is the important part:

Derivatives & the Laplacian Second order derivatives

Divergence Let be a 2D Cartesian coordinates Let be corresponding basis of unit vectors The divergence of a continuously differential vector field is defined as the (signed) scalar-valued function:

Back to Laplacian The Laplacian of a scalar function or functional expression is the divergence of the gradient of that function or expression: Therefore, you can compute the Laplacian using the divergence  and gradient functions:

Back to Laplacian abs

Pyramids Multi-scale signal representation A predecessor to scale-space representation and multiresolution analysis. Wikipedia

Gaussian Pyramid The Gaussian Pyramid is a hierarchy of low-pass filtered versions of the original image, such that successive levels correspond to lower frequencies.

Gaussian Pyramids

Laplacian Pyramid The Laplacian Pyramid is a decomposition of the original image into a hierarchy of images such that each level corresponds to a different band of image frequencies. This is done by taking the difference of levels in the Gaussian pyramid. For image I the Laplacian pyramid L(I) is:

Laplacian Pyramid Algorithm

Pyramids Construction

Laplacian Pyramid & Laplacian http://www.cs.toronto.edu/~jepson/ csc320/notes/pyramids.pdf

Hybrid Images

Isotropic Diffusion The diffusion equation is a general case of the heat equation that describes the density changes in a material undergoing diffusion over time. Isotropic diffusion, in image processing parlance, is an instance of the heat equation as a partial differential equation (PDE), given as: where, I is the image and t is the time of evolution. Manasi Datar

Isotropic Diffusion Solving this for an image is equivalent to convolution with some Gaussian kernel. In practice we iterate as follows:

Isotropic Diffusion We can notice that while the diffusion process blurs the image considerably as the number of iterations increases, the edge information progressively degrades as well.

Anisotropic Diffusion: Perona-Malik Perona & Malik introduce the flux function as a means to constrain the diffusion process to contiguous homogeneous regions, but not cross region boundaries. The heat equation (after appropriate expansion of terms) is thus modified to: where c is the proposed flux function which controls the rate of diffusion at any point in the image.

Anisotropic Diffusion: Perona-Malik A choice of c such that it follows the gradient magnitude at the point enables us to restrain the diffusion process as we approach region boundaries. As we approach edges in the image, the flux function may trigger inverse diffusion and actually enhance the edges.

Anisotropic Diffusion: Perona-Malik Perona & Malik suggest the following two flux functions:

Anisotropic Diffusion: Perona-Malik The flux functions offer a trade-off between edge-preservation and blurring (smoothing) homogeneous regions. Both the functions are governed by the free parameter κ which determines the edge-strength to consider as a valid region boundary. Intuitively, a large value of κ will lead back into an isotropic-like solution. We will experiment with both the flux functions in this report.

Anisotropic Diffusion: Perona-Malik A discrete numerical solution can be derived for the anisotropic case as follows: where {N,S,W,E} correspond to the pixel above, below, left and right of the pixel under consideration (i,j).

Anisotropic Diffusion: Perona-Malik

Anisotropic vs. Isotropic Diffusion Isotropic quadratic exponent

Bonus Question: Image Enhancement Take an image (any image, but preferably one’s that needs enhancement) and enhance it. Use what learned in this class to do so Plot the “before” and “after” Plot its derivatives before and after Matlab code is needed 3 Best works in class get 1 bonus point

Colors

The Eye

The Eye

Rod & Cone Sensitivity

Distribution of Rods & Cones

Visible Spectrum http://www.chromacademy.com/lms/sco736/images/Electromagnetic-spectrum.jpg

Visible Spectrum

The Physics of Light

The Physics of Light

The Physics of Light

Physiology of Color Vision

Metamers

Color Perception

Color Sensing in Camera (RGB)

Practical Color Sensing: Bayer Grid

Camera Color Response

Color Space: How can we represent colors

Color Spaces: RGB Default Color Space

Color Space: CMYK C – Cyan M – Magenta Y – Yellow K -Black Subtractive primary colors In contrast: RGB Additive Primary colors

Color Spaces: HSV hue, saturation, and value

Color Spaces: HSV Only color: Constant Intensity

Color Spaces: HSV Only color: Constant Intensity Constant Color; Only Intensity

Color Spaces: HSV Only color: Constant Intensity Original Image

Color Spaces: HSV Intuitive color space Only color: Constant Intensity

Color Spaces: YCbCr Only color: Constant Intensity

Color Spaces: L*a*b* Only color: Constant Intensity

Color Spaces: L*a*b* L – Lightness a,b color opponents Only color: Constant Intensity

Next class Frequency