Prof. Ramin Zabih (CS) Prof. Ashish Raj (Radiology) CS5540: Computational Techniques for Analyzing Clinical Data.

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

Spatial Filtering (Chapter 3)
E.G.M. PetrakisFiltering1 Linear Systems Many image processing (filtering) operations are modeled as a linear system Linear System δ(x,y) h(x,y)
Prof. Ramin Zabih (CS) Prof. Ashish Raj (Radiology) CS5540: Computational Techniques for Analyzing Clinical Data.
Prof. Ramin Zabih (CS) Prof. Ashish Raj (Radiology) CS5540: Computational Techniques for Analyzing Clinical Data.
Lecture 4 Linear Filters and Convolution
Prof. Ramin Zabih (CS) Prof. Ashish Raj (Radiology) CS5540: Computational Techniques for Analyzing Clinical Data.
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth Differentiation and convolution Recall Now this is linear and shift invariant,
Edge detection. Edge Detection in Images Finding the contour of objects in a scene.
Image processing. Image operations Operations on an image –Linear filtering –Non-linear filtering –Transformations –Noise removal –Segmentation.
Computer Vision - A Modern Approach
CS 376b Introduction to Computer Vision 02 / 27 / 2008 Instructor: Michael Eckmann.
Copyright © 2009 Pearson Education, Inc. Chapter 16 Random Variables.
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.
Digital Image Processing, 2nd ed. www. imageprocessingbook.com © 2001 R. C. Gonzalez & R. E. Woods 1 Objective To provide background material in support.
1 Computer Science 631 Lecture 3: Morphing, Sampling Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
CS443: Digital Imaging and Multimedia Filters Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring 2008 Ahmed Elgammal Dept.
Introduction to Computer Vision CS / ECE 181B Thursday, April 22, 2004  Edge detection (HO #5)  HW#3 due, next week  No office hours today.
Comp 665 Convolution. Questions? Ask here first. Likely someone else has the same question.
Basic Image Processing January 26, 30 and February 1.
Random Variable and Probability Distribution
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
Review of Probability.
Linear Algebra and Image Processing
Filtering Course web page: vision.cis.udel.edu/cv March 5, 2003  Lecture 9.
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
6.837 Linear Algebra Review Patrick Nichols Thursday, September 18, 2003.
Computer Science 631 Lecture 7: Colorspace, local operations
TELECOMMUNICATIONS Dr. Hugh Blanton ENTC 4307/ENTC 5307.
Digital Filters. What have we seen so far?  So far we have seen… Box filterBox filter  Moving average filter  Example of a lowpass passes low frequenciespasses.
Filtering and Enhancing Images. Major operations 1. Matching an image neighborhood with a pattern or mask 2. Convolution (FIR filtering)
Linear filtering. Motivation: Noise reduction Given a camera and a still scene, how can you reduce noise? Take lots of images and average them! What’s.
October 7, 2014Computer Vision Lecture 9: Edge Detection II 1 Laplacian Filters Idea: Smooth the image, Smooth the image, compute the second derivative.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Edges.
CS654: Digital Image Analysis
CS 691B Computational Photography
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Lecture 3 Template Matching Edge Detection. 2 Processes for Assignment 1  Understand Image Format  Pre Processing - Gaussian, Mean Filter to clean up.
Grauman Today: Image Filters Smooth/Sharpen Images... Find edges... Find waldo…
Performance of Digital Communications System
September 26, 2013Computer Vision Lecture 8: Edge Detection II 1Gradient In the one-dimensional case, a step edge corresponds to a local peak in the first.
Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Noah Snavely Hybrid Images, Oliva et al.,
Computer Graphics Mathematical Fundamentals Lecture 10 Taqdees A. Siddiqi
Filters– Chapter 6. Filter Difference between a Filter and a Point Operation is that a Filter utilizes a neighborhood of pixels from the input image to.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Linear Constant-Coefficient Difference Equations
Linear Filters and Edges Chapters 7 and 8
Linear Filters and Edges Chapters 7 and 8
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Linear Filters and Edges Chapters 7 and 8
Assoc. Prof. Dr. Peerapol Yuvapoositanon
Convolutional Networks
All about convolution.
Computer Vision Lecture 9: Edge Detection II
Review: Linear Systems
Suppose you roll two dice, and let X be sum of the dice. Then X is
Probability Review for Financial Engineers
Basic Image Processing
Digital Image Processing Week IV
Sorting, selecting and complexity
Edge Detection in Computer Vision
Properties A property is something that is true for all situations.
Lecture 2: Image filtering
Intensity Transformation
Linear Systems Review Objective
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Berlin Chen Department of Computer Science & Information Engineering
All about convolution.
Presentation transcript:

Prof. Ramin Zabih (CS) Prof. Ashish Raj (Radiology) CS5540: Computational Techniques for Analyzing Clinical Data

Cycles and pulses 2 Cycle Pulse Note: cycle is standard terminology, but pulse is not. The ECG literature calls these “waves” but we want to be more general than just ECG.

Convolution in action 3

Convolution as a dot product  Note: technically this is correlation –Same as convolution when symmetric [… …] [1 -1] = 19 – 20 = -1 [1 -1] = 20 – (-4) = 24 [1 -1] = -4 – 17 = -21  This seems like a lot of mechanism to get somewhere totally obvious 4

Geometric intuition  Taking the dot product of two vectors –Recall [a b c]  [e f g] = ae + bf + cg –Basically the projection of a vector on another  The normalized vector with the biggest projection on x is, of course: x! –Useful intuition for transforms, etc. 5

Normalization  Matched filter must be normalized –Want to find our template in the ECG data  What looks like [1 2 6]? –Obviously, [… …] does (score = 41) –What about [… …]? –Subtract mean from both template and ECG Ex: [-1 1] template –Also need to normalize the “energy” to 1 Sum of squares 6

Convolution and edge detection  Strategy: smooth (convolve with a Gaussian) then find zero crossings  We can also look for inflection points (2 nd derivative is zero) after smoothing  Or we can look for big changes in the ECG –Sort of what we did with the matched filter  Can do smoothing at the same time! 7

Convolution’s properties  Convolution is also popular because it is a surprisingly deep topic –With lots of connections to other areas Central limit theorem Multiplication of polynomials Etc, etc. 8

Gaussian convolution  The standard way to smooth data is to convolve with a Gaussian –Related to Gaussian noise assumption  Gaussian noise assumption itself comes from one of the Gaussian’s many amazing properties, the Central Limit Theorem 9

Random variables  A discrete random variable assigns each integer a probability –Ex: a perfect coin or a die –The assignment function is the density  What happens when we toss a two dice and add them up? –This is another random variable –Q: What is the density? –A: Convolution of the dice density with itself 10

Limit theorems  Let’s throw more and more dice, adding up their totals –Ex: 1000 dice Sum is from 1000 to 6000 –If the dice density is uniform, we’ll typically get around 3500 What about an arbitrary density?  Central limit theorem: we will end up with a Gaussian 11

Illustration  How fast does this become Gaussian? 12

Convolution and edges  We want to smooth then find zero crossings or big increases/decreases  There is some nice math that tells us we can do this in a single step –It was actually illustrated in the matched filter 13

Pulse finding example 14

Linearity  Scalars don’t matter –Scalars in Y, not T (the latter is scale invariance, which is much harder)  Addition doesn’t matter  Formally, for any two ECG’s X,Y and scalars a,b we have H(aX + bY) = a H(x) + b H(y)  Many devices/systems are linear when they are well behaved 15

Shift invariance  Shift the input, shift the output  Or: starting point doesn’t matter  Note that fixed shift itself is a convolution 16

LSI systems  Many important systems have both of these properties –Linear Shift Invariant –Aka Linear Time Invariant 17

LSI and convolution  Convolution is an LSI operation –Pretty obvious (think about local averaging)  But any LSI is actually convolution with something, which is easy to find –Why would this be true?? 18

Unit impulse response  Unit impulse: [… …]  Any input is the sum of scaled and shifted unit impulses –Example: to get [ ] we: Take the unit impulse shifted once left: [1 0 0] Add 6 times the unit impulse, no shift: [1 6 0] Subtract 10 times the unit impulse, shifted right 19