SlideShare a Scribd company logo
Bilateral filtering
Image processing project
Aryan Agal: 16D170004
Satya Sahoo: 16D170026
Bilateral filtering ● The Bilateral filter is a robust edge-preserving
filter introduced by Tomasi and Manduchi.
● It combines a classic low-pass filter with an
edgestopping function that attenuates the filter
kernel weights when the intensity difference
between pixels is large.
Bilateral filtering
Gaussian Blur Bilateral filtering
Bilateral vs Gauss smoothening visualised
Bilateral filtering
Bilateral filtering
Digital Photography with
Flash and No-Flash Image
Pairs
Digital
Photography with
Flash and No-Flash
Image Pairs
● Capturing the natural ambient
illumination in such low-light
environments
○ a long exposure time
○ open the aperture to let in more light
○ increase the camera’s gain
● Adding a flash circumvents these
problems
● The use of flash can also have a negative
impact on the lighting characteristics of
the environment.
How it works
Algorithm
Joint bilateral filter
● We modify the basic bilateral filter to compute the edge-stopping function using
the flash image F instead of A .
Denoising
Flash-To-Ambient Detail Transfer
● The joint bilateral filter cannot add detail that may be present in the flash image.
● To transfer this detail we begin by computing a detail layer from the flash image
as the following ratio:
● The ratio captures the local detail variation in F and is commonly called a quotient
image or ratio image in computer vision.
● Reduces haloing
● Light from the flash can introduce
shadows and specularities into the
flash image.
● Within flash shadows, the image
may be as dim as the ambient
image and therefore suffer from
noise.
● May form artificial edges
Detecting Flash
Shadows and
Specularities
Flash Shadows
● To deal with noise and inter-
reflection, we compute the
shadow mask by looking for pixels
in which the difference between
the linearized flash and ambient
images is small:
Detecting Flash
Shadows and
Specularities
- continued
Flash Specularities
● Specular regions should be bright
in F and should therefore saturate
the image sensor. Hence, we look
for luminance values in the flash
image that are greater than 95% of
the range of sensor output values.
Detecting Flash
Shadows and
Specularities
- continued
Final Merge
● We now have 2 masks, these
masks can be contaminated by
noise, with small speckles, holes
and ragged edges.
● To clean up the mask, we use
morphological operations to erode
the speckles, and fill the holes. To
produce a conservative estimate,
we dilate the mask.
● Final mask M is obtained by taking
a union of both the masks.
Detecting Flash
Shadows and
Specularities
- continued
Cartoonification of an
image using bilateral
filtering
Cartoonification of
an image using
bilateral filtering
● One very obvious application of
bilateral filtering is the cartoonification
of images.
● The algorithm we have used in this
project is to first apply a bilateral filter
on an image, then apply an edge
detection method, and superimpose
the two images.
● The edge detection method used in
this project is using the sobel/prewitt
operator or canny edge detector, LoG,
DoG, etc.
RESULTS
VASE - Denoising
VASE - Flash-To-Ambient Detail Transfer
Very slight change, slight increase in detail
Continuous Flash Adjustment
Cartoonification
Original Cartoonified
Edge detection
Cartoonification
Original
Cartoonification
Cartoonified
Cartoonification
Edge detection
Cartoonification
Original
Cartoonification
Cartoonification
Edge detection
Algorithm fails in portrait images!
Original Bilateral
Edge detection Cartoonified
Further work
● Bilateral filter is expensive
● Brute-force computation is slow (several minutes) because of nested for
loops
● Non-linear, depends on image content (no FFT, no precomputation)
● Fast approximations exist
○ Significant loss of accuracy
○ No formal understanding of accuracy versus speed
Further work
● SEPARABLE BILATERAL FILTERING FOR FAST VIDEO PREPROCESSING -
Tuan Q. Pham, Lucas J. van Vliet(2005)
○ Present a separable implementation of the bilateral filter
○ 2-D bilateral kernel approximated as two separable, cheap 1-D parts
● Real-time O (1) bilateral filtering - Q Yang, KH Tan, N Ahuja(2009)
○ Proposed a new bilateral filtering algorithm with computational
complexity invariant to filter kernel size, so called O(1) or constant time
○ By showing that a bilateral filter can be decomposed into a number of
constant time spatial filters, the method yields a new class of constant
time bilateral filters that can have arbitrary spatial and arbitrary range
kernels
Further work
● Recursive bilateral filtering - Q.Yang (2012)
○ Computational complexity is linear in both input size and dimensionality
○ It is more efficient than the state-of-the-art bilateral filtering methods
that have a computational complexity of O(ND2)
Further work
● Flash shadows often appear at depth discontinuities between surfaces in the
scene. Using multiple flash photographs it may be possible to segment
foreground from background. Raskar et al. [2003] have explored this type of
approach to generate non-photorealistic renderings.
● May be possible to extend detail transfer technique to de-blur motion-blur
images. Jia et al. [2004]
● Joint optimization of our algorithms and the camera hardware design also a
possibility
● Computational Photography Using a Pair of Flash/No-flash Images by
Iterative Guided Filtering [2011]
○ Iterative improvement of the guided image filter for F/NF photography
○ Proved to be effective for such applications as high dynamic range
compression, image matting, haze removal, and F/NF denoising etc.
Further work
● Image Quilting for Texture Synthesis and Transfer [2001]
● Two-scale Tone Management for scale Tone Management for Photographic
Look[SIGGRAPH, 2006]
● Single Image Haze Removal Using Dark Channel Prior [2011]
Further work

