SlideShare a Scribd company logo
Chih-Tsung Shen Feng-Ju Chang Yi-Ping Hung Soo-Chang Pei
NTU, Academia Sinica Academia Sinica NTU, Academia Sinica NTU
Edge-Preserving Image Decomposition
using L1 Fidelity with L0 Gradient
Image Decomposition
• Image decomposition : a tool for image editing.
• The intensity can be decomposed into base
layer and detail layer.
• The basic example is un-sharp masking.
Input Base layer Output
( , ) ( , ) ( , )L x y B x y D x y  ( , )B x y ( , ) ( , ) ( , )ENL x y B x y k D x y  
Image Decomposition
• Pyramid: [Burt & Adelson 83]
• Retinex: [Jobson et al. 97]
• EMD: [Huang 98]
• Bilateral Filtering: [Tomasi & Manduchi 98]
• Fast Bilateral Filtering: [Durand & Dorsey 02]
• Weighted Least Square: [Farbman et al.08]
• Local Extrema: [Subr et al. 09]
• Guided Filtering: [He et al. 10]
• L0 Gradient Minimization: [Xu et al. 11]
Edge-Preserving
Image Decomposition
• Weighted Least Square: [Farbman et al.08]
• L0 Gradient Minimization: [Xu et al. 11]
• We decompose the signal using L1 fidelity with
L0 gradient. (sparsity measurement)
2 2 2
( , ) ( , )
( , ) ( , )
| ( , ) ( , ) | ( ( , ) ( ) ( , ) ( ) )min x y
B x y x y
B x y B x y
B x y L x y b x y b x y
x y

 
     
 

2
( , ) ( , )
| ( , ) ( , ) | ( , )minB x y x y
B x y L x y C x y  
( , ) ( , )
( , ) # | | | | 0
B x y B x y
C x y
x y
   
   
   
( , ) ( , )
( , ) # | | | | 0
B x y B x y
C x y
x y
   
   
   ( , ) ( , )
| ( , ) ( , ) | ( , )minB x y x y
B x y L x y C x y  
Image Smoothing
• The input signal can be
decomposed into base
layer and detail layer:
• using minimization:
• Approximate L1 fidelity
by using :
( , ) ( , )
| ( , ) ( , ) | ( , )minB x y x y
B x y L x y C x y  
2
, ( , ) ( , )
| ( , ) ( , ) ( , ) | | ( , ) | ( , )minB w x y x y
B x y L x y w x y w x y C x y       
( , ) ( , ) ( , )L x y B x y D x y 
( , )w x y
Error between B(x,y)-L(x,y) and w(x,y) Approximation
Image Smoothing
• Approximate L0 gradient using
where the L0 norm of gradient (L0 gradient):
2
, , , ( , ) ( , )
2 2
| ( , ) ( , ) ( , ) | | ( , ) | ( ( , ), ( , ))
( , ) ( , )
(| ( , ) | | ( , ) | )
minx y
x y
B w a a x y x y
x y
B x y L x y w x y w x y C a x y a x y
B x y B x y
a x y a x y
x y
 

     
 
    
 
 
( , ) ( , )
( ( , ), ( , )) # ( , ) | | | | 0x y
B x y B x y
C a x y a x y x y
x y
   
   
   
( ( , ), ( , ))x yC a x y a x y
(Equation* )
• Since is independent to , and
,we can solve the equation* by using
alternating minimization:
2
( , )
2 2
| ( , ) ( , ) ( , ) |
( , ) ( , )
| ( , ) | | ( , ) |
minB x y
x y
B x y L x y w x y
B x y B x y
a x y a x y
x y


  
 
   
 

* *
1
( ) ( ) ( ) ( ) ( ) ( )
( , )
*( ) ( ) *( ) ( )
x yF L F w F x F a F y F a
B x y F
F x F x F y F y
   
  

      
  
       
Solver: Computing B(x,y)
( , )B x y ( , )w x y ( , )xa x y
( , )ya x y
• Using FFT to speed up the whole process:
• Moreover, is also independent to
and , we can solve first:
2
( , ) ( , )
| ( , ) | | ( , ) ( , ) ( , ) |minw x y x y
w x y B x y L x y w x y   
Solver: Computing w(x,y), ax(x,y) & ay(x,y)
1 ( , ) ( , )
( , ) max | ( , ) ( , ) | ,0
2 | ( , ) ( , ) |
B x y L x y
w x y B x y L x y
B x y L x y
 
   
 
