Outdoor Image Processing 1. Photometric stereo for outdoor webcams  "Photometric stereo for outdoor webcams" Ackermann, J.; Langguth, F.; Fuhrmann, S.;

Slides:



Advertisements
Similar presentations
Automatic Photo Pop-up Derek Hoiem Alexei A.Efros Martial Hebert Carnegie Mellon University.
Advertisements

Top-Down & Bottom-Up Segmentation
Foreground Focus: Finding Meaningful Features in Unlabeled Images Yong Jae Lee and Kristen Grauman University of Texas at Austin.
Change Detection C. Stauffer and W.E.L. Grimson, “Learning patterns of activity using real time tracking,” IEEE Trans. On PAMI, 22(8): , Aug 2000.
Announcements Project 2 due today Project 3 out today –demo session at the end of class.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #12.
Digital Photography with Flash and No-Flash Image Pairs By: Georg PetschniggManeesh Agrawala Hugues HoppeRichard Szeliski Michael CohenKentaro Toyama,
MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling.
I Images as graphs Fully-connected graph – node for every pixel – link between every pair of pixels, p,q – similarity w ij for each link j w ij c Source:
Color spaces CIE - RGB space. HSV - space. CIE - XYZ space.
Automatic scene inference for 3D object compositing Kevin Karsch (UIUC), Sunkavalli, K. Hadap, S.; Carr, N.; Jin, H.; Fonte, R.; Sittig, M., David Forsyth.
Object Recognition & Model Based Tracking © Danica Kragic Tracking system.
Jue Wang Michael F. Cohen IEEE CVPR Outline 1. Introduction 2. Failure Modes For Previous Approaches 3. Robust Matting 3.1 Optimized Color Sampling.
Shape-from-X Class 11 Some slides from Shree Nayar. others.
Content Based Image Clustering and Image Retrieval Using Multiple Instance Learning Using Multiple Instance Learning Xin Chen Advisor: Chengcui Zhang Department.
1 A Markov Random Field Framework for Finding Shadows in a Single Colour Image Cheng Lu and Mark S. Drew School of Computing Science, Simon Fraser University,
Boundary matting for view synthesis Samuel W. Hasinoff Sing Bing Kang Richard Szeliski Computer Vision and Image Understanding 103 (2006) 22–32.
Lecture 23: Photometric Stereo CS4670/5760: Computer Vision Kavita Bala Scott Wehrwein.
Light Mixture Estimation for Spatially Varying White Balance
Multi video camera calibration and synchronization.
Robust Object Segmentation Using Adaptive Thresholding Xiaxi Huang and Nikolaos V. Boulgouris International Conference on Image Processing 2007.
Stereoscopic Light Stripe Scanning: Interference Rejection, Error Minimization and Calibration By: Geoffrey Taylor Lindsay Kleeman Presented by: Ali Agha.
Visibility Subspaces: Uncalibrated Photometric Stereo with Shadows Kalyan Sunkavalli, Harvard University Joint work with Todd Zickler and Hanspeter Pfister.
High-Quality Video View Interpolation
Single Image Haze Removal Using Dark Channel Prior Professor : 王聖智 教授 Student : 戴玉書 CVPR Best Paper AwardBest Paper Award Kaiming HeKaiming He, Dept.
Shadow Removal Seminar
Automatic Photo Popup Derek Hoiem Alexei A. Efros Martial Hebert Carnegie Mellon University.
Multi-camera Video Surveillance: Detection, Occlusion Handling, Tracking and Event Recognition Oytun Akman.
A Novel 2D To 3D Image Technique Based On Object- Oriented Conversion.
Opportunities of Scale, Part 2 Computer Vision James Hays, Brown Many slides from James Hays, Alyosha Efros, and Derek Hoiem Graphic from Antonio Torralba.
Shadow Detection In Video Submitted by: Hisham Abu saleh.
Accurate, Dense and Robust Multi-View Stereopsis Yasutaka Furukawa and Jean Ponce Presented by Rahul Garg and Ryan Kaminsky.
Face Relighting with Radiance Environment Maps Zhen Wen 1, Zicheng Liu 2, Thomas Huang 1 Beckman Institute 1 University of Illinois Urbana, IL61801, USA.
3D Scene Models Object recognition and scene understanding Krista Ehinger.
Light and shading Source: A. Efros.
Speaker: Chi-Yu Hsu Advisor: Prof. Jian-Jung Ding Leveraging Stereopsis for Saliency Analysis, CVPR 2012.
Computer Vision Spring ,-685 Instructor: S. Narasimhan PH A18B T-R 10:30am – 11:50am Lecture #13.
Tal Mor  Create an automatic system that given an image of a room and a color, will color the room walls  Maintaining the original texture.
Image Segmentation Rob Atlas Nick Bridle Evan Radkoff.
Online Tracking of Outdoor Lighting Variations for Augmented Reality with Moving Cameras Yanli Liu 1,2 and Xavier Granier 2,3,4 1: College of Computer.
Prakash Chockalingam Clemson University Non-Rigid Multi-Modal Object Tracking Using Gaussian Mixture Models Committee Members Dr Stan Birchfield (chair)
Image-Based Rendering from a Single Image Kim Sang Hoon Samuel Boivin – Andre Gagalowicz INRIA.
Digital Face Replacement in Photographs CSC2530F Project Presentation By: Shahzad Malik January 28, 2003.
Y. Moses 11 Combining Photometric and Geometric Constraints Yael Moses IDC, Herzliya Joint work with Ilan Shimshoni and Michael Lindenbaum, the Technion.
Lighting affects appearance. How do we represent light? (1) Ideal distant point source: - No cast shadows - Light distant - Three parameters - Example:
Lec 22: Stereo CS4670 / 5670: Computer Vision Kavita Bala.
Interreflections : The Inverse Problem Lecture #12 Thanks to Shree Nayar, Seitz et al, Levoy et al, David Kriegman.
1 Self-Calibration and Neural Network Implementation of Photometric Stereo Yuji IWAHORI, Yumi WATANABE, Robert J. WOODHAM and Akira IWATA.
Shape from Shading Course web page: vision.cis.udel.edu/cv February 26, 2003  Lecture 6.
Announcements Final Exam Friday, May 16 th 8am Review Session here, Thursday 11am.
Digital Image Processing
Lecture 9 Feature Extraction and Motion Estimation Slides by: Michael Black Clark F. Olson Jean Ponce.
1Ellen L. Walker 3D Vision Why? The world is 3D Not all useful information is readily available in 2D Why so hard? “Inverse problem”: one image = many.
CS654: Digital Image Analysis Lecture 28: Advanced topics in Image Segmentation Image courtesy: IEEE, IJCV.
Cell Segmentation in Microscopy Imagery Using a Bag of Local Bayesian Classifiers Zhaozheng Yin RI/CMU, Fall 2009.
1 Kernel Machines A relatively new learning methodology (1992) derived from statistical learning theory. Became famous when it gave accuracy comparable.
Learning and Removing Cast Shadows through a Multidistribution Approach Nicolas Martel-Brisson, Andre Zaccarin IEEE TRANSACTIONS ON PATTERN ANALYSIS AND.
Shadow Detection in Remotely Sensed Images Based on Self-Adaptive Feature Selection Jiahang Liu, Tao Fang, and Deren Li IEEE TRANSACTIONS ON GEOSCIENCE.
Using Clouds Shadows to Infer Scene Structure and Camera Calibration
MAN-522 Computer Vision Spring
By: Rachel Yuen, Chad Van De Hey, and Jake Trotman
Phil Morley Haze Removal.
J. C. Stroeve, J. Box, F. Gao, S. Liang, A. Nolin, and C. Schaaf
CS4670 / 5670: Computer Vision Kavita Bala Lec 27: Stereo.
Merle Norman Cosmetics, Los Angeles
Fast and Robust Object Tracking with Adaptive Detection
Multi-modality image registration using mutual information based on gradient vector flow Yujun Guo May 1,2006.
Single Image Haze Removal Using Dark Channel Prior
Announcements Project 3 out today demo session at the end of class.
Shape from Shading and Texture
Presentation transcript:

