Simultaneous Structure and Texture Image Inpainting by: Bertalmio, Sapiro, Vese, Osher Presented by: Shane Brennan June 7, 2007 EE 264 – Spring 2007.

Slides:



Advertisements
Similar presentations
Filling Algorithms Pixelwise MRFsChaos Mosaics Patch segments are pasted, overlapping, across the image. Then either: Ambiguities are removed by smoothing.
Advertisements

Object Removal by Exemplar-Based Inpainting Ye Hong CS766 Fall 2004.
Data-driven methods: Texture (Sz 10.5) Cs129 Computational Photography James Hays, Brown, Spring 2011 Many slides from Alexei Efros.
Transformations We want to be able to make changes to the image larger/smaller rotate move This can be efficiently achieved through mathematical operations.
Active Contours / Planes Sebastian Thrun, Gary Bradski, Daniel Russakoff Stanford CS223B Computer Vision Some slides.
Active Contour Models (Snakes)
Lecture 6 Image Segmentation
Announcements Project 4 questions? Guest lectures Thursday: Richard Ladner “tactile graphics” Next Tuesday: Jenny Yuen and Jeff Bigham.
CS 376b Introduction to Computer Vision 04 / 11 / 2008 Instructor: Michael Eckmann.
Motion Analysis (contd.) Slides are from RPI Registration Class.
Direct Methods for Visual Scene Reconstruction Paper by Richard Szeliski & Sing Bing Kang Presented by Kristin Branson November 7, 2002.
Segmentation Divide the image into segments. Each segment:
Clustering Color/Intensity
Object Detection and Tracking Mike Knowles 11 th January 2005
SUSAN: structure-preserving noise reduction EE264: Image Processing Final Presentation by Luke Johnson 6/7/2007.
Texture Reading: Chapter 9 (skip 9.4) Key issue: How do we represent texture? Topics: –Texture segmentation –Texture-based matching –Texture synthesis.
Region Filling and Object Removal by Exemplar-Based Image Inpainting
Lecture 8: Image Alignment and RANSAC
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
Background Estimation Mehdi Ghayoumi, MD Iftakharul Islam, Muslem Al-Saidi Department of Computer Science Kent State University, Kent, OH
Image Renaissance Using Discrete Optimization Cédric AllèneNikos Paragios ENPC – CERTIS ESIEE – A²SI ECP - MAS France.
Interactive Image Segmentation of Non-Contiguous Classes using Particle Competition and Cooperation Fabricio Breve São Paulo State University (UNESP)
Projective Texture Atlas for 3D Photography Jonas Sossai Júnior Luiz Velho IMPA.
Adaptive Regularization of the NL-Means : Application to Image and Video Denoising IEEE TRANSACTION ON IMAGE PROCESSING , VOL , 23 , NO,8 , AUGUST 2014.
Last tuesday, you talked about active shape models Data set of 1,500 hand-labeled faces 20 facial features (eyes, eye brows, nose, mouth, chin) Train 40.
CAP5415: Computer Vision Lecture 4: Image Pyramids, Image Statistics, Denoising Fall 2006.
Graph-based Segmentation. Main Ideas Convert image into a graph Vertices for the pixels Vertices for the pixels Edges between the pixels Edges between.
Introduction to Visible Watermarking IPR Course: TA Lecture 2002/12/18 NTU CSIE R105.
Plug-in and tutorial development for GIMP- Cathy Irwin, 2004 The Development of Image Completion and Tutorial Plug-ins for the GIMP By: Cathy Irwin Supervisors:
INFORMATIK Mesh Smoothing by Adaptive and Anisotropic Gaussian Filter Applied to Mesh Normals Max-Planck-Institut für Informatik Saarbrücken, Germany Yutaka.
Detection of nerves in Ultrasound Images using edge detection techniques NIRANJAN TALLAPALLY.
Image Quilting for Texture Synthesis and Transfer Alexei A. Efros (UC Berkeley) William T. Freeman (MERL) Siggraph01 ’
Synthesizing Natural Textures Michael Ashikhmin University of Utah.
1 Markov random field: A brief introduction (2) Tzu-Cheng Jen Institute of Electronics, NCTU
Presenter : Kuang-Jui Hsu Date : 2011/3/24(Thur.).
Principle Component Analysis (PCA)
2D Texture Synthesis Instructor: Yizhou Yu. Texture synthesis Goal: increase texture resolution yet keep local texture variation.
Image Decomposition, Inpainting, and Impulse Noise Removal by Sparse & Redundant Representations Michael Elad The Computer Science Department The Technion.
Filtering Objective –improve SNR and CNR Challenges – blurs object boundaries and smears out important structures.
October 1, 2013Computer Vision Lecture 9: From Edges to Contours 1 Canny Edge Detector However, usually there will still be noise in the array E[i, j],
Active Appearance Models Dhruv Batra ECE CMU. Active Appearance Models 1.T.F.Cootes, G.J. Edwards and C.J.Taylor. "Active Appearance Models", in Proc.
Efficient Belief Propagation for Image Restoration Qi Zhao Mar.22,2006.
Image Inpainting M. Bertalmio, A.L. Sapiro, V. Caselles, C. Ballester M. Bertalmio, A.L. Bertozzi & G. Sapiro presented by Roman Stanchak Navier Stokes,
Student: Chih-Wei Fang ( 方志偉 ) Adviser: Jenn-Jier James Lien ( 連震杰 ) Robotics Laboratory, Department of Computer Science and Information Engineering, National.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Image Inpainting Marcelo Bertalmío, Minnesota
Performance Measurement of Image Processing Algorithms By Dr. Rajeev Srivastava ITBHU, Varanasi.
Representing Moving Images with Layers J. Y. Wang and E. H. Adelson MIT Media Lab.
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.
Detection of nerves in Ultrasound Images using edge detection techniques NIRANJAN TALLAPALLY.
SIGGRAPH 2007 Hui Fang and John C. Hart.  We propose an image editing system ◦ Preserve its detail and orientation by resynthesizing texture from the.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
Jianchao Yang, John Wright, Thomas Huang, Yi Ma CVPR 2008 Image Super-Resolution as Sparse Representation of Raw Image Patches.
Plug-in and tutorial development for GIMP- Cathy Irwin, 2004 The Development of Image Completion and Tutorial Plug-ins for GIMP By: Cathy Irwin Supervisors:
Non-linear filtering Example: Median filter Replaces pixel value by median value over neighborhood Generates no new gray levels.
October 3, 2013Computer Vision Lecture 10: Contour Fitting 1 Edge Relaxation Typically, this technique works on crack edges: pixelpixelpixel pixelpixelpixelebg.
Graph-based Segmentation
Bitmap Image Vectorization using Potrace Algorithm
Announcements Project 4 out today help session at the end of class.
Game Theoretic Image Segmentation
Computer Vision Lecture 12: Image Segmentation II
Outline Texture modeling - continued Filtering-based approaches.
Computer Vision Lecture 9: Edge Detection II
CSSE463: Image Recognition Day 23
Today.
Outline H. Murase, and S. K. Nayar, “Visual learning and recognition of 3-D objects from appearance,” International Journal of Computer Vision, vol. 14,
Surface Reconstruction
Announcements Guest lecture next Tuesday
CSSE463: Image Recognition Day 23
CSSE463: Image Recognition Day 23
Presentation transcript:

Simultaneous Structure and Texture Image Inpainting by: Bertalmio, Sapiro, Vese, Osher Presented by: Shane Brennan June 7, 2007 EE 264 – Spring 2007

What Is Inpainting?

Inpainting can also be used for other purposes including: Humor Entertainment Improving aesthetic quality of images And for less playful purposes…

How To Inpaint (yes you can do it too!) Identify the regions you want to fill/remove Continue any lines arriving at those regions Fill in the regions with texture/color from the surrounding areas Enjoy!

Image Inpainting by: Marcelo Bertalmio and Guillermo Sapiro Proceedings of SIGGRAPH 2000

The (very) Basic Idea Form an iterative algorithm Each update gets you closer to the desired result

The Update Image Want to propagate “information” (aka lines) into the region being inpainted Need information, and direction it is heading Project information on that direction Rate of Change of Information Direction of Information

What Is Information? Since want result to be smooth, use laplacian of the image to represent information. L = I * 2 The rate of change of the information entering a pixel is the derivative of the laplacian = [L i,j+1 - L i,j-1, L i+1,j – L i-1,j ]

Propagation Direction Tangent to the isophate line (which is the information) arriving at the boundary Tangent easily computed as: N = [-I Y, I x ] note: I use the (x,y) coordinate notation

Anisotropic Diffusion Areas where N = [0, 0] will never get updated! These are smooth regions “Bleed” smooth regions into the region being inpainted Also ensures lines stay smooth and curved BUT! Very problematic! My form of diffusion: The authors form: ???