( , )w x y ( , )xa x y
( , )ya x y ( , )w x y
• Using a binary map , we can
obtain the L0 norm of gradient :
Solver: Computing w(x,y), ax(x,y) & ay(x,y)
2 2
,
( , ) ( , )
( ( , ), ( , )) | ( , ) | | ( , ) |minx y
x y x y
a a
B x y B x y
C a x y a x y a x y a x y
x y


 
    
 
1,| ( , ) | | ( , ) | 0
( ( , ), ( , )) (| ( , ) | | ( , ) |)
0,| ( , ) | | ( , ) | 0
x y
x y x y
x y
a x y a x y
C a x y a x y H a x y a x y
a x y a x y
 
   
 
(| ( , ) | | ( , ) |)x yH a x y a x y
( ( , ), ( , ))x yC a x y a x y
• Since we obtain the final base layer , we
can also obtain our corresponding detail
layer :
• The general form for image enhancement:
is the scale parameter, is the white value,
is the parameter for gamma correction, and
is the gain for detail boosting.
General Form for Enhancement
ˆ ˆ( , ) ( , ) ( , )D x y L x y B x y 
ˆ( , ) ˆ( , ) ( ) ( , )EN
B x y
L x y s W G D x y
W

    
ˆ( , )B x y
ˆ( , )D x y
s

G
W
Image Smoothing
Input Ours
Noise Removal
Noisy Input WLS,
L0 Smooting, Ours,
Using the same
balancing
parameter
2 2
|...| (...) 
2
0|...| ||...||  0| ...| || ...|| 
0.1 
Noise Removal
Noisy Input Ours
Artifact Removal
Ours
Non-Degraded BMP
Mean Shift
Degraded JPG
Artifact Removal
Degraded JPG
Artifact Removal
Ours
Edge Detection
Input Ours
Edge Detection
Input Ours
Stylization
OursInput
Stylization
Input Ours
Image Enhancement
Input Ours
Image Enhancement
Input Ours
Low Backlight
Original, 100% Original, 40% Our, 40%
Backlight:
Scale down to 40%
Image:
Compensate the brightness
Boost the detail parts
Backlight:
Scale down to 40%
SIGGRAPHASIA2012_Talk

More Related Content

What's hot

Image Acquisition and Representation
Image Acquisition and RepresentationImage Acquisition and Representation
Image Acquisition and RepresentationAmnaakhaan
 
Image Interpolation Techniques with Optical and Digital Zoom Concepts
Image Interpolation Techniques with Optical and Digital Zoom ConceptsImage Interpolation Techniques with Optical and Digital Zoom Concepts
Image Interpolation Techniques with Optical and Digital Zoom Conceptsmmjalbiaty
 
Notes on image processing
Notes on image processingNotes on image processing
Notes on image processingMohammed Kamel
 
Digital image processing img smoothning
Digital image processing img smoothningDigital image processing img smoothning
Digital image processing img smoothningVinay Gupta
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processingasodariyabhavesh
 
morphological image processing
morphological image processingmorphological image processing
morphological image processingAnubhav Kumar
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processingRaghu Kumar
 
04 image enhancement edge detection
04 image enhancement edge detection04 image enhancement edge detection
04 image enhancement edge detectionRumah Belajar
 
Boundary Extraction
Boundary ExtractionBoundary Extraction
Boundary ExtractionMaria Akther
 
A Tutorial On Ip 1
A Tutorial On Ip 1A Tutorial On Ip 1
A Tutorial On Ip 1ankuredkie
 
Image Restoration And Reconstruction
Image Restoration And ReconstructionImage Restoration And Reconstruction
Image Restoration And ReconstructionAmnaakhaan
 
