<<

US00897 1625B2

(12) United States Patent (10) Patent No.: US 8,971,625 B2 Pitts et al. (45) Date of Patent: Mar. 3, 2015

(54) GENERATING DOLLY ZOOM EFFECT (58) Field of Classification Search USING LIGHT FIELD IMAGE DATA USPC ...... 382/154, 167, 254, 269, 275,284, 382/298–300; 348/43, 97,99, 104, 208, (71) Applicant: Lytro, Inc., Mountain View, CA (US) 348/235, 241,335,342; 375/240.16; 358/518; 34.5/660 (72) Inventors: Colvin Pitts, Snohomish, WA (US); See application file for complete search history. Timothy James Knight, Palo Alto, CA (US); Chia-Kai Liang, San Jose, CA (56) References Cited (US); Yi-Ren Ng, Palo Alto, CA (US) U.S. PATENT DOCUMENTS (73) Assignee: Lytro, Inc., Mountain View, CA (US) 725,567 A 4, 1903 Ives 4,383,170 A * 5/1983 Takagi et al...... 250,216 (*) Notice: Subject to any disclaimer, the term of this (Continued) patent is extended or adjusted under 35 U.S.C. 154(b) by 0 days. FOREIGN PATENT DOCUMENTS (21) Appl. No.: 14/311,592 DE 19624421 6, 1996 WO O3052465 6, 2003 (22) Filed: Jun. 23, 2014 (Continued) OTHER PUBLICATIONS (65) Prior Publication Data US 2014/0300646A1 Oct. 9, 2014 Adelson et al., “Single Lens Stereo with a Plenoptic Camera' IEEE Translation on Pattern Analysis and Machine Intelligence, Feb. 1992. vol. 14, No. 2, pp. 99-106. Related U.S. Application Data (Continued) (63) Continuation of application No. 13/688,026, filed on Primary Examiner — Amir Alavi Nov. 28, 2012, now Pat. No. 8,811,769. (74) Attorney, Agent, or Firm — Raub Vogel Law Office (60) Provisional application No. 61/604,155, filed on Feb. (57) ABSTRACT 28, 2012, provisional application No. 61/604,175, filed on Feb. 28, 2012, provisional application No. According to various embodiments, a dolly Zoom effect is 61/604,195, filed on Feb. 28, 2012, provisional generated using light field image data. The dolly Zoom effect application No. 61/655,790, filed on Jun. 5, 2012. simulates an in-camera technique wherein a camera moves toward or away from the subject in such away that the subject (51) Int. C. is kept at the same size throughout the effect. The effect G06K 9/00 (2006.01) causes the relative size of foreground background elements to H04N I3/00 (2006.01) change while foreground elements such as the Subject remain the same size. By varying a parameter while projecting the (Continued) light field image, the size of each object in the projection (52) U.S. C. image scales depending on its relative depth as compared CPC G06T3/40 (2013.01); H04N 13/00 (2013.01); with the depth of the target subject, thus simulating the dolly H04N5/225 (2013.01); G06T5/003 (2013.01); Zoom effect without any need to physically move the camera. (Continued) 18 Claims, 22 Drawing Sheets

Lower-left COP Upper-right COP

Unscaled 2-D image matches window size)

Scaled 2-D image (1.25x window size) US 8,971,625 B2 Page 2

(51) Int. Cl. 2009/0027542 A1 1/2009 Yamamoto et al. H04N 5/225 (2006.01) 2009/0041381 A1 2/2009 Georgiev et al. 2009/0041448 A1 2/2009 Georgiev et al. G06T5/00 (2006.01) 2009.0102956 A1 4/2009 Georgiev G06T5/50 (2006.01) 2009/0128658 A1 5/2009 Hayasaka et al. GO6T3/40 (2006.01) 2009.0128669 A1 5/2009 Ng et al. (52) U.S. Cl. 2009, O1401.31 A1 6, 2009 Utagawa CPC G06T5/006 (2013.01); G06T 5/50 (2013.01); 29.2009, O190022 A1A 7/2009228 IchimuraIgie et al. G06T 2200/21 (2013.01); G06T 2207/10052 2009/0190024 A1 7/2009 Hayasaka et al. (2013.01); G06T 2207/20208 (2013.01) 2009,0268,970 A1 10, 2009 Babacan et al. USPC ...... 382/167:345/660 2009/0273843 A1 11/2009 Raskar et al. 2009/0295829 A1 12/2009 Georgiev et al. 2010, 0026852 A1 2/2010 Ng et al. (56) References Cited 2010.0128145 A1 5, 2010 Pitts et al. 2010/0129.048 A1 5, 2010 Pitts et al. U.S. PATENT DOCUMENTS 2010, 0141802 A1 6/2010 Knight et al.

4,661,986 A * 4, 1987 Adelson ...... 382,154 2011/01291.652010/0277629 A1 1 6,1/2010 2011 TanakaLim et al. 4,694, 185 A * 9/1987 Weiss ... 250,208.1 2012/0050562 A1 3/2012 Perwasset all 4,920,419 A * 4/1990 Easterly ...... 348/97 2012,0327222 A1 12, 2012 Nget al. 5,076,687. A 12/1991 Adelson 2013/01 13981 A1 5/2013 Knight etal 5,282,045. A 1/1994 Mimura et al. 2013/021.5226 Ai: 82013 Chaivier etal 348/43 5,610,390 A 3/1997 Miyano ...... 5,748,3717. A 5/199836 Cathey,E." Jr. et al. FOREIGN PATENT DOCUMENTS 5,949,433 A 9, 1999 Klotz 6,023,523 A 2/2000 Cohen et al. WO 2006039486 4/2006 6,028,606 A 2/2000 Kolb et al. WO 2006129677 12/2006 6,061.400 A 5, 2000 Pearlstein et al. WO 2007O92545 8, 2007 6,097.394 A 8/2000 Levoy et al. WO 2007O92581 8, 2007 6,201,899 B1 3/2001 Bergen 6,320,979 B1 1 1/2001 Melen OTHER PUBLICATIONS 6,483,535 B1 1 1/2002 Tamburrino et al. & 8 --> 6,577,342 B1 6, 2003 Webster Adobe Systems Incorporated, “XMP Specification', Sep. 2005. 6,597,859 B1 7/2003 Leinhart et al. Adobe, “Photoshop CS6 in depth: Digital Negative (DNG)'. http:// 6,687,419 B1 2/2004 Atkin www.adobe.com/products/photoshop/extend.displayTab2html. 6,842,297 B2 1/2005 Dowski, Jr. et al. Retrieved Jan. 2013. 6,900,841 B1 5, 2005 Mihara Agarwala, A., et al., “Interactive Digital Photomontage.” ACM 6,927,922 B2 8/2005 George et al. 7,034.866 B1 4/2006 Colmenarez et al. Transactions on Graphics, Proceedings of SIGGRAPH 2004, vol. 32. 7,164,807 B2 1/2007 Morton No. 3, 2004. 7.336,430 B2 2/2008 George Bae, S., et al., “Defocus Magnification'. Computer Graphics Forum, 7,620,309 B2 11/2009 Georgiev vol. 26, Issue 3 (Proc. of Eurographics 2007), pp. 1-9. 7.623,726 B1 1 1/2009 Georgiev Chai, Jin-Xang et al., “Plenoptic Sampling”. ACM SIGGRAPH 7,723,662 B2 5/2010 Levoy et al. 2000, Annual Conference Series, 2000, pp. 307-318. 7,936,392 B2 5/2011 Ng et al. Dowski et al., “Wavefront& 8 coding: a modern method of achieving 7,945,6537,949,252 B2B1 5/2011 ZuckerbergGeorgiev et al. high preys int, low s ging systems's SPIE Proceed 7,982,776 B2 7/2011 Dunki-Jacobs et al. Ings, Vol. Jul. , pp. rty. 8, 115,814 B2 2/2012 Iwase et al. Fitzpatrick, Brad, “Camlistore', Feb. 1, 2011. 8,155,478 B2 4/2012 Vitsnudel et al. Georgiev, T., et al., “Spatio-Angular Resolution Tradeoff in Integral 8,290.358 B1 10/2012 Georgiev Photography.” Proceedings of Eurographics Symposium on Render 8.494,304 B2 7, 2013 Venable et al. ing, 2006 ck 8,7240E. 14 E.B2 133:5/2014 Ng" et al. " " ' GoideretHaeberli, "Aal. MultifocusThe lumigraph Method SIGGRAPH for Controlling 96 pp. Depth 45-54. of Field” 8,811,769 B1* 8/2014 Pitts et al...... 382,275 GRAPHICA Obscura, 1994, pp. 1-3. 2002/0159030 A1 10/2002 Frey et al. Isaksen, A., et al., “Dynamically Reparameterized Light Fields.” 2003. O103670 A1 6/2003 Schoelkopfet al. SIGGRAPH 2000, pp. 297-306, 2006. 2003.0117511 A1 6, 2003 Belz et al. Ives, H., "Optical properties of a Lippman lenticulated sheet.” J. Opt. 2003/O156O77 A1 8/2003 Balogh Soc. Am. 21, 171 (1931) 2004011417.6 A1 6, 2004 Bodin et al. I H b “Parall P Made with a L Di 2004/0257360 A1 12/2004 Sieckmann Sri Earl ax Panoramagrams Made win a Large LJ1am 2005, 0080602 A1 4/2005 Snyder et al. eler Lens, 2006, O13.0017 A1 6, 2006 Cohen et al. Jackson et al., “Selection of a Convolution Function for Fourier 2007/0071316 A1 3, 2007 Kubo Inversion Using Gridding IEEE Transactions on Medical Imaging, 2007/0230944 A1 10/2007 Georgiev Sep.1991, vol. 10, No. 3, pp. 473–478. 2007/0252074 A1 1 1/2007 Ng et al. Levin, A., et al., “Image and Depth from a Conventional Camera with 2008.0007626 A1 1, 2008 Wernersson a Coded Aperture”, SIGGRAPH 2007, pp. 1-9. 2008, OO18668 A1 1/2008 Yamauchi Levoy, M., et al., “Light Field Microscopy.” ACM Transactions on 2008-0131019 A1 6/2008 Ng Graphics, vol. 25, No. 3, Proceedings SIGGRAPH 2006. 2008. O152215 A1 6, 2008 Horie et al. Levoy et al., “Light Field Rendering” SIGGRAPH 96 Proceeding 2008. O180792 A1 7/2008 Georgiev 1996. pp 31.42 2008/O187305 A1 8, 2008 Raskar et al. P. 14. -- -%d 2008.0193026 A1 8/2008 Horie et al. S.K."... an gpulational Imaging” IEEE Computer 2008, 0226274 A1 9/2008 Spielberg ociety, Aug. , pp. 40-55. 2008/0266655 A1 10/2008 Levoy et al. Levoy, M., "Stanford Light Field Microscope Project', 2008. 2008/0277566 A1 1 1/2008 Utagawa Liang, Chia-Kai, et al., “Programmable Aperture Photography: Mul 2008/03098.13 A1 12, 2008 Watanabe tiplexed Light Field Acquisition”, ACM SIGGRAPH 2008. US 8,971,625 B2 Page 3