More Related Content

What's hot

Exponential contrast restoration in fog
Exponential contrast restoration in fogExponential contrast restoration in fog
Exponential contrast restoration in fog
SREEKUTTY SREEKUMAR
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial Domain
Madhu Bala
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
muthu181188
 
Multifocus image fusion based on nsct
Multifocus image fusion based on nsctMultifocus image fusion based on nsct
Multifocus image fusion based on nsct
jpstudcorner
 
Digital image processing techniques
Digital image processing techniquesDigital image processing techniques
Digital image processing techniques
Shab Bi
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
kavitha muneeshwaran
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
Abinaya B
 
Ibica2014(p15)image fusion based on broveywavelet
Ibica2014(p15)image fusion based on broveywaveletIbica2014(p15)image fusion based on broveywavelet
Ibica2014(p15)image fusion based on broveywaveletAboul Ella Hassanien
 
Thesis presentation
Thesis presentationThesis presentation
Thesis presentation
Julián Tachella
 
Comparative study on image fusion methods in spatial domain
Comparative study on image fusion methods in spatial domainComparative study on image fusion methods in spatial domain
Comparative study on image fusion methods in spatial domainIAEME Publication
 
Chap. 10 computational photography
Chap. 10 computational photographyChap. 10 computational photography
Chap. 10 computational photography
duckleek
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
A B Shinde
 
IRJET-Design and Implementation of Haze Removal System
IRJET-Design and Implementation of Haze Removal SystemIRJET-Design and Implementation of Haze Removal System
IRJET-Design and Implementation of Haze Removal System
IRJET Journal
 
Filtering underwater image
Filtering underwater imageFiltering underwater image
Filtering underwater image
rishithabandi1
 
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision GroupDTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
Lihang Li
 
The super resolution technology 2016
The super resolution technology 2016The super resolution technology 2016
The super resolution technology 2016
Testo Viet Nam
 
DIP - Image Restoration
DIP - Image RestorationDIP - Image Restoration
DIP - Image Restoration
Eng. Dr. Dennis N. Mwighusa
 
Efficient Method of Removing the Noise using High Dynamic Range Image
Efficient Method of Removing the Noise using High Dynamic Range ImageEfficient Method of Removing the Noise using High Dynamic Range Image
Efficient Method of Removing the Noise using High Dynamic Range Image
rahulmonikasharma
 

What's hot (20)

Exponential contrast restoration in fog
Exponential contrast restoration in fogExponential contrast restoration in fog
Exponential contrast restoration in fog
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial Domain
 