Outdoor Image Processing 1

Photometric stereo for outdoor webcams  "Photometric stereo for outdoor webcams" Ackermann, J.; Langguth, F.; Fuhrmann, S.; Goesele, M.;, CVPR 2012 Overview:  Photometric stereo from time lapse video captured over a long time span.  Retrieves  Surface Normals  Basic Materials  Material Mixtures  Indirect light 2

Assumptions  GPS location of the camera, object and sky mask, per image time stamp are available 3

4

Selecting Subsets of images  Image Filtering: 1) Discard images with 10% of the image or the object is overexposed 2) Select only daytime images, zenith < 85 degrees 3) Discard bad weather images – select only top 50% according to score: S I = I sky + I Obj I sky = median of sky pixel intensities I Obj = 75 th percentile of object pixel intensities 5

Selecting Subsets of images  Two Image subsets required; 1) Clear sky images for camera calibration, 2) Images with good weathers and well illuminated object for photometric stereo Iteratively select required number of images by updating penalty using a 2D Gaussian function and selecting the best image at that iteration 6

Obtaining light direction  Image Alignment: Align gradient images to the average gradient  Camera Calibration: 1) Radiometric response obtained using Kim et al. ( uses pixels under the same lighting conditions to solve for the response function). 2) Absolute zenith, azimuth of the Sun obtained using cam location, timestamp. 3) Use the sky as calibration target ( Lalonde et al.) to find camera zenith, azimuth  Shadow Detection  I max,p / I min,p always shadowed  Otherwise, I i,p shadowed in I i End of Stage 1 ( obtain subset of images with light direction) 7

Photometric Stereo stage  Intensity of image i at pixel p and channel c, I i,p,c = I sun,i,p,c + I sky,I,p,c  Reflectance at a pixel is linear combination of basis materials, f m,c Sun light model Intensity of the sun Material mixing coeff Surface normal Sun direction Portion of sky visible at p 8

