SlideShare a Scribd company logo
1 of 33
Download to read offline
Real-time Edge-aware
Image Processing with the
Bilateral Grid
Jiawen Chen, Sylvain Paris, Frédo Durand
Computer Science and Artificial Intelligence Laboratory
Massachusetts Institute of Technology
Interactive Local Tone Mapping
• Tone map image using Durand and Dorsey [2002]
• Edge-aware brush locally adjusts parameters
Input HDR
Tone mapped output
Motivation – Tone Mapping
• Reduce contrast
• Spatially-varying remapping
• Edge-aware map eliminates halos
[Tumblin 99] [Durand 02]
Smooth operator Tone mapping with the
bilateral filter [Durand 02]
HaloHaloNo HalosNo Halos
Input HDR
Naïve tone mappingEdge-aware operator
Edge-aware Image Processing
• Output that is smooth, except at strong edges of input
• Important in computational
photography
• Challenge: Performance
• Brute force: minutes per MPixel
• Fastest techniques: ~1 second / MPixel
• Our contribution: the Bilateral Grid
• New data structure
• Many edge-aware operations
• Fast
Previous Work
•Optimization
[Levin 04, Lischinski 06, Szeliski 06]
• Inhomogeneous energy
•Anisotropic diffusion
[Perona 90]
• Iterative PDEs
•Bilateral filter [Aurich 95, Smith 97, Tomasi 98]
• Handles large kernels common in
computational photography
• Fast, but not enough for real time
[Pham 05, Weiss 06, Paris 06, Fattal 07]
• We build upon Paris and Durand [2006]
Input
Output
space
• weighted average of neighbors
• depends only on spatial distance
• no edge term
space
Gaussian Blur
space
p
q
p
intensityintensity
space
space
Bilateral Filter [Aurich 95, Smith 97, Tomasi 98]
space intensity
• weighted average of neighbors
• depends on spatial and intensity difference
intensityintensity
q
p
Input
Output
p
Our Contribution: the Bilateral Grid
• 3D representation for 2D image data
• Edge-aware computation is simple in the grid
• Smooth functions on grid are piecewise-smooth
in image space
• Fast (milliseconds vs. seconds)
• Coarse resolution
• Parallel algorithms (GPU)
Bilateral Grid
Bilateral Grid – Definition
•Bilateral grid = 3D array
• x and y correspond to pixel position
• z corresponds to pixel intensity
• Euclidean distance accounts
for edges
• space distance (x,y) and
intensity distance (z)
•Grid can be coarsely sampled
• E.g., 70 x 70 x 10 for an
8 megapixel image
Standard 2D Image
x
y
• Nearest neighbor
arbitrarily bright or dark
• Bicubic
intermediate value not in original
2D vs. Bilateral Grid Downsampling
x
y
Downsampling in 2D
• Bilateral grid enables aggressive downsampling
• Extra dimension preserves edges
2D vs. Bilateral Grid Downsampling
x
y
Downsampling in 2D Bilateral Grid
• Bilateral grid enables aggressive downsampling
• Extra dimension preserves edges
Discussion
• Grid operations could be
defined in image space
• Advantages of the Bilateral Grid
• Edge-awareness built-in
• Speed: aggressive downsampling
A Simple Illustration
• Classical paint brush
• Ignores edges
• Our edge-aware brush
• Respects edges
Stroke with classical brush
Stroke with bilateral brush
Input image
Bilateral Grid Painting
Image scanline
space
intensity
Bilateral
Grid
space
intensity
Bilateral Grid Painting
Image scanline
Output brush stroke
Query grid with
input image:
slicing
Bilateral
Grid
Bilateral Grid Painting
Input image Bilateral Grid
• When mouse is held down, paint only at intensity
level of initial mouse click
Bilateral Grid Painting
• Edge-aware brush used to change hue
Scribble-based Selection
• User scribbles to specify selection [Lischinski 06]
• Piecewise-smooth interpolation to get full selection
• Respects intensity discontinuities
Input with scribbles Our interpolated selectionInput image
Scribble-based Selection
Hard constraints
in grid
Image scanline
Bilateral Grid
space
intensity
Scribble-based Selection
Image scanline
space
intensity
space
intensity
Smooth
interpolation
Interpolated selection
Slice: query
grid with input
image
Hard constraints
in grid
Bilateral Filter [Tomasi 98]
• Smooth image except across strong edges
• Ubiquitous in computational photography
[Oh 01, Durand 02, Eisemann 04, Petschnigg 04, Bennett 05, Bae 06, Fattal 07, Kopf 07, …]
Brute force computation: 10 minutes
With the bilateral grid: 9 ms
Input
Filtered
Output
Bilateral Filter on the Bilateral Grid
Image scanline
space
intensity
Bilateral
Grid
space
intensity
Bilateral Filter on the Bilateral Grid
Image scanline
Filtered scanline
Slice: query grid
with input image
Bilateral
Grid
Gaussian blur
grid values
space
intensity
Performance: Bilateral Filter
Image size: 2 MPixels
• CPU
• Brute force: 10 minutes
• State of the art ’06: 1 second [Weiss 06, Paris 06]
• Our Bilateral Grid with GPU
• 2004 card (NV40): 28 ms (36 Hz)
• 2006 card (G80): 9 ms (111 Hz)
• For bilateral filter, algorithm similar to Paris & Durand [06]
• We parallelize on GPU
• Another 2 orders of magnitude speedup
Many Operations and Applications
• Local histogram equalization
• Interactive tone mapping
• Video abstraction
[Winnemoller 06, DeCarlo 02]
• Photographic style transfer [Bae 06]
Model Input Output
Multiscale HD Video Abstraction
Transfer of Photographic Style
Model
• Temporally coherent transfer
• 2 orders of magnitude speedup: real-time in HD
Live demo
Discussion
• Respects luminance edges
• Color bilateral grid would be 5D
• Does not fit on current hardware
• Luminance edges are often sufficient
• Crosses thin lines
• Diffusion vs. bilateral filter
• Useful in many cases
• Grid resolution depends on the operator
• E.g., for edge-aware brush:
space sampling rate ~ brush radius
intensity sampling rate ~ edge-awareness
Bilateral brush crosses thin lines
Edge-aware brush
Summary: the Bilateral Grid
• 3D representation for 2D data
• Intelligent downsampling
• Many edge-aware operations
• Painting, scribble interpolation,
bilateral filter, local histogram
equalization
• Real-time for HD video
Acknowledgements
• Jonathan Ragan-Kelley
• Aleksey Golovinskiy
• MIT Graphics Group
• Anonymous reviewers
• IMAX and Warner Brothers
• NVIDIA
• NSF, Sloan, MSR, Shell
Summary: the Bilateral Grid
• 3D representation for 2D data
• Intelligent downsampling
• Many edge-aware operations
• Painting, scribble interpolation,
bilateral filter, local histogram
equalization
• Real-time for HD video