Ppt ---image processing
Ppt ---image processingPpt ---image processing
Ppt ---image processing
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
 
Multifocus image fusion based on nsct
Multifocus image fusion based on nsctMultifocus image fusion based on nsct
Multifocus image fusion based on nsct
 
Digital image processing techniques
Digital image processing techniquesDigital image processing techniques
Digital image processing techniques
 
Edge Detection
Edge Detection Edge Detection
Edge Detection
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
 
Ibica2014(p15)image fusion based on broveywavelet
Ibica2014(p15)image fusion based on broveywaveletIbica2014(p15)image fusion based on broveywavelet
Ibica2014(p15)image fusion based on broveywavelet
 
Thesis presentation
Thesis presentationThesis presentation
Thesis presentation
 
Comparative study on image fusion methods in spatial domain
Comparative study on image fusion methods in spatial domainComparative study on image fusion methods in spatial domain
Comparative study on image fusion methods in spatial domain
 
Chap. 10 computational photography
Chap. 10 computational photographyChap. 10 computational photography
Chap. 10 computational photography
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
IRJET-Design and Implementation of Haze Removal System
IRJET-Design and Implementation of Haze Removal SystemIRJET-Design and Implementation of Haze Removal System
IRJET-Design and Implementation of Haze Removal System
 
Filtering underwater image
Filtering underwater imageFiltering underwater image
Filtering underwater image
 
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision GroupDTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
 
The super resolution technology 2016
The super resolution technology 2016The super resolution technology 2016
The super resolution technology 2016
 
DIP - Image Restoration
DIP - Image RestorationDIP - Image Restoration
DIP - Image Restoration
 
Efficient Method of Removing the Noise using High Dynamic Range Image
Efficient Method of Removing the Noise using High Dynamic Range ImageEfficient Method of Removing the Noise using High Dynamic Range Image
Efficient Method of Removing the Noise using High Dynamic Range Image
 

Similar to Flash Photography and toonification

X-Ray Image Enhancement using CLAHE Method
X-Ray Image Enhancement using CLAHE MethodX-Ray Image Enhancement using CLAHE Method
X-Ray Image Enhancement using CLAHE Method
IRJET Journal
 
Image Restoration mage restoration is the process of improving the quality of...
Image Restoration mage restoration is the process of improving the quality of...Image Restoration mage restoration is the process of improving the quality of...
Image Restoration mage restoration is the process of improving the quality of...
sonalitamilselvi
 
Shadow removal using Image Processing (Case study and code Implementation)
Shadow removal using Image Processing (Case study and code Implementation)Shadow removal using Image Processing (Case study and code Implementation)
Shadow removal using Image Processing (Case study and code Implementation)
Ardra
 
High Efficiency Haze Removal Using Contextual Regularization Algorithm
High Efficiency Haze Removal Using Contextual Regularization AlgorithmHigh Efficiency Haze Removal Using Contextual Regularization Algorithm
High Efficiency Haze Removal Using Contextual Regularization Algorithm
IRJET Journal
 
IRJET- A Comparative Analysis of various Visibility Enhancement Techniques th...
IRJET- A Comparative Analysis of various Visibility Enhancement Techniques th...IRJET- A Comparative Analysis of various Visibility Enhancement Techniques th...
IRJET- A Comparative Analysis of various Visibility Enhancement Techniques th...
IRJET Journal
 
A Review on Airlight Estimation Haze Removal Algorithms
A Review on Airlight Estimation Haze Removal AlgorithmsA Review on Airlight Estimation Haze Removal Algorithms
A Review on Airlight Estimation Haze Removal Algorithms
IRJET Journal
 
Survey on Image Integration of Misaligned Images
Survey on Image Integration of Misaligned ImagesSurvey on Image Integration of Misaligned Images
Survey on Image Integration of Misaligned Images
IRJET Journal
 
Modified adaptive bilateral filter for image contrast enhancement
Modified adaptive bilateral filter for image contrast enhancementModified adaptive bilateral filter for image contrast enhancement
Modified adaptive bilateral filter for image contrast enhancement
eSAT Publishing House
 