(56) References Cited Sokolov, "Autostereoscopy and Integral Photography by Professor Lippmann's Method”, 1911, pp. 23-29. OTHER PUBLICATIONS Sun, Jian, et al., “Stereo Matching Using Belief Propagation', 2002. Takahashi, Keita, et al., “All in-focus View Synthesis from Under Lippmann, “Reversible Prints'. Communication at the French Soci Sampled Light Fields”, ICAT 2003, Tokyo, Japan. ety of Physics, Journal of Physics, Mar. 20, 1908, pp. 821-825. Tanida et al., “Thin observation module by bound optics (TOMBO): Lumsdaine et al., “Full Resolution Lightfield Rendering” Adobe concept and experimental verification’ Applied Optics 40, 11 (Apr. Technical Report Jan. 2008, pp. 1-12. 10, 2001), pp. 1806-1813. Naemura et al., "3-D Computer Graphics based on Integral Photog Vaish, V., et al., “Synthetic Aperture Focusing Using a Shear-Warp raphy” Optics Express, Feb. 12, 2001. vol. 8, No. 2, pp. 255-262. Factorization of the Viewing Transform.” Workshop on Advanced 3D Ng, R., et al. “Light Field Photography with a Hand-held Plenoptic Imaging for Safety and Security (in conjunction with CVPR 2005). Camera.” Stanford Technical Report, CSTR 2005-2, 2005. Vaish et al., “Using plane + parallax for calibrating dense camera Ng, R., “Digital Light Field Photography.” Dissertation, Department arrays'. In Proceedings CVPR 2004, pp. 2-9. of Computer Science, Stanford University, Jun. 2006. Wilburn et al., "High Performance Imaging using Large Camera Ng., R., “Fourier Slice Photography.” ACM Transactions on Graph Arrays'. ACM Transactions on Graphics (TOG), vol. 24. Issue 3 (Jul. ics, Proceedings of SIGGRAPH 2005, vol. 24, No. 3, 2005, pp. 2005), Proceedings of ACM SIGGRAPH 2005, pp. 765-776. T35-744. Zheng, C. et al., “Parallax Photography: Creating 3D Cinematic Okano et al., “Three-dimensional video system based on integral Effects from Stills'. Proceedings of Graphic Interface, 2009. photography” Optical Engineering, Jun. 1999, vol. 38, No. 6, pp. 1072-1077. * cited by examiner U.S. Patent Mar. 3, 2015 Sheet 1 of 22 US 8,971,625 B2

U.S. Patent US 8,971,625 B2

Z“5914 U.S. Patent Mar. 3, 2015 Sheet 3 of 22 US 8,971,625 B2

s . \ s/

-1. S 5. O

g-3

U.S. Patent Mar. 3, 2015 Sheet 5 of 22 US 8,971,625 B2

U.S. Patent Mar. 3, 2015 Sheet 6 of 22 US 8,971,625 B2

U.S. Patent US 8,971,625 B2

U.S. Patent Mar. 3, 2015 US 8,971,625 B2

ZI8 ?unquad\f U.S. Patent Mar. 3, 2015 Sheet 11 of 22 US 8,971,625 B2

1OOO Start

1001 Receive image 1

10O2 Combine values of multiple pixels in image to single pixel value in higher level image

1003 Normalize pixel values

1004 Camp image

1005 Apply low-pass filter

No 1006 is pull operation gomplete? Yes

1007 1099 Output image k End

F.G. 10 U.S. Patent Mar. 3, 2015 Sheet 12 of 22 US 8,971,625 B2

11OO Start

101. Receive image k

1102 For each pixel at current level, identify target pixels in lower level image

1104 103 Replace target

For each target pixel, is

pixel with weighted influence value for sum of its value target pixel < specified threshold? and pixel value from Current eve

1105 is push operation gomplete

1106

Normalize

107 Output image 0

F.G. 11 U.S. Patent Mar. 3, 2015 Sheet 13 of 22 US 8,971,625 B2

1201. Gather calibration data

1202 Generate 2D output images from light field data

1203 Analyze noise in 2D output imageS

1204 Record noise distribution

F.G. 12A U.S. Patent Mar. 3, 2015 Sheet 14 of 22 US 8,971,625 B2

1205 Load appropriate noise distribution based on capture conditions

12O6 Generate noise ceiling distribution

12O7 Add noise to generated output images, based on difference between noise ceiling distribution and noise distribution for processing parameters

F.G. 12B U.S. Patent Mar. 3, 2015 Sheet 15 of 22 US 8,971,625 B2

1301. Revalue each pixel as a function of its pre-step value and pre step values of neighboring pixels

303 Has sufficient erosion taken place?

FIG. 13 U.S. Patent Mar. 3, 2015 Sheet 16 of 22 US 8,971,625 B2

1400 Start

1401 Reduce each disk using grayscale image erosion

1402 east-Souares fit lines to disk centers along orthogonal directions

1403 Use fitted lines to fit rigid square (or hexagonal) grid to light-field image

1405 For each grid region, compute corresponding disk Center

1406 For each grid region, compute displacement vector as vector distance from region center to computed disk center

14O7 Apply spatial filter

1408 Compute final disk center for each grid region

1499 End FIG, 14 U.S. Patent Mar. 3, 2015 Sheet 17 Of 22 US 8,971,625 B2

1500 Start

15O1 Scale 2-D image

15O2 Define range of motion for 2-D image relative to screen

1503 Couple position of 2-D image with position of center of

1504 Receive user input

1505 Adjust center of perspective according to received input

NO 1506 1599

More input? End

F.G. 15 U.S. Patent Mar. 3, 2015 Sheet 18 of 22 US 8,971,625 B2

U.S. Patent Mar. 3, 2015 Sheet 19 of 22 US 8,971,625 B2

O. O. O. A. V a C a U.S. Patent US 8,971,625 B2 U.S. Patent US 8,971,625 B2 U.S. Patent Mar. 3, 2015 Sheet 22 of 22 US 8,971,625 B2

O O ca