More Related Content

What's hot

Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1shabanam tamboli
 
Practical Spherical Harmonics Based PRT Methods
Practical Spherical Harmonics Based PRT MethodsPractical Spherical Harmonics Based PRT Methods
Practical Spherical Harmonics Based PRT MethodsNaughty Dog
 
Star Ocean 4 - Flexible Shader Managment and Post-processing
Star Ocean 4 - Flexible Shader Managment and Post-processingStar Ocean 4 - Flexible Shader Managment and Post-processing
Star Ocean 4 - Flexible Shader Managment and Post-processingumsl snfrzb
 
Edge detection of video using matlab code
Edge detection of video using matlab codeEdge detection of video using matlab code
Edge detection of video using matlab codeBhushan Deore
 
Demosaicing(デモザイキング)
Demosaicing(デモザイキング)Demosaicing(デモザイキング)
Demosaicing(デモザイキング)Morpho, Inc.
 
Image Restoration and Reconstruction in Digital Image Processing
Image Restoration and Reconstruction in Digital Image ProcessingImage Restoration and Reconstruction in Digital Image Processing
Image Restoration and Reconstruction in Digital Image ProcessingSadia Zafar
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compressionasodariyabhavesh
 
Image enhancement
Image enhancementImage enhancement
Image enhancementKuppusamy P
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing PresentationRevanth Chimmani
 