A Novel Dehazing Method for Color Accuracy and Contrast Enhancement Method fo...
A Novel Dehazing Method for Color Accuracy and Contrast Enhancement Method fo...A Novel Dehazing Method for Color Accuracy and Contrast Enhancement Method fo...
A Novel Dehazing Method for Color Accuracy and Contrast Enhancement Method fo...
IRJET Journal
 
Image enhancement
Image enhancementImage enhancement
Image enhancementAyaelshiwi
 
Survey Paper on Image Denoising Using Spatial Statistic son Pixel
Survey Paper on Image Denoising Using Spatial Statistic son PixelSurvey Paper on Image Denoising Using Spatial Statistic son Pixel
Survey Paper on Image Denoising Using Spatial Statistic son Pixel
IJERA Editor
 
Deep Local Parametric Filters for Image Enhancement
Deep Local Parametric Filters for Image EnhancementDeep Local Parametric Filters for Image Enhancement
Deep Local Parametric Filters for Image Enhancement
Sean Moran
 
Exploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny AlgorithmExploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny AlgorithmPrasad Thakur
 
F045073136
F045073136F045073136
F045073136
IJERA Editor
 
“Next-generation Computer Vision Methods for Automated Navigation of Unmanned...
“Next-generation Computer Vision Methods for Automated Navigation of Unmanned...“Next-generation Computer Vision Methods for Automated Navigation of Unmanned...
“Next-generation Computer Vision Methods for Automated Navigation of Unmanned...
Edge AI and Vision Alliance
 
IRJET - Change Detection in Satellite Images using Convolutional Neural N...
IRJET -  	  Change Detection in Satellite Images using Convolutional Neural N...IRJET -  	  Change Detection in Satellite Images using Convolutional Neural N...
IRJET - Change Detection in Satellite Images using Convolutional Neural N...
IRJET Journal
 
A Review over Different Blur Detection Techniques in Image Processing
A Review over Different Blur Detection Techniques in Image ProcessingA Review over Different Blur Detection Techniques in Image Processing
A Review over Different Blur Detection Techniques in Image Processing
paperpublications3
 
A Review on Haze Removal Techniques
A Review on Haze Removal TechniquesA Review on Haze Removal Techniques
A Review on Haze Removal Techniques
IRJET Journal
 
Multi Image Deblurring using Complementary Sets of Fluttering Patterns by Mul...
Multi Image Deblurring using Complementary Sets of Fluttering Patterns by Mul...Multi Image Deblurring using Complementary Sets of Fluttering Patterns by Mul...
Multi Image Deblurring using Complementary Sets of Fluttering Patterns by Mul...
IRJET Journal
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 

Similar to Flash Photography and toonification (20)

X-Ray Image Enhancement using CLAHE Method
X-Ray Image Enhancement using CLAHE MethodX-Ray Image Enhancement using CLAHE Method
X-Ray Image Enhancement using CLAHE Method
 
Image Restoration mage restoration is the process of improving the quality of...
Image Restoration mage restoration is the process of improving the quality of...Image Restoration mage restoration is the process of improving the quality of...
Image Restoration mage restoration is the process of improving the quality of...
 
Shadow removal using Image Processing (Case study and code Implementation)
Shadow removal using Image Processing (Case study and code Implementation)Shadow removal using Image Processing (Case study and code Implementation)
Shadow removal using Image Processing (Case study and code Implementation)
 
High Efficiency Haze Removal Using Contextual Regularization Algorithm
High Efficiency Haze Removal Using Contextual Regularization AlgorithmHigh Efficiency Haze Removal Using Contextual Regularization Algorithm
High Efficiency Haze Removal Using Contextual Regularization Algorithm
 
IRJET- A Comparative Analysis of various Visibility Enhancement Techniques th...
IRJET- A Comparative Analysis of various Visibility Enhancement Techniques th...IRJET- A Comparative Analysis of various Visibility Enhancement Techniques th...
IRJET- A Comparative Analysis of various Visibility Enhancement Techniques th...
 