US 8,971,625 B2 1. 2 GENERATING DOLLY ZOOM EFFECT simulates an in-camera technique wherein a camera moves USING LIGHT FIELD IMAGE DATA toward or away from the subject in such away that the subject is kept at the same size throughout the effect. The effect CROSS-REFERENCE TO RELATED causes the relative size of foreground background elements to APPLICATIONS change while foreground elements such as the Subject remain The present application claims priority as a continuation of the same size. By varying a parameter while projecting the U.S. Utility application Ser. No. 13/688,026 for “Extended light field image, the size of each object in the projection and Variable Center of Perspective in Light image scales depending on its relative depth as compared field Processing, filed on Nov. 28, 2012, now U.S. Pat. No. with the depth of the target subject, thus simulating the dolly 8,811,769 the disclosure of which is incorporated herein by 10 Zoom effect without any need to physically move the camera. reference in its entirety. U.S. Utility application Ser. No. 13/688,026 claims prior BRIEF DESCRIPTION OF THE DRAWINGS ity from U.S. Provisional Application Ser. No. 61/604,155 for “Compensating for Sensor Saturation and Microlens Modu The accompanying drawings illustrate several embodi lation During Light field Image Processing, filed on Feb. 28, 15 ments of the invention and, together with the description, 2012, the disclosure of which is incorporated herein by ref erence in its entirety. serve to explain the principles of the invention according to U.S. Utility application Ser. No. 13/688,026 further claims the embodiments. One skilled in the art will recognize that the priority from U.S. Provisional Application Ser. No. 61/604, particular embodiments illustrated in the drawings are merely 175 for “Compensating for Variation in Microlens Position exemplary, and are not intended to limit the scope of the During Light field Image Processing, filed on Feb. 28, 2012, present invention. the disclosure of which is incorporated herein by reference in FIG. 1 depicts a portion of a light field image. its entirety. FIG. 2 depicts transmission of light rays through a micro U.S. Utility application Ser. No. 13/688,026 further claims lens to illuminate pixels in a digital sensor. priority from U.S. Provisional Application Ser. No. 61/604, 25 FIG. 3 depicts an arrangement of a light field capture 195 for “Light field Processing and Analysis, Camera Con device wherein a microlens array is positioned Such that trol, and User Interfaces and Interaction on Light field Cap images of a main-lens aperture, as projected onto the digital ture Devices', filed on Feb. 28, 2012, the disclosure of which is incorporated herein by reference in its entirety. sensor, do not overlap. U.S. Utility application Ser. No. 13/688,026 further claims FIG. 4 depicts an example of projection and reconstruction priority from U.S. Provisional Application Ser. No. 61/655, 30 to reduce a 4-D light field representation to a 2-D image. 790 for “Extending Light field Processing to Include FIG. 5 depicts an example of incorrect calibration. Extended Depth of Field and Variable Center of Perspective”, FIG. 6 depicts an example of a pull-push image stack filed on Jun. 5, 2012, the disclosure of which is incorporated containing three levels, for implementing pull-push infilling herein by reference in its entirety. to reduce or eliminate holes in the image resulting from some The present application is related to U.S. Utility applica 35 pixels having low influence values, according to one embodi tion Ser. No. 11/948,901 for “Interactive Refocusing of Elec ment. tronic Images, filed Nov.30, 2007, the disclosure of which FIG. 7 depicts an example of exaggerated center-of-per is incorporated herein by reference in its entirety. spective movement, according to one embodiment. The present application is related to U.S. Utility applica FIG. 8A depicts an example of an architecture for imple tion Ser. No. 12/703,367 for “Light field Camera Image, File 40 menting the present invention in a light field capture device, and Configuration Data, and Method of Using, Storing and according to one embodiment. Communicating Same... filed Feb. 10, 2010, the disclosure of FIG. 8B depicts an example of an architecture for imple which is incorporated herein by reference in its entirety. menting the present invention in a post-processing system The present application is related to U.S. Utility applica communicatively coupled to a light field capture device, tion Ser. No. 13/027,946 for “3D Light Field Cameras, 45 according to one embodiment. Images and Files, and Methods of Using, Operating, Process FIG.9 depicts an example of an architecture for a light field ing and Viewing Same', filed on Feb. 15, 2011, the disclosure of which is incorporated herein by reference in its entirety. camera for implementing the present invention according to The present application is related to U.S. Utility applica one embodiment. tion Ser. No. 13/155,882 for “Storage and Transmission of FIG.10 is a flow diagram depicting an example of a method Pictures Including Multiple Frames, filed Jun. 8, 2011, the 50 for pulling 2-D image values up into array of images of disclosure of which is incorporated herein by reference in its gradually reduced dimensions, according to one embodi entirety. ment. The present application is related to U.S. Utility Applica FIG. 11 is a flow diagram depicting an example of a method tion Serial 13/664,938 for “Light-field Camera Image, File for pushing reduced-dimension 2-D images down into and Configuration Data, and Method of Using, Storing and 55 higher-resolution images, according to one embodiment. Communicating Same... filed Oct. 31, 2012, the disclosure of FIG. 12A is a flow diagram depicting an example of a which is incorporated herein by reference in its entirety. method for noise calibration, according to one embodiment. FIG. 12B is a flow diagram depicting an example of a FIELD OF THE INVENTION method for normalizing image noise, according to one 60 embodiment. The present invention relates to systems and methods for FIG.13 is a flow diagram depicting an example of a method processing and displaying light field image data. of grayscale image erosion, according to one embodiment. FIG. 14 is a flow diagram depicting an example of a method SUMMARY of gridded calibration, according to one embodiment. 65 FIG.15 is a flow diagram depicting an example of a method According to various embodiments, a dolly Zoom effect is of interactive projection of 2-D images with varying center of generated using light field image data. The dolly Zoom effect perspective, according to one embodiment. US 8,971,625 B2 3 4 FIG. 16 depicts an example of gridded calibration in a lambda: a measure of distance perpendicular to the primary hexagonal grid, according to one embodiment. Surface of the microlens array. One lambda corresponds FIGS. 17 and 18 depict an example of extended depth-of to the perpendicular distance along which the diameter field projection according to one embodiment. of the cone of light from a point in the scene changes by FIG. 19 depicts an example of sheared EDOF projection, 5 a value equal to the pitch of the microlens array. according to one embodiment. light field image: an image that contains a representation of FIG. 20 depicts an example of a distribution of centers of light field data captured at the sensor. perspective within a bounding aperture, according to one luminance: a 1-component reduction of color that corre sponds to perceived brightness or intensity. embodiment. 10 microlens: a small lens, typically one in an array of similar DETAILED DESCRIPTION microlenses. MLA: abbreviation for microlens array. Definitions modulation image: an image that is computed from a flat For purposes of the description provided herein, the fol field image by normalizing based on average values (per 15 color channel). lowing definitions are used: nodal point: the center of a radially symmetric thin lens. aggregated irradiance: total irradiance over a period of For a lens that cannot be treated as thin, one of two points time, e.g., on a sensor pixel while the is open. that together act as thin-lens centers, in that any ray that anterior nodal point: the nodal point on the scene side of a enters one point exits the other along a parallel path. lens. 2O normalized pixel value: a sensor pixel value that has been automatic white balance (AWB): the process of computing adjusted to a range where 0.0 corresponds to black (no white-balance (WB) factors and estimating color of a light) and 1.0 corresponds to Saturation. Scene's illumination. posterior nodal point: the nodal point on the image side of Bayer pattern: a particular 2x2 pattern of different color a lens. filters above pixels on a digital sensor. The filter pattern 25 quantization: a process of approximating a continuous is 50% green, 25% red and 25% blue. value with one of a fixed set of pre-determined values. center of perspective: relative to a scene being photo Quantization error increases as the separations between graphed, the center of perspective is the point (or locus pre-determined values increases. of points) where light is being captured. Relative to the representative ray: a single ray that represents all the rays camera's sensor image, it is the point (or locus of points) 30 that reach a pixel. from which light is being emitted to the sensor. For a saturated pixel: a pixel that has been driven by aggregated pinhole camera, the pinhole is the center of perspective irradiance to its maximum representation. for both the scene and the sensor image. For a camera sensor Saturation: a sensor that has one or more Saturated with a more complex main lens, the scene-relative center pixels. of perspective may be best approximated as either the 35 uniform radiance: same radiance at all angles and at all anterior nodal point of the main lens, or the center of its spatial locations. entrance pupil, and the sensor-relative center of perspec Vignetting: a phenomenon, related to modulation, in which tive may be best approximated as either the posterior an image's brightness or Saturation is reduced at the nodal point of the main lens, or as the center of its exit periphery as compared to the image center. pupil. 40 In addition, for ease of nomenclature, the term "camera' is clamp: in the context of the described invention, to “clamp used herein to refer to an image capture device or other data a signal to a value” means to select the Smaller of the acquisition device. Such a data acquisition device can be any signal value and the clamp value. device or system for acquiring, recording, measuring, esti chrominance: a mapping of color channel values to a lower mating, determining and/or computing data representative of (typically n-1) space. 45 a scene, including but not limited to two-dimensional image CoP: abbreviation for center of perspective. data, three-dimensional image data, and/or light field data. demosaicing: a process of computing and assigning Values Such a data acquisition device may include optics, sensors, for all captured color channels to each pixel, especially and image processing electronics for acquiring data represen when that pixel initially includes a value for only one tative of a scene, using techniques that are well known in the color channel. 50 art. One skilled in the art will recognize that many types of disk: a region in a light field image that is illuminated by data acquisition devices can be used in connection with the light passing through a single microlens; may be circular present invention, and that the invention is not limited to or any other Suitable shape. cameras. Thus, the use of the term "camera' herein is entrance pupil: the image of the aperture of a lens, viewed intended to be illustrative and exemplary, but should not be from the side of the lens that faces the scene. 55 considered to limit the scope of the invention. Specifically, exit pupil: the image of the aperture of a lens, viewed from any use of such term herein should be considered to refer to the side of the lens that faces the image. any Suitable device for acquiring image data. exposure value (EV): a measure of net sensor sensitivity In the following description, several techniques and meth resulting from ISO, shutter speed, and f-stop. ods for processing light field images are described. One flat-field image: a light field image of a scene with undif- 60 skilled in the art will recognize that these various techniques ferentiated rays. and methods can be performed singly and/or in any Suitable flat-field response contour: a continuous plot of the value combination with one another. that a hypothetical sensor pixel would take if centered at Architecture various locations on the Surface of a sensor; In at least one embodiment, the system and method image: a two-dimensional array of pixel values, or pixels, 65 described herein can be implemented in connection with light each specifying a color. field images captured by light field capture devices including ISO: a measure of the gain of a digital sensor. but not limited to those described in Ng et al., Light field US 8,971,625 B2 5 6 photography with a hand-held plenoptic capture device, ponent may be local or remote with respect to light field Technical Report CSTR 2005-02, Stanford Computer Sci image data acquisition device 809. Any suitable wired or ence. Referring now to FIG. 8A, there is shown a block wireless protocol can be used for transmitting image data 821 diagram depicting an architecture for implementing the to circuitry 804; for example camera 800 can transmit image present invention in a light field capture device Such as a data 821 and/or other data via the Internet, a cellular data camera 800. Referring now also to FIG. 8B, there is shown a network, a WiFi network, a BlueTooth communication pro block diagram depicting an architecture for implementing the tocol, and/or any other Suitable means. present invention in a post-processing system communica Overview tively coupled to a light field capture device Such as a camera Light field images often include a plurality of projections 800, according to one embodiment. One skilled in the art will 10 (which may be circular or of other shapes) of aperture 812 of recognize that the particular configurations shown in FIGS. camera 800, each projection taken from a different vantage 8A and 8B are merely exemplary, and that other architectures point on the camera's focal plane. The light field image may are possible for camera 800. One skilled in the art will further be captured on sensor 803. The interposition of microlens recognize that several of the components shown in the con array 802 between main lens 813 and sensor 803 causes figurations of FIGS. 8A and 8B are optional, and may be 15 images of aperture 812 to be formed on sensor 803, each omitted or reconfigured. microlens in array 802 projecting a small image of main-lens In at least one embodiment, camera 800 may be a light field aperture 812 onto sensor 803. These aperture-shaped projec camera that includes light field image data acquisition device tions are referred to hereinas disks, although they need not be 809 having optics 801, image sensor 803 (including a plural circular in shape. ity of individual sensors for capturing pixels), and microlens Light field images include four dimensions of information array 802. Optics 801 may include, for example, aperture 812 describing light rays impinging on the focal plane of camera for allowing a selectable amount of light into camera 800, and 800 (or other capture device). Two spatial dimensions (herein main lens 813 for focusing light toward microlens array 802. referred to as xandy) are represented by the disks themselves. In at least one embodiment, microlens array 802 may be For example, the spatial resolution of a light field image with disposed and/or incorporated in the optical path of camera 25 120,000 disks, arranged in a Cartesian pattern 400 wide and 800 (between main lens 813 and sensor 803) so as to facilitate 300 high, is 400x300. Two angular dimensions (herein acquisition, capture, Sampling of recording, and/or obtaining referred to as u and v) are represented as the pixels within an light field image data via sensor 803. Referring now also to individual disk. For example, the angular resolution of a light FIG.9, there is shown an example of anarchitecture for a light field image with 100 pixels within each disk, arranged as a field camera 800 for implementing the present invention 30 10x10 Cartesian pattern, is 10x10. This light field image has according to one embodiment. The Figure is not shown to a 4-D (x, y, u, v) resolution of (400, 300, 10, 10). Referring scale. FIG. 9 shows, in conceptual form, the relationship now to FIG.1, there is shown an example of a 2-disk by 2-disk between aperture 812, main lens 813, microlens array 802. portion of Such a light field image, including depictions of and sensor 803, as such components interact to capture light disks 102 and individual pixels 203; for illustrative purposes, field data for subject 901. 35 each disk 102 is ten pixels 203 across. In at least one embodiment, light field camera 800 may also Many light rays in the light field within a light field camera include a user interface 805 for allowing a user to provide contribute to the illumination of a single pixel 203. Referring input for controlling the operation of camera 800 for captur now to FIG. 2, there is shown an example of transmission of ing, acquiring, storing, and/or processing image data. light rays 202, including representative rays 202A, 202D, In at least one embodiment, light field camera 800 may also 40 through microlens 201B of array 802, to illuminate sensor include control circuitry 810 for facilitating acquisition, Sam pixels 203A, 203B in sensor 803. pling, recording, and/or obtaining light field image data. For In the example of FIG. 2, solid rays 202A, 202B, 202C example, control circuitry 810 may manage and/or control illuminate sensor pixel 203A, while dashed rays 202D, 202E, (automatically or in response to user input) the acquisition 202F illuminate sensor pixel 203B. The value at each sensor timing, rate of acquisition, Sampling, capturing, recording, 45 pixel 203 is determined by the sum of the irradiance of all rays and/or obtaining of light field image data. 202 that illuminate it. For illustrative and descriptive pur In at least one embodiment, camera 800 may include poses, however, it may be useful to identify a single geometric memory 811 for storing image data, Such as output by image ray 202 with each sensor pixel 203. That ray 202 may be sensor 803. Such memory 811 can include external and/or chosen to be representative of all the rays 202 that illuminate internal memory. In at least one embodiment, memory 811 50 that sensor pixel 203, and is therefore referred to herein as a can be provided at a separate device and/or location from representative ray 202. Such representative rays 202 may be camera 800. chosen as those that pass through the center of a particular For example, camera 800 may store raw light field image microlens 201, and that illuminate the center of a particular data, as output by sensor 803, and/or a representation thereof, sensor pixel 203. In the example of FIG. 2, rays 202A and Such as a compressed image data file. In addition, as described 55 202D are depicted as representative rays; both rays 202A, in related U.S. Utility application Ser. No. 12/703,367 for 202D pass through the center of microlens 201B, with ray "Light field Camera Image, File and Configuration Data, and 202A representing all rays 202 that illuminate sensor pixel Method of Using, Storing and Communicating Same, filed 203A and ray 202D representing all rays 202 that illuminate Feb. 10, 2010, memory 811 can also store data representing sensor pixel 203B. the characteristics, parameters, and/or configurations (collec 60 There may be a one-to-one relationship between sensor tively “configuration data') of device 809. pixels 203 and their representative rays 202. This relationship In at least one embodiment, captured image data is pro may be enforced by arranging the (apparent) size and position vided to post-processing circuitry 804. Such circuitry 804 of main-lens aperture 812, relative to microlens array 802. may be disposed in or integrated into light field image data Such that images of aperture 812, as projected onto sensor acquisition device 809, as shown in FIG. 8A, or it may be in 65 803, do not overlap. Referring now to FIG. 3, there is shown a separate component external to light field image data acqui an example of an arrangement of a light field capture device, sition device 809, as shown in FIG. 8B. Such separate com such as camera 800, wherein microlens array 802 is posi US 8,971,625 B2 7 8 tioned such that images of a main-lens aperture 812, as pro through the centers of certain sensor pixels 203, are depicted jected onto sensor 803, do not overlap. All rays 202 depicted with dashed lines. Thus the actual position of microlens 201B in FIG.3 are representative rays 202, as they all pass through is centered at the point where the dashed lines representing the center of one of microlenses 201 to the center of a pixel actual light rays 501 intersect microlens 201B, rather than (as 203 of Sensor 803. 5 depicted) the point where the solid (representative) rays 202 In at least one embodiment, the 4-D light field representa intersect it. In this example, these positions differ by a dis tion may be reduced to a 2-D image through a process of tance equal to one-eighth of the microlens pitch. projection and reconstruction. Referring now to FIG. 4, there One image artifact, herein known as geometric distortion, is shown an example of Such a process. A virtual Surface of may result from the difference between 1) the representative projection 401 may be introduced, and the intersection of 10 ray 202 assigned to a sensor pixel 203 and 2) the actual light each representative ray 202 with surface 401 is computed. ray 501 that passes through the center of that sensor pixel 203 Surface 401 may be planar or non-planar. If planar, it may be and the true center of the microlens 201 associated with that parallel to microlens array 802 and sensor 803, or it may not sensor pixel 203. This situation is illustrated by sensor pixel be parallel. In general, Surface 401 may be positioned at any 203A in FIG. 5. The solid line passing through sensor pixel arbitrary location with respect to microlens array 802 and 15 203A is the representative ray 202A assigned to sensor pixel sensor 803. The color of each representative ray 202 may be 203A. It passes through the calibrated center of microlens taken to be equal to the color of its corresponding pixel. In at 201B, and through the center of sensor pixel 203A. The least one embodiment, pixels 203 of sensor 803 may include dashed line passing through the center of sensor pixel 203A is filters arranged in a regular pattern, Such as a Bayer pattern, an actual light ray 501A, which passes through the true center and converted to full-color pixels. Such conversion can take of microlens 201B. During projection, the color of sensor place prior to projection, so that projected rays 202 can be pixel 203A will be projected along the path specified by the reconstructed without differentiation. Alternatively, separate (solid) representative ray 202A passing through it. In actual reconstruction can be performed for each color channel. ity, however, lightarrived at sensor pixel 203A from light rays The color of an image pixel 402 on projection surface 401 Surrounding dashed ray 501A, and should be projected along may be computed by Summing the colors of representative 25 this path. This discrepancy between the projection and the rays 202 that intersect projection surface 401 within the actual light path causes artifacts. domain of that image pixel 402. The domain may be within The farther the rays are projected (that is, the greater the the boundary of the image pixel 402, or may extend beyond distance between the surface of sensor 803 and virtual pro the boundary of the image pixel 402. The summation may be jection surface 401) the greater the error due to divergence of weighted, such that different representative rays 202 contrib 30 each representative ray 202 from the corresponding actual ute different fractions to the sum. Ray weights may be ray. In the depicted example, although the distance between assigned, for example, as a function of the location of the microlens array 802 and virtual projection surface 401 is not intersection between ray 202 and surface 401, relative to the large (relative to the distance between microlens array 802 center of a particular pixel 402. Any Suitable weighting algo and the surface of sensor 803), representative ray 202A that rithm can be used, including for example abilinear weighting 35 passes through sensor pixel 203A intersects image pixel algorithm, a bicubic weighting algorithm and/or a Gaussian 402A, while the actual ray that passes through sensor pixel weighting algorithm. 203A intersects image pixel 402B. The farther virtual projec Artifacts Due to Incorrect Calibration tion surface 401 is from microlens array 802, the greater the In at least one embodiment, the system of the present distance between the two intersections. This distance will invention corrects artifacts resulting from incorrect calibra 40 manifest as geometric distortion in the projected image, the tion of sensor 803. Existing light field cameras can experience magnitude of the distortion being proportional to the distance artifacts resulting from incorrect calibration of sensors 803. between virtual projection surface 401 and microlens array Each pixel 203 on sensor 803 is illuminated by actual rays 202 802. If projection to a range of surfaces 401 is animated (for of light that pass through microlens array 802. However, example, as a focus Sweep), regions of the resulting images in representative rays 202, as described above, are not actual 45 which calibration errors exist may sweep or twist across the rays of light, but are instead mathematical rays that are field of view. defined based on the geometric relationship of microlens A second form of distortion, herein referred to as ghosting, array 802 and sensor 803. If representative rays 202 are to may also result from incorrect microlens-position calibration. accurately represent the light that reaches a sensor pixel 203, Ghosting is illustrated by sensor pixel 203B in FIG. 5. As in the geometric relationship between microlens array 802 and 50 the case of sensor pixel 203A, representative ray 202B and pixels 203 on sensor 803 must be known to a sufficient degree actual light ray 501B passing through sensor pixel 203B of accuracy. If this relationship may vary from one sensor 803 follow different paths. Accordingly, geometric distortion, as to another, then calibration of each sensor 803 may serve to described in the case of sensor pixel 203A, will result. But the compensate for Such variation. If the actual geometric rela difference between ray paths is much greater than for the rays tionship between microlens array 802 and sensor 803 differs 55 that pass through sensor pixel 203A, because the two rays from the (known) relationship indicated by calibration, pass through different microlens centers—the representative images created by projecting the light field image may con ray passing through the pre-calibration center of microlens tain unwanted artifacts. 201A, and the actual light ray passing through the true center Referring now to FIG. 5, there is shown an example of of microlens 201B. This difference causes light passing incorrect calibration. Microlenses 201 and sensor pixels 203 60 through microlens 201B to be aggregated with light passing are depicted in their calibrated geometric relationship—that through sensor pixel 203B. The effect in projected images is is, as they are believed to be related. Representative rays 202, adjacent duplicates of image features; hence the term "ghost which pass through the calibrated microlens 201 centers and ing. the centers of sensor pixels 203, are depicted with solid lines. Light field camera 800 may be designed so that small In this example, the actual position of microlens 201B differs 65 calibration errors result in geometric distortion, but do not from the calibrated (expected) position. Actual light rays 501 cause ghosting. This may be accomplished, in at least one that pass through the center of microlens 201B, and also pass embodiment, by arranging the imaging geometry, including US 8,971,625 B2 9 10 the geometry of sensor 803 and of the microlens array, so that lenses 201, a grid step changes either Xory by the known disks 102 not only do not overlap, but are separated by a gap. microlens pitch. In a hexagonal tiling of microlenses Sensor pixels 203 are “assigned to the nearest microlens 201 201, a grid step changes X and y in one of six directions, center, in calibrated coordinates, so gaps allow calibration Such that the distance moved is equal to the microlens errors up to half the gap size before a pixel’s 203 assignment pitch. Snaps to the incorrect microlens 201. Such a technique limits In at least one embodiment, a technique referred to as or eliminates ghosting, since, until Such Snapping occurs, gridded calibration is performed. Referring now to FIG. 14, calibration errors may result in only geometric distortion, there is shown an example of a method of gridded calibration, rather than ghosting. according to one embodiment. Each disk 102 in the light field Disk-Center Calibration 10 image is reduced 1401 to a roughly 2-pixel by 2-pixel point on Microlens 201 positions can be difficult to measure a black background, using grayscale image erosion. A least directly. However, they may be inferred from pixel values in squares algorithm is applied 1402 to fit a small number of the light field image, which is readily available. Thus, in at lines to the disk centers along orthogonal directions; these least one embodiment, the key calibration problem is to iden lines may be horizontal and vertical for a square grid, or at tify the center of each disk 102 in the light field image. 15 60-degree angles for a hexagonal grid. Step 1402 may be The center of a disk 102 is formally the point where a ray implemented by fitting each line incrementally, first to a from the center of the exit pupil of the light field camera's 800 single disk center, then to additional disk centers at Substan main lens 813, which passes through the center of the corre tial incremental distances (for example, at 10-disk separa sponding microlens 201, intersects sensor 803. Assuming that tions). In at least one embodiment, disks from defective the exit pupil is round, or nearly round, and that the light field microlenses are also detected and ignored during the mapping image is a modulation image, the center of a disk 102 may be in order to prevent inaccurate mapping. Defective disks can approximated as the weighted-center of pixels values illumi include, but are not limited to, those that are decentered by nated by rays passing through the corresponding microlens greater than half of the disk pitch or have low transmission. 201. The weighted-center of pixel values in the X dimension is From the fitted lines generated in step 1402, a rigid square the solution to 25 or hexagonal grid (as appropriate) is fitted 1403 to the entire light field image. (Eq. 1) For each grid region (such as a square or hexagonal region), for pixels 203 in the region i (those pixels 203 illuminated the corresponding disk center is computed 1405 by passing by rays passing through the corresponding microlens 201). In all values for pixels 203 within that grid region into the this equation, X, is the X coordinate of the pixel’s 203 center, 30 weighted-center equations. p, is the pixel’s value, and X is the X coordinate of the disk For each grid region, a vector distance is computed 1406 102 center (that is being computed). They coordinate of the from the geometric center of the region to the computed disk weighted-center may be computed equivalently: center. This vector is assigned as the displacement associated 0-Xp;(Vivene.) (Eq. 2) with the corresponding disk center. A spatial filter is then 35 applied 1407 to the spatial array of displacement vectors. Any With such a definition, however, it is necessary to know the of a number of known and Suitable filters, such as Gaussian disk 102 center, at least approximately, to determine which and Box, can be used. Optimizations such as bucketing may set of pixel values to consider when computing the weighted also be employed. In at least one embodiment, a square filter center. (If pixels 203 corresponding to a different disk 102 are is employed. included in the weighted sum, the result will be incorrect.) In 40 For each grid region, the final disk center is computed 1408 various embodiments, either of two general approaches can as the vector Sum of the grid’s geometric center and the be used to estimate the center of a disk 102 prior to computing filtered displacement vector. The method ends 1499. it more exactly using these equations. In a first embodiment, Referring now to FIG. 16, there is shown an example of either of the following methods are performed: gridded calibration in a hexagonal grid, according to one 1. Grayscale image erosion is performed. Referring now to 45 embodiment. A weighted center 1601 has been computed for FIG. 13, there is shown an example of a method of each disk 102. Application of grid 1602 (using, for example, grayscale image erosion, according to one embodiment. a least-squares algorithm) yields ideal position 1603 for each Grayscale image erosion is a morphological image pro disk 102. A similar technique can be used for square grids. cessing technique that is well known in the art. A single In at least one embodiment, several steps of gridded cali morphological step 1301 revalues each pixel 203 in the 50 bration can be performed in parallel, allowing for efficient image as a function of its pre-step value and the pre-step and high-performance implementation. In at least one values of neighboring pixels 203. This serves to reduce embodiment, the primary limitation of the above-described (erode) the values of pixels 203 that are on the edge of gridded calibration method is that only small errors (displace groups of high-value pixels 203. A determination is ment-vector magnitude less than half the pitch of microlens made 1303 as to whether sufficient erosion has taken 55 array 802) may be computed accurately. If manufacturing place; if not, step 1301 is repeated. Repeated erosion tolerances cannot be held to this tight standard, gridded cali steps 1301 reliably reduce the light field image to a bration may fail to compute a correct calibration. pattern of 2x2-pixel illuminated regions (disks), with A second form of calibration, herein referred to as incre interstitial pixel values reduced (nearly) to zero. After mental calibration, may also operate on a modulation image, erosion is complete 1399, these 2x2-pixel blocks can be 60 as is described in the above-cited related U.S. Provisional identified, and their centers can be evaluated. (The equa Application. Incremental calibration overcomes the primary tions given above reduce to linear interpolation for a shortcoming of gridded calibration, which is its inability to 2x2-pixel block.) handle error vectors with magnitudes greater than half the 2. An alternative method is referred to as “stepping. microlens pitch. It does so by first calibrating a single disk, According to this method, a disk’s 102 center is esti 65 and then growing a region of calibrated disks around this mated by taking a grid step from the center of an accu initial disk, taking incremental (e.g., one-microlens) steps. As rately calibrated disk center. In a square tiling of micro long as the relative error of adjacent disks remains below a US 8,971,625 B2 11 12 (fairly large) threshold, the correct 1-to-1 mapping of pre and the known divergence between corrected and calibration and post-calibration disks is ensured. After all disk uncorrected representative rays 202, a distortion vec centers have been calibrated, the calibrated centers are fil tor may be estimated for each pixel 402 in the pro tered with steps equivalent to steps 1406 to 1408 described jected image. The projected image may than be above, wherein the displacement vectors may have magni 5 warped to correct this distortion at each pixel 402. tudes greater than half the microlens pitch. This algorithm may be used to correct geometric dis Modulation images may vary as a function of camera tortion. parameters such as Zoom, focus, and f-stop. Thus, in at least Influence one embodiment, calibration is based on an appropriate In at least one embodiment, representative rays 202 that modulation image. 10 In at least one embodiment, both gridded calibration and pass through the centers of pixels 203 which are themselves incremental calibration assume that the true center of a disk near the centers of disks 102 may be given more influence in 102 corresponds to its pixel-weighted center. This may not be the reconstructed 2-D image than representative rays that pass true in the case of vignetting, especially vignetting that is due through pixels 203 that lie near the edge of disks 102. An to occlusion of the main-lens exit pupil. Such occlusion rarely 15 influence value may be assigned to each representative ray occurs for disks 102 near the center of the light field image, 202. This influence value may be computed as a function of but may be common for disks 102 near the edge (or, espe sensor-pixel location and of other parameters. In Such an cially, the corner) of the light field image. Because Such embodiment, each pixel 402 in the 2-D image may include an occlusion may vary slowly across the light field image, and influence value, in addition to the values of its color compo may vary little from one camera of the same design to another, nents. During reconstruction, color components are multi it may be modeled as an invariant field for cameras of the plied by the filter coefficient (as described above) and also by same design. Both algorithms (gridded calibration and incre the rays influence value, before they are summed into the 2-D mental calibration) may be modified to account for Such image pixel 402. The product of the filter coefficient and the occlusion vignetting by adding a step prior to step (5) in ray's 202 influence value is then summed to the 2-D pixels which each calibrated disk center is perturbed to account for 25 influence value. When all representative rays have been pro Vignetting, by 1) resampling the vignetting field (which may cessed, the color components in each 2-D image pixel are itself be defined as a regular pattern of displacement vectors), normalized, meaning that they are divided by the 2-D pixels and adding the sampled displacement vector to the disk cen influence value. After normalization of a pixel is complete, ter. that pixel’s influence value may be discarded. Application of Calibration Data 30 Any of a number of different functions may be employed to After calibrated disk centers are computed, they may be compute influence values. In at least one embodiment, for employed in at least two ways: example, each representative ray’s 202 influence value is set 1. Projection. Once calibrated representative rays 202 have to the value of a corresponding pixel in the modulation image. been computed, they may be projected as described This corresponding pixel is the pixel 203 through which the above. Representative rays 202 may be computed from 35 representative ray 202 passes. calibrated disk centers in at least two different ways: Influence Based on Noise Function a. Perspective. For each disk 102, the corresponding In at least one embodiment, the influence value is deter microlens 201 center may be computed by casting a mined based on a function that takes noise into account. In the ray 202 from the disk center to the center of the projection process, if all sensor pixels 203 Li=1,... , N} main-lens exit pupil, and then finding the intersection 40 reaching the same image pixel 402 are assumed to come from of this ray 202 with the surface of microlens array the same physical point in the scene, and if they are equally 802. True representative rays 202 for each pixel 402 in affected by the optical and electrical system and thus have the light field image may then be determined as the ray identical signal strength and noise level, an estimate of the 202 that extends from the corresponding microlens pixel value of that image pixel 402, say p, is 201 center through the center of the sensor pixel 203. 45 b. Orthographic. Each disk 102 may be treated as though it is at the center of microlens array 802, or equiva XL (Eq. 3) lently, that its center is coincident with the optical axis p = - of main lens 813. In this approximation, disk centers and microlens centers are the same in two coordi 50 nates; they differ only in the dimension that is parallel This assumes that sensor pixels 203 are demodulated to to the main lens optical axis. Equivalently, for each begin with. Let m, denote the modulation factor for i-th disk 102, the corresponding microlens center may be sample. m, can be obtained from the modulation image. The computed by casting a ray 202 from the disk center imaging System can apply an analog or digital gain factorg to directly up toward microlens array 802, and then find 55 the sensed signal, before storing pixel values in digital form. ing the intersection of this ray 202 with the surface of Each sensor pixel 203 may also be affected by noise N. microlens array 802. Orthographic representative Combining all these factors together, the sensor pixel value E, rays 202 for each image pixel 402 in the light field is related to the ideal sensor pixel value L, by the equation: image may then be found as the ray that extends from Egn,L+N, (Eq. 4) the corresponding microlens 201 center through the 60 center of the sensor pixel 203. Given the noisy and Scaled signal, the task is to find the c. Warping. Projection may also be computed using rep optimal estimate of p. The “optimality” of the estimate can be resentative rays 202 that pass through pre-calibration defined as the expected difference between the estimate and microlens centers. In this case, regions in the image the true value. To compute the estimate or measure its opti will be distorted as a predictable function of their 65 mality, the noise characteristics of the system can be modeled. depth. A depth map may be computed using tech In the imaging system, the noise N, usually has Zero-mean, niques that are known in the art. Using this depth map. and its variance can be decoupled into two main components, US 8,971,625 B2 13 14 including one that depends on the ideal sensor pixel value L. sions, then pushing values from these reduced-dimension and another that is signal-independent, as follows: images back down into the original 2-D image. Identifying the original 2-D image as image 0, each image in may have pixel dimensions that are half those of image n-1. For Given this model, the estimate of L, and its variance can be example, if image 0 has dimensions wxh, then image 1 would calculated: have dimensions w/2xh/2, and image 2 would have dimen sions w/4xh/4. (We visualize the reduced-dimension images as being stacked above image 0 in their indexed order, hence 2 (Eq. 6) values are pulled up and pushed down.) The total number of 10 images may be k+1 for any integerk such that both w/2 and h/2 are integer values. For example, w and h may be 3280, Note that this calculation is the so-called demodulation and k may be 4, because 3280/2=205, an integer value. In process. Then, using the statistical estimation technique, the other embodiments, different ratios may exist between the optimal estimate of p can be calculated from an estimated 15 pixel dimensions of adjacent image levels; thus, any nxn {L} as square of pixels in a given level can be combined into a single pixel in the next level up. For example, each 3x3 square of a level might be combined into an individual pixel in the next (Eq. 7) level up. In yet other embodiments, the groups of pixels to be combined need not be squares; thus any group of pixels of any p-Xi Xi shape can be combined into a single pixel in the next level up. Referring now to FIG. 10, there is shown a flow diagram Thus, samples with lower variance tend to have higher depicting an example of a method for pulling 2-D image influence in the estimation process. If the influence of each values up into array of images of gradually reduced dimen sensor pixel 203 is defined as w, the optimal influence value 25 sions, according to one embodiment. Pulling may proceed can be expressed as: one image level at a time, such that all pixels in image n-1 are pulled up to image n, before any pixels in image n are pulled up to image n+1. During the pull of pixels from image n-1 to gm; gm;2...2 imagen, four pixels in level n-1 are pulled to each single pixel 30 in level n. In at least one embodiment, each 2x2 block of (L.) 2, 2(nl) i. 2) pixels in image n-1 corresponds to a single pixel in image n. Mathematically, a pixel in image in with coordinates i,j This particular formulation is merely exemplary. In various corresponds to pixels in image n-1 with coordinates 2i.2. other embodiments, the system of the present invention can 2i.2+1, 2i +1.2, and 2i +12+1. use other techniques for taking into account noise in deter 35 Initial image (designated as image 1), is received 1001. mining influence for pixels 203 at different positions within Steps 1002 to 1006 are performed for successively higher disks 102. Different techniques may be applicable for differ levels on images having Successively reduced resolution. At ent imaging systems. For example, if a sensor pixel 203 is each level, each pixel in image n is set to the sum of its defective or is clamped due to Saturation, there may be no way corresponding pixels in image n-1, so as to combine 1002 to infer the original pixel L value from the corrupted data E. 40 multiple values of pixels in the current-level image n-1 into a In this case, the variance of this sensor pixel 203 can be single pixel value in the next-higher-level image n. For a color modeled as infinite, and thus the influence would be zero. image, each value within the pixel at a given level, typically Alternatively, if there is no signal-dependent component in red, green, blue, and influence, takes the Sum of the corre the noise, the optimal influence would be: sponding values in the corresponding pixels at a lower level. 45 The sums in each pixel in image n are then normalized 1003 Such that they represent average values of the corresponding (Eq. 9) pixels in image n-1. This normalization may be accom plished by dividing each value by four, or may alternatively be implemented by dividing each value by the number of corre 50 sponding pixels in image n-1 with non-zero influence values. Infilling (Division by Zero may be avoided by not normalizing in this After projection of rays to the 2-D image is complete, but case.) Other normalization algorithms are also possible. prior to normalization of influence values, it may be deter After all pixels in image n are normalized, a clamping mined that some pixels 402 in this 2-D image have recon algorithm may be applied 1004 to image n, as follows. A structed influence values that are either Zero (because no rays 55 maximum pull influence I may be specified. For each pixel 202 contributed to this pixel 402) or are substantially lower in image n, if I (the influence value of that pixel) is greater than the influence values of other pixels 402. Such a finding than In then each value in the pixel (including I) is multi indicates that there are gaps, or "holes', in the reconstructed plied by I? I, Thus, the pixel’s influence value is effectively 2-D image. These holes (which may be due to insufficient set equal to I. Other clamping algorithms are possible. sampling, perhaps as a result of irregularities in the sampling 60 Finally, a low-pass filter may be applied 1005 to image n. pattern due to variations in the positions of microlenses) may Pulling proceeds one image level at a time, and is complete be eliminated by a process of infilling: using the values of when all the pixels in image khave their final values. Thus, a nearby pixels 402 to estimate the value of pixels 402 in the determination is made 1006 as to whether the pull operation “hole'. is complete, by determining whether all the pixels in image k Pull-Push Infilling 65 have their final values. If so, image k is output 1007 and the Infilling may be implemented by first pulling 2-D image method ends 1099. Otherwise, the method returns to step values up into an array of images of gradually reduced dimen 10O2. US 8,971,625 B2 15 16 Referring now to FIG. 11, there is shown a flow diagram sion) are not taken into account for the calculation of best depicting an example of a method for pushing reduced-di focus; it is as though these optical elements were not present. mension 2-D images down into higher-resolution images, The position of an image-side point in a depth map may be according to one embodiment. In at least one embodiment, specified in Cartesian coordinates, with X and y indicating pushing down begins after pulling up is complete, working position as projected onto sensor 803 (x positive to the right, one image at a time, starting with image k and completing y positive up, when viewing toward the scene along the opti with image 1. cal axis of main lens 813), and depth d indicating perpendicu Image k is received 1101. Steps 1102 through 1105 are lar distance from the surface of microlens array 802 (positive performed for Successively lower levels on images having toward the scene, negative away from the scene). The units of successively higher resolution. In step 1102, for each pixel at 10 X and y may be pixels—the pixel pitch of sensor 803. The the current level, target pixels in the next lower-level image units of d may be lambdas, where a distance of one lambda are identified. The image-to-image pixel correspondence is corresponds to the distance along which a cone of light from the same as for pulling. For example, each pixel in image n is any scene point changes its diameter by a value equal to the pushed down to four pixels in image n-1. In at least one pitch of microlens array 802. (The pitch of microlens array embodiment, each pixel-to-pixel push may be conditioned on 15 802 is the average distance between the centers of adjacent a test. For example, the push may happen only if I, the microlenses 201.) influence value of the pixel in image n-1, is less than a Depth maps are known in the art. See, for example: J. Sun, threshold influence value I. Thus, a determination is made H.-Y. Shum and N.-N. Zheng, “Stereo Matching using Belief 1103 as to whether this condition is satisfied. If so, then each Propagation. IEEE Transactions on Pattern Analysis and value V, in the pixel in image n-1 is replaced 1104 with a Machine Intelligence, vol. 25, no. 7, pp. 787-800, 2003; and weighted sum of its value and the value of the pushed pixel in C.-K. Liang, T.-H. Lin, B.-Y. Wong, C. Liu, and H. Chen, image n. For example, pixel values V, may be replaced as “Programmable Aperture Photography: Multiplexed Light follows: Field Acquisition.” ACM TRANS. GRAPH. 27, 3, Article 55, 2008. 25 The following observations can be made concerning scene (Eq. 10) side points that are directly visible to main lens 813: Points at scene depths on the plane of best focus in the Scene correspond to an image depth at the (microlens) surface, or plane, of sensor 803. Pushing down is complete when all pixels in image 1 have 30 Points at scene depths that are farther from camera 800 than been (conditionally) pushed to image 0. If, in step 1105, level the plane of best focus correspond to points with image O has not yet been reached, the push operation is not yet depths that are closer to the main lens 802 than the plane complete, and the method returns to step 1102. If, in step of best focus, and therefore that have positive depth 1105, the push operation is complete, the color components in values. each image-0 pixel are normalized 1106, meaning that they 35 Points at scene depths that are nearer to the camera 800 are divided by the image-0 pixel’s influence value. After than the plane of best focus correspond to points with normalization 1106 of a pixel is complete, that pixel’s influ image depths that are further from the main lens 802 than ence value may be discarded. Image 0 can then be output the plane of best focus, and therefore that have negative 1107, and the method ends 1199. depth values. A depth map may be computed using tech Referring now to FIG. 6, there is shown an example of a 40 niques that are known in the art. The depth map may pull-push image stack containing three levels: image 601Aat include image depth values at points with a regular dis level 0, image 601B at level 1, and image 601B at level 2. tribution in X and y, and thus may be treated as a height During the pull of pixels from each image n-1 to each higher field. The sample density of this height field, in the X and level image n, four pixels 402 in level n-1 are pulled to each y dimensions, may roughly correspond to the distribu single pixel 402 in level n. Thus, the sixteen pixels 402 of 45 tion of microlens centers, or it may be greater or Smaller. image 601A at level 0 are reduced to four pixels 402 of image Assigning Depth Values to Representative Rays 601B at level 1, and the four pixels 402 of image 601B at level A depth value may be assigned to each representative ray 1 are then reduced to one pixel 402 of image 601C at level 2. 202 by intersecting that ray 202 with the image depth height In the push operation, each pixel 402 in each image n is field. If the representative ray 202 intersects the height field at pushed down to four pixels 402 in image n-1. Thus, the value 50 multiple locations, the intersection that is farthest behind of single pixel 402 of image 601C at level 2 is conditionally microlens 802 surface is selected. (This corresponds to the pushed to all four pixels 402 of image 601E at level 1. Sub scene intersection that is nearest to camera 800.) The depth sequently, the values of each of the four pixels 402 of image value at this intersection is assigned to representative ray202. 601C at level 2 is conditionally pushed to an associated group If there is no intersection, representative ray 202 may be of four pixels of image 0, thus populating all sixteen pixels in 55 discarded, or it may be assigned a depth value by another level 0. means. For example, it may be assigned a depth value com Depth Map Generation puted from depth values assigned to nearby rays 202. A depth map is a set of image-side points (points on the Algorithms for computing the intersection of a ray 202 image side of main lens 813), each of which corresponds to a with a height field are known in the art. For example, a ray 202 visible point in the scene. A point in the scene is visible if light 60 may intersect a height-field point if it passes within a thresh emitted from it reaches the anterior nodal point of main lens old distance of that point. Alternatively, the height-field 813, either directly or by being reflected from a highly specu points may be interpreted as control points for a Surface, and lar surface. The correspondence is such that light emitted ray 202 can be intersected with that surface. from the scene point would be in best focus by main lens 813 Extended Depth-of-Field Projection at the corresponding image-side point. In at least one embodi 65 During projection to a refocused 2-D image, representative ment, the optical effects of microlens array 802 (primarily rays 202 are intersected with virtual projection surface 401 refraction and reflection) and of sensor 803 (primarily occlu that is parallel to microlens array 802, but displaced from it. If US 8,971,625 B2 17 18 virtual projection surface 401 is ahead of microlens array 802 projections having higher lambda values. Thus, where two (closer to the scene), then the reconstructed 2-D image is projections overlap, the pixel values from the lower-lambda focused at a virtual projection surface 401 that is ahead of the projection are used in generating 2D output image 1801A. best focus scene plane of the light field camera 800. (It is In FIG. 18, for example, the projection at plane 1701C farther from the light field camera 800.) Likewise, if virtual overlaps a portion of the projection at plane 1701 A. Since the projection surface 401 is behind microlens array 802 (farther projection at plane 1701C has a lower lambda value than does from the scene) then the reconstructed 2-D image is focused the projection at plane 1701A, the portion 1802C of output at a virtual projection surface 401 that is behind the best-focus image 1801A corresponding to the overlap takes its pixel scene plane of the light field camera 800. Objects in the scene values from the projection at plane 1701C. whose scene depths correspond to the image depth of virtual 10 projection surface 401 are in exact focus; other objects in the Output image 1801A thus has four portions: scene are projected with blur that increases with their dis Portion 1802A, taking pixel values from the projection at placement from that scene depth. plane 1701B: In some situations, it may be desirable to construct an Portion 1802B, taking pixel values from the projection at image with extended depth of field. In at least one embodi 15 plane 1701A: ment, this may be accomplished by projecting representative Portion 1802C, taking pixel values from the projection at rays 202 to a (typically non-planar) image-side Surface that plane 1701C: corresponds to the depths of objects in the scene. The depth Portion 1802D, taking pixel values from the projection at map height field, as described in the previous section, is such plane 1701A. a Surface. Although the Surface of projection may be non Normalization of Image Noise planar, the resulting 2-D image is planar. When reconstructing images from a light field, unstruc Let x,y be the (calibrated) coordinates of the point that a tured high frequency error (referred to herein as “noise'), representative ray intersects the microlens array, and u,v be may be present in varying amounts depending on many fac the slopes of that ray as a function of depth. Let d be the depth tors of the reconstructed image. The reconstructed images assigned to that representative ray, as described above. Let the 25 may be any 2D output image created from the light field, units of positions, slopes, and depth values be consistent with including but not limited to, image(s) having a different Vir each other. (That is, if the units of X and y are X, and the tual plane of focus, image(s) having an extended depth offield units of depth ared, then the units of u and V are X/d. image, and/or image(s) with shifted perspective. The noise in As a specific example, the units of X and y may be the pixel the 2D output image may vary depending on many factors pitch of sensor 803, and the units of depth may be lambdas. In 30 related to processing, including, but not limited to, the dis this case, the units of u and v are pixels/lambda.) Then x,y, tance between the virtual focus and the optical focus of the the spatial coordinates of the intersection of a representative physical system, whether or not a subject is in-focus or out ray 202 with the depth map, are computed as of-focus at the virtual focus computed, and/or the type of 2D output image created. 3'-x-du (Eq. 11) 35 In composition (where composition refers to one or more 2D image(s) intended to be viewed together), varying y'-y-dy (Eq. 12) amounts of noise may be considered more aesthetically dis (This is not derivative notation; rather, du implies the prod pleasing than if the entire composition has a higher overall uct of dandu.) Each projected representative ray now termi amount of noise that is more evenly distributed, or “normal nates at its plane of best focus and is associated with a new 2D 40 ized”. In other words, the inconsistency in the amount of spatial coordinate X".y". These 2D coordinates make up a noise from one image to another is undesirable. In at least one reconstructed extended depth of field 2-D image. embodiment, therefore, the noise content of the image(s) is Referring now to FIGS. 17 and 18, there is shown an analyzed, and some amount of noise is added to areas or example of extended depth-of-field projection according to images with lower noise in order to better match the portion of one embodiment. Different representative rays 202 terminate 45 the image or other images with more noise. The result is that at different planes 1701 of best focus. In this example, some the entire composition of images may be normalized Such that of the rays 202 terminate at plane 1701A, which is behind all images have a similar amount of noise that is evenly MLA plane 1702; other rays 202 terminate at plane 1701B or distributed throughout each image. 1701C, which are ahead of MLA plane 1702. Rays 202 ter In at least one embodiment, the noise performance of the minating at plane 1701A come from objects that are farther 50 system is fully characterized as part of a calibration routine. away from camera 800; these are represented with a positive Referring now to FIG. 12A, there is shown a flow diagram lambda value (assuming lambda is calibrated with respect to depicting an example of a method for noise calibration, MLA plane 1702, which is assigned a lambda value of Zero). according to one embodiment. The calibration data may be Rays 202 terminating at plane 1701B or 1701C come from gathered 1201 by capturing light fields of a flat field under a objects that are closer to camera 800; these are represented 55 variety of conditions, including but not limited to, differing with a negative lambda value. The determination of which exposure times and/or sensor gains. For each captured light plane 1701 is of best focus for a particular representative ray field, a variety of 2D output images are generated 1202 by 202 is specified by the depth map. varying the processing parameters; this generates, for In FIG. 18, the projections at different planes 1701 as example, images having different virtual plane(s) of focus, generated in FIG. 17 are combined with one another to gen 60 extended depth(s) of field, and/or perspective shift(s). The erate 2D output image 1801 A. For illustrative purposes, the resulting images from this calibration are then analyzed 1203 center of perspective is considered to be parallel to the optical for noise, and the results are recorded 1204. The noise may be axis (i.e., perpendicular to MLA plane 1702). analyzed and characterized in any manner. In this example, output image 1801A is generated from the In one example, a local area average is computed for each superposition of the projections at different planes 1701. Pro 65 region in the image. Deviations from the local are average are jections having lower lambda values are considered to be recorded and classified by size (for example, number of pix closer to camera 800 and are thus given precedence over els), magnitude, and frequency of occurrence. US 8,971,625 B2 19 20 Referring now to FIG. 12B, there is shown a flow diagram Referring now to FIG. 19, there is shown an example of depicting an example of a method for normalizing image sheared EDOF projection. Here, the center of perspective is noise, according to one embodiment. Such a method can be not parallel to the optical axis. Pixel values are combined as used, for example, when images are computed. For each set of described above in connection with FIG. 18, although here processing parameters to be used in creating the composition, 5 an appropriate noise distribution is loaded 1205 based on the the off-axis angle is taken into account. Collapsing the pro capture conditions. A noise ceiling distribution is generated jections at different planes 1701 yields 2D output image 1206 from all the input noise and taking the highest frequency 1801B where each projection has been shifted horizontally of occurrence for each magnitude and size. When creating depending on its lambda Value (i.e., depending on its vertical output images based on a set of processing parameters, noise distance from MLA plane 1702). may be added 1207 to each computed 2D image, in propor 10 Output image 1801 thus has four portions: tion to the difference between the noise ceiling distribution Portion 1802E, taking pixel values from the projection at and the noise distribution for the processing parameters. In one case, the proportion applied is equal to one, and the image plane 1701A: set may be considered to have the noise fully normalized. In Portion 1802F, taking pixel values from the projection at other cases, the proportion may be less than one, so that the 15 plane 1701B: noise content is more similar, but not fully normalized. Portion 1802G, taking pixel values from the projection at Varying Center-of-Perspective Projection plane 1701A: In some situations, it may be desirable to project a light Portion 1802H, taking pixel values from the projection at field image with differing centers of perspective. According plane 1701C. to various embodiments, any of a number of techniques can In this example, output image 1801B contains a gap, or be used for varying the center of perspective for projected hole 1901, where there are no ray intersections and therefore images. no data is available. In other words, no projection maps to that Sub-Aperture Projection area on MLA plane 1702. Push-pull infilling can be used, as The use of sub-aperture images is described in Nget al. and described above, to fill in pixel values in hole 1901. Alterna in related U.S. Utility application Ser. No. 13/027,946 for 25 tively, another mechanism can be employed. For example, the "3D Light Field Cameras, Images and Files, and Methods of height field can be used to identify the holes, and then the Using, Operating, Processing and Viewing Same, filed on holes can be filled with the image from sub-aperture projec Feb. 15, 2011, the disclosure of which is incorporated herein tion. by reference in its entirety. In at least one embodiment, rep Reducing Artifacts in EDOF Projection resentative rays 202 are culled, such that only rays 202 that 30 In some situations, the above-described EDOF projection pass through a contiguous Sub-region of main lens aperture methods (whether or not shearing is included) can introduce 812 are projected to the 2-D image. The contiguous Sub undesirable artifacts. For example, samples with different region of main-lens aperture 812 is referred to herein as a depth values d may be projected to the same X"y" intersec Sub-aperture, and the resulting image is referred to as a Sub tion. Since those samples come from different objects, this aperture image. The center of perspective of a sub-aperture 35 means their colors are mixed and the contrast of the projection image may be approximated as the center of the Sub-aperture. image is lost. To address this problem, in at least one embodi Such a determination is approximate because the meaning of ment, a mechanism for detecting occlusions is applied, and “center is precise only if the sub-aperture is rotationally occluded samples are rejected. The depth value of x,y in the symmetric. The center of an asymmetric Sub-aperture may be depth map is compared to the depth value of the incoming computed just as the center of gravity of an asymmetric object 40 samples; the sample is accepted only if the two depth maps would be. Typically, the aperture of the main lens is rotation are sufficiently close to one another. In the case of a shearing ally symmetric, so that the center of perspective of a 2-D projection, the depth map varies with u and v.; those image that is projected with all representative rays 202 (i.e., depth maps of different u and V. can be estimatedjointly, the Sub-aperture is equal to the aperture) is the center of or generated from analyzing the height field described above. main-lens aperture 812, as would be expected. 45 Warping the EDOF 2-D Image Sub-aperture projection works well in principle, but has As described above, disk-centercalibration may be applied limitations in practice. Because fewer rays are projected to either during projection or as a warping of the projected 2-D the 2-D image, its resolution is reduced and its noise level is image. Likewise, change in center of perspective may be increased. Also, the range of possible centers of perspective is introduced during projection (as described in “Sub-Aperture limited by the dimensions of the sub-aperture. Large sub 50 Projection', above, and in “Shearing the EDOF Projection'. apertures project more rays, but their centers cannot deviate below) or as a warping of the projected 2-D image. The warp substantially from the center of main-lens aperture 812. Small vector AX, Ay at any 2-D image location X.y may be sub-apertures increase the allowable deviation of the center of approximated as perspective, but compromise the quality of the projected 2-D image. 55 Shearing the EDOF Projection cof The above-described algorithm for computing x,y inter sections for extended depth of field may itself be extended to cof introduce shear, so as to approximate the effect of changing where D(x,y) returns an estimate of the depth map value at the center of perspective of the projected 2-D image. Let 60 locationX.y. Techniques forwarping an image, as a function constants u and V specify the displacement of the center of an array of warp vectors, are well known in the art. of perspective from the center of the main-lens aperture. Then Varying Center of Perspective Interactively by extensions of Equations 11 and 12, the new coordinates In at least one embodiment, the system and method of the may be defined as: present invention provide mechanisms for interactive projec 65 tion of 2-D images with varying center of perspective. For example, a person may view the 2-D image on a screen, adjust y'y-d(v-v) (Eqs. 13, 14) the desired center of perspective by moving a mouse or other US 8,971,625 B2 21 22 input device, and see the effects of that motion immediately In at least one embodiment, the measured time-varying on the screen, as a sequence of 2-D images with different angle of a device is used to vary the center of perspective of a centers of perspective. light field picture being projected to a screen on the device. In at least one embodiment, the range of motion of the Any of a number of algorithms can be used to convert the center of perspective may be limited to the entrance pupil of 5 time-varying tilt angle to parametric specification of the 2-D the main-lens 813 of light field camera 800. In at least one image projection. For example, in at least one embodiment, embodiment, the diameter of the entrance pupil (assuming a the u and v, from Equations 15 and 16 can be mapped to circular aperture) cannot be larger than the physical diameter the tilt angle output by the accelerometer on the device. In of lens 813, and will typically be somewhat smaller. Thus, the another embodiment, the accelerometer output can be lin range of motion of the center of perspective may be small in 10 early or quadratically scaled for effect. comparison to objects in the scene being photographed. In at least one embodiment, tilt angles are coupled in a During such interaction, it may be desirable that the viewer directly proportional manner to the position of the center of have the impression that the center of perspective is moving perspective. For example, tilting to the left or right controls more than it is. Referring now to FIG. 15, there is shown a left or right displacement of the center of perspective, respec flow diagram depicting an example of a method of interactive 15 tively; forward-backward tilt controls forward or backward projection of 2-D images with varying center of perspective, displacement of the center of perspective, respectively. according to one embodiment. The depicted method operates In at least one embodiment, inertia is introduced, so that as follows to create the impression that the center of perspec changes in tilt angle are not coupled directly to the position of tive is moving more than it is. the center of perspective; rather a previous position is taken The 2-D image is scaled 1501 to be somewhat larger than into account, so that changes to the position are effectively the screen (or the window on the screen) that it is being damped. The introduction of inertia adds smoothness to the displayed in, such that only a window-sized Sub-region of the response. 2-D image may be viewed at any moment. The range of Whichever methodology is used for coupling changes in motion of the 2-D image is defined 1502, relative to the tilt angle (and other motions detected by accelerometers), screen, as the maximum allowed while ensuring that the 25 Such changes can be used as user input for the technique image is visible at all locations of the screen. Thus, the edges described above in connection with FIG. 7. of the 2-D image remain out of view. Varying Center of Perspective in a Slideshow The position of the 2-D image is coupled 1503, relative to One common method for viewing digital images is as a the screen, with the position of the center of perspective, such slide show. The slide show may be viewed on any type of that full-range motion of the center of perspective corre 30 digital display, including, for example a display associated sponds to full-range motion of the 2-D image. The coupling with a computer, tablet computer, laptop computer, mobile may be linear or non-linear. The polarity of the coupling may phone, television, and/or any other type of display. According ensure that, for example, when the center of perspective is at to at least one embodiment, in displaying a slideshow, the its lower-left extreme (in the coordinates of the viewer), the perspective may be automatically changed to produce more lower-left corner of the 2-D image is visible. 35 engaging effects. Then, user input is received 1504, and the center of per For example, in at least one embodiment, the display may spective is adjusted 1505 according to the received input. If, automatically Zoom in on the image, and then pan across the in step 1506, additional user input is received, the method image. Such operations may be performed in an automated returns to step 1504. Otherwise, the method ends 1599. manner, either according to specifications provided by an Referring now to FIG. 7, there is shown an example of 40 author of a slideshow, or based on default settings. While exaggerated center-of-perspective movement, according to , the perspective may be changed in tandem with the one embodiment. The Figure depicts the display of an pan. With the pan and perspective change synchronized, an unscaled 2-D image 702 (containing object 703) in an on effect similar to viewing a scene while moving one’s head screen window 701. In the top part of the Figure, the size of may be created. window 701 is the same as the size of 2-D image 702, so there 45 In at least one embodiment, the change in perspective is is no room for movement to give the impression of a change performed in a manner that is consistent with the pan. In at in the center of perspective. Although object 703 changes in least one embodiment, this effect is accomplished using the appearance at the center of perspective shifts from the lower method described above in connection with FIG. 15, although left to the upper right, there is no change in the position of instead of responding to user input, shifts in the center of object 703 within window 701. 50 perspective are performed automatically based on the desired In the bottom part of the Figure, 2-D image 702 has been effect for the slide show. scaled to 1.25 times the size of window 701. Thus, at any Caching Images for Varying Center of Perspective given time, a portion of 2-D image 702 is outside window 701 In at least one embodiment, any number of images having and is not visible. This allows for a range of movement of 2-D different centers of perspective can be pre-computed and image 702 with respect to window 701, giving the impression 55 stored in a cache. Such a technique is useful, for example, of a change in the center of perspective. In particular, as the when the processing power of the playback device is insuffi center of perspective shifts from the lower left to the upper cient for on-the-fly generation of Such images. During pre right, object 703 moves within the displayed window 701 to sentation of images using varying centers of perspective, the reinforce the change in center of perspective. system can retrieve images as needed from the cache. If a Varying Center of Perspective by Tilting a Handheld Device 60 desired center of perspective is not available in the cache, in at Hand-held devices, such as mobile phones and tablets, least one embodiment, the system can retrieve two or more often include accelerometers to measure the magnitude and images having centers of perspective close to the desired direction of an instantaneous acceleration vector, including center of perspective in the cache file, and interpolate or blend the effect of gravity. If the device is held still, except for slow them together to generate an image that approximates the changes to its orientation, the accelerometers provide an 65 desired center of perspective. Images from the cache file can accurate indication of the direction of gravity relative to the also be used in connection with techniques for sharing device, and thus of the tilt of the device. images, such as those described in related U.S. Utility appli US 8,971,625 B2 23 24 cation Ser. No. 13/155,882 for “Storage and Transmission of When the automatic animation is generated, the user action Pictures Including Multiple Frames, filed Jun. 8, 2011, the data is analyzed and used to create an animation that is aes disclosure of which is incorporated herein by reference in its thetically pleasing to users. entirety. In particular, images in the cache file can be shared in For example, in one embodiment, a series of images, lieu of (or in addition to) sharing the light field picture. 5 referred to as a refocus stack, each corresponding to a differ In at least one embodiment, the number of images to be ent virtual focal plane, is made publicly available on the stored in the cache file is determined based, at least in part, on Internet. This set of images also includes a mapping of loca the particular characteristics of the image content. A particu tion to the image containing the best focus for the location. lar scene may dictate storage of more (or fewer) images based Each time a user interacts with the refocus stack, the click and 10 location are recorded to a database. Subsequently, when an on, for example, the depth variation of the scene being animation is to be created, the set of clicks are grouped based depicted. For example, if the scene is a flat wall, it is sufficient on image location and/or corresponding depth. In one to store only one image in the cache, because all images of example, the animation may be generated by selecting the different perspective are identical. By contrast, images hav three most popular locations on the image, and cycling the ing greater amounts of depth variation of the scene, more 15 focus through these three positions on Some interval (for images can be stored so as to avoid artifacts that may result example, one second at each position, followed by a 0.5- from insufficient images in the cache. Such an approach second transition). In this manner, an animation is automati improves overall quality, while avoiding overtaxing cally generated based on the recorded user interactions. resources Such as preprocessing time and storage space by Generalized Projection pre-computing more images than necessary. The above description sets forth mechanisms for generat In at least one embodiment, the number of images to be ing projections given a light field and a depth map for normal stored, and their centers of perspective, are determined from refocusing, EDOF, and shearing EDOF. In other embodi the depth map and/or image content. ments, other types of projections can be generated. Any suitable structure and range for the distribution of The general equations for representing a projection opera centers of perspective can be used. Referring now to FIG. 20. 25 tion can be described as: there is shown an example of a distribution of centers of perspective 2000 within a bounding aperture 812, according to one embodiment, wherein an image for each center of perspective 2000 has been pre-computed and stored in a (Eqs. 18, 19) cache. In this example, a hexagonal grid is used, and the range 30 where d is the depth of the representative ray, and D is the ofu, v) is limited to the range of aperture 812. Central depth parameter, which can be for example the target refocus center of perspective 2000A is an on-axis point of view, while depth. For regular refocusing, fx-Du, and for shearing all others are off-axis by an amount indicated by the distance EDOF projection, f, X-d(u-u). Note that u is actually a from that center of perspective 2000 and central center of variable that can be adjusted or even function of other vari perspective 2000A. The spacing L in-between neighboring 35 able. centers of perspective 2000 can be chosen such that the dis The following are three examples of generalized projec parity of an object with certain depth D, is below some tions. One skilled in the art will recognize that the techniques threshold T: described herein can be extended to many other types of projections. LDS