COM2304: Morphological Image Processing
COM2304: Morphological Image ProcessingCOM2304: Morphological Image Processing
COM2304: Morphological Image ProcessingHemantha Kulathilake
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantizationBCET, Balasore
 
morphological tecnquies in image processing
morphological tecnquies in image processingmorphological tecnquies in image processing
morphological tecnquies in image processingsoma saikiran
 
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 Acquisition and Representation
Image Acquisition and RepresentationImage Acquisition and Representation
Image Acquisition and Representation
 
Image Interpolation Techniques with Optical and Digital Zoom Concepts
Image Interpolation Techniques with Optical and Digital Zoom ConceptsImage Interpolation Techniques with Optical and Digital Zoom Concepts
Image Interpolation Techniques with Optical and Digital Zoom Concepts
 
Representation image
Representation imageRepresentation image
Representation image
 
Notes on image processing
Notes on image processingNotes on image processing
Notes on image processing
 
Digital image processing img smoothning
Digital image processing img smoothningDigital image processing img smoothning
Digital image processing img smoothning
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processing
 
morphological image processing
morphological image processingmorphological image processing
morphological image processing
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processing
 
04 image enhancement edge detection
04 image enhancement edge detection04 image enhancement edge detection
04 image enhancement edge detection
 
Boundary Extraction
Boundary ExtractionBoundary Extraction
Boundary Extraction
 
A Tutorial On Ip 1
A Tutorial On Ip 1A Tutorial On Ip 1
A Tutorial On Ip 1
 
Image Restoration And Reconstruction
Image Restoration And ReconstructionImage Restoration And Reconstruction
Image Restoration And Reconstruction
 
Morphological operations
Morphological operationsMorphological operations
Morphological operations
 
Digital Image Fundamentals - II
Digital Image Fundamentals - IIDigital Image Fundamentals - II
Digital Image Fundamentals - II
 
Dip Morphological
Dip MorphologicalDip Morphological
Dip Morphological
 
COM2304: Morphological Image Processing
COM2304: Morphological Image ProcessingCOM2304: Morphological Image Processing
COM2304: Morphological Image Processing
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantization
 
morphological tecnquies in image processing
morphological tecnquies in image processingmorphological tecnquies in image processing
morphological tecnquies in image processing
 
Edge Detection algorithm and code
Edge Detection algorithm and codeEdge Detection algorithm and code
Edge Detection algorithm and code
 

Similar to SIGGRAPHASIA2012_Talk

Computer Graphics Unit 1
Computer Graphics Unit 1Computer Graphics Unit 1
Computer Graphics Unit 1aravindangc
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restorationMd Shabir Alam
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureFatmaNewagy1
 
Ch 3. Image Enhancement in the Spatial Domain_okay.ppt
Ch 3. Image Enhancement in the Spatial Domain_okay.pptCh 3. Image Enhancement in the Spatial Domain_okay.ppt
Ch 3. Image Enhancement in the Spatial Domain_okay.pptnurulrahat02
 
SpatialEnhancement of course CE7491 of NTU
SpatialEnhancement of course CE7491 of NTUSpatialEnhancement of course CE7491 of NTU
SpatialEnhancement of course CE7491 of NTUlyumingzhi
 
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...Shahbaz Alam
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2Surabhi Ks
 
Image Processing using Matlab . Useful for beginners to learn Image Processing
Image Processing using Matlab . Useful for beginners to learn Image ProcessingImage Processing using Matlab . Useful for beginners to learn Image Processing
Image Processing using Matlab . Useful for beginners to learn Image ProcessingAshok Kumar
 
Introduction to Image Processing
Introduction to Image ProcessingIntroduction to Image Processing
Introduction to Image ProcessingIsrael Gbati
 
DeepXplore: Automated Whitebox Testing of Deep Learning
DeepXplore: Automated Whitebox Testing of Deep LearningDeepXplore: Automated Whitebox Testing of Deep Learning
DeepXplore: Automated Whitebox Testing of Deep LearningMasahiro Sakai
 
When Discrete Optimization Meets Multimedia Security (and Beyond)
When Discrete Optimization Meets Multimedia Security (and Beyond)When Discrete Optimization Meets Multimedia Security (and Beyond)
When Discrete Optimization Meets Multimedia Security (and Beyond)Shujun Li
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 

