CSCI 1290: Comp Photo Fall Brown University James Tompkin

Slides:



Advertisements
Similar presentations
Motion illusion, rotating snakes. Slide credit Fei Fei Li.
Advertisements

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
First color film Captured by Edward Raymond Turner Predates Prokudin-Gorskii collection Like Prokudin-Gorskii, it was an additive 3-color system.
Detecting Digital Image Forgeries Using Sensor Pattern Noise presented by: Lior Paz Jan Lukas, jessica Fridrich and Miroslav Goljan.
Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth Differentiation and convolution Recall Now this is linear and shift invariant,
Multimedia Data Introduction to Image Processing Dr Mike Spann Electronic, Electrical and Computer.
Edge detection. Edge Detection in Images Finding the contour of objects in a scene.
Canon 20D vs. Film ISO400. Canon 20D vs. Film ISO1600.
Image processing. Image operations Operations on an image –Linear filtering –Non-linear filtering –Transformations –Noise removal –Segmentation.
Computer Vision - A Modern Approach
Lecture 1: Images and image filtering
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.
Linear filtering. Overview: Linear filtering Linear filters Definition and properties Examples Gaussian smoothing Separability Applications Denoising.
Linear filters and edges. Linear Filters General process: Form new image whose pixels are a weighted sum of original pixel values, using the same set.
CS443: Digital Imaging and Multimedia Filters Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring 2008 Ahmed Elgammal Dept.
Linear filtering.
CCD Image Processing: Issues & Solutions. Correction of Raw Image with Bias, Dark, Flat Images Flat Field Image Bias Image Output Image Dark Frame Raw.
Linear Filtering About modifying pixels based on neighborhood. Local methods simplest. Linear means linear combination of neighbors. Linear methods simplest.
Module 2 : Linearity AGENDA TVI Vision, Kari Siren Linearity in general Theory, what does non-linearity mean when measuring “true” colour How to measure,
Multimedia Data Introduction to Image Processing Dr Sandra I. Woolley Electronic, Electrical.
Linear Filters Monday, Jan 24 Prof. Kristen Grauman UT-Austin …
Image Processing Jitendra Malik. Different kinds of images Radiance images, where a pixel value corresponds to the radiance from some point in the scene.
 The image that the digital camera sensor captures is based on the light reflected or emitted from a subject and how much the sensor is exposed to that.
Resolution = the number of photosites (pixels) in the array of your sensor or the total number of buckets Bit Depth / Pixel Depth.
Digital Imaging. Digital image - definition Image = “a two-dimensional function, f(x,y), where x and y are spatial coordinates, and the amplitude of f.
Image Filtering Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/02/10.
Why is computer vision difficult?
Chapter 5: Neighborhood Processing
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.
CSE 473/573 Computer Vision and Image Processing (CVIP) Ifeoma Nwogu Lecture 7 – Linear Filters 1.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
Proper Exposure and Light Meter Basics Instructor: Ms. Davis.
CS 691B Computational Photography
CCD Image Processing: Issues & Solutions. CCDs: noise sources dark current –signal from unexposed CCD read noise –uncertainty in counting electrons in.
Reconnaissance d’objets et vision artificielle
Linear filtering. Motivation: Image denoising How can we reduce noise in a photograph?
CSE 185 Introduction to Computer Vision Image Filtering: Spatial Domain.
Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Noah Snavely Hybrid Images, Oliva et al.,
CCD Calibrations Eliminating noise and other sources of error.
Camera Basics.
Basis beeldverwerking (8D040) dr. Andrea Fuster dr. Anna Vilanova Prof
Linear Filters and Edges Chapters 7 and 8
Linear Filters T-11 Computer Vision University of Houston
Charge Transfer Efficiency of Charge Coupled Device
CCD Image Processing …okay, I’ve got a bunch of .fits files, now what?
Linear Filters April 6th, 2017
Distributed Ray Tracing
Pixels and Image Filtering
Chapter I, Digital Imaging Fundamentals: Lesson II Capture
Cameras and Lighting Ms. Murphy.
Lecture 1: Images and image filtering
Image filtering Hybrid Images, Oliva et al.,
Recap from Wednesday Spectra and Color Light capture in cameras and humans.
Canon 20D vs. Film ISO400.
Image filtering Images by Pawan Sinha.
Image filtering Images by Pawan Sinha.
Image filtering Images by Pawan Sinha.
Announcements HR Diagram lab will be extended for one week. I’ll talk about it today. Homework: Chapter 9 # 1, 2 & 3 Next week is a Dark Sky Night. If.
Motion illusion, rotating snakes
Technical Intro to Digital Astrophotography Part 1
Oh, no, wait, sorry, I meant, welcome to the implementation of 20th-century science fiction literature, or a small part of it, where we will learn about.
Most slides from Steve Seitz
Linear Filtering CS 678 Spring 2018.
Image filtering
Lecture 2: Image filtering
Lecture 1: Images and image filtering
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Most slides from Steve Seitz
Presentation transcript:

Fall 2018 @ Brown University CSCI 1290: Comp Photo Fall 2018 @ Brown University James Tompkin Many slides thanks to James Hays’ old CS 129 course, along with all of its acknowledgements.

Questions from Tuesday Aaron: Crepuscular rays during an eclipse Keiichiro: Dark current sensor noise Eric How can we model noise in general? Leslie: Why is I = D * D? https://extellireader.wordpress.com/2009/03/03/aliasing-in-sensory-and-neurobiological-systems/

Aaron – Crepuscular Rays (shadowing) [Nilfanion; Herby] [NASA] [Wikipedia]

Aaron – eclipse pinhole cameras! So why don’t we see this all the time? We do, it’s just that the scene being imaged (the sun) is a less distinct shape. [PetaPixel; https://petapixel.com/2012/05/21/crescent-shaped-projections-through-tree-leaves-during-the-solar-eclipse/ http://www.mreclipse.com/SEphoto/TSE2006/TSE2006galleryA.html]

Keiichiro – Dark Current Residual current (rate of flow of charge) within a sensor when there is no illumination -> NOISE! How to measure? Put the lens cap on! We will do this in lab 3… ISO 51200 30 sec exposure 25 deg celsius https://snapshot.canon-asia.com/article/en/5-reasons-why-the-eos-5d-mark-iv-is-great-for-astrophotography [Canon; Shigemi Numazawa]

Keiichiro – Dark Current Dark frame current under continual operation (electrons per second) Camera operation itself Dark noise varies per pixel! https://snapshot.canon-asia.com/article/en/5-reasons-why-the-eos-5d-mark-iv-is-great-for-astrophotography [Dunlap et al., Correction of Dark Current in Consumer Cameras, 2010; https://www.photonics.com/Articles/Dark_Current_in_Consumer_Cameras_Not_What_you/a44298]

Keiichiro – Dark Current Ambient temperature Very important to astronomical imaging community – e.g., many forum posts: Dark frame current (electrons per second) https://snapshot.canon-asia.com/article/en/5-reasons-why-the-eos-5d-mark-iv-is-great-for-astrophotography [Dunlap et al., Correction of Dark Current in Consumer Cameras, 2010; https://www.photonics.com/Articles/Dark_Current_in_Consumer_Cameras_Not_What_you/a44298 https://www.cloudynights.com/topic/483729-new-canon-7dii-has-one-tenth-the-dark-current/]

Sensor cooling ‘Dark frame’; ISO 6400; brightened 40% Left-hand side: -2 deg Celsius Right-hand side: 20 deg Celsius ‘Dark frame’ = lens cap on; or totally black room, etc. [PrismaLuceLab; https://petapixel.com/2016/10/11/cooled-nikon-d5500a-chills-sensor-clearer-star-photos/]

Eric – How to model noise? Dark current noise -> residual noise with no illuminant Thermal noise -> ‘white’ noise, i.e., Gaussian iid per pixel Shot noise -> variation in the number of photons sensed at a given exposure level Poisson distribution; models discrete photons arriving at sensor pixels Proportional to sqrt( intensity ) Quantization noise -> analog to digital conversion noise Uniform; signal independent Noise floor -> sum of all noise (non-signal) across the imaging pipeline Below this, no signal can be detected E.G., defines limit on signal to noise ratio. https://snapshot.canon-asia.com/article/en/5-reasons-why-the-eos-5d-mark-iv-is-great-for-astrophotography https://en.wikipedia.org/wiki/Noise_(electronics) https://en.wikipedia.org/wiki/Image_noise iid = Independent and identically distributed random variables [Canon; Shigemi Numazawa]

Eric – How to model noise? Dead pixels -> sensor pixel always outputs 0 / receives no power Stuck pixels -> sensor pixel always outputs the same value Hot pixels -> sensor pixel over outputs as gain / temperature increase ISO 3200 (Brightness boosted 40%) Not stars; hot pixels! https://snapshot.canon-asia.com/article/en/5-reasons-why-the-eos-5d-mark-iv-is-great-for-astrophotography [Canon; Shigemi Numazawa]

D (275 x 175 pixels) I (from slide – 275 x 175) Leslie – I = D * D Mae – “…to do with lack of content (black) at edges”

D (275 x 175 pixels) I (from slide – 275 x 175) Leslie – I = D * D >> D = im2double( imread( ‘convexample.png’ ) ); >> I = conv2( D, D ); >> max(max( I ) ) ans = 1.1021e+04 >> I_norm = ( I – min(min(I))) / (max(max(I)) – min(min(I)) ); >> imshow( I_norm ); I_norm

Leslie – I = D * D D (275 x 175 pixels) I (from slide – 275 x 175) (275-1)/2 (275-1)/2 I_norm (549 x 349 pixels) 275 For x: 275 + (275-1)/2 + (275-1)/2 = 549

D (275 x 175 pixels) I (from slide – 275 x 175) Leslie – I = D * D >> I = conv2( D, D, ‘full’ ); (Default; pad with zeros) >> I = conv2( D, D, ‘same’ ); (Return same size as A) >> I = conv2( D, D, ‘valid’ ); (No padding) 549 x 349 275 x 175 Value = 10528.3 1x1

Practical matters What about near the edge? the filter window falls off the edge of the image need to extrapolate methods: clip filter (black) wrap around copy edge reflect across edge [S. Marschner]

Filtering as template matching Then I got ahead of myself and started talking about when the filter ‘looks like’ the image… ‘template matching’… Filtering viewed as comparing an image of what you want to find against all image regions

Earlier on, we had this example: b) A = _ * _ In class, the response was: A = B * C Intuitively, “because it kind of looks like it.” C is a Gaussian filter (or something close to it it), and we know that it ‘blurs’.

Filtering: Correlation and Convolution 2d correlation 2d convolution h=filter2(f,I); or h=imfilter(I,f); h=conv2(f,I); or h=imfilter(I,f,’conv’); conv2(I,f)is the same as filter2(rot90(f,2),I) Correlation and convolution are identical when the filter is symmetric. James Hays

Expect response ‘peak’ in middle of I D (275 x 175 pixels) OK, so let’s test this idea. Let’s see if we can use correlation to ‘find’ the parts of the image that look like the filter. >> f = D( 57:117, 107:167 ) Expect response ‘peak’ in middle of I >> I = filter2( D, f, ‘same’ ); f 61 x 61 I Correct location Hmm… That didn’t work – why not? + Response peak [Thanks to Robert Collins @ Penn State]

Correlation h=filter2(f,I); or h=imfilter(I,f); As brightness in I increases, the response in h will increase, as long as f is positive.

OK, so let’s subtract the mean D2 (275 x 175 pixels) OK, so let’s subtract the mean >> f = D( 57:117, 107:167 ); >> f2 = f – mean(mean(f)); >> D2 = D – mean(mean(D)); Score is higher only when dark parts match and when light parts match. >> I2 = filter2( Dm, f2, ‘same’ ); f2 61 x 61 I2

>> I3 = filter2( D2, D2, ‘full’ ); D2 (275 x 175 pixels) Or even >> I3 = filter2( D2, D2, ‘full’ ); I3