wherein: wherein: C. comprises the dolly Zoom effect parameter; C. comprises the dolly Zoom effect parameter; d comprises the depth of the representative ray; and d comprises the depth of the representative ray; and 40 D comprises the depth of the fixed location. D comprises the depth of the fixed location. 15. The system of claim 14, wherein: 9. The computer program product of claim 8, wherein: the scene comprises a plurality of objects; the scene comprises a plurality of objects; the fixed location corresponds to one of the objects in the the fixed location corresponds to one of the objects in the Scene; and Scene; and 45 D comprises the depth of the object corresponding to the D comprises the depth of the object corresponding to the fixed location. fixed location. 16. The system of claim 13, wherein: 10. The computer program product of claim 7, wherein: the scene comprises a plurality of objects; and the scene comprises a plurality of objects; and the fixed location corresponds to one of the objects in the the fixed location corresponds to one of the objects in the 50 SCCC. SCCC. 17. The system of claim 16, wherein the object correspond 11. The computer program product of claim 10, wherein ing to the fixed location maintains constant apparent size in the object corresponding to the fixed location maintains con the series of two-dimensional images. stant apparent size in the series of two-dimensional images. 18. The system of claim 17, wherein at least one object 12. The computer program product of claim 11, wherein at 55 other than the object corresponding to the fixed location has least one object other than the object corresponding to the different apparent sizes in different images in the series of fixed location has different apparent sizes in different images two-dimensional images. in the series of two-dimensional images. k k k k k