Bad Result Due to My Diffusion

How About Texture?

Texture Synthesis by Non- Parametric Sampling by: Alexei Efros and Thomas Leung IEEE International Conference on Computer Vision, Corfu, Greece, September 1999

How It Works Take a pixel to be synthesized. Find which pixels near it have already been synthesized (or pre-existed). Define this to be the mask For every pixel in the image (the candidates), compare the WxW neighborhood to the neighborhood around the pixel to be synthesized using a distance metric, but only on pixels defined by the mask Keep either the K most similar neighborhoods, or the neighborhoods whose distance is less than T (W, K, and T are user-defined values) Of the remaining regions, select one at random Assign the intensity of the center pixel of the selected region to the pixel being synthesized

A Visualization…

How About Structure?

The Problem Image inpainting works well on regions with structure, but not on regions with texture Texture synthesis works well on regions with texture, but not on regions with structure Early papers: for each pixel decide if structure or texture, and perform the appropriate filling method But there is a better way…

Simultaneous Structure and Texture Image Inpainting by: Bertalmio, Sapiro, Vese, Osher IEEE Transactions On Image Processing, Vol. 12, No. 8, August 2003

How It Works Decompose image into two parts: structure image and texture image Perform inpainting on the structure image Perform texture synthesis on the texture image Recombine the two images to get final result But how to decompose? no, not like that

Modeling Textures With Total Variation Minimization and Oscillating Patterns in Image Processing by: Stanley Osher and Luminita Vese Journal of Scientific Computing, Vol. 19, Nos. 1–3, December 2003

The Initial Version Considered an image to be some underlying “real image” and then noise added. Want to remove the noise (Rudin, Ohser, and Fatemi. 1992) Find structure image, u, that minimizes: Smoothness Term Data Fidelity

Incorporating the Texture No texture in there! But lets consider image to be f = u + v, where u is structure and v is texture. Note v = f – u Solutions to this are known! (refer to report for some references on the solution)

Cutting to the Chase Model texture as x and y components, call them g 1 and g 2 Some magic... (refer to the paper for more) Smoothness on uReconstruction Error Smoothness on v (remove noise)

An Iterative Solution Break the optimization down into an iterative solution. Although more iterations aren’t always better, in practice need to play with # of iterations Also need to play with tuning parameters. Though there are default values which work well in a broad array of images

Original Image (f) Structure Image (u) Texture Image (v)

Original Image (f)Structure Image (u) Texture Image (v)

Back to Inpainting!

The Algorithm Decompose I in into sub-images u and v Perform inpainting on u to obtain U Perform texture synthesis on v to obtain V I out = U + V And now for some results…

Original Image Structure Image Texture Image Completed Image Inpainted Structure Image Synthesized Texture Image

Original Image Structure Image Texture Image Completed Image Inpainted Structure Image Synthesized Texture Image

Original Image Structure Image Texture Image Completed Image Inpainted Structure Image Synthesized Texture Image

References M. Bertalmio, G. Sapiro, V. Caselles, and C. Ballester. Image inpainting A. A. Efros and T. K. Leung. Texture synthesis by non-parametric sampling. In ICCV (2), pages1033–1038, M. Bertalmio, L. Vese, G. Sapiro, and S. Osher. Simultaneous structure and texture image inpainting, L. Vese and S. Osher. Modeling textures with total variation minimization and oscillating patterns in image processing, 2002.