A Review on Airlight Estimation Haze Removal Algorithms
A Review on Airlight Estimation Haze Removal AlgorithmsA Review on Airlight Estimation Haze Removal Algorithms
A Review on Airlight Estimation Haze Removal Algorithms
 
Survey on Image Integration of Misaligned Images
Survey on Image Integration of Misaligned ImagesSurvey on Image Integration of Misaligned Images
Survey on Image Integration of Misaligned Images
 
Modified adaptive bilateral filter for image contrast enhancement
Modified adaptive bilateral filter for image contrast enhancementModified adaptive bilateral filter for image contrast enhancement
Modified adaptive bilateral filter for image contrast enhancement
 
A Novel Dehazing Method for Color Accuracy and Contrast Enhancement Method fo...
A Novel Dehazing Method for Color Accuracy and Contrast Enhancement Method fo...A Novel Dehazing Method for Color Accuracy and Contrast Enhancement Method fo...
A Novel Dehazing Method for Color Accuracy and Contrast Enhancement Method fo...
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Survey Paper on Image Denoising Using Spatial Statistic son Pixel
Survey Paper on Image Denoising Using Spatial Statistic son PixelSurvey Paper on Image Denoising Using Spatial Statistic son Pixel
Survey Paper on Image Denoising Using Spatial Statistic son Pixel
 
Deep Local Parametric Filters for Image Enhancement
Deep Local Parametric Filters for Image EnhancementDeep Local Parametric Filters for Image Enhancement
Deep Local Parametric Filters for Image Enhancement
 
Exploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny AlgorithmExploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny Algorithm
 
F045073136
F045073136F045073136
F045073136
 
“Next-generation Computer Vision Methods for Automated Navigation of Unmanned...
“Next-generation Computer Vision Methods for Automated Navigation of Unmanned...“Next-generation Computer Vision Methods for Automated Navigation of Unmanned...
“Next-generation Computer Vision Methods for Automated Navigation of Unmanned...
 
IRJET - Change Detection in Satellite Images using Convolutional Neural N...
IRJET -  	  Change Detection in Satellite Images using Convolutional Neural N...IRJET -  	  Change Detection in Satellite Images using Convolutional Neural N...
IRJET - Change Detection in Satellite Images using Convolutional Neural N...
 
A Review over Different Blur Detection Techniques in Image Processing
A Review over Different Blur Detection Techniques in Image ProcessingA Review over Different Blur Detection Techniques in Image Processing
A Review over Different Blur Detection Techniques in Image Processing
 
A Review on Haze Removal Techniques
A Review on Haze Removal TechniquesA Review on Haze Removal Techniques
A Review on Haze Removal Techniques
 
Multi Image Deblurring using Complementary Sets of Fluttering Patterns by Mul...
Multi Image Deblurring using Complementary Sets of Fluttering Patterns by Mul...Multi Image Deblurring using Complementary Sets of Fluttering Patterns by Mul...
Multi Image Deblurring using Complementary Sets of Fluttering Patterns by Mul...
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 

More from Satya Sahoo

An affordable 3d printed tracking system for low capacity PV applications
An affordable 3d printed tracking system for low capacity PV applicationsAn affordable 3d printed tracking system for low capacity PV applications
An affordable 3d printed tracking system for low capacity PV applications
Satya Sahoo
 
Numerical Solution of the navier stokes equations using the finite difference...
Numerical Solution of the navier stokes equations using the finite difference...Numerical Solution of the navier stokes equations using the finite difference...
Numerical Solution of the navier stokes equations using the finite difference...
Satya Sahoo
 
Enhanced phase width modulation in TMS320F28335D
Enhanced phase width modulation in TMS320F28335DEnhanced phase width modulation in TMS320F28335D
Enhanced phase width modulation in TMS320F28335D
Satya Sahoo
 
Frequency Control of Power Systems
Frequency Control of Power SystemsFrequency Control of Power Systems
Frequency Control of Power Systems
Satya Sahoo
 
