DOC PREVIEW
CMU CS 15463 - Lecture

This preview shows page 1-2-3-25-26-27-28-50-51-52 out of 52 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

High Dynamic Range ImagesThe Grandma ProblemProblem: Dynamic RangeSlide Number 4Long ExposureShort ExposureCamera CalibrationThe Image Acquisition PipelineSlide Number 9Slide Number 10Varying ExposureCamera is not a photometer!Recovering High Dynamic Range Radiance Maps from PhotographsWays to vary exposureShutter SpeedShutter SpeedThe AlgorithmSlide Number 18The MathMatlab CodeResults: Digital CameraSlide Number 22Results: Color FilmRecovered Response CurvesThe Radiance MapThe Radiance MapPortable FloatMap (.pfm)Radiance Format (.pic, .hdr)ILM’s OpenEXR (.exr)Now What?Tone MappingSimple Global OperatorGlobal Operator (Reinhart et al)Global Operator ResultsSlide Number 35What do we see?What does the eye sees?MetamoresCompressing Dynamic RangeCompressing and Companding High Dynamic Range Images with Subband ArchitecturesDynamic Range ProblemRange CompressionMultiscale Subband DecompositionPoint Nonlinearity on SubbandsSmooth Gain ControlSmooth Gain Control Reduces DistortionSmooth Gain Control on SubbandsSlide Number 48Slide Number 49Slide Number 50Slide Number 51Slide Number 52High Dynamic Range Images15-463: Computational PhotographyAlexei Efros, CMU, Fall 2007…with a lot of slides stolen from Paul Debevec and Yuanzhen Li, © Alyosha EfrosThe Grandma ProblemThe Grandma ProblemProblem: Dynamic RangeProblem: Dynamic Range150015001125,00025,000400,000400,0002,000,000,0002,000,000,000The real world is high dynamic range. The real world is high dynamic range.pixel (312, 284) = 42pixel (312, 284) = 42ImageImage42 photos?42 photos?Long ExposureLong Exposure10-610610-6106Real worldPicture0 to 255High dynamic rangeShort ExposureShort Exposure10-610610-6106Real worldPictureHigh dynamic range0 to 255Camera CalibrationCamera Calibration• Geometric– How pixel coordinates relate to directions in the world • Photometric– How pixel values relate to radiance amounts in the world • Geometric– How pixel coordinates relate to directions in the world• Photometric– How pixel values relate to radiance amounts in the worldThe Image Acquisition Pipeline The Image Acquisition Pipelinesceneradiance(W/sr/m )sceneradiance(W/sr/m )∫∫sensorirradiancesensorirradiancesensorexposuresensorexposurelatentimagelatentimageLensLensShutterShutterFilmFilmElectronic CameraElectronic Camera22ΔΔttfilmdensityfilmdensityanalogvoltagesanalogvoltagesdigitalvaluesdigitalvaluespixelvaluespixelvaluesDevelopmentDevelopmentCCDCCDADCADCRemappingRemappingloglog Exposure = Exposure = loglog (Radiance(Radiance * * ΔΔtt))Imaging system response functionImaging system response functionPixelPixelvaluevalue0255(CCD photon count)Varying ExposureVarying ExposureCamera is not a photometer!Camera is not a photometer!• Limited dynamic range⇒ Perhaps use multiple exposures?• Unknown, nonlinear response⇒ Not possible to convert pixel values to radiance • Solution:– Recover response curve from multiple exposures, then reconstruct the radiance map • Limited dynamic range⇒ Perhaps use multiple exposures?• Unknown, nonlinear response⇒ Not possible to convert pixel values to radiance• Solution:– Recover response curve from multiple exposures, then reconstruct the radiance mapRecovering High Dynamic Range Radiance Maps from Photographs Recovering High Dynamic Range Radiance Maps from PhotographsPaul DebevecJitendra MalikPaul DebevecJitendra MalikAugust 1997August 1997Computer Science DivisionUniversity of California at BerkeleyComputer Science DivisionUniversity of California at BerkeleyWays to vary exposureWays to vary exposure Shutter Speed (*) F/stop (aperture, iris) Neutral Density (ND) Filters Shutter Speed (*) F/stop (aperture, iris) Neutral Density (ND) FiltersShutter SpeedShutter Speed• Ranges: Canon D30: 30 to 1/4,000 sec.• Sony VX2000: ¼ to 1/10,000 sec.• Pros:• Directly varies the exposure• Usually accurate and repeatable• Issues:• Noise in long exposures• Ranges: Canon D30: 30 to 1/4,000 sec.• Sony VX2000: ¼ to 1/10,000 sec.• Pros:• Directly varies the exposure• Usually accurate and repeatable• Issues:• Noise in long exposuresShutter SpeedShutter Speed• Note: shutter times usually obey a power series – each “stop” is a factor of 2 • ¼, 1/8, 1/15, 1/30, 1/60, 1/125, 1/250, 1/500, 1/1000 sec • Usually really is:• ¼, 1/8, 1/16, 1/32, 1/64, 1/128, 1/256, 1/512, 1/1024 sec • Note: shutter times usually obey a power series – each “stop” is a factor of 2• ¼, 1/8, 1/15, 1/30, 1/60, 1/125, 1/250, 1/500, 1/1000 sec• Usually really is:• ¼, 1/8, 1/16, 1/32, 1/64, 1/128, 1/256, 1/512, 1/1024 sec• 3 •• 33• 1 •• 11• 2 •• 22ΔΔtt == 11 secsec• 3 •• 33• 1 •• 11• 2 •• 22ΔΔtt == 1/16 1/16 secsec• 3 •• 33•1•• 11•2•• 22ΔΔtt == 44 secsec• 3 •• 33• 1 •• 11• 2 •• 22ΔΔtt == 1/64 1/64 secsecThe AlgorithmThe AlgorithmImage seriesImage seriesImage series• 3 •• 33• 1 •• 11• 2 •• 22ΔΔtt == 1/4 1/4 secsecExposure = Radiance ×ΔtExposure = Radiance × Δtlog Exposure = log Radiance + log Δtlog Exposure = log Radiance + log ΔtPixel Value Z = f(Exposure)Pixel Value Z = f(Exposure)Response CurveResponse Curveln Exposureln ExposureAssuming unit radiancefor each pixelAssuming unit radiancefor each pixelAfter adjusting radiances to obtain a smooth response curve After adjusting radiances to obtain a smooth response curvePixel valuePixel value333111222ln Exposureln ExposurePixel valuePixel valueThe MathThe Math• Let g(z) be the discrete inverse response function• For each pixel site i in each image j, want:• Solve the overdetermined linear system:• Let g(z) be the discrete inverse response function• For each pixel site i in each image j, want:• Solve the overdetermined linear system:fitting term smoothness termlnRadiancei+lnΔtj−g(Zij)[]2j=1P∑i=1N∑+λ′ ′ g (z)2z=ZminZmax∑lnRadiancei+lnΔtj= g(Zij)Matlab Code Matlab Codefunction [g,lE]=gsolve(Z,B,l,w)n = 256;A = zeros(size(Z,1)*size(Z,2)+n+1,n+size(Z,1));b = zeros(size(A,1),1);k = 1; %% Include the data-fitting equationsfor i=1:size(Z,1)for j=1:size(Z,2)wij = w(Z(i,j)+1);A(k,Z(i,j)+1) = wij; A(k,n+i) = -wij; b(k,1) = wij * B(i,j);k=k+1;endendA(k,129) = 1; %% Fix the curve by setting its middle value tok=k+1;for i=1:n-2 %% Include the smoothness equationsA(k,i)=l*w(i+1); A(k,i+1)=-2*l*w(i+1);


View Full Document

CMU CS 15463 - Lecture

Documents in this Course
Lecture

Lecture

36 pages

Lecture

Lecture

31 pages

Wrap Up

Wrap Up

5 pages

morphing

morphing

16 pages

stereo

stereo

57 pages

mosaic

mosaic

32 pages

faces

faces

33 pages

MatTrans

MatTrans

21 pages

matting

matting

27 pages

matting

matting

27 pages

wrap up

wrap up

10 pages

Lecture

Lecture

27 pages

Lecture

Lecture

40 pages

15RANSAC

15RANSAC

54 pages

lecture

lecture

48 pages

Lecture

Lecture

42 pages

Lecture

Lecture

11 pages

Lecture

Lecture

39 pages

stereo

stereo

57 pages

Lecture

Lecture

75 pages

texture

texture

50 pages

Lectures

Lectures

52 pages

Load more
Download Lecture
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?