Similar to SIGGRAPHASIA2012_Talk (20)

ISCAS2013_v5
ISCAS2013_v5ISCAS2013_v5
ISCAS2013_v5
 
2. filtering basics
2. filtering basics2. filtering basics
2. filtering basics
 
Computer Graphics Unit 1
Computer Graphics Unit 1Computer Graphics Unit 1
Computer Graphics Unit 1
 
Mk slides.ppt
Mk slides.pptMk slides.ppt
Mk slides.ppt
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Image Processing
Image ProcessingImage Processing
Image Processing
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lecture
 
Ch 3. Image Enhancement in the Spatial Domain_okay.ppt
Ch 3. Image Enhancement in the Spatial Domain_okay.pptCh 3. Image Enhancement in the Spatial Domain_okay.ppt
Ch 3. Image Enhancement in the Spatial Domain_okay.ppt
 
SpatialEnhancement of course CE7491 of NTU
SpatialEnhancement of course CE7491 of NTUSpatialEnhancement of course CE7491 of NTU
SpatialEnhancement of course CE7491 of NTU
 
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2
 
Line clipping
Line clippingLine clipping
Line clipping
 
Image Processing using Matlab . Useful for beginners to learn Image Processing
Image Processing using Matlab . Useful for beginners to learn Image ProcessingImage Processing using Matlab . Useful for beginners to learn Image Processing
Image Processing using Matlab . Useful for beginners to learn Image Processing
 
Introduction to Image Processing
Introduction to Image ProcessingIntroduction to Image Processing
Introduction to Image Processing
 
DeepXplore: Automated Whitebox Testing of Deep Learning
DeepXplore: Automated Whitebox Testing of Deep LearningDeepXplore: Automated Whitebox Testing of Deep Learning
DeepXplore: Automated Whitebox Testing of Deep Learning
 
When Discrete Optimization Meets Multimedia Security (and Beyond)
When Discrete Optimization Meets Multimedia Security (and Beyond)When Discrete Optimization Meets Multimedia Security (and Beyond)
When Discrete Optimization Meets Multimedia Security (and Beyond)
 
h.pdf
h.pdfh.pdf
h.pdf
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 