Lect 02 second portion
Lect 02  second portionLect 02  second portion
Lect 02 second portionMoe Moe Myint
 
6 spatial filtering p2
6 spatial filtering p26 spatial filtering p2
6 spatial filtering p2Gichelle Amon
 
filters for noise in image processing
filters for noise in image processingfilters for noise in image processing
filters for noise in image processingSardar Alam
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Kalyan Acharjya
 
Progressive Lightmapper: An Introduction to Lightmapping in Unity
Progressive Lightmapper: An Introduction to Lightmapping in UnityProgressive Lightmapper: An Introduction to Lightmapping in Unity
Progressive Lightmapper: An Introduction to Lightmapping in UnityUnity Technologies
 
Edge Detection algorithm and code
Edge Detection algorithm and codeEdge Detection algorithm and code
Edge Detection algorithm and codeVaddi Manikanta
 

What's hot (20)

Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1
 
Practical Spherical Harmonics Based PRT Methods
Practical Spherical Harmonics Based PRT MethodsPractical Spherical Harmonics Based PRT Methods
Practical Spherical Harmonics Based PRT Methods
 
Star Ocean 4 - Flexible Shader Managment and Post-processing
Star Ocean 4 - Flexible Shader Managment and Post-processingStar Ocean 4 - Flexible Shader Managment and Post-processing
Star Ocean 4 - Flexible Shader Managment and Post-processing
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
Edge detection of video using matlab code
Edge detection of video using matlab codeEdge detection of video using matlab code
Edge detection of video using matlab code
 
Demosaicing(デモザイキング)
Demosaicing(デモザイキング)Demosaicing(デモザイキング)
Demosaicing(デモザイキング)
 
Image Restoration and Reconstruction in Digital Image Processing
Image Restoration and Reconstruction in Digital Image ProcessingImage Restoration and Reconstruction in Digital Image Processing
Image Restoration and Reconstruction in Digital Image Processing
 
SPATIAL FILTER
SPATIAL FILTERSPATIAL FILTER
SPATIAL FILTER
 
Module 31
Module 31Module 31
Module 31
 
Image denoising
Image denoisingImage denoising
Image denoising
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
 
Image compression
Image compressionImage compression
Image compression
 
Lect 02 second portion
Lect 02  second portionLect 02  second portion
Lect 02 second portion
 
6 spatial filtering p2
6 spatial filtering p26 spatial filtering p2
6 spatial filtering p2
 
filters for noise in image processing
filters for noise in image processingfilters for noise in image processing
filters for noise in image processing
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
 
Progressive Lightmapper: An Introduction to Lightmapping in Unity
Progressive Lightmapper: An Introduction to Lightmapping in UnityProgressive Lightmapper: An Introduction to Lightmapping in Unity
Progressive Lightmapper: An Introduction to Lightmapping in Unity
 
Edge Detection algorithm and code
Edge Detection algorithm and codeEdge Detection algorithm and code
Edge Detection algorithm and code
 

Similar to Real-time Edge-aware Image Processing with the Bilateral Grid

Paris Master Class 2011 - 05 Post-Processing Pipeline
Paris Master Class 2011 - 05 Post-Processing PipelineParis Master Class 2011 - 05 Post-Processing Pipeline
Paris Master Class 2011 - 05 Post-Processing PipelineWolfgang Engel
 
Fuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge DetectionFuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge DetectionDawn Raider Gupta
 