Light Model  Sky light model Assume Finally, Optimize for l i,c, f m,c, n p, γ p,m. V p is replaced by using images I p s.t. pixel p is not in shadow 9

Initialization  Set S p,c to zero, assume constant light intensities and Lambertian scene 1. Obtain initial estimates for surface normals and albedo 2. Use these to find initial estimates of the light intensities 3. Cluster the albedos to get an initialization of material properties at each pixel 1) Surface normal and albedo  Solve for classical photometric stereo 10

Initialization  2) Relative light intensities:  Need six surface points with similar albedo and differing normal  1) Cluster albedos in 4 groups  2) Cluster normals for pixels with the most frequent albedo  3) Pick normal from different clusters  3) Initial material estimation:  Cluster albedos in sRGB  Identify pure pixel sets for each of the fundamental materials  Solve for the BRDF parameters 11

Iterative Refinement  Intensity estimate: updated in each following step 1) Material Fitting  Find optimal parameters for all materials simultaneously, not for only pure pixels  Minimize 12

Iterative Refinement  Light intensity optimization:  Minimize,  Material and normal map optimization:  Minimize  Material parameters, light intensities are fixed, only normals, sky light at each pixel, and material mixing coeff are optimized 13

Shadow Detection and Removal  Single-Image Shadow Detection and Removal using Paired Regions Ruiqi Guo, Qieyun Dai, Derek Hoiem. CVPR 2012  Employs a region based approach.  Perform pairwise classification (of illumination conditions) of regions based on appearance.  Graph cut is used for the labeling.  Soft matting for refinement  Shadow free image is obtained by relighting pixels under shadow 14

Shadow Detection  Maximize  c i shadow – single region classifier confidence * region area  c ij diff, c ij diff – pairwise classifier confidence * f(region areas)  y – shadow labels for regions 15

Shadow Detection  Single region classifier (with χ 2 kernel) features 1. Color histograms 2. Texton histograms  Internal appearance of a given region is not enough Comparison between regions of same material needed Pairwise region classifier (RBF kernel) features 1. Χ 2 distance between color and texton histograms 2. Ratios of RGB average intensity ( ρ r = R avg1 /R avg2, …) 3. Chromatic alignment (ρ r /ρ g ) 4. Normalized distances between the regions 16

Pairwise region graph 17  Different illumination  black-white  Same-illumination  Green  Not related  Orange

Pairwise region graph 18

Apply Graph cut  Reformulate the cost function to apply Graph cut 19

Shadow Removal Soft shadow Solution: Shadow matting Hard shadow maskSoft shadow matt 20 Slide from Guo et al.

Shadow Removal  Simple light model: direct light + env. Light  Relighting: Estimate how much direct light is occluded at each pixel and light up by that amount 1. Find the fractional shadow coefficients using matting technique 2. Find ratio of direct to environment light. 21 Direct light Environmental light Surface Reflectance Shadow coefficient content from from Guo et al.

Light Model 22 Non-shadow: t i =1 Umbra: t i =0 Penumbra = 0 < t i < 1 Relighting : I i shadow-free = (L d cosθ i + L e )R i Figure from from Guo et al.

Shadow model as a matting problem I i = γ i F i + (1- γ i )B i F: Foreground image, B: background Image 23 Rewrite shadow model as: I i = k i (L d R i + L e R i ) + (1-k i )L e R i Similar to matting eqn. Solve for matting: minimize E(k) = k T L k + λ(k-k’) T D(k-k’) T optimal k obtained by solving sparse system: ( L + λD)k = λdk’

Finding the light ratio 24 Final r obtained by voting content from from Guo et al.

Results 25  UCF Dataset (Zhu et al.)  245 images  outdoor scenes, manual annotations content from from Guo et al.

Experiments: Datasets  UCF Dataset (Zhu et al.)  245 images  outdoor scenes, manual annotations content from from Guo et al.

Experiments: Datasets  New UIUC Shadow Dataset  108 images, indoor/outdoor, automatic annotation  Evaluate both shadow detection and removal Input image Groundtruth Nonshadow Shadow mask content from from Guo et al.

Results on UCF Dataset Input image Groundtruth Shadow mask DetectionRemoval result content from from Guo et al.

Results on UIUC Dataset Input image Detection Removal resultGroundtruth content from from Guo et al.

Results: Shadow Detection AccuracyUCF datasetUIUC dataset (ours) Full model Single region Zhu et al Pixel accuracy content from from Guo et al.

Shadow Non-shadow Shadow (GT) Non- shadow(GT) Results: Shadow Detection Shadow Non-shadow Shadow (GT) Non- shadow(GT) Confusion matrices on UCF dataset full modelSingle region classification content from from Guo et al.

Shadow Non-shadow Shadow (GT) Non- shadow(GT) Results: Shadow Detection Shadow Non-shadow Shadow (GT) Non- shadow(GT) Confusion matrices on UCF dataset Zhu et al full model content from from Guo et al.

Failure Example Input imageDetectionRemoval result content from from Guo et al.

End 34