SIGGRAPHASIA2012_Talk

  • 1. Chih-Tsung Shen Feng-Ju Chang Yi-Ping Hung Soo-Chang Pei NTU, Academia Sinica Academia Sinica NTU, Academia Sinica NTU Edge-Preserving Image Decomposition using L1 Fidelity with L0 Gradient
  • 2. Image Decomposition • Image decomposition : a tool for image editing. • The intensity can be decomposed into base layer and detail layer. • The basic example is un-sharp masking. Input Base layer Output ( , ) ( , ) ( , )L x y B x y D x y  ( , )B x y ( , ) ( , ) ( , )ENL x y B x y k D x y  
  • 3. Image Decomposition • Pyramid: [Burt & Adelson 83] • Retinex: [Jobson et al. 97] • EMD: [Huang 98] • Bilateral Filtering: [Tomasi & Manduchi 98] • Fast Bilateral Filtering: [Durand & Dorsey 02] • Weighted Least Square: [Farbman et al.08] • Local Extrema: [Subr et al. 09] • Guided Filtering: [He et al. 10] • L0 Gradient Minimization: [Xu et al. 11]
  • 4. Edge-Preserving Image Decomposition • Weighted Least Square: [Farbman et al.08] • L0 Gradient Minimization: [Xu et al. 11] • We decompose the signal using L1 fidelity with L0 gradient. (sparsity measurement) 2 2 2 ( , ) ( , ) ( , ) ( , ) | ( , ) ( , ) | ( ( , ) ( ) ( , ) ( ) )min x y B x y x y B x y B x y B x y L x y b x y b x y x y             2 ( , ) ( , ) | ( , ) ( , ) | ( , )minB x y x y B x y L x y C x y   ( , ) ( , ) ( , ) # | | | | 0 B x y B x y C x y x y             ( , ) ( , ) ( , ) # | | | | 0 B x y B x y C x y x y            ( , ) ( , ) | ( , ) ( , ) | ( , )minB x y x y B x y L x y C x y  
  • 5. Image Smoothing • The input signal can be decomposed into base layer and detail layer: • using minimization: • Approximate L1 fidelity by using : ( , ) ( , ) | ( , ) ( , ) | ( , )minB x y x y B x y L x y C x y   2 , ( , ) ( , ) | ( , ) ( , ) ( , ) | | ( , ) | ( , )minB w x y x y B x y L x y w x y w x y C x y        ( , ) ( , ) ( , )L x y B x y D x y  ( , )w x y Error between B(x,y)-L(x,y) and w(x,y) Approximation
  • 6. Image Smoothing • Approximate L0 gradient using where the L0 norm of gradient (L0 gradient): 2 , , , ( , ) ( , ) 2 2 | ( , ) ( , ) ( , ) | | ( , ) | ( ( , ), ( , )) ( , ) ( , ) (| ( , ) | | ( , ) | ) minx y x y B w a a x y x y x y B x y L x y w x y w x y C a x y a x y B x y B x y a x y a x y x y                     ( , ) ( , ) ( ( , ), ( , )) # ( , ) | | | | 0x y B x y B x y C a x y a x y x y x y             ( ( , ), ( , ))x yC a x y a x y (Equation* )
  • 7. • Since is independent to , and ,we can solve the equation* by using alternating minimization: 2 ( , ) 2 2 | ( , ) ( , ) ( , ) | ( , ) ( , ) | ( , ) | | ( , ) | minB x y x y B x y L x y w x y B x y B x y a x y a x y x y               * * 1 ( ) ( ) ( ) ( ) ( ) ( ) ( , ) *( ) ( ) *( ) ( ) x yF L F w F x F a F y F a B x y F F x F x F y F y                           Solver: Computing B(x,y) ( , )B x y ( , )w x y ( , )xa x y ( , )ya x y • Using FFT to speed up the whole process:
  • 8. • Moreover, is also independent to and , we can solve first: 2 ( , ) ( , ) | ( , ) | | ( , ) ( , ) ( , ) |minw x y x y w x y B x y L x y w x y    Solver: Computing w(x,y), ax(x,y) & ay(x,y) 1 ( , ) ( , ) ( , ) max | ( , ) ( , ) | ,0 2 | ( , ) ( , ) | B x y L x y w x y B x y L x y B x y L x y         ( , )w x y ( , )xa x y ( , )ya x y ( , )w x y
  • 9. • Using a binary map , we can obtain the L0 norm of gradient : Solver: Computing w(x,y), ax(x,y) & ay(x,y) 2 2 , ( , ) ( , ) ( ( , ), ( , )) | ( , ) | | ( , ) |minx y x y x y a a B x y B x y C a x y a x y a x y a x y x y            1,| ( , ) | | ( , ) | 0 ( ( , ), ( , )) (| ( , ) | | ( , ) |) 0,| ( , ) | | ( , ) | 0 x y x y x y x y a x y a x y C a x y a x y H a x y a x y a x y a x y         (| ( , ) | | ( , ) |)x yH a x y a x y ( ( , ), ( , ))x yC a x y a x y
  • 10. • Since we obtain the final base layer , we can also obtain our corresponding detail layer : • The general form for image enhancement: is the scale parameter, is the white value, is the parameter for gamma correction, and is the gain for detail boosting. General Form for Enhancement ˆ ˆ( , ) ( , ) ( , )D x y L x y B x y  ˆ( , ) ˆ( , ) ( ) ( , )EN B x y L x y s W G D x y W       ˆ( , )B x y ˆ( , )D x y s  G W
  • 12. Noise Removal Noisy Input WLS, L0 Smooting, Ours, Using the same balancing parameter 2 2 |...| (...)  2 0|...| ||...||  0| ...| || ...||  0.1 
  • 23. Low Backlight Original, 100% Original, 40% Our, 40% Backlight: Scale down to 40% Image: Compensate the brightness Boost the detail parts Backlight: Scale down to 40%