SIGGRAPH 2010 - Style and Gameplay in the Mirror's Edge
SIGGRAPH 2010 - Style and Gameplay in the Mirror's EdgeSIGGRAPH 2010 - Style and Gameplay in the Mirror's Edge
SIGGRAPH 2010 - Style and Gameplay in the Mirror's EdgeElectronic Arts / DICE
 
Analysis of KinectFusion
Analysis of KinectFusionAnalysis of KinectFusion
Analysis of KinectFusionDong-Won Shin
 
Color and 3D Semantic Reconstruction of Indoor Scenes from RGB-D stream
Color and 3D Semantic Reconstruction of Indoor Scenes from RGB-D streamColor and 3D Semantic Reconstruction of Indoor Scenes from RGB-D stream
Color and 3D Semantic Reconstruction of Indoor Scenes from RGB-D streamNAVER Engineering
 
Image enhancement
Image enhancementImage enhancement
Image enhancementAyaelshiwi
 
Cahall Final Intern Presentation
Cahall Final Intern PresentationCahall Final Intern Presentation
Cahall Final Intern PresentationDaniel Cahall
 
NDT - Digital radiography for the future in Industry
NDT - Digital radiography for the future in IndustryNDT - Digital radiography for the future in Industry
NDT - Digital radiography for the future in IndustryRavindraVasudeva1
 
Digital Image Processing and gis software systems
Digital Image Processing and gis software systemsDigital Image Processing and gis software systems
Digital Image Processing and gis software systemsNirmal Kumar
 
Fingerprint Images Enhancement ppt
Fingerprint Images Enhancement pptFingerprint Images Enhancement ppt
Fingerprint Images Enhancement pptMukta Gupta
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersKuppusamy P
 
Understanding neural radiance fields
Understanding neural radiance fieldsUnderstanding neural radiance fields
Understanding neural radiance fieldsVarun Bhaseen
 
12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.pptAJAYMALIK97
 
3D Acquisition and Modeling in Cultural Heritage
3D Acquisition and Modeling in Cultural Heritage3D Acquisition and Modeling in Cultural Heritage
3D Acquisition and Modeling in Cultural HeritageGabriele Guidi
 
From paper to screen: Putting maps on the web
From paper to screen:  Putting maps on the webFrom paper to screen:  Putting maps on the web
From paper to screen: Putting maps on the webPetr Pridal
 

Similar to Real-time Edge-aware Image Processing with the Bilateral Grid (20)

Paris Master Class 2011 - 05 Post-Processing Pipeline
Paris Master Class 2011 - 05 Post-Processing PipelineParis Master Class 2011 - 05 Post-Processing Pipeline
Paris Master Class 2011 - 05 Post-Processing Pipeline
 
Fuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge DetectionFuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge Detection
 
SIGGRAPH 2010 - Style and Gameplay in the Mirror's Edge
SIGGRAPH 2010 - Style and Gameplay in the Mirror's EdgeSIGGRAPH 2010 - Style and Gameplay in the Mirror's Edge
SIGGRAPH 2010 - Style and Gameplay in the Mirror's Edge
 
Analysis of KinectFusion
Analysis of KinectFusionAnalysis of KinectFusion
Analysis of KinectFusion
 
Basic image processing techniques
Basic image processing techniquesBasic image processing techniques
Basic image processing techniques
 
Color and 3D Semantic Reconstruction of Indoor Scenes from RGB-D stream
Color and 3D Semantic Reconstruction of Indoor Scenes from RGB-D streamColor and 3D Semantic Reconstruction of Indoor Scenes from RGB-D stream
Color and 3D Semantic Reconstruction of Indoor Scenes from RGB-D stream
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Mmclass4
Mmclass4Mmclass4
Mmclass4
 
Cahall Final Intern Presentation
Cahall Final Intern PresentationCahall Final Intern Presentation
Cahall Final Intern Presentation
 
NDT - Digital radiography for the future in Industry
NDT - Digital radiography for the future in IndustryNDT - Digital radiography for the future in Industry
NDT - Digital radiography for the future in Industry
 
