SlideShare a Scribd company logo
1 of 41
Laplacian Pyramids
Many slides borrowed
from Steve Seitz
CS194: Image Manipulation & Computational Photography
Alexei Efros, UC Berkeley, Fall 2017
Low-pass, Band-pass, High-pass filters
low-pass:
High-pass / band-pass:
Edges in images
What does blurring take away?
original
What does blurring take away?
smoothed (5x5 Gaussian)
High-Pass filter
smoothed – original
Image “Sharpening”
What does blurring take away?
original smoothed (5x5)
–
detail
=
sharpened
=
Let’s add it back:
original detail
+ α
Unsharp mask filter
Gaussian
unit impulse
Laplacian of Gaussian
)
)
1
((
)
1
(
)
( g
e
f
g
f
f
g
f
f
f 



 










image blurred
image
unit impulse
(identity)
Hybrid Images
Gaussian Filter!
Laplacian Filter!
A. Oliva, A. Torralba, P.G. Schyns,
“Hybrid Images,” SIGGRAPH 2006
Gaussian
unit impulse Laplacian of Gaussian
Salvador Dali
“Gala Contemplating the Mediterranean Sea,
which at 30 meters becomes the portrait
of Abraham Lincoln”, 1976
Band-pass filtering
Laplacian Pyramid (subband images)
Created from Gaussian pyramid by subtraction
Gaussian Pyramid (low-pass images)
Laplacian Pyramid
How can we reconstruct (collapse) this
pyramid into the original image?
Need this!
Original
image
Blending
Alpha Blending / Feathering
0
1
0
1
+
=
Iblend = Ileft + (1-)Iright
Affect of Window Size
0
1 left
right
0
1
Affect of Window Size
0
1
0
1
Good Window Size
0
1
“Optimal” Window: smooth but not ghosted
What is the Optimal Window?
To avoid seams
• window = size of largest prominent feature
To avoid ghosting
• window <= 2*size of smallest prominent feature
Natural to cast this in the Fourier domain
• largest frequency <= 2*size of smallest frequency
• image frequency content should occupy one “octave” (power of two)
FFT
What if the Frequency Spread is Wide
Idea (Burt and Adelson)
• Compute Fleft = FFT(Ileft), Fright = FFT(Iright)
• Decompose Fourier image into octaves (bands)
– Fleft = Fleft
1 + Fleft
2 + …
• Feather corresponding octaves Fleft
i with Fright
i
– Can compute inverse FFT and feather in spatial domain
• Sum feathered octave images in frequency domain
Better implemented in spatial domain
FFT
Octaves in the Spatial Domain
Bandpass Images
Lowpass Images
Pyramid Blending
0
1
0
1
0
1
Left pyramid Right pyramid
blend
Pyramid Blending
laplacian
level
4
laplacian
level
2
laplacian
level
0
left pyramid right pyramid blended pyramid
Blending Regions
Laplacian Pyramid/Stack Blending
General Approach:
1. Build Laplacian pyramid/stack LX and LY from images X
and Y
2. Build a Gaussian pyramid/stack Ga from the binary alpha
mask a
3. Form a combined pyramid/stack LBlend from LX and LY
using the corresponding levels of GA as weights:
• LBlend(i,j) = Ga(I,j,)*LX(I,j) + (1-Ga(I,j))*LY(I,j)
4. Collapse the LBlend pyramid/stack to get the final blended
image
Horror Photo
© david dmartin (Boston College)
Results from this class (fall 2005)
© Chris Cameron
Simplification: Two-band Blending
Brown & Lowe, 2003
• Only use two bands: high freq. and low freq.
• Blends low freq. smoothly
• Blend high freq. with no smoothing: use binary alpha
Low frequency (l > 2 pixels)
High frequency (l < 2 pixels)
2-band “Laplacian Stack” Blending
Linear Blending
2-band Blending
Da Vinci and Peripheral Vision
https://en.wikipedia.org/wiki/Speculations_about_Mona_Lisa#Smile
Leonardo playing with peripheral vision
Livingstone, Vision and Art: The Biology of Seeing
Early processing in humans filters for various orientations and scales
of frequency
Perceptual cues in the mid frequencies dominate perception
When we see an image from far away, we are effectively subsampling
it
Early Visual Processing: Multi-scale edge and blob filters
Clues from Human Perception
Frequency Domain and Perception
Campbell-Robson contrast sensitivity curve
Lossy Image Compression (JPEG)
Block-based Discrete Cosine Transform (DCT)
Using DCT in JPEG
The first coefficient B(0,0) is the DC component,
the average intensity
The top-left coeffs represent low frequencies,
the bottom right – high frequencies
Image compression using DCT
Quantize
• More coarsely for high frequencies (which also tend to have smaller
values)
• Many quantized high frequency values will be zero
Encode
• Can decode with inverse dct
Quantization table
Filter responses
Quantized values
JPEG Compression Summary
Subsample color by factor of 2
• People have bad resolution for color
Split into blocks (8x8, typically), subtract 128
For each block
a. Compute DCT coefficients
b. Coarsely quantize
– Many high frequency components will become zero
c. Encode (e.g., with Huffman coding)
http://en.wikipedia.org/wiki/YCbCr
http://en.wikipedia.org/wiki/JPEG
Block size in JPEG
Block size
• small block
– faster
– correlation exists between neighboring pixels
• large block
– better compression in smooth regions
• It’s 8x8 in standard JPEG
JPEG compression comparison
89k 12k

More Related Content

Similar to LaplacianPyramids which is a image processing to extract the information

Computer Vision harris
Computer Vision harrisComputer Vision harris
Computer Vision harrisWael Badawy
 
Notes on image processing
Notes on image processingNotes on image processing
Notes on image processingMohammed Kamel
 
WAVELET DECOMPOSITION AND ALPHA STABLE FUSION
WAVELET DECOMPOSITION AND ALPHA STABLE FUSIONWAVELET DECOMPOSITION AND ALPHA STABLE FUSION
WAVELET DECOMPOSITION AND ALPHA STABLE FUSIONsipij
 
Lec07 corner blob
Lec07 corner blobLec07 corner blob
Lec07 corner blobBaliThorat1
 
CS 354 Global Illumination
CS 354 Global IlluminationCS 354 Global Illumination
CS 354 Global IlluminationMark Kilgard
 
15_wk4_unsupervised-learning_manifold-EM-cs365-2014.pdf
15_wk4_unsupervised-learning_manifold-EM-cs365-2014.pdf15_wk4_unsupervised-learning_manifold-EM-cs365-2014.pdf
15_wk4_unsupervised-learning_manifold-EM-cs365-2014.pdfMcSwathi
 
Direct Volume Rendering (DVR): Ray-casting
Direct Volume Rendering (DVR): Ray-castingDirect Volume Rendering (DVR): Ray-casting
Direct Volume Rendering (DVR): Ray-castingCaferYaarKarabulut
 
Advanced Lighting Techniques Dan Baker (Meltdown 2005)
Advanced Lighting Techniques   Dan Baker (Meltdown 2005)Advanced Lighting Techniques   Dan Baker (Meltdown 2005)
Advanced Lighting Techniques Dan Baker (Meltdown 2005)mobius.cn
 
CS 354 Acceleration Structures
CS 354 Acceleration StructuresCS 354 Acceleration Structures
CS 354 Acceleration StructuresMark Kilgard
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processingAnuj Arora
 
Feature Detection and Matching
Feature Detection and MatchingFeature Detection and Matching
Feature Detection and Matchingssuser24ddad
 

Similar to LaplacianPyramids which is a image processing to extract the information (20)

Fractal Image Compression
Fractal Image CompressionFractal Image Compression
Fractal Image Compression
 
Computer Vision harris
Computer Vision harrisComputer Vision harris
Computer Vision harris
 
Notes on image processing
Notes on image processingNotes on image processing
Notes on image processing
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
WAVELET DECOMPOSITION AND ALPHA STABLE FUSION
WAVELET DECOMPOSITION AND ALPHA STABLE FUSIONWAVELET DECOMPOSITION AND ALPHA STABLE FUSION
WAVELET DECOMPOSITION AND ALPHA STABLE FUSION
 
lec06-resampling2.pptx
lec06-resampling2.pptxlec06-resampling2.pptx
lec06-resampling2.pptx
 
Lec07 corner blob
Lec07 corner blobLec07 corner blob
Lec07 corner blob
 
CS 354 Global Illumination
CS 354 Global IlluminationCS 354 Global Illumination
CS 354 Global Illumination
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
 
15_wk4_unsupervised-learning_manifold-EM-cs365-2014.pdf
15_wk4_unsupervised-learning_manifold-EM-cs365-2014.pdf15_wk4_unsupervised-learning_manifold-EM-cs365-2014.pdf
15_wk4_unsupervised-learning_manifold-EM-cs365-2014.pdf
 
2. filtering basics
2. filtering basics2. filtering basics
2. filtering basics
 
image theory
image theoryimage theory
image theory
 
Direct Volume Rendering (DVR): Ray-casting
Direct Volume Rendering (DVR): Ray-castingDirect Volume Rendering (DVR): Ray-casting
Direct Volume Rendering (DVR): Ray-casting
 
Advanced Lighting Techniques Dan Baker (Meltdown 2005)
Advanced Lighting Techniques   Dan Baker (Meltdown 2005)Advanced Lighting Techniques   Dan Baker (Meltdown 2005)
Advanced Lighting Techniques Dan Baker (Meltdown 2005)
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
CS 354 Acceleration Structures
CS 354 Acceleration StructuresCS 354 Acceleration Structures
CS 354 Acceleration Structures
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processing
 
Lec03 light
Lec03 lightLec03 light
Lec03 light
 
DIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptxDIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptx
 
Feature Detection and Matching
Feature Detection and MatchingFeature Detection and Matching
Feature Detection and Matching
 

More from National Institute of Technolgy(REC) warangal (11)

EDGE devices_ ERTOS_ IOT_ presentation_P.pptx
EDGE devices_ ERTOS_ IOT_ presentation_P.pptxEDGE devices_ ERTOS_ IOT_ presentation_P.pptx
EDGE devices_ ERTOS_ IOT_ presentation_P.pptx
 
deep learning and neural networks basics
deep learning and neural networks basicsdeep learning and neural networks basics
deep learning and neural networks basics
 
Btech civil Civionics_Strain_Gauge_ 2.1.pptx
Btech civil Civionics_Strain_Gauge_ 2.1.pptxBtech civil Civionics_Strain_Gauge_ 2.1.pptx
Btech civil Civionics_Strain_Gauge_ 2.1.pptx
 
AC and DC BridgePPT for engineering students
AC and DC BridgePPT for engineering studentsAC and DC BridgePPT for engineering students
AC and DC BridgePPT for engineering students
 
CIVIONICS-I.pptx deals with sensors and their charateristics
CIVIONICS-I.pptx  deals with sensors and their charateristicsCIVIONICS-I.pptx  deals with sensors and their charateristics
CIVIONICS-I.pptx deals with sensors and their charateristics
 
fuzzylogic controller example based on mamdani approach
fuzzylogic controller example based on mamdani approachfuzzylogic controller example based on mamdani approach
fuzzylogic controller example based on mamdani approach
 
Wavelet Transform.ppt
Wavelet Transform.pptWavelet Transform.ppt
Wavelet Transform.ppt
 
Lec19.ppt
Lec19.pptLec19.ppt
Lec19.ppt
 
all sensor notes.PDF
all sensor notes.PDFall sensor notes.PDF
all sensor notes.PDF
 
lut based linearization.pptx
lut based linearization.pptxlut based linearization.pptx
lut based linearization.pptx
 
biomedicalinstrumentintroduction-170314064449-converted.pptx
biomedicalinstrumentintroduction-170314064449-converted.pptxbiomedicalinstrumentintroduction-170314064449-converted.pptx
biomedicalinstrumentintroduction-170314064449-converted.pptx
 

Recently uploaded

Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxMustafa Ahmed
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.benjamincojr
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxCHAIRMAN M
 
21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological universityMohd Saifudeen
 
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUankushspencer015
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...josephjonse
 
CLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalCLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalSwarnaSLcse
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...archanaece3
 
analog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptxanalog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptxKarpagam Institute of Teechnology
 
Circuit Breakers for Engineering Students
Circuit Breakers for Engineering StudentsCircuit Breakers for Engineering Students
Circuit Breakers for Engineering Studentskannan348865
 
Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfragupathi90
 
handbook on reinforce concrete and detailing
handbook on reinforce concrete and detailinghandbook on reinforce concrete and detailing
handbook on reinforce concrete and detailingAshishSingh1301
 
Dynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptxDynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptxMustafa Ahmed
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfEr.Sonali Nasikkar
 
Seizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksSeizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksIJECEIAES
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..MaherOthman7
 
15-Minute City: A Completely New Horizon
15-Minute City: A Completely New Horizon15-Minute City: A Completely New Horizon
15-Minute City: A Completely New HorizonMorshed Ahmed Rahath
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfJNTUA
 
Passive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptPassive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptamrabdallah9
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...IJECEIAES
 

Recently uploaded (20)

Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptx
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university
 
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 
CLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalCLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference Modal
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
analog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptxanalog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptx
 
Circuit Breakers for Engineering Students
Circuit Breakers for Engineering StudentsCircuit Breakers for Engineering Students
Circuit Breakers for Engineering Students
 
Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdf
 
handbook on reinforce concrete and detailing
handbook on reinforce concrete and detailinghandbook on reinforce concrete and detailing
handbook on reinforce concrete and detailing
 
Dynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptxDynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptx
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
 
Seizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksSeizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networks
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..
 
15-Minute City: A Completely New Horizon
15-Minute City: A Completely New Horizon15-Minute City: A Completely New Horizon
15-Minute City: A Completely New Horizon
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
Passive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptPassive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.ppt
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...
 

LaplacianPyramids which is a image processing to extract the information

  • 1. Laplacian Pyramids Many slides borrowed from Steve Seitz CS194: Image Manipulation & Computational Photography Alexei Efros, UC Berkeley, Fall 2017
  • 2. Low-pass, Band-pass, High-pass filters low-pass: High-pass / band-pass:
  • 4. What does blurring take away? original
  • 5. What does blurring take away? smoothed (5x5 Gaussian)
  • 7. Image “Sharpening” What does blurring take away? original smoothed (5x5) – detail = sharpened = Let’s add it back: original detail + α
  • 8. Unsharp mask filter Gaussian unit impulse Laplacian of Gaussian ) ) 1 (( ) 1 ( ) ( g e f g f f g f f f                 image blurred image unit impulse (identity)
  • 9. Hybrid Images Gaussian Filter! Laplacian Filter! A. Oliva, A. Torralba, P.G. Schyns, “Hybrid Images,” SIGGRAPH 2006 Gaussian unit impulse Laplacian of Gaussian
  • 10. Salvador Dali “Gala Contemplating the Mediterranean Sea, which at 30 meters becomes the portrait of Abraham Lincoln”, 1976
  • 11. Band-pass filtering Laplacian Pyramid (subband images) Created from Gaussian pyramid by subtraction Gaussian Pyramid (low-pass images)
  • 12. Laplacian Pyramid How can we reconstruct (collapse) this pyramid into the original image? Need this! Original image
  • 14. Alpha Blending / Feathering 0 1 0 1 + = Iblend = Ileft + (1-)Iright
  • 15. Affect of Window Size 0 1 left right 0 1
  • 16. Affect of Window Size 0 1 0 1
  • 17. Good Window Size 0 1 “Optimal” Window: smooth but not ghosted
  • 18. What is the Optimal Window? To avoid seams • window = size of largest prominent feature To avoid ghosting • window <= 2*size of smallest prominent feature Natural to cast this in the Fourier domain • largest frequency <= 2*size of smallest frequency • image frequency content should occupy one “octave” (power of two) FFT
  • 19. What if the Frequency Spread is Wide Idea (Burt and Adelson) • Compute Fleft = FFT(Ileft), Fright = FFT(Iright) • Decompose Fourier image into octaves (bands) – Fleft = Fleft 1 + Fleft 2 + … • Feather corresponding octaves Fleft i with Fright i – Can compute inverse FFT and feather in spatial domain • Sum feathered octave images in frequency domain Better implemented in spatial domain FFT
  • 20. Octaves in the Spatial Domain Bandpass Images Lowpass Images
  • 25. Laplacian Pyramid/Stack Blending General Approach: 1. Build Laplacian pyramid/stack LX and LY from images X and Y 2. Build a Gaussian pyramid/stack Ga from the binary alpha mask a 3. Form a combined pyramid/stack LBlend from LX and LY using the corresponding levels of GA as weights: • LBlend(i,j) = Ga(I,j,)*LX(I,j) + (1-Ga(I,j))*LY(I,j) 4. Collapse the LBlend pyramid/stack to get the final blended image
  • 26. Horror Photo © david dmartin (Boston College)
  • 27. Results from this class (fall 2005) © Chris Cameron
  • 28. Simplification: Two-band Blending Brown & Lowe, 2003 • Only use two bands: high freq. and low freq. • Blends low freq. smoothly • Blend high freq. with no smoothing: use binary alpha
  • 29. Low frequency (l > 2 pixels) High frequency (l < 2 pixels) 2-band “Laplacian Stack” Blending
  • 32. Da Vinci and Peripheral Vision https://en.wikipedia.org/wiki/Speculations_about_Mona_Lisa#Smile
  • 33. Leonardo playing with peripheral vision Livingstone, Vision and Art: The Biology of Seeing
  • 34. Early processing in humans filters for various orientations and scales of frequency Perceptual cues in the mid frequencies dominate perception When we see an image from far away, we are effectively subsampling it Early Visual Processing: Multi-scale edge and blob filters Clues from Human Perception
  • 35. Frequency Domain and Perception Campbell-Robson contrast sensitivity curve
  • 36. Lossy Image Compression (JPEG) Block-based Discrete Cosine Transform (DCT)
  • 37. Using DCT in JPEG The first coefficient B(0,0) is the DC component, the average intensity The top-left coeffs represent low frequencies, the bottom right – high frequencies
  • 38. Image compression using DCT Quantize • More coarsely for high frequencies (which also tend to have smaller values) • Many quantized high frequency values will be zero Encode • Can decode with inverse dct Quantization table Filter responses Quantized values
  • 39. JPEG Compression Summary Subsample color by factor of 2 • People have bad resolution for color Split into blocks (8x8, typically), subtract 128 For each block a. Compute DCT coefficients b. Coarsely quantize – Many high frequency components will become zero c. Encode (e.g., with Huffman coding) http://en.wikipedia.org/wiki/YCbCr http://en.wikipedia.org/wiki/JPEG
  • 40. Block size in JPEG Block size • small block – faster – correlation exists between neighboring pixels • large block – better compression in smooth regions • It’s 8x8 in standard JPEG