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.

Slides:



Advertisements
Similar presentations
Linear Filtering – Part II Selim Aksoy Department of Computer Engineering Bilkent University
Advertisements

Linear Filtering – Part II Selim Aksoy Department of Computer Engineering Bilkent University
Linear Filtering – Part II Selim Aksoy Department of Computer Engineering Bilkent University
CS 691 Computational Photography Instructor: Gianfranco Doretto Frequency Domain.
Ted Adelson’s checkerboard illusion. Motion illusion, rotating snakes.
Slides from Alexei Efros
CS 691 Computational Photography
Computational Photography: Sampling + Reconstruction Connelly Barnes Slides from Alexei Efros and Steve Marschner.
Pyramids and Texture. Scaled representations Big bars and little bars are both interesting Spots and hands vs. stripes and hairs Inefficient to detect.
Thinking in Frequency Computer Vision Brown James Hays Slides: Hoiem, Efros, and others.
Computer Vision University of Illinois Derek Hoiem
Linear Filtering – Part II Selim Aksoy Department of Computer Engineering Bilkent University
Computational Photography CSE 590 Tamara Berg Filtering & Pyramids.
Image Filtering, Part 2: Resampling Today’s readings Forsyth & Ponce, chapters Forsyth & Ponce –
Convolution, Edge Detection, Sampling : Computational Photography Alexei Efros, CMU, Fall 2006 Some slides from Steve Seitz.
Sampling and Pyramids : Rendering and Image Processing Alexei Efros …with lots of slides from Steve Seitz.
Edges and Scale Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection Szeliski – From Sandlot ScienceSandlot.
Image Sampling Moire patterns
Lecture 4: Image Resampling CS4670: Computer Vision Noah Snavely.
The Frequency Domain : Computational Photography Alexei Efros, CMU, Fall 2011 Somewhere in Cinque Terre, May 2005 Many slides borrowed from Steve.
Lecture 3: Image Resampling CS4670: Computer Vision Noah Snavely Nearest-neighbor interpolation Input image 3x upsample hq3x interpolation (ZSNES)
Computer Vision - A Modern Approach Set: Pyramids and Texture Slides by D.A. Forsyth Scaled representations Big bars (resp. spots, hands, etc.) and little.
Slides from Alexei Efros, Steve Marschner Filters & fourier theory.
Image Sampling Moire patterns -
1 Image Filtering Slides by Steve Seitz. 2 Salvador Dali, “Gala Contemplating the Mediterranean Sea, which at 30 meters becomes the portrait of Abraham.
Image Pyramids and Blending
Image Sampling CSE 455 Ali Farhadi Many slides from Steve Seitz and Larry Zitnick.
CSC589 Introduction to Computer Vision Lecture 9 Sampling, Gaussian Pyramid Bei Xiao.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5409 T-R 10:30am – 11:50am.
CSE 185 Introduction to Computer Vision Image Filtering: Frequency Domain.
Slide credit Fei Fei Li. Image filtering Image filtering: compute function of local neighborhood at each position Really important! – Enhance images.
Applications of Image Filters Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/04/10.
Computer Vision James Hays Thinking in Frequency Computer Vision James Hays Slides: Hoiem, Efros, and others.
CS 1699: Intro to Computer Vision Texture and Other Uses of Filters Prof. Adriana Kovashka University of Pittsburgh September 10, 2015 Slides from Kristen.
Image Resampling CS4670: Computer Vision Noah Snavely.
CSE 185 Introduction to Computer Vision Image Filtering: Frequency Domain.
Image Resampling CS4670: Computer Vision Noah Snavely.
Templates and Image Pyramids Computational Photography Derek Hoiem, University of Illinois 09/03/15.
Lecture 3: Edge detection CS4670/5670: Computer Vision Kavita Bala From Sandlot ScienceSandlot Science.
Thinking in Frequency Computational Photography University of Illinois Derek Hoiem 09/01/15.
Templates, Image Pyramids, and Filter Banks
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Image Processing.
Lecture 5: Fourier and Pyramids
Projects Project 1a due this Friday Project 1b will go out on Friday to be done in pairs start looking for a partner now.
Last Lecture photomatix.com. Today Image Processing: from basic concepts to latest techniques Filtering Edge detection Re-sampling and aliasing Image.
Slide credit Fei Fei Li.
Prof. Adriana Kovashka University of Pittsburgh September 14, 2016
Image Resampling & Interpolation
Computer Vision Brown James Hays 09/16/11 Thinking in Frequency Computer Vision Brown James Hays Slides: Hoiem, Efros, and others.
Sampling, Template Matching and Pyramids
Slow mo guys – Saccades
Linear Filtering – Part II
Many slides from Steve Seitz and Larry Zitnick
Image Sampling Moire patterns
Department of Computer Engineering
The Frequency Domain : Computational Photography
Image Sampling Moire patterns
Multiscale Analysis of Images
More Image Manipulation
CSCE 643 Computer Vision: Image Sampling and Filtering
Samuel Cheng Slide credits: Noah Snavely
Filtering Part 2: Image Sampling
Image Sampling Moire patterns
Linear Filtering CS 678 Spring 2018.
Department of Computer Engineering
Image Resampling & Interpolation
Resampling.
Samuel Cheng Slide credits: Noah Snavely
Thinking in Frequency Computational Photography University of Illinois
Templates and Image Pyramids
Presentation transcript:

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 computer or machine or robot vision. 4 February 2019