Digital Image Processing and gis software systems
Digital Image Processing and gis software systemsDigital Image Processing and gis software systems
Digital Image Processing and gis software systems
 
Fingerprint Images Enhancement ppt
Fingerprint Images Enhancement pptFingerprint Images Enhancement ppt
Fingerprint Images Enhancement ppt
 
Programmable Piplelines
Programmable PiplelinesProgrammable Piplelines
Programmable Piplelines
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filters
 
Understanding neural radiance fields
Understanding neural radiance fieldsUnderstanding neural radiance fields
Understanding neural radiance fields
 
12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt
 
3D Acquisition and Modeling in Cultural Heritage
3D Acquisition and Modeling in Cultural Heritage3D Acquisition and Modeling in Cultural Heritage
3D Acquisition and Modeling in Cultural Heritage
 
Deferred shading
Deferred shadingDeferred shading
Deferred shading
 
WT in IP.ppt
WT in IP.pptWT in IP.ppt
WT in IP.ppt
 
From paper to screen: Putting maps on the web
From paper to screen:  Putting maps on the webFrom paper to screen:  Putting maps on the web
From paper to screen: Putting maps on the web
 

More from MLReview

Bayesian Non-parametric Models for Data Science using PyMC
 Bayesian Non-parametric Models for Data Science using PyMC Bayesian Non-parametric Models for Data Science using PyMC
Bayesian Non-parametric Models for Data Science using PyMCMLReview
 
Machine Learning and Counterfactual Reasoning for "Personalized" Decision- ...
  Machine Learning and Counterfactual Reasoning for "Personalized" Decision- ...  Machine Learning and Counterfactual Reasoning for "Personalized" Decision- ...
Machine Learning and Counterfactual Reasoning for "Personalized" Decision- ...MLReview
 
Tutorial on Deep Generative Models
 Tutorial on Deep Generative Models Tutorial on Deep Generative Models
Tutorial on Deep Generative ModelsMLReview
 
PixelGAN Autoencoders
  PixelGAN Autoencoders  PixelGAN Autoencoders
PixelGAN AutoencodersMLReview
 
Representing and comparing probabilities: Part 2
Representing and comparing probabilities: Part 2Representing and comparing probabilities: Part 2
Representing and comparing probabilities: Part 2MLReview
 
Representing and comparing probabilities
Representing and comparing probabilitiesRepresenting and comparing probabilities
Representing and comparing probabilitiesMLReview
 
OPTIMIZATION AS A MODEL FOR FEW-SHOT LEARNING
 OPTIMIZATION AS A MODEL FOR FEW-SHOT LEARNING OPTIMIZATION AS A MODEL FOR FEW-SHOT LEARNING
OPTIMIZATION AS A MODEL FOR FEW-SHOT LEARNINGMLReview
 
Theoretical Neuroscience and Deep Learning Theory
Theoretical Neuroscience and Deep Learning TheoryTheoretical Neuroscience and Deep Learning Theory
Theoretical Neuroscience and Deep Learning TheoryMLReview
 
2017 Tutorial - Deep Learning for Dialogue Systems
2017 Tutorial - Deep Learning for Dialogue Systems2017 Tutorial - Deep Learning for Dialogue Systems
2017 Tutorial - Deep Learning for Dialogue SystemsMLReview
 
Deep Learning for Semantic Composition
Deep Learning for Semantic CompositionDeep Learning for Semantic Composition
Deep Learning for Semantic CompositionMLReview
 
Near human performance in question answering?
Near human performance in question answering?Near human performance in question answering?
Near human performance in question answering?MLReview
 
Tutorial on Theory and Application of Generative Adversarial Networks
Tutorial on Theory and Application of Generative Adversarial NetworksTutorial on Theory and Application of Generative Adversarial Networks
Tutorial on Theory and Application of Generative Adversarial NetworksMLReview
 
