A camera aperture includes a first polarizer and a second polarizer with a polarization 90° with respect to the first polarizer. The second polarizer has a through hole at a center. A polarizing rotator is disposed between the first polarizer and the second polarizer. A size of the aperture is changed when a voltage is applied selectively to the polarizing rotator.
|
1. A camera aperture, comprising:
a first polarizer with a first polarization;
a second polarizer with a second polarization offset by 90° from the first polarization, the second polarizer having a through hole; and
a polarizing rotator disposed between the first polarizer and the second polarizer.
11. A camera aperture, comprising:
a set of polarizers, all but one of the polarizers having a through hole, in which a polarization of all polarizers having a through hole is offset by 90° from the polarization of the one polarizer without the through hole; and
a set of polarizing rotators disposed between each pair of polarizers.
18. A method for switching camera aperture sizes, comprising the steps of:
passing a light field through a first polarizer with a first polarization; and then
passing the light field through a polarizing rotator while selectively applying a voltage to the polarizing rotator; and then
passing the light field through a second polarizer with a second polarization offset by 90° from the first polarization of the first polarizer, the second polarizer having a through hole.
19. A method for switching camera aperture sizes, comprising steps of:
passing a light field through a set of polarizers, all but one of the polarizers having a through hole, in which a polarization of all polarizers having a through hole is offset by 90° from the polarization of the one polarizer without the through hole; and
passing the light field through a set of polarizing rotators, each polarizing rotator disposed between each pair of the polarizers while selectively applying voltages to the polarizing rotators.
2. The camera aperture of
means for applying a voltage to the polarizing rotator.
3. The camera aperture of
means for selectively applying a voltage to the polarizing rotator.
4. The camera aperture of
5. The camera aperture of
9. The camera aperture of
10. The camera aperture of
12. The camera aperture of
means for selectively applying voltages to the set of polarizing rotators.
13. The camera aperture of
14. The camera aperture of
15. The camera aperture of
16. The camera aperture of
17. The camera aperture of
|
This invention relates generally to cameras, and more particularly to fast switching apertures.
Matting and compositing are frequently used in image and video editing, 3D photography, and film production. Matting separates a foreground region from an input image by estimating a color F and an opacity α for each pixel in the image. Compositing uses the matte to blend the extracted foreground with a novel background to produce an output image representing a novel scene. The opacity α measures a ‘coverage’ of the foreground region, due to either partial spatial coverage or partial temporal coverage, i.e., motion blur. The set of all opacity values α is called the alpha matte, the alpha channel, or simply a matte.
The matting problem can be formulated as follows. An image of a foreground against an opaque black background in a scene is αF. An image of the background without the foreground is B. An alpha image, where each pixel represents a partial coverage of that pixel by the foreground, is α. The image α is essentially an image of the foreground object ‘painted’ white, evenly lit, and held against the opaque background. The scale and resolution of the foreground and background images can differ due to perspective foreshortening.
The notions of an alpha matte, pre-multiplied alpha, and the algebra of composition have been formalized by Porter et al., “Compositing digital images,” in Proceedings of the 11th Annual Conference on Computer Graphics and Interactive Techniques, ACM Press, pp. 253-259, 1984. They showed that for a pinhole (narrow aperture) camera, the image αF in front of the background image B can be expressed 501 (see
IP=αF+(1−α)B (1)
where IP is a pinhole (narrow aperture) image, αF is the pre-multiplied image of the foreground against an opaque background, and B is the image of the opaque background in the absence of the foreground.
Matting is the inverse problem of solving for the unknown values of the variables (α, Fr, Fg, Fb, Br, Bg, Bb), given the composite image pixel values (IP
Matting is described generally by Smith et al., “Blue screen matting,” Proceedings of the 23rd Annual Conference on Computer Graphics and Interactive Techniques, ACM Press, pp. 259-268; and U.S. Pat. No. 4,100,569, “Comprehensive electronic compositing system,” issued to Vlahos on Jul. 11, 1978.
Conventional matting requires a background with known, constant color, which is referred to as blue screen matting. If a digital camera is used, then a green matte is preferred. Blue screen matting is the predominant technique in the film and broadcast industry. For example, broadcast studios use blue matting for presenting weather reports. The background is a blue screen, and the foreground region includes the weatherman standing in front of the blue screen. The foreground is extracted, and then superimposed onto a weather map so that it appears that the weatherman is actually standing in front of the map. However, blue screen matting is costly and not readily available to casual users. Even production studios would prefer a lower-cost and less intrusive alternative.
Ideally, one would like to extract a high-quality matte from an image or video with an arbitrary, i.e., unknown, background. This process is known as natural image matting. Recently, there has been substantial progress in this area, Ruzon et al., “Alpha estimation in natural images,” CVPR, vol. 1, pp. 18-25, 2000; Hillman et al., “Alpha channel estimation in high resolution images and image sequences,” Proceedings of IEEE CVPR 2001, IEEE Computer Society, vol. 1, pp. 1063-1068, 2001; Chuang et al., “A Bayesian approach to digital matting,” Proceedings of IEEE CVPR 2001, IEEE Computer Society, vol. 2, pp. 264-271, 2001; Chuang et al., “Video matting of complex scenes,” ACM Trans. on Graphics 21, 3, pp. 243-248, July, 2002; and Sun et al., “Poisson matting,” ACM Trans. on Graphics, August 2004. Unfortunately, all of those methods require substantial manual intervention, which becomes prohibitive for long image sequences and for non-professional users. The difficulty arises because matting from a single image is fundamentally under-constrained.
It desired to perform matting using non-intrusive techniques. That is, the scene does not need to be modified. It is also desired to perform the matting automatically. Furthermore, it is desired to provide matting for ‘rich’ natural images, i.e., images with a lot of fine, detailed structure.
Most natural image matting methods require manually defined trimaps to determine the distribution of color in the foreground and background regions. A trimap segments an image into background, foreground and unknown pixels. Using the trimaps, those methods estimate likely values of the foreground and background colors of unknown pixels, and use the colors to solve the matting Equation (1).
Bayesian matting, and its extension to image sequences, produces the best results in many applications. However, those methods require manually defined trimaps for key frames. This is tedious for a long image sequences. It is desired to provide a method that does not require user intervention, and that can operate in real-time as an image sequence is acquired.
The prior art estimation of the color distributions works only when the foreground and background are sufficiently different in a neighborhood of an unknown pixel. Therefore, it is desired to provide a method that can extract a matte where the foreground and background pixels have substantially similar color distributions.
The Poisson matting of Sun et al. solves a Poisson equation for the matte by assuming that the foreground and background are slowly varying. Their method interacts closely with the user by beginning from a manually constructed trimap. They also provide ‘painting’ tools to correct errors in the matte.
An unassisted, natural video matting system is described by Zitnick et al., “High-quality video view interpolation using a layered representation,” ACM Trans. on Graphics 23, 3, pp. 600-608, 2004. They acquire videos with a horizontal row of eight cameras spaced over about two meters. They measure depth discrepancies from stereo disparity using sophisticated region processing, and then construct a trimap from the depth discrepancies. The actual matting is determined by the Bayesian matting of Chuang et al. However, that method has the view dependent problems that are unavoidable with stereo cameras, e.g., reflections, specular highlights, and occlusions. It is desired to avoid view dependent problems.
Difference matting, also known as background subtraction, solves for αand the alpha-multiplied foreground αF, given background and trimap images, Qian et al., “Video background replacement without a blue screen,” Proceedings of ICIP, vol. 4, 143-146, 1999. However, difference matting has limited discrimination at the borders of the foreground.
Another method uses back lighting to determine the matte. Back lighting is a common segmentation method used in many computer vision systems. Back lighting has also been used in image-based rendering systems, Debevec et al., “A lighting reproduction approach to live action compositing,” ACM Transactions on Graphics 21, 3, pp. 547-556, 2002. That method has two drawbacks. First, active illumination is required, and second, incorrect results may be produced near object boundaries because some objects become highly reflective near grazing angles of the light.
Scene reconstruction is described by Favaro et al., “Seeing beyond occlusions (and other marvels of a finite lens aperture),” Proc. of the IEEE Intl. Conf. on Computer Vision and Pattern Recognition, p. 579, 2003. That method uses defocused images and gradient descent minimization of a sum-squared error. The method solves for coarse depth and a binary alpha.
Another method uses a depth-from-focus system to recover overlapping objects with fractional alphas, Schechner et al, “Separation of transparent layers using focus,” International Journal of Computer Vision, pp. 25-39, 2000. They position a motorized CCD axially behind a lens to acquire images with slightly varying points of focus. Depth is recovered by selecting the image plane location that has the best focused image. That method is limited to static scenes.
Another method uses three video streams acquired by three cameras with different depth-of-field and focus and that share the same center of projection to extract mattes for scenes with unconstrained, dynamic backgrounds, McGuire et al., “Defocus Video Matting,” ACM Transactions on Graphics 24, 3, 2003; and U.S. patent application Ser. No. 11/092,376, filed by McGuire et al. on Mar. 29, 2005, “System and Method for Image Matting.”
Matting is a process for extracting a high-quality alpha matte and foreground from an image or a video. Conventional techniques require either a known background, e.g., a blue screen, or extensive manual interaction, e.g., manually specified foreground and background regions. Matting is generally under-constrained, because not enough information is obtained when the images are acquired.
One embodiment of the invention provides a system and method for extracting a matte automatically from a video. The video includes sets of pinhole (narrow aperture) images and wide apertures images (frames) that are produced either in parallel or in a time-interleaved manner.
The parallel sets of images can be acquired with a camera having two optical systems that have a common center of projection. One optical system has a large depth-of-field to acquire the pinhole images, while the other optical system has a small depth-of-field to acquire the wide apertures images.
A single camera can acquire the time-interleaved images using a fast switching aperture. The aperture includes polarizing elements that can rapidly switch between different aperture sizes. As an advantage, the aperture size is manipulated using optical techniques. Thus, the aperture does not require any moving parts, and can be switched at rates far exceeding mechanical apertures.
System Structure
The video 110 is acquired by a camera 101 including a pinhole (narrow aperture) optical system 102 and a foreground optical system 103. The optical systems 102-103 have a single center of projection on an optical axis 160, and use a beam splitter 151. The optical systems are calibrated with respect to each other. The video 110 is provided to a processor 140 performing the method 500.
The video 110 includes sets of images 111-112 acquired parallel in time. The set of images IP 111 is acquired at a large depth-of-field 131, i.e., the images IP 111 are acquired with a very narrow aperture focused at the foreground. The images IP 111 can be approximated using a pinhole camera model, see Equation (1). A corresponding set of wide aperture mages IF 112 is acquired in parallel with a small depth-of-field 132 focused at the foreground.
Because the images are interleaved in time, pairs of corresponding narrow aperture images IP and wide aperture images IF may not be registered when the scene 120 includes moving objects. In this case, a conventional optical flow process can be used to register the sets of images IP and IF.
Camera Aperture
Therefore, as shown in
Most conventional camera apertures are mechanical, and include moving parts. There are two major problems with such apertures. First, the apertures are relatively slow to switch to different depths of field, and second, the rapid movement of the parts causes vibration in the camera body, which adds noise to the images, particularly if the imager is a CCD type of device. Therefore, it is desired to provide a fast switching camera aperture that operates on optical, and not mechanical, principals.
The aperture 300 can switch size at a frame rate of the camera 201 or higher, e.g., at a rate up to about 10 KHz. The aperture mechanism 300 includes two polarizers 301-303 having a first diameter D. The second polarizer 303 has a pinhole or narrow aperture (through hole) 304 having a second diameter d. The polarization of the polarizers 301-303 are rotated 90° with respect to each other, as shown. Therefore, light only passes through the pinhole 304.
A polarization rotator element 302, also having a diameter D, is disposed between the polarizers 301-303. The element 302 rotates the polarization of the light field passing though it by 90° when a voltage (V) is applied to the polarization rotator 302. For example, the element is a ferroelectric liquid crystal. Thus, when the voltage is applied to the element, the camera 201 has a large aperture diameter D because light passes though all three elements 301-303. Otherwise, absent the voltage, the light only passes through the pinhole 304 having an aperture diameter d. Commercial ferroelectric liquid crystal devices can switch from a zero-rotation state to a 90-degree rotation state in less than 10 microseconds with power inputs on the order of a few volts at a fraction of a milliamp. Other polarization rotators are possible to use. For example a Kerr cell can rotate polarization. Conventional nematic, supertwist liquid crystals can also rotate the polarization.
It should be noted, that if multiple through holes are used, it is actually possible to move the aperture along the optical axis, effectively changing the focal plane. This is not possible with mechanical apertures.
It should also be noted that various combinations of different through holes with differences in size, shape and offset from the optical axis can be used.
Method Operation
When the images are acquired according to the embodiments of the invention, then the following expression 502 (see
IF=αF+(1−α)BF, (2)
where
BF=B{circle around (×)}hB, (3)
and hB is a point spread function (PSF).
Given a known background, we can directly solve for α. Although we begin with a known background, we avoid many of the drawbacks of difference matting by using two sets of images: the pinhole images 111 and the wide aperture images 112.
From Equations (1) and (2), we obtain an expression 503 for α 141:
α=C+(IF−IP)/(B−BF), (4)
where C is a constant, e.g., 1.
To produce better results, we use:
α=(B−BF+IF−IP)/(B−BF). (5)
If color images are used, then B, BF, IP, and IF are vectors. Thus, the expression for α is
α=(∥B−BF+IF−IP∥)/(∥B−BF∥), (6)
where ∥·∥ is a length operator for color vectors.
Given α, we can determine αF using:
αF=IF+(α−1)BF (7)
or
αF=IP+(α−1)B (8)
or
αF=0.5×(IF+IP+(α−1)(BF+B)). (9)
However, the a expression can be ill-conditioned when B=BF. Therefore, alpha values for these pixels can not be determined reliably.
There are two possible solutions to this problem. A known background pattern can be used to guarantee that ∥B−BF∥ is substantially larger than zero, see below. Alternatively, alpha values can be interpolated from the neighboring pixels. One can either use a threshold for the denominator ∥B−BF∥ with the alpha values being interpolated from the neighbors when the denominator is less than a threshold, or one can use a confidence map for the value of the denominator. In this context, it is possible to use known scattered data interpolation methods, e.g., push-pull as described by Gortler et al., “The lumigraph,” Proceedings of the 23rd annual conference on Computer graphics and interactive techniques, ACM Press, pp. 43-54, 1996, incorporated herein by reference.
Matte Background Pattern
In many applications, it is necessary to guarantee perfect matting results. In this setting, any type of incorrect matting and compositing is simply not acceptable. In such applications, the background can be illuminated using a projector, or the background can include a known pattern so that the expression used to determine a is well-conditioned.
According to Equation (6), the denominator ∥B−BF∥ determines the precision of α. The background can have values from Bmin to Bmax. The image BF is a low-pass version of the background. An optimal low-pass (average) value of the background is:
BF=0.5×(Bmin+Bmax). (10)
Optimal values for B are Bmin and Bmax. Thus, the value of the denominator is always 0.5×(Bmax−Bmin). In the best case, when Bmin=0, the denominator is reduced to 0.5×Bmax and one bit of alpha precision is lost, e.g., if Bmax is an 8 bit value, then the maximum precision of alpha is 7 bits.
There are many background patterns that give these optimal results. Here, we described an example background. If the PSF hB is rotationally symmetric, then the pattern can be specified in 1D. Next, we determine allowed frequencies of the pattern.
If the size of the PSF hB is k pixels, then the minimum frequency of the pattern is k×0.5 pixels. If the large depth-of-field pixels are aligned with the pattern, then the maximum frequency of the pattern is one pixel. In cases of higher frequencies, different patterns values are averaged. The use of color improves the conditioning of the problem when the pixels are misaligned with pattern transitions. It is desired to shift the pattern for different colors such that the value of the denominator is always large for at least one color.
For example, as shown in
Although the invention has been described by way of examples of preferred embodiments, it is to be understood that various other adaptations and modifications may be made within the spirit and scope of the invention. Therefore, it is the object of the appended claims to cover all such variations and modifications as come within the true spirit and scope of the invention.
Matusik, Wojciech, Yerazunis, William S.
Patent | Priority | Assignee | Title |
7609327, | Apr 19 2006 | Mitsubishi Electric Research Laboratories, Inc.; Mitsubishi Electric Research Laboratories, Inc | Polarization difference matting using a screen configured to reflect polarized light |
8408467, | Dec 21 2009 | Sick AG | Optical apparatus for an optoelectronic sensor |
D644242, | Jun 23 2007 | Apple Inc. | Icon for a portion of a display screen |
D644243, | Jun 23 2007 | Apple Inc. | Icon for a portion of a display screen |
D659159, | Jun 23 2007 | Apple Inc. | Icon for a portion of a display screen |
D772932, | Sep 02 2014 | Apple Inc | Display screen or portion thereof with icon |
D780805, | Jun 05 2012 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D781878, | Sep 02 2014 | Apple Inc. | Display screen or portion thereof with animated graphical user interface |
D781879, | Sep 02 2014 | Apple Inc. | Display screen or portion thereof with animated graphical user interface |
D787533, | Sep 02 2014 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D788161, | Sep 08 2015 | Apple Inc | Display screen or portion thereof with graphical user interface |
D789385, | Sep 03 2014 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D796543, | Jun 10 2016 | Apple Inc | Display screen or portion thereof with graphical user interface |
D804502, | Jun 11 2016 | Apple Inc | Display screen or portion thereof with graphical user interface |
D804526, | Mar 06 2015 | Apple Inc. | Display screen or portion thereof with icon |
D805550, | Sep 02 2014 | Apple Inc. | Display screen or portion thereof with animated graphical user interface |
D808402, | Sep 03 2014 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D820300, | Jun 11 2016 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D822058, | Jun 10 2016 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D830410, | Sep 02 2014 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D831040, | Jun 11 2016 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D831674, | Sep 08 2015 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D836651, | Sep 03 2014 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D841664, | Sep 01 2014 | Apple Inc. | Display screen or portion thereof with a set of graphical user interfaces |
D842326, | Jun 11 2016 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D871425, | Sep 02 2014 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D880508, | Sep 01 2014 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D886843, | Jun 11 2016 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D888097, | Sep 02 2014 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D888762, | Sep 02 2014 | Apple Inc. | Display screen or portion thereof with a group of graphical user interfaces |
D892166, | Sep 02 2014 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D892821, | Sep 08 2015 | Apple Inc. | Display screen or portion thereof with animated graphical user interface |
D892823, | Sep 03 2014 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D895672, | Mar 15 2018 | Apple Inc | Electronic device with animated graphical user interface |
D898040, | Sep 02 2014 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D905745, | Oct 20 2010 | Apple Inc. | Display screen or portion thereof with icon |
D910040, | Jun 11 2016 | Apple Inc. | Display screen or portion thereof with animated graphical user interface |
D910043, | Jun 11 2016 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D910075, | Sep 02 2014 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D910686, | Aug 30 2018 | Apple Inc. | Electronic device with graphical user interface |
D911386, | Oct 22 2013 | Apple Inc. | Display screen or portion thereof with icon |
D914756, | Oct 29 2018 | Apple Inc | Electronic device with graphical user interface |
D916133, | Sep 08 2019 | Apple Inc | Electronic device with icon |
D916793, | Mar 06 2015 | Apple Inc. | Display screen or portion thereof with animated graphical user interface |
D920371, | Sep 02 2014 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D921690, | Jun 11 2016 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D928811, | Mar 15 2018 | Apple Inc. | Electronic device with animated graphical user interface |
D938492, | May 08 2018 | Apple Inc. | Electronic device with animated graphical user interface |
D940156, | Sep 03 2014 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D942509, | Jun 19 2020 | Apple Inc | Display screen or portion thereof with graphical user interface |
D949903, | Jun 11 2016 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D951287, | Jun 19 2020 | Apple Inc | Display screen or portion thereof with graphical user interface |
D956812, | Jun 09 2013 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D957439, | Sep 08 2019 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D958184, | Mar 15 2018 | Apple Inc. | Electronic device with animated graphical user interface |
D962244, | Oct 28 2018 | Apple Inc | Electronic device with graphical user interface |
D964425, | May 31 2019 | Apple Inc. | Electronic device with graphical user interface |
D978182, | Jun 11 2016 | Apple Inc. | Display screen or portion thereof with graphical user interface |
D984462, | Sep 02 2014 | Apple Inc. | Display screen or portion thereof with graphical user interface |
ER1293, | |||
ER2821, | |||
ER3133, | |||
ER3160, | |||
ER332, | |||
ER5154, | |||
ER7226, |
Patent | Priority | Assignee | Title |
20020131170, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jul 29 2005 | Mitsubishi Electric Research Laboratories, Inc. | (assignment on the face of the patent) | / | |||
Jul 29 2005 | MATUSIK, WOJCIECH | Mitsubishi Electric Research Laboratories, Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 016830 | /0839 | |
Jul 29 2005 | YERAZUNIS, WILLIAM S | Mitsubishi Electric Research Laboratories, Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 016830 | /0839 |
Date | Maintenance Fee Events |
Dec 19 2011 | REM: Maintenance Fee Reminder Mailed. |
May 06 2012 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
May 06 2011 | 4 years fee payment window open |
Nov 06 2011 | 6 months grace period start (w surcharge) |
May 06 2012 | patent expiry (for year 4) |
May 06 2014 | 2 years to revive unintentionally abandoned end. (for year 4) |
May 06 2015 | 8 years fee payment window open |
Nov 06 2015 | 6 months grace period start (w surcharge) |
May 06 2016 | patent expiry (for year 8) |
May 06 2018 | 2 years to revive unintentionally abandoned end. (for year 8) |
May 06 2019 | 12 years fee payment window open |
Nov 06 2019 | 6 months grace period start (w surcharge) |
May 06 2020 | patent expiry (for year 12) |
May 06 2022 | 2 years to revive unintentionally abandoned end. (for year 12) |