Carbon capture and storage
Carbon capture and storageCarbon capture and storage
Carbon capture and storage
Satya Sahoo
 
Protection of inverter based microgrids
Protection of inverter based microgridsProtection of inverter based microgrids
Protection of inverter based microgrids
Satya Sahoo
 
Grounding in AC Microgrids
Grounding in AC MicrogridsGrounding in AC Microgrids
Grounding in AC Microgrids
Satya Sahoo
 
Nigeria Emissions and Energy Policies
Nigeria Emissions and Energy PoliciesNigeria Emissions and Energy Policies
Nigeria Emissions and Energy Policies
Satya Sahoo
 
Nanoparticles in heat transfer applications
Nanoparticles in heat transfer applicationsNanoparticles in heat transfer applications
Nanoparticles in heat transfer applications
Satya Sahoo
 
Energy Analysis of Nigeria
Energy Analysis of NigeriaEnergy Analysis of Nigeria
Energy Analysis of Nigeria
Satya Sahoo
 

More from Satya Sahoo (10)

An affordable 3d printed tracking system for low capacity PV applications
An affordable 3d printed tracking system for low capacity PV applicationsAn affordable 3d printed tracking system for low capacity PV applications
An affordable 3d printed tracking system for low capacity PV applications
 
Numerical Solution of the navier stokes equations using the finite difference...
Numerical Solution of the navier stokes equations using the finite difference...Numerical Solution of the navier stokes equations using the finite difference...
Numerical Solution of the navier stokes equations using the finite difference...
 
Enhanced phase width modulation in TMS320F28335D
Enhanced phase width modulation in TMS320F28335DEnhanced phase width modulation in TMS320F28335D
Enhanced phase width modulation in TMS320F28335D
 
Frequency Control of Power Systems
Frequency Control of Power SystemsFrequency Control of Power Systems
Frequency Control of Power Systems
 
Carbon capture and storage
Carbon capture and storageCarbon capture and storage
Carbon capture and storage
 
Protection of inverter based microgrids
Protection of inverter based microgridsProtection of inverter based microgrids
Protection of inverter based microgrids
 
Grounding in AC Microgrids
Grounding in AC MicrogridsGrounding in AC Microgrids
Grounding in AC Microgrids
 
Nigeria Emissions and Energy Policies
Nigeria Emissions and Energy PoliciesNigeria Emissions and Energy Policies
Nigeria Emissions and Energy Policies
 
Nanoparticles in heat transfer applications
Nanoparticles in heat transfer applicationsNanoparticles in heat transfer applications
Nanoparticles in heat transfer applications
 
Energy Analysis of Nigeria
Energy Analysis of NigeriaEnergy Analysis of Nigeria
Energy Analysis of Nigeria
 

Recently uploaded

block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 

Recently uploaded (20)

block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 