Yoav Goldberg: Word Embeddings What, How and Whither
Yoav Goldberg: Word Embeddings What, How and WhitherYoav Goldberg: Word Embeddings What, How and Whither
Yoav Goldberg: Word Embeddings What, How and WhitherMLReview
 

More from MLReview (13)

Bayesian Non-parametric Models for Data Science using PyMC
 Bayesian Non-parametric Models for Data Science using PyMC Bayesian Non-parametric Models for Data Science using PyMC
Bayesian Non-parametric Models for Data Science using PyMC
 
Machine Learning and Counterfactual Reasoning for "Personalized" Decision- ...
  Machine Learning and Counterfactual Reasoning for "Personalized" Decision- ...  Machine Learning and Counterfactual Reasoning for "Personalized" Decision- ...
Machine Learning and Counterfactual Reasoning for "Personalized" Decision- ...
 
Tutorial on Deep Generative Models
 Tutorial on Deep Generative Models Tutorial on Deep Generative Models
Tutorial on Deep Generative Models
 
PixelGAN Autoencoders
  PixelGAN Autoencoders  PixelGAN Autoencoders
PixelGAN Autoencoders
 
Representing and comparing probabilities: Part 2
Representing and comparing probabilities: Part 2Representing and comparing probabilities: Part 2
Representing and comparing probabilities: Part 2
 
Representing and comparing probabilities
Representing and comparing probabilitiesRepresenting and comparing probabilities
Representing and comparing probabilities
 
OPTIMIZATION AS A MODEL FOR FEW-SHOT LEARNING
 OPTIMIZATION AS A MODEL FOR FEW-SHOT LEARNING OPTIMIZATION AS A MODEL FOR FEW-SHOT LEARNING
OPTIMIZATION AS A MODEL FOR FEW-SHOT LEARNING
 
Theoretical Neuroscience and Deep Learning Theory
Theoretical Neuroscience and Deep Learning TheoryTheoretical Neuroscience and Deep Learning Theory
Theoretical Neuroscience and Deep Learning Theory
 
2017 Tutorial - Deep Learning for Dialogue Systems
2017 Tutorial - Deep Learning for Dialogue Systems2017 Tutorial - Deep Learning for Dialogue Systems
2017 Tutorial - Deep Learning for Dialogue Systems
 
Deep Learning for Semantic Composition
Deep Learning for Semantic CompositionDeep Learning for Semantic Composition
Deep Learning for Semantic Composition
 
Near human performance in question answering?
Near human performance in question answering?Near human performance in question answering?
Near human performance in question answering?
 
Tutorial on Theory and Application of Generative Adversarial Networks
Tutorial on Theory and Application of Generative Adversarial NetworksTutorial on Theory and Application of Generative Adversarial Networks
Tutorial on Theory and Application of Generative Adversarial Networks
 
Yoav Goldberg: Word Embeddings What, How and Whither
Yoav Goldberg: Word Embeddings What, How and WhitherYoav Goldberg: Word Embeddings What, How and Whither
Yoav Goldberg: Word Embeddings What, How and Whither
 

Recently uploaded

BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptxBREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptxPABOLU TEJASREE
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real timeSatoshi NAKAHIRA
 
Evidences of Evolution General Biology 2
Evidences of Evolution General Biology 2Evidences of Evolution General Biology 2
Evidences of Evolution General Biology 2John Carlo Rollon
 
Transposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.pptTransposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.pptArshadWarsi13
 
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxRESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxFarihaAbdulRasheed
 
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.PraveenaKalaiselvan1
 
Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |aasikanpl
 
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCRCall Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCRlizamodels9
 
Artificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PArtificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PPRINCE C P
 
OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024innovationoecd
 
The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxEran Akiva Sinbar
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trssuser06f238
 
Scheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxScheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxyaramohamed343013
 
Environmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial BiosensorEnvironmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial Biosensorsonawaneprad
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxMurugaveni B
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPirithiRaju
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024AyushiRastogi48
 
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.aasikanpl
 
