+ All Categories
Home > Documents > A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly...

A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly...

Date post: 30-Mar-2021
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
68
A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical & Computer Engineering
Transcript
Page 1: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

A Poorly Focused Talk

Prof. Hank Dietz

CCC, January 16, 2014

University of KentuckyElectrical & Computer Engineering

Page 2: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

My Best-Known Toys

Page 3: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Some Of My Other Toys

Page 4: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 5: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Computational Photography

Cameras as computing systems;using computation to enhance camera abilities

and / or to process the data captured.

∙ New camera / sensor / processing models ∙ Intelligent computer control of capture ∙ Detection / manipulation of image properties

Page 6: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Canon Hack Development Kit (CHDK)

 Enables running arbitrary C code in a Canon PowerShot with full access to camera

Page 7: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Spring 2009, EE499

 ∙ Jennifer Danhauer, Joe Lanford, RossLevine project to capture a depthmap insidea Canon PowerShot using depth-from-focus

∙ CHDK scripting so a single press captures a sequence with different focus distances ∙ CHDK processing modified with custom C code to measure blur & combine images ∙ Blur measurement was fairly state-of-the-art

Page 8: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 9: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

How Good Is The Depthmap?

∙ Accurate depths at edges ∙ No depth in featureless fields ∙ Wrong depths near edges! ∙ Wrong by a lot ∙ Wrong both directions ∙ Seems to “echo” edges...

Page 10: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Point Spread Function (PSF)

∙ Describes the response of an imaging system to a point source (impulse response)

∙ PSF is the spatial domain representation ofthe modulation transfer function (MTF)

∙ An image is essentially the sum of the PSFsof all points of light in the scene

∙ What does a typical out-of-focus (OOF) PSFlook like?

Page 11: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Measuring OOF PSF

∙ Work in stable, dark, unobstructed, area∙ Place point light source at 10m

(often can use a white LED penlight)∙ Manual focus to 1m, 2m, or 3m∙ Expose to show detail inside OOF PSF

Page 12: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

What Went Wrong?

∙ Most image processing algorithms modelOOF PSF as Gaussian blur:

Page 13: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Out-Of-Focus Isn't Blurry!

∙ OOF PSF typically has a sharp edge!

Page 14: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Why The Sharp Edge?

Page 15: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Why Should I Care?

∙ OOF PSF is easy to measure...collected and measured 125+ lenses

∙ OOF PSF is not the same for all lenses:– Diagnose inherent & acquired lens defects– Forensic applications– Predict & shape bokeh– Recovery of depth & stereo capture

Page 16: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Diagnostic Use

∙ Ever buy a used lens?∙ Two classes of lens defects:

– Inherent from design or manufacture– Acquired from use, storage, and age

Page 17: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Vignetting

Page 18: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Decentering

Page 19: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Axial Chromatic Aberration

Page 20: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Undercorrected / Overcorrected Spherical Aberration

Page 21: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Dust & Dirt

Page 22: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Oily Fingerprint

Page 23: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Fungus Infection

Page 24: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Nicked Element

Page 25: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Element Separation

Page 26: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Forensic Use

∙ Identify faked images∙ Identify the lens used:

– Defects as lens fingerprints– Distinguish most likely type of lens

Page 27: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Compact Camera Lens

Page 28: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Ultrawide Zoom (corner)

Page 29: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Conventional Telephoto

Page 30: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Mirror Lens

Page 31: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Bokeh

∙ The properties of OOF regions of images– Not about quantity or size of OOF things– Good bokeh look smooth, bad don't– Worst is nisen bokeh double line artifacts

∙ OOF PSF define most bokeh properties:– Bright center ⇒ good bokeh– Bright outer ring ⇒ nisen bokeh– Vignette + field curvature ⇒ “swirly” bokeh– Axial CA ⇒ “bokeh CA”

Page 32: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Axial CA After / Before Focus

Page 33: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Axial CA in a photo

Page 34: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Extreme Undercorrected SA,After / Before Focus

Page 35: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Extreme Undercorrected SAin a photo

Page 36: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Minolta's STF Apodization(Smooth Trans Focus)

∙ The Sony/Minolta 135mm f/2.8 t/4.5 STF incorporates an apodizing element

Page 37: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Dynamic Apodization

∙ Minolta Maxxum 7 STF mode (Custom 25-2)∙ Multiple exposure with varying aperture

Page 38: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Apertures For Soft FocusImagon & Fujinon “Sink Strainer” apertures

(photos from mflenses.com and m42.org)

Page 39: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Apertures For Bokeh Effects

E.g., from bokehmasterskit.com

Page 40: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Depth & Stereo Capture

∙ OOF “blur” is really multiple viewpoints notconverging at the film/sensor plane

∙ Diameter of OOF PSF encodes distance:Diameter=const1-(const2/ObjectDistance)

∙ Sign of Diameter encodes before/after focus∙ OOF viewpoints encode stereo pair data

and can be recovered by computation

Page 41: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Coded Aperture Deconvolution(images from MIT CSAIL)

Page 42: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Why Not Color-Code Aperture?

∙ Color code views through left and right sides of the lens... to directly capture an anaglyph

∙ Stereo view with glasses (even live view)∙ Computationally extracting the views allows:

– Full color stereo pairs– After-the-fact refocus, depth capture, etc.

∙ Design for reprocessing, e.g., green/magentaInstead of red/cyan

Page 43: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Anaglyph Capture Aperture

Page 44: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 45: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 46: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 47: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 48: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 49: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 50: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 51: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 52: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 53: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 54: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 55: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 56: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 57: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 58: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 59: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 60: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 61: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 62: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Can We Computationally CreateA Full-Color Stereo Pair?

∙ Theoretically it's impossible...

Red Green Blue

Page 63: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 64: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Computed Left & Right Views

Page 65: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical
Page 66: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Computed Left & Right Views

Page 67: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Conclusion

∙ Out-of-focus really isn't blurry∙ The OOF PSF tells you a lot about a lens...

and about the scene (e.g., depth & stereo)∙ Understanding & manipulating OOF PSF can

enable things you couldn't do otherwise∙ I guess Hank isn't going to show us all 125+

of his lenses....

Page 68: A Poorly Focused Talk - Aggregate.Orgaggregate.org/DIT/ccc20140116.pdf · 2014. 1. 16. · A Poorly Focused Talk Prof. Hank Dietz CCC, January 16, 2014 University of Kentucky Electrical

Want To Know More?

Watch our research WWW site:


Recommended