METHOD OF GENERATING VIEW-DEPENDENT COMPENSATED IMAGES

Abstract
A method of generating view-dependent compensated images is disclosed. A uniform image is projected on a reflective screen, resulting in a first captured image. The distribution of specular highlight is predicted according to the first captured image, thereby obtaining model parameters. Calibration images are estimated according to the model parameters and a viewing angle, and a compensated image is generated according to the calibration images at the viewing angle.
Description
BACKGROUND OF THE INVENTION

1. Field of the Invention


The present invention generally relates to an image projector, and more particularly to architecture of generating view-dependent compensated images for a non-Lambertian surface.


2. Description of Related Art


Using an image projector in a mobile phone or digital camera greatly overcomes the screen size limitation of the handheld device and allows the image to be conveniently projected onto a bigger area on any nearby surface, such as a wall. Ideally, we would like the handheld projector to be able to project a clear image regardless of the physical characteristics of the projection surface. In practice, however, the projection surface available in the surroundings is often far from ideal and causes distortions to the projected image. As a result, compensation must be applied to the image before projection to counteract the non-ideal characteristics of the projection surface.


One fundamental assumption of most compensation techniques is that the camera is placed where the viewer is supposed to be. This assumption is easily violated since a projector-camera (procam) device can be placed at an angle with respect to the viewer. This nullifies the compensation calculated based on the assumption that the viewer and the camera are aligned or collocated at the same place. Thus, for non-Lambertian screens one should design a more general compensation algorithm that takes the viewing direction into consideration.


As a result, a need has arisen to propose a novel scheme of generating view-dependent compensated images for a non-Lambertian surface.


SUMMARY OF THE INVENTION

In view of the foregoing, it is an object of the embodiment of the present invention to provide a method of generating view-dependent compensated images for a non-Lambertian surface with multifold advantages. First, the embodiment provides a simple scheme that does not require additional projectors or cameras to reconstruct the reflection property of the surface—only one camera and one projector suffice. Second, the embodiment predicts the calibration images for different viewing angles from those captured at a single viewing angle, which greatly extends the capability of a procam system. Third, the embodiment introduces a feedback to re-estimate the specular light iteratively, which avoids over-compensation.


According to one embodiment, a procam system comprised of a projector and a camera is provided. A uniform image is projected on a reflective screen, resulting in a first captured image. The distribution of specular highlight is predicted according to the first captured image, thereby obtaining model parameters. Calibration images are estimated according to the model parameters and a viewing angle. A compensated image is generated according to the calibration images at the viewing angle.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 shows a block diagram illustrative of architecture of generating view-dependent compensated images for a non-Lambertian surface according to one embodiment of the present invention;



FIG. 2 shows an exemplary embodiment, to which a projector-camera system may be adapted; and



FIG. 3 shows a detailed block diagram of the radiometric compensation unit of FIG. 1.





DETAILED DESCRIPTION OF THE INVENTION


FIG. 1 shows a block diagram illustrative of architecture 100 of generating view-dependent compensated images for a non-Lambertian (or reflective) surface according to one embodiment of the present invention. The composing blocks of FIG. 1 may be implemented by hardware or be performed, for example, by a digital signal processor.



FIG. 2 shows an exemplary embodiment, to which a projector-camera (procam) system 100A comprised of a projector 21 and a camera 22 bound together may be adapted. However, the embodiment, with minor modification, may also be adaptable to a procam system comprised of multiple projectors and cameras. As shown in FIG. 2, as a viewer 24 moves along xz-plane, a viewing angle θ, measured in degree, is thus defined. In the embodiment, the viewing angle θ is 90 when the viewer 24 stands right in front of a reflective screen 23.


As shown in FIG. 1, in unit 11A, a uniform image, e.g., a uniform gray image, U is projected on the reflective screen 23 (FIG. 2), resulting in a (first) captured image LU,90.


While most of light is evenly scattered, a portion of light rays directly reflect as if the surface of the reflective screen 23 is a mirror. The mirror-like reflection of light is commonly known as specular highlight. The architecture 100, therefore, utilizes a unit for predicting distribution of the specular highlight. The embodiment adopts Phong model, as disclosed by B. T. Phong, “Illumination for computer generated pictures,” Communications of the ACM, vol. 18, no. 6, pp. 311-317, 1975, the disclosure of which is incorporated herein by reference.