zoogeography of pakistan.pptx fauna of Pakistan
zoogeography of pakistan.pptx fauna of Pakistanzoogeography of pakistan.pptx fauna of Pakistan
zoogeography of pakistan.pptx fauna of Pakistanzohaibmir069
 

Recently uploaded (20)

BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptxBREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real time
 
Evidences of Evolution General Biology 2
Evidences of Evolution General Biology 2Evidences of Evolution General Biology 2
Evidences of Evolution General Biology 2
 
Transposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.pptTransposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.ppt
 
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxRESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
 
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
 
Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Lajpat Nagar (Delhi) |
 
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCRCall Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
 
Artificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PArtificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C P
 
OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024
 
The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptx
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 tr
 
Scheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxScheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docx
 
Environmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial BiosensorEnvironmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial Biosensor
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
 
Engler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomyEngler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomy
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdf
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024
 
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
 
zoogeography of pakistan.pptx fauna of Pakistan
zoogeography of pakistan.pptx fauna of Pakistanzoogeography of pakistan.pptx fauna of Pakistan
zoogeography of pakistan.pptx fauna of Pakistan
 

Real-time Edge-aware Image Processing with the Bilateral Grid

  • 1. Real-time Edge-aware Image Processing with the Bilateral Grid Jiawen Chen, Sylvain Paris, Frédo Durand Computer Science and Artificial Intelligence Laboratory Massachusetts Institute of Technology
  • 2. Interactive Local Tone Mapping • Tone map image using Durand and Dorsey [2002] • Edge-aware brush locally adjusts parameters Input HDR Tone mapped output
  • 3. Motivation – Tone Mapping • Reduce contrast • Spatially-varying remapping • Edge-aware map eliminates halos [Tumblin 99] [Durand 02] Smooth operator Tone mapping with the bilateral filter [Durand 02] HaloHaloNo HalosNo Halos Input HDR Naïve tone mappingEdge-aware operator
  • 4. Edge-aware Image Processing • Output that is smooth, except at strong edges of input • Important in computational photography • Challenge: Performance • Brute force: minutes per MPixel • Fastest techniques: ~1 second / MPixel • Our contribution: the Bilateral Grid • New data structure • Many edge-aware operations • Fast
  • 5. Previous Work •Optimization [Levin 04, Lischinski 06, Szeliski 06] • Inhomogeneous energy •Anisotropic diffusion [Perona 90] • Iterative PDEs •Bilateral filter [Aurich 95, Smith 97, Tomasi 98] • Handles large kernels common in computational photography • Fast, but not enough for real time [Pham 05, Weiss 06, Paris 06, Fattal 07] • We build upon Paris and Durand [2006]
  • 6. Input Output space • weighted average of neighbors • depends only on spatial distance • no edge term space Gaussian Blur space p q p intensityintensity
  • 7. space space Bilateral Filter [Aurich 95, Smith 97, Tomasi 98] space intensity • weighted average of neighbors • depends on spatial and intensity difference intensityintensity q p Input Output p
  • 8. Our Contribution: the Bilateral Grid • 3D representation for 2D image data • Edge-aware computation is simple in the grid • Smooth functions on grid are piecewise-smooth in image space • Fast (milliseconds vs. seconds) • Coarse resolution • Parallel algorithms (GPU)
  • 9. Bilateral Grid Bilateral Grid – Definition •Bilateral grid = 3D array • x and y correspond to pixel position • z corresponds to pixel intensity • Euclidean distance accounts for edges • space distance (x,y) and intensity distance (z) •Grid can be coarsely sampled • E.g., 70 x 70 x 10 for an 8 megapixel image Standard 2D Image x y
  • 10. • Nearest neighbor arbitrarily bright or dark • Bicubic intermediate value not in original 2D vs. Bilateral Grid Downsampling x y Downsampling in 2D • Bilateral grid enables aggressive downsampling • Extra dimension preserves edges
  • 11. 2D vs. Bilateral Grid Downsampling x y Downsampling in 2D Bilateral Grid • Bilateral grid enables aggressive downsampling • Extra dimension preserves edges
  • 12. Discussion • Grid operations could be defined in image space • Advantages of the Bilateral Grid • Edge-awareness built-in • Speed: aggressive downsampling
  • 13. A Simple Illustration • Classical paint brush • Ignores edges • Our edge-aware brush • Respects edges Stroke with classical brush Stroke with bilateral brush Input image
  • 14. Bilateral Grid Painting Image scanline space intensity Bilateral Grid
  • 15. space intensity Bilateral Grid Painting Image scanline Output brush stroke Query grid with input image: slicing Bilateral Grid
  • 16. Bilateral Grid Painting Input image Bilateral Grid • When mouse is held down, paint only at intensity level of initial mouse click
  • 17. Bilateral Grid Painting • Edge-aware brush used to change hue
  • 18. Scribble-based Selection • User scribbles to specify selection [Lischinski 06] • Piecewise-smooth interpolation to get full selection • Respects intensity discontinuities Input with scribbles Our interpolated selectionInput image
  • 19. Scribble-based Selection Hard constraints in grid Image scanline Bilateral Grid space intensity
  • 20. Scribble-based Selection Image scanline space intensity space intensity Smooth interpolation Interpolated selection Slice: query grid with input image Hard constraints in grid
  • 21. Bilateral Filter [Tomasi 98] • Smooth image except across strong edges • Ubiquitous in computational photography [Oh 01, Durand 02, Eisemann 04, Petschnigg 04, Bennett 05, Bae 06, Fattal 07, Kopf 07, …] Brute force computation: 10 minutes With the bilateral grid: 9 ms Input Filtered Output
  • 22. Bilateral Filter on the Bilateral Grid Image scanline space intensity Bilateral Grid
  • 23. space intensity Bilateral Filter on the Bilateral Grid Image scanline Filtered scanline Slice: query grid with input image Bilateral Grid Gaussian blur grid values space intensity
  • 24. Performance: Bilateral Filter Image size: 2 MPixels • CPU • Brute force: 10 minutes • State of the art ’06: 1 second [Weiss 06, Paris 06] • Our Bilateral Grid with GPU • 2004 card (NV40): 28 ms (36 Hz) • 2006 card (G80): 9 ms (111 Hz) • For bilateral filter, algorithm similar to Paris & Durand [06] • We parallelize on GPU • Another 2 orders of magnitude speedup
  • 25.
  • 26. Many Operations and Applications • Local histogram equalization • Interactive tone mapping • Video abstraction [Winnemoller 06, DeCarlo 02] • Photographic style transfer [Bae 06] Model Input Output
  • 27. Multiscale HD Video Abstraction
  • 28. Transfer of Photographic Style Model • Temporally coherent transfer • 2 orders of magnitude speedup: real-time in HD
  • 30. Discussion • Respects luminance edges • Color bilateral grid would be 5D • Does not fit on current hardware • Luminance edges are often sufficient • Crosses thin lines • Diffusion vs. bilateral filter • Useful in many cases • Grid resolution depends on the operator • E.g., for edge-aware brush: space sampling rate ~ brush radius intensity sampling rate ~ edge-awareness Bilateral brush crosses thin lines Edge-aware brush
  • 31. Summary: the Bilateral Grid • 3D representation for 2D data • Intelligent downsampling • Many edge-aware operations • Painting, scribble interpolation, bilateral filter, local histogram equalization • Real-time for HD video
  • 32. Acknowledgements • Jonathan Ragan-Kelley • Aleksey Golovinskiy • MIT Graphics Group • Anonymous reviewers • IMAX and Warner Brothers • NVIDIA • NSF, Sloan, MSR, Shell
  • 33. Summary: the Bilateral Grid • 3D representation for 2D data • Intelligent downsampling • Many edge-aware operations • Painting, scribble interpolation, bilateral filter, local histogram equalization • Real-time for HD video