Salvador Dali, 1976

Next Classes Spatial frequency Fourier transform and frequency domain Frequency view of filtering Hybrid images Sampling Reminder: Textbook Today’s lecture covers material in 3.4 Slide: Hoiem

Why does a lower resolution image still make sense to us Why does a lower resolution image still make sense to us? What information do we lose? Image: http://www.flickr.com/photos/igorms/136916757/ Slide: Hoiem

A. Oliva, A. Torralba, P.G. Schyns, “Hybrid Images,” SIGGRAPH 2006 Hays A. Oliva, A. Torralba, P.G. Schyns, “Hybrid Images,” SIGGRAPH 2006

Why do we get different, distance-dependent interpretations of hybrid images? Slide: Hoiem

Sampling Why does a lower resolution image still make sense to us? What do we lose? Image: http://www.flickr.com/photos/igorms/136916757/

Subsampling by a factor of 2 Throw away every other row and column to create a 1/2 size image

A ‘bar’ in the big images is a hair on the zebra’s nose; in smaller images, a stripe; in the smallest, the animal’s nose Figure from David Forsyth

Algorithm for downsampling by factor of 2 Start with image of w x h Sample every other pixel im_small = image[ 0:2:, 0:2: ] Repeat until im_small is 1 pixel large. Numpy syntax: 0:2: -> start at 0, increase every 2, until the end. e.g., 0,2,4,6,…,w (if w is not even, then this goes to w-1) Hays

Image sub-sampling 1/8 1/4 Throw away every other row and column to create a 1/2 size image. Steve Seitz

Subsampling without filtering 1/2 1/4 (2x subsample) 1/8 (4x subsample) Steve Seitz

Sampling and aliasing

Aliasing problem 1D example (sinewave): Source: S. Marschner

Aliasing problem 1D example (sinewave): Source: S. Marschner

Aliasing problem Sub-sampling may be dangerous…. Characteristic errors may appear: “car wheels rolling the wrong way in movies” “checkerboards disintegrate in ray tracing” “striped shirts look funny on color television” Moiré patterns Source: D. Forsyth; Wikipedia

Aliasing in graphics Source: A. Efros

Aliasing and Moiré patterns Gong 96, 1932, Claude Tousignant, Musée des Beaux-Arts de Montréal

The blue and green colors are actually the same http://blogs.discovermagazine.com/badastronomy/2009/06/24/the-blue-and-the-green/

Aliasing in video Slide by Steve Seitz

Videos [YouTube; JoinBuzzirk; phrancque] https://www.youtube.com/watch?v=Y1yHMy0-4TM https://www.youtube.com/watch?v=jQDjJRYmeWg [YouTube; JoinBuzzirk; phrancque]

Nyquist-Shannon Sampling Theorem When sampling a signal at discrete intervals, the sampling frequency must be  2  fmax fmax = max frequency of the input signal This will allows to reconstruct the original perfectly from the sampled version v v v good bad

How to fix aliasing? Solutions?

Better sensors Solutions: Sample more often

Anti-aliasing Solutions: Sample more often Get rid of all frequencies that are greater than half the new sampling frequency Will lose information But it’s better than aliasing Apply a smoothing (low pass) filter Hays

Anti-aliasing Forsyth and Ponce 2002

Algorithm for downsampling by factor of 2 Start with image(h, w) Apply low-pass filter im_blur = imfilter( image, fspecial(‘gaussian’, 7, 1) ) Sample every other pixel im_small = im_blur( 1:2:end, 1:2:end ); Hays

Subsampling without filtering 1/2 1/4 (2x subsample) 1/8 (4x subsample) Steve Seitz

Subsampling with Gaussian pre-filtering Gaussian Pyramid [Burt and Adelson, 1983] Steve Seitz

Why do we get different, distance-dependent interpretations of hybrid images? Hays

Clues from Human Perception Early processing in humans filters for orientations and scales of frequency. Early Visual Processing: Multi-scale edge and blob filters

Campbell-Robson contrast sensitivity curve Perceptual cues in the mid-high frequencies dominate perception. Contrast decrease (log) Ask students to look at the image and think about where the line of constant response is - Frequency increase (log)

Application: Hybrid Images When we see an image from far away, we are effectively subsampling it! A. Oliva, A. Torralba, P.G. Schyns, SIGGRAPH 2006

“Gala Contemplating the Mediterranean Sea, Hays Gala was Dali’s wife. Salvador Dali “Gala Contemplating the Mediterranean Sea, which at 30 meters becomes the portrait of Abraham Lincoln”, 1976

Salvador Dali invented Hybrid Images? Gala was Dali’s wife. Salvador Dali “Gala Contemplating the Mediterranean Sea, which at 30 meters becomes the portrait of Abraham Lincoln”, 1976