Specifically, the specular highlight predicting unit 12 includes a luminance normalization sub-unit 121A for normalizing the (first) captured image LU,90, resulting in a (first) normalized captured image {circumflex over (L)}U,90, with value ranging from 0 to 1, denoting spatial variation of the luminance. In addition to the specular highlight, the luminance variation is also caused by vignetting, introduced by imperfection of lens, which often results in luminance reduction at the periphery of a photo. Therefore, vignetting factor need be estimated and excluded before reconstructing the Phong model.


Specifically, the vignetting effect may be calculated, in unit 11B, by projecting the same uniform image U onto an ideal projection screen (not shown), which is assumed to be highly, if not perfectly, diffusive, resulting in a (second) captured image Q. The (second) captured image Q is then normalized, by a luminance normalization sub-unit 121B, to obtain a (second) normalized captured image {circumflex over (Q)}, which is the luminance variation caused by pure vignetting. Subsequently, in specular highlight extraction sub-unit 122, specular highlight S90 may be extracted by








S
90



(

x
,
y

)


=





L
^


U
,
90




(

x
,
y

)




Q
^



(

x
,
y

)



.





Afterwards, in Phong model parameters fitting sub-unit 123, Phong model parameters ks and γ may be obtained, for example, by linear regression, for describing the specular highlight Is as






I
s
=k
s({circumflex over (R)}−{circumflex over (V)})γis


where ks is a specular reflection constant, {circumflex over (R)} is a direction of a perfectly reflected light, {circumflex over (V)} is a direction toward the viewer 24, γ is a shininess constant for screen material, and is is intensity of a light source.


After obtaining parameters (e.g., ks and γ) of model for predicting distribution of the specular highlight, the process of the architecture 100 proceeds to a unit 13 of estimating calibration images. Specifically, in a specular highlight reconstruction sub-unit 131, a specular highlight Sθ at an arbitrary viewing angle θ may be reconstructed or predicted based on the model parameters and the viewing angle θ, obtained, for example, by a sensor 14. Subsequently, in an image color estimation sub-unit 132, luminance difference Dθ between the specular highlight seen at 90° C. and θ is first generated, (that is, Dθ=sL(Sθ−S90), where sL is a scaling factor), and plural calibration images at θ are estimated by adding the luminance difference Dθ (of S90 and Sθ) to calibration images at 90°. That is,






L
M,θ
=L
M,90
+n(Sθ−S90), Mε{R, G, B, U, S}


where n is a scaling factor.


In the embodiment, the calibration images LM,θ comprise four uniform-colored images (red, green, blue and gray) and one color ramp image consisting of pixels from gray-level 0 to gray-level 255.


Still referring to FIG. 1, a radiometric compensation unit 15 is utilized to generate a compensated image Ic according to the calibration images LM,θ at θ. FIG. 3 shows a detailed block diagram of the radiometric compensation unit 15 of FIG. 1 for generating a compensated image Ic that, when projected on the reflective (or colored) screen 23, is perceived almost the same as projection of a test image Iw on a white screen. Specifically, in sub-unit 151, the test image Iw is converted first to a desired decoupled luminance {tilde over (C)}w by a mapping ρ w, which is a monotonic function in the embodiment. Then, in sub-unit 152, a desired luminance Cw is generated by multiplying the decoupled luminance {tilde over (C)}w by a color matrix {tilde over (W)}w, which captures coupling between each color channel of the projector 21 and the camera 22. Here, the desired luminance Cw serves as a simulation of the perceived luminance supposing the test image Iw is projected on the white screen. Thereafter, the desired luminance Cw is subject to mapping 153, e.g., tone mapping, that compresses dynamic range within a recoverable range while performing compensation toward photometric correctness, therefore resulting in a mapped desired luminance Cc. The tone mapping, however, reduces image contrast. Therefore, tradeoff between the photometric correctness and the contrast should be optimized, for example, by maximizing the number of pixels that lie within the recoverable dynamic range, while preserving as much contrast as possible. Afterwards, sub-unit 154 obtains an achievable decoupled luminance {tilde over (C)}c, according to the mapped desired luminance Cc, by decoupling the color channels. Finally, in sub-unit 155, the achievable decoupled luminance {tilde over (C)}c is mapped to an 8-bit pixel value, therefore resulting in the compensated image Ic.


The luminance of the projected light determines the chroma and the intensity of the specular highlight. In particular, when a compensated image is projected, the specular highlight slightly differs from that estimated in the initial condition, under which the calibration image is projected. This often leads to over-compensation. Accordingly, as shown in FIG. 1, specular highlight feedback is incorporated to recalculate, in sub-unit 131, the specular highlight Sθ based on the content of the compensated image Ic. In the embodiment, the intensity of specular highlight is is changed to ic according to the following equation:







i
c

=


i
s





I
_

c


U
_







where Ū and Īc are average luminance of U and Ic, respectively, for example, by iterating the feedback loop three times.


Although specific embodiments have been illustrated and described, it will be appreciated by those skilled in the art that various modifications may be made without departing from the scope of the present invention, which is intended to be limited solely by the appended claims.

Claims
  • 1. A method of generating view-dependent compensated images, comprising: providing a procam system comprised of a projector and a camera;projecting a uniform image on a reflective screen, resulting in a first captured image;predicting distribution of specular highlight according to the first captured image, thereby obtaining model parameters;estimating calibration images according to the model parameters and a viewing angle; andgenerating a compensated image according to the calibration images at the viewing angle.
  • 2. The method of claim 1, wherein the distribution of specular highlight is predicted based on Phong model, thereby obtaining Phong model parameters by linear regression.
  • 3. The method of claim 1, further comprising: projecting the uniform image onto an ideal projection screen that is substantially diffusive, resulting in a second captured image.
  • 4. The method of claim 3, wherein the step of predicting the distribution of specular highlight comprises: normalizing the first captured image, resulting in a first normalized captured image;normalizing the second captured image, resulting in a second normalized captured image; andextracting the specular highlight as a ratio of the first normalized captured image to the second normalized captured image.
  • 5. The method of claim 1, wherein the step of estimating the calibration images comprises: reconstructing a specular highlight at the viewing angle based on the model parameters and the viewing angle;generating luminance difference between a specular highlight seen at 90 degrees and the viewing angle; andestimating a plurality of calibration images at the viewing angle by adding the luminance difference to calibration images at 90 degrees.
  • 6. The method of claim 5, wherein the plurality of calibration images comprises one color ramp image and four uniform-colored images of red, green, blue and gray, respectively.
  • 7. The method of claim 5, wherein the specular highlight is reconstructed further based on the compensated image by feeding back the compensated image before reconstructing the specular highlight.
  • 8. The method of claim 1, wherein the viewing angle is provided by a sensor.
  • 9. The method of claim 1, when the compensated image is projected on the reflective screen, the compensated image is perceived substantially the same as projection of a test image on a white screen.
  • 10. The method of claim 9, wherein the step of generating the compensated image comprises: converting the test image to a desired decoupled luminance by first mapping;generating a desired luminance by multiplying the decoupled luminance by a color matrix, which captures coupling between each color channel of the projector and the camera;subjecting the desired luminance to second mapping, that compresses dynamic range within a recoverable range while performing compensation toward photometric correctness, therefore resulting in a mapped desired luminance;obtaining an achievable decoupled luminance according to the mapped desired luminance by decoupling the color channels; andthird mapping the achievable decoupled luminance to an 8-bit pixel value, therefore resulting in the compensated image.
  • 11. The method of claim 10, wherein the first mapping is a monotonic function.
  • 12. The method of claim 10, wherein the second mapping is tone mapping.
  • 13. The method of claim 1, wherein the projector and the camera of the procam system are bound together.
CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of U.S. Provisional Application No. 61/697,697, filed on Sep. 6, 2012 and entitled “Compensating Specular Highlights for Non-Lambertian Projection Surfaces,” the entire contents of which are incorporated herein by reference.

Provisional Applications (1)
Number Date Country
61697697 Sep 2012 US