Flash Photography and toonification

  • 1. Bilateral filtering Image processing project Aryan Agal: 16D170004 Satya Sahoo: 16D170026
  • 2. Bilateral filtering ● The Bilateral filter is a robust edge-preserving filter introduced by Tomasi and Manduchi. ● It combines a classic low-pass filter with an edgestopping function that attenuates the filter kernel weights when the intensity difference between pixels is large.
  • 3. Bilateral filtering Gaussian Blur Bilateral filtering
  • 4. Bilateral vs Gauss smoothening visualised
  • 7. Digital Photography with Flash and No-Flash Image Pairs
  • 8. Digital Photography with Flash and No-Flash Image Pairs ● Capturing the natural ambient illumination in such low-light environments ○ a long exposure time ○ open the aperture to let in more light ○ increase the camera’s gain ● Adding a flash circumvents these problems ● The use of flash can also have a negative impact on the lighting characteristics of the environment.
  • 11. Joint bilateral filter ● We modify the basic bilateral filter to compute the edge-stopping function using the flash image F instead of A .
  • 13. Flash-To-Ambient Detail Transfer ● The joint bilateral filter cannot add detail that may be present in the flash image. ● To transfer this detail we begin by computing a detail layer from the flash image as the following ratio: ● The ratio captures the local detail variation in F and is commonly called a quotient image or ratio image in computer vision. ● Reduces haloing
  • 14. ● Light from the flash can introduce shadows and specularities into the flash image. ● Within flash shadows, the image may be as dim as the ambient image and therefore suffer from noise. ● May form artificial edges Detecting Flash Shadows and Specularities
  • 15. Flash Shadows ● To deal with noise and inter- reflection, we compute the shadow mask by looking for pixels in which the difference between the linearized flash and ambient images is small: Detecting Flash Shadows and Specularities - continued
  • 16. Flash Specularities ● Specular regions should be bright in F and should therefore saturate the image sensor. Hence, we look for luminance values in the flash image that are greater than 95% of the range of sensor output values. Detecting Flash Shadows and Specularities - continued
  • 17. Final Merge ● We now have 2 masks, these masks can be contaminated by noise, with small speckles, holes and ragged edges. ● To clean up the mask, we use morphological operations to erode the speckles, and fill the holes. To produce a conservative estimate, we dilate the mask. ● Final mask M is obtained by taking a union of both the masks. Detecting Flash Shadows and Specularities - continued
  • 18. Cartoonification of an image using bilateral filtering
  • 19. Cartoonification of an image using bilateral filtering ● One very obvious application of bilateral filtering is the cartoonification of images. ● The algorithm we have used in this project is to first apply a bilateral filter on an image, then apply an edge detection method, and superimpose the two images. ● The edge detection method used in this project is using the sobel/prewitt operator or canny edge detector, LoG, DoG, etc.
  • 22. VASE - Flash-To-Ambient Detail Transfer Very slight change, slight increase in detail
  • 31. Algorithm fails in portrait images! Original Bilateral Edge detection Cartoonified
  • 32. Further work ● Bilateral filter is expensive ● Brute-force computation is slow (several minutes) because of nested for loops ● Non-linear, depends on image content (no FFT, no precomputation) ● Fast approximations exist ○ Significant loss of accuracy ○ No formal understanding of accuracy versus speed
  • 33. Further work ● SEPARABLE BILATERAL FILTERING FOR FAST VIDEO PREPROCESSING - Tuan Q. Pham, Lucas J. van Vliet(2005) ○ Present a separable implementation of the bilateral filter ○ 2-D bilateral kernel approximated as two separable, cheap 1-D parts ● Real-time O (1) bilateral filtering - Q Yang, KH Tan, N Ahuja(2009) ○ Proposed a new bilateral filtering algorithm with computational complexity invariant to filter kernel size, so called O(1) or constant time ○ By showing that a bilateral filter can be decomposed into a number of constant time spatial filters, the method yields a new class of constant time bilateral filters that can have arbitrary spatial and arbitrary range kernels
  • 34. Further work ● Recursive bilateral filtering - Q.Yang (2012) ○ Computational complexity is linear in both input size and dimensionality ○ It is more efficient than the state-of-the-art bilateral filtering methods that have a computational complexity of O(ND2)
  • 35. Further work ● Flash shadows often appear at depth discontinuities between surfaces in the scene. Using multiple flash photographs it may be possible to segment foreground from background. Raskar et al. [2003] have explored this type of approach to generate non-photorealistic renderings. ● May be possible to extend detail transfer technique to de-blur motion-blur images. Jia et al. [2004] ● Joint optimization of our algorithms and the camera hardware design also a possibility
  • 36. ● Computational Photography Using a Pair of Flash/No-flash Images by Iterative Guided Filtering [2011] ○ Iterative improvement of the guided image filter for F/NF photography ○ Proved to be effective for such applications as high dynamic range compression, image matting, haze removal, and F/NF denoising etc. Further work
  • 37. ● Image Quilting for Texture Synthesis and Transfer [2001] ● Two-scale Tone Management for scale Tone Management for Photographic Look[SIGGRAPH, 2006] ● Single Image Haze Removal Using Dark Channel Prior [2011] Further work