The present invention relates generally to imaging applications, and more specifically to processing image data to focus and/or correct the image data.
Imaging applications such as those involving cameras, video cameras, microscopes, telescopes and more have generally been limited in the amount of light that is collected. Thai is, most imaging devices do not record most of the information about light distribution entering the device. For example, conventional cameras such as digital still cameras and video cameras do not record most of the information about the light distribution entering from the world. In these devices, collected light is often not amenable to manipulation for a variety of approaches, such as for focusing at different depths (distances from the imaging device), correcting for lens aberrations or manipulating an angle of view.
For still-imaging applications, typical imaging devices capturing a particular scene generally focus upon a subject or object in the scene, with other parts of the scene left out of focus. For video-imaging applications, similar problems prevail, with a collection of images used in video applications failing to capture scenes in focus.
Many imaging applications suffer from aberrations with the equipment (lenses) used to collect light. Such aberrations may include, for example, spherical aberration, chromatic aberration, distortion, curvature of the light field, oblique astigmatism and coma. Correction for aberrations has typically involved the use of corrective optics, when tend to add bulk, expense and weight to imaging devices. In some applications benefiting from small-scale optics, such as camera phones and security cameras, the physical limitations associated with the applications make it undesirable to include additional optics.
Difficulties associated with the above have presented challenges to imaging applications, including those involving the acquisition and altering of digital images.
The present invention is directed to overcoming the above-mentioned challenges and others related to imaging devices and their implementations. The present invention is exemplified in a number of implementations and applications, some of which are summarized below. According to an example embodiment of the present invention, a light is detected with directional information characterizing the detected light. The directional information is used with the detected light to generate a virtual image, corresponding to one or both of a refocused image and a corrected image.
According to another example embodiment of the present invention, two or more subjects at different focal depths in a scene are imaged, with portions of the scene corresponding to each subject focused at different focal planes. Light from the scene is focused upon a physical focal plane and detected, together with information characterizing the direction front which the light arrived at particular locations on the physical focal plane. For at least one subject that is located at a depth of field that is not focused upon the physical focal plane, a virtual focal plane that is different than the physical focal plane is determined. Using the detected light and directional characteristics thereof, portions of the light corresponding to a focused image of the at least one subject upon the virtual focal plane are collected and added to form a virtual focused image of the at least one subject.
According to another example embodiment of the present invention, a scene is digitally imaged. Light from the scene that is passed to different locations on a focal plane is detected, and the angle of incidence of the light detected at the different locations on the focal plane is detected. A depth of field of a portion of the scene from which the detected light came is detected and used together with the determined angle of incidence to digitally re-sort the detected light. Depending upon the application, the re-sorting includes refocusing and/or correcting for lens aberrations. The above summary of the present invention is not intended to describe each illustrated embodiment or every implementation of the present invention. The figures and detailed description that follow more particularly exemplify these embodiments.
The invention may be more completely understood in consideration of the detailed description of various embodiments of the invention that follows in connection with the accompanying drawings, in which:
While the invention is amenable to various modifications and alternative forms, specifics thereof have been shown by way of example in the drawings and will be described in detail. It should he understood, however, that the intention is not to limit the invention to the particular embodiments described. On the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention.
The present invention is believed to be useful for a variety of different types of devices, and the invention has been found to be particularly suited for electronic imaging devices and applications. While the present invention is not necessarily limited to such applications, various aspects of the invention may be appreciated through a discussion of various examples using this context.
According to an example embodiment of the present invention, a four-dimensional (4D) light field (e.g., the light traveling along each ray in a region such as free space) is detected using an approach involving the determination of the amount and direction of light arriving at a sensor located at a focal plane. The two-dimensional position of light in the focal plane is detected, together with information characterizing the direction from which the light arrived at particular locations in the plane. With this approach, the directional lighting distribution arriving at different locations on the sensor are determined and used to form an image. In various discussions herein, the assembly or assemblies implemented for sensing and/or measuring of a light field are referred to as a “light ray sensor,” or a “ray sensor.”
In one application, an approach similar to the above is implemented using an imaging system having optics and sensors that sample the space of light rays that are incident on an imaging plane, with computational functionality that renders images from the set of measured rays in different ways. Each of the optics, sensors and computational functionality is implemented using a variety of approaches, in combination or distinctly, depending upon the implementation. For example, a camera having lenses (optics) that focus an image upon a photosensor array (sensors) located at an imaging plane can be used to sample the space of light rays. An output from the photosensor array is used with computational functions (e.g., at a processor internal and/or external to the camera) to render images, such as by computing photographs that are focused at different depths or with different depths of field, and/or computationally correcting lens aberrations to produce higher quality images.
In another example embodiment, optics and sensor components of an imaging system direct rays of light onto sensor elements such that each sensor element senses a set of rays including rays emanating from specific directions. In many applications, this set of rays is a bundle of rays that is localized in both space and direction. For many applications, this bundle of rays will converge to a single geometric ray of light as the optics and sensor resolutions increase. In this regard, various portions of the description herein refer to the values sensed by the sensor elements as “rays of light” or “light rays” or simply “rays,” even though in general they may not be limited to geometric rays.
Turning now to the figures,
Rays of light from a single point on a subject 105 in an imaged scene are brought to a single convergence point on the focal plane of the microlens array 120. For instance, when the imaged point on the subject 105 is at a distance from the main lens that is conjugate to the distance from the microlens array to the main lens, the dimension “d” is about equal to the dimension “s” as shown. A microlens 122 at this convergence point separates these rays of light based on the direction of the light, creating a focused image of the aperture of the main lens 110 on the photosensors underneath the micro lens. The photosensor array 130 detects light incident upon it and generates an output that is processed using one or more of a variety of components. In this application, the output light data is passed to sensor data processing circuitry 140, which uses the data together with positional information about each photosensor providing the data in generating an image of the scene (e.g., including subjects 105, 106 and 107). The sensor data processing circuitry 140 is implemented, for example, with a computer or other processing circuit selectively implemented in a common component (e.g., a chip) or in different components. In one implementation, a portion of the sensor data processing circuitry 140 is implemented in the imaging arrangement 390, with another portion of implemented in an external computer. Using the detected light (and, e.g., characteristics of the detected light) together with a known direction from which the light arrived at the microlens array (as computed using a known location of each photosensor), the sensor data processing circuitry 140 selectively refocuses and/or corrects light data in forming an image (where refocusing may be correcting). Various approaches to processing detected light data are described in detail below, with and without reference to other figures. These approaches may be selectively implemented with the sensor data processing circuitry 140 consistent with the above.
Different portions of the imaging system 100 are selectively implemented in a common or separate physical arrangement, depending upon the particular application. For example, when implemented with a variety of applications, the microlens array 120 and the photosensor array 130 are combined into a common arrangement 180. In some applications, the microlens array 120 and the photosensor array 130 are coupled together on a common chip or other circuit arrangement. When implemented with a hand-held device such as a camera-like device, the main lens 110, microlens array 120 and photosensor array 130 are selectively combined into a common imaging arrangement 190 integrated with the hand-held device. Furthermore, certain applications involve the implementation of some or all of the sensor data processing circuitry 140 in a common circuit arrangement with the photosensor array 130 (e.g., on a common chip). In some applications, the imaging arrangement 100 includes a preview arrangement 150 for presenting a preview image to a user capturing images. The preview arrangement is communicatively coupled to receive image data from the photosensor array 130. A preview processor 160 processes the image data to generate a preview image that is displayed on a preview screen 170. In some applications, the preview processor 160 is implemented together with the image sensor 180, on a common chip and/or in a common circuit. In applications where the sensor data processing circuitry 140 is implemented with the photosensor array 130 as discussed above, the preview processor 160 is selectively implemented with the sensor data processing circuitry 140, with some or all of the image data collected by the photosensor array 130 used to generate the preview image.
The preview image may be generated using relatively fewer computational functions and/or less data than that used to generate a final image. For instance, when implemented with a hand-held imaging device such as a camera or cell phone, a preview image that does not effect any focusing or lens correction may be sufficient. In this regard, it may be desirable to implement processing circuitry that is relatively inexpensive and/or small to generate the preview image. In such applications, the preview processor generates the image at a relatively low-computational cost and/or using less data, for example by using the first extended depth of field computational method as described above.
The imaging system 100 is implemented in a variety of manners, depending upon the application. For instance, while the microlens array 120 is shown with several distinguishable microlenses by way of example, the array is generally implemented with a multitude (e.g., thousands or millions) of microlenses. The photosensor array 130 generally includes a relatively finer pitch than the microlens array 120, with several photosensors for each microlens in the microlens array 120. In addition, the micolenses in the microlens array 120 and the photosensors in the photosensor array 130 are generally positioned such that light passing via each microlens to the photosensor array does not overlap light passed via adjacent microlenses.
In various applications, the main lens 110 is translated along its optical axis (as shown in
The image that forms under a particular microlens in the microlens array 122 dictates the directional resolution of the system for that location on the imaging plane. In some applications, directional resolution is enhanced by facilitating sharp microlens images, with the microlenses focused on the principal plane of the main lens. In certain applications the microlenses are at least two orders of magnitude smaller than the separation between the microlens array and the main lens 110. In these applications, the main lens 110 is effectively at the microlenses' optical infinity; to focus the microlenses, the photosensor array 130 is located in a plane at the microlenses focal depth.
The separation “s” between the main lens 110 and the microlens array 120 is selected to achieve a sharp image within the depth of field of the microlenses. In many applications, this separation is accurate to within about Δxp •(ƒm/Δxm), where Δxp is the width of a sensor pixel, ƒm is the focal depth of the microlenses and Δxm, is the width of the microlenses. In one particular application, Δxp is about 9 microns, ƒm is about 500 microns and Δxm is about 125 microns, with the separation between the microlens array 120 and the photosensor array 130 being accurate to about 36 microns.
The microlens array 120 is implemented using one or more of a variety of microlenses and arrangements thereof. In one example embodiment, a plane of microlenses with potentially spatially varying properties is implemented as the microlens array 120. For example, the microlens array may include lenses that are homogeneous and/or inhomogeneous, square in extent or non-square in extent, regularly distributed or non-regularly distributed, and in a pattern than is repeating or non-repeating, with portions that are optionally masked. The microlenses themselves may be convex, non-convex, or have an arbitrary profile to effect a desired physical direction of light, and may vary in profile from microlens to microlens on the plane. Various distributions and lens profiles are selectively combined. These various embodiments provide sampling patterns that are higher spatially (correspondingly lower angularly) in some regions of the array, and higher angularly (correspondingly lower spatially) in other regions. One use of such data facilitates interpolation to match desired spatial and angular resolution in the 4D space.
In other example embodiments, a regular mosaic of larger and smaller microlenses is used, hi one implementation, the resulting photosensor data is interpolated to provide a homogeneous sampling that has the maximum spatial and angular resolutions of a microlens or microlenses in the mosaic.
In another example embodiment, photosensor values are interpolated to a regular grid so that the resolution in all axes matches the maximum resolution in all axes.
In some applications, the weighting is implemented in a manner that depends on a decision function based on the values in a neighborhood. For example, the weighting may interpolate along the axes that are least likely to contain an edge in the 4D function space. The likelihood of an edge near that value can be estimated from the magnitude of the gradient of the function values at those locations, as well as the components of the Laplacian of the function.
In another example embodiment, each of the microlenses (e.g., in the array 1920 of
Referring again to
The following discussion refers to a general application of the imaging arrangement 100 of
Although the mapping of sensor elements to rays is discussed with respect to the figures (and other example embodiments), values associated with the various sensor elements are selectively represented by the value of the set of rays that is directed through optics to each particular sensor element. In the context of
In one example embodiment, the resolution of the microlens array 120 is selected to match a particular application's desired resolution for final images. The resolution of the photosensor array 130 is selected so that each microlens covers as many photosensors as required to match the desired directional resolution of the application, or the finest resolution of photosensors that may be implemented. In this regard, the resolution of the imaging system 100 (and other systems discussed herein) is selectively tailored to particular applications, with considerations such as the type of imaging, cost, complexity and available equipment used to arrive at a particular resolution.
Once image data is captured via optics and sensors (e.g., using imaging arrangement 190 in
In the context of
In another embodiment, for each pixel in an image output from a sensor arrangement, the computational component weights and sums a subset of the measured rays of light. In addition, the computational component may analyze and combine a set of images computed in the manner described above, for example, using an image compositing approach. Although the present invention is not necessarily limited to such applications, various aspects of the invention may be appreciated through the discussion of several specific example embodiments of such a computational component.
In connection with various example embodiments, image data processing involves refocusing at least a portion of an image being captured. In some embodiments, an output image is generated in the context of a photograph focused on desired elements of a particular scene. In some embodiments, the computed photograph is focused at a particular desired depth in the world (scene), with misfocus blur increasing away from the desired depth as in a conventional photograph. Different focal depths are selected to focus upon different subjects in the scene.
In some embodiments, the required light ray values do not correspond exactly to the discrete sample locations captured by the ray sensor. In some embodiments, the light ray value is estimated as a weighted sum of selected close sample locations. In some implementations, this weighting approach corresponds to a four-dimensional filter kernel that reconstructs a continuous four-dimensional light field from the discrete sensor samples. In some implementations, this four-dimensional filter is implemented with a four-dimensional tent function corresponding to quadrilinear interpolation of the 16 nearest samples in the four dimensional space.
In another example embodiment, darkening associated with pixels near a border of an output image is mitigated. For instance, with the pixels near the border of an output image, some required rays may not have been captured in the measured light field (they may exceed the spatial or directional bounds of the imaging arrangement, such as the microlens array 120 and photosensor array 130 in
As discussed above, a variety of different computational approaches are chosen for different applications. The following discussion addresses various such approaches. In some applications, reference is made to figures, and in other applications, the approaches are discussed generally. In each of these applications, the particular approaches may be implemented using a computational-type component, such as the sensor data processing circuitry 140 shown in
In another example embodiment, an imaging methodology for each output pixel for a particular imaging system corresponds to a virtual camera model in which a virtual film is rotated or deformed, arbitrarily and/or selectively, and a virtual main lens aperture is correspondingly moved and modified in size as appropriate. By way of example,
In another example embodiment, as exemplified in
A variety of approaches involve selective implementation of different apertures. In one example embodiment, the virtual aperture on the virtual lens plane is a generally circular hole, and in other example embodiments, the virtual aperture is generally non-circular and/or is implemented with multiple distinct regions of any shape. In these and other embodiments, the notion of “virtual aperture” can be generalized, and in some applications, corresponds to an approach involving the processing of light data to correspond to light that would be received via a selected “virtual” aperture. In various embodiments, a virtual aperture approach is implemented with a pre-determined but arbitrary function on a virtual lens plane.
In other example embodiments, as may be implemented in combination with the other example embodiments described herein, a method of computing output pixels is chosen independently. For example, in one example embodiment, parameters including the orientation of a virtual lens plane and the size of the virtual aperture are varied continuously for each output pixel. In another example, as illustrated in
In another example embodiment, a virtual aperture function varies from pixel to pixel. In one specific embodiment, the function is chosen to mask out rays from undesired portions of a particular scene, such as an undesired object in the foreground.
In another example embodiment a human user chooses virtual aperture parameters interactively, with light data processed in accordance with the selections.
In another example embodiment, an image with extended depth of field is computed by focusing on more than one subject at the same time. In one implementation, the depth of field of the output image is extended by simulating conventional photographic imaging with it stopped-down (reduced size) main lens aperture. For each output pixel, an evaluation is performed using the rays of light that would have converged at the output pixel through an aperture (on the virtual lens plane) that is smaller than the aperture used in ray sensing.
In one implementation involving the example system 100 shown in
In one alternative embodiment, a minimum set of refocused images to compute is defined as follows, in terms of the distance between a virtual film plane for each refocused image and the principal plane of the main lens via which the light for the image is passed to the virtual film plane. A minimum distance is set at the focal length of the main lens, and the maximum distance set at the conjugate depth for the closest object in the scene. The separation between each virtual film plane is no more than Δxnƒ/A, where Δxm, is the width of a microlens, ƒ is the separation between the main lens and the microlens array, and A is the width of the lens aperture.
In another example embodiment, refocused images are combined to produce an extended depth of field image at each final pixel to retain the pixel that is best focused in any of the set of refocused images. In another embodiment pixels to retain are chosen by ehnancing the local contrast and coherence with neighboring pixels. For general information regarding imaging, and for specific information regarding approaches to imaging involving enhancing local contrast, reference may be made to Agarwala, A., Dontcheva, M., Agrawala, M., Drucker, S., Colburn, A., Curless, B., Salesin, D., Cohen, M., Interactive Digital Photomontage, in ACM Transactions on Graphics, 23, 3 (2004), 292-300, which is fully incorporated herein by reference.
In another example embodiment of the present invention, an extended depth of field image is computed as follows. For each output image pixel, a refocusing computation is performed at the pixel to focus at different depths. At each depth, a measure of the homogeneity of the rays that converge is computed. The depth that produces the (relative) maximum homogeneity is chosen and kept for that pixel value. With this approach, where an image pixel is in focus, all of its rays originate from the same point in the scene and thus are likely to have similar color and intensity.
Although the measure of homogeneity can be defined in various ways, for many applications, the following measure of homogeneity is used: for each color component of each ray, the squared difference of that color intensity is computed from the corresponding color component of the central ray (the ray that arrives at the pixel at an angle closest to the optical axis of the main lens). All of these squared differences are summed, and the homogeneity is taken to be the reciprocal of the sum.
In another example embodiment, the above process is adapted so that the selection of final pixel values takes into account the neighboring pixel values, and the homogeneity of the associated rays that are combined to compute those pixel values.
In other example embodiments of the present invention, the depth of field is extended by focusing each pixel on the depth of the closest object in that direction.
At block 930, the selected pixel's value is computed in an image refocused at the estimated depth. If additional pixels are desirably processed at block 940, another pixel is selected at block 910 and the process continues at block 920 for the newly-selected pixel. When no additional pixels are desirably processed at block 940, the computed values for each selected pixel are used to create the final virtual image.
In some embodiments involving the extension of the depth of field, a value at each output pixel is computed by disregarding light rays that originate at depths closer than the depth of a desired object to mitigate or eliminate artifacts such as those generally referred to as “blooming” or “halo” artifacts around the borders of objects closer to the lens. By way of example,
As discussed above, light data is processed in accordance with various example embodiments to focus and/or correct images. A variety of approaches to the latter correction approach are discussed as follows. In some of these embodiments, aberrations are corrected by tracing rays through the actual optical elements of the optics (e.g., lens or lenses) used in capturing the rays, and mapping the traced rays to particular photosensors capturing the light. Light data is rearranged, using known defects exhibited by the optics as well as the known position of the sensors detecting the light.
In one correction-type embodiment, the world of rays that contribute to each pixel as formed through idealized, optics is computed for each pixel on a film of a synthesized photograph. In one implementation, these rays are computed by tracing rays from the virtual film location back through the ideal optics into the world.
In another example embodiment of the present invention, chromatic aberrations are corrected in a main lens used to capture an image. Chromatic aberration is caused by the divergence of rays of light as they are physically directed through optics because of differences in the physical direction dependent on the wavelength of light. The incoming rays are traced through the actual optics, taking into account the wavelength-dependent refraction of light that occurs in the actual optics. In some applications, each color component of the system is traced separately based on the primary wavelength.
In another example embodiment, each of the red, green and blue components common in color imaging systems is traced separately, as illustrated in
The desired light rays may not converge exactly on one of the discrete ray values sampled by the ray sensor. In some embodiments, the value to be used for such rays is computed as a function of the discrete ray values. In some embodiments, this function corresponds to a weighted sum of the value of discrete rays in a neighborhood of the desired light ray. In some implementations, this weighted sum corresponds to a 4D convolution of the discrete sample values with a predetermined convolution kernel function. In other implementations, the weighting may correspond to a quadrilinear interpolation from the 16 nearest neighbors. In still other implementations, the weighting may correspond to a cubic or bicubic interpolation from the 16 nearest neighbors.
It is worth noting that example correction processes have been described in terms of ray-tracing for conceptual simplicity; a variety of other approaches are implemented with correction. In one embodiment, for each desired output pixel, the set of photosensor values that contribute are pre-computed along with their relative weights. As described above, these weights are a property of a number of factors that may include the optics, sensor, desired set of rays to be weighted and summed for each output pixel and desired light field reconstruction filter. These weights are pre-computed, selectively using ray-tracing, and stored. A corrected image is formed by weighting and adding the appropriate sensed light field values for each output pixel.
In a variety of example embodiments, light data is processed in the frequency domain, with certain approaches directed to computational approaches to refocusing that operate in the Fourier domain.
M(ks, kt, ku, kv)=∫∫∫∫L(s, t, u, v)exp(−2π√{square root over (−1)}(sks+tkt+uku+vkl))dscitctudv, (1)
where the exp function is the exponential function, exp(x)=ex. In some embodiments the discrete light field is sampled on a rectilinear grid in the 4D space, and the Fourier transform is computed with the Fast Fourier Transform (FFT) algorithm.
The next step, which is executed once for each depth at which we wish to refocus the image, is to extract appropriate 2D slices 2030 of the 4D Fourier transform, and compute the inverse 2D Fourier transforms of the extracted slices, which are photographs focused at different depths 2040. The inverse 2D Fourier transform, g(x, y), for a function G(kx, ky) is defined by the following equation:
g(x, y)=∫∫G(kx, ky)exp(2π√{square root over (−1)}·(xkx+yky))dkxdky. (2)
The values on the extracted 2D slice are determined by the depth at which we want to refocus. Considering the conjugate plane (on the image-side of the lens) for the desired world focal plane, when the separation between this conjugate plane and the main lens is D and the separation between the microlens plane and the main lens is F, then the value of the extracted 2D slice at coordinates (kx,ky) is given by
Using various approaches, artifacts that result from discretization, resampling and Fourier transformation are selectively ameliorated. In general signal-processing terms, when we sample a signal it is replicated periodically in the dual domain. When we reconstruct this sampled signal with convolution, it is multiplied in the dual domain by the Fourier transform of the convolution filter. In this regard, the original, central replica is isolated, eliminating all other replicas. A desirable filter is a 4D sinc function, sinc(s)sinc(t)sinc(u)sinc(v), where sine(x)=sin(πx)/(πx); however, this function has infinite extent.
In various approaches, finite-extent filters are used with frequency-domain processing; such filters may exhibit defects, which are selectively mitigated.
The first defect described above leads to “rolloff artifacts,” which can lead to a darkening of the borders of computed photographs. Decay in the filter's frequency spectrum with increasing frequency means that the spatial light field values, which are modulated by this spectrum, also “roll off” to fractional values towards the edges.
The second defect described above involves aliasing artifacts in computed photographs, which are related to energy at frequencies above the band-limit. The non-zero energy that extends beyond the band-limit means that the periodic replicas are not fully eliminated, leading to two kinds of aliasing. First, the replicas that appear parallel to the slicing plane appear as 2D replicas of the image encroaching on the borders of the final photograph. Second, the replicas positioned perpendicular to this plane are projected and summed onto the image plane, creating ghosting and loss of contrast.
In an example embodiment, correction for rolloff-type defects as described above is eliminated by multiplying the input light field by the reciprocal of the filter's inverse Fourier spectrum, to nullify the effect introduced during resampling. In this example embodiment, multiplication is performed prior to taking the 4D Fourier transform in the pre-processing step of the algorithm. While it corrects rolloff error, pre-multiplication may accentuate the energy of the light field near its borders, maximizing the energy that folds back into the desired field of view as aliasing.
Three methods of suppressing aliasing artifacts—oversampling, superior filtering and zero-padding—are used individually or in combination in various example embodiments described below. Oversampling within the extracted 2D slice increases the replication period in the spatial domain This means that less energy in the tails of the in-plane replicas will fall within the borders of the final photograph. Increasing the sampling rate in one domain leads to an increase in the field of view in the other domain. Aliasing energy from neighboring replicas falls into these outer regions, which is cropped away to isolate the original, central image of interest.
Another approach to mitigating aliasing is directed to a finite-extent filter that approximates a perfect spectrum (as would be exhibited via use of an ideal filter) as closely as possible. In an example embodiment, a 4D Kaiser-Bessel separable function, kb4(s,t,u,v)=kb(s)kb(t)kb(u)kb(v), is used as the filter, where
kb(x)=1/W·I0(P·√{square root over (1−(2x/W)2)}) (4)
In this equation. I0 is the standard zero-order modified Kaiser-Bessel function of the first kind, W is the width of the desired filter, and P is a parameter that depends on W. In this example embodiment, W values are 5, 4.5, 4.0, 3.5, 3.0, 2.5, 2.0 and 1.5, and the P values are, respectively, 7.4302, 6.6291, 5.7567, 4.9107, 4.2054, 3.3800, 2.3934, and 1.9980. For general information regarding aliasing, and for specific information regarding approaches to mitigating aliasing, in connection with one or more example embodiments of the present invention, reference may be made to Jackson J. L, Meyer C. H., Nishimura, D. G. and Macovski, A., 1997, Selection of convolution function for Fourier inversion using gridding. IEEE Transactions on Medical Imaging, 10, 3, 473-478, which is fully incorporated herein by reference. In one implementation, widths “W” of less than about 2.5 are implemented to achieve desirable image quality.
In another example embodiment, aliasing is mitigated by padding a light field with a small border of zero values before pre-multiplication and taking its Fourier transform. This pushes energy slightly further from the borders, and minimizes the amplification of aliasing energy by the pre-multiplication for rolloff correction.
FIG, 22 is a flow diagram showing an approach to refocusing in the frequency domain using various corrections described above, according to another example embodiment of the present invention. At block 2210, a discrete 4D light field is received. In the pre-processing phase, which occurs once per input light field, block 2215 checks if abasing reduction is desired, and if so executes block 2220, which pads the light field with a small border (e.g., 5% of the width in that dimension) of zero values. At block 2225 a check is performed to determine whether rolloff correction is desired, and if so, the light field is modulated at block 2230 by the reciprocal of the Fourier transform of the resampling filter. In the final block of the pre-processing phase, the 4D Fourier transform of the light field is computed at block 2240.
In the refocusing phase, which occurs once per desired focal depth, the process receives a desired focal depth of refocused image at block 2250, such as through the direction of a user. At block 2260, a check is performed to determine whether aliasing reduction is desired. If not, block 2270 extracts a 2D slice of the Fourier transform of the light field, with a desired 4D rsampling filter, where the trajectory of the 2D slice corresponds to the desired focal depth; and block 2275 computes an inverse 2D Fourier transform of the extracted slice and moves to block 2290. If aliasing reduction was desired at block 2260, the process moves to block 2280, at which a 2D slice with desired 4D resampling filter and oversampling (e.g. 2× oversampling in each of the two dimensions) is extracted. At block 2283, the slice's inverse 2D Fourier transform is computed, and the resulting image is cropped to the original size without oversampling at block 2286, after which the process moves to block 2290. At block 2290, a check is performed to determine whether refocusing is complete. If not, another focal depth is chosen at block 2250 and the process proceeds as described above. If refocusing is complete, the process exits at block 2295.
The asymptotic computational complexity of this frequency-domain algorithm is less than refocusing by explicitly summing rays as described for the alternate embodiment above. Assume that the input discrete light field has N samples in each of its four dimensions. Then the computational complexity of the algorithm that explicitly sums rays is O (N4) for refocusing at each new depth. The computational complexity of the frequency-domain algorithm is O (N2 log N) for refocusing at each new depth, dominated by the cost of the inverse 2D Fourier transform. However, the pre-processing step costs O (N4 log N) for each new light field dataset.
In another example embodiment, the captured light rays are optically filtered. Although not limited to such applications, some examples of such filters are neutral density filters, color filters, polarizing filters. Any filter currently existing or that may be developed in the future may be used to effect a desired filtering of the rays of light. In one implementation, the light rays are optically filtered in groups or individually, so that each group or individual ray is filtered differently. In another implementation, a filtering is applied by the use of a spatially-varying filter attached to a main lens. In one example application, a gradient filter such as a neutral-density gradient filter is used to filter light. In another implementation, spatially varying filters are used in front of one or more of a ray sensor, a microlens array or a photosensor array. Referring to
In another example embodiment of the present invention, a computational component such as a processor is programmed to selectively choose rays to combine in computing output pixels in order to effect a desired net filtering for that pixel value. By way of example, consider embodiments involving an optical neutral gradient density filter at the main lens, each image of the lens aperture that appears under a microlens is weighted by the filter gradient across its extent. In one implementation, output images are computed by selecting a photosensor under each microlens at the point of the gradient that matches the desired level of neutral-density filtering for that output image pixel. For example, to produce an image in which every pixel is filtered to a large extent, every pixel value is set to the value of the photosensor under the corresponding microlens that is at the extreme end of the gradient corresponding to maxim filtering.
Sensor data created at the image sensor arrangement 210 is passed to a signal processor 220. The signal processor includes a low-resolution image processor 222 and one or both of a compression processor 224 and a (light) ray-direction processor 226 each of these processors is selectively implemented separately or functionally with a common processor, depending upon the application. Furthermore, each of the processors shown in
The low-resolution image processor 222 uses sensor data received from the image sensor arrangement 210 to generate low-resolution image data, which is sent to a viewfinder display 230. An input device 235, such as a pushbutton on a camera or video camera, sends an image capture request to the signal processor 220 requesting, for example, the capture of a particular image displayed in the viewfinder display 230 and/or to initiate video imaging where so implemented.
In response to the image capture request or as otherwise directed, the signal processor 220 uses the sensor data captured by the image sensor arrangement 210 to generate processed sensor data. In some applications, the compression processor 224 is implemented to generate compressed raw data for transfer to a data storage arrangement 240 (e.g., memory). Such raw data is then selectively processed at the signal processor 220 and/or at an external computer 260 or other processing device, implementing ray-direction processing such as that implemented with the ray-direction processor 226, which is discussed further below.
In certain applications, the ray-direction processor 226 is implemented to process the sensor data received at the signal processor 220 to rearrange the sensor data for use in generating focused and/or corrected image data. The ray-direction processor 226 uses one or both of sensor data received from the image sensor arrangement 210 and raw data sent to the data storage arrangement 240. In these applications, the ray-direction processor 226 uses ray-mapping characteristics of the particular imaging device (e.g., camera, video camera or mobile telephone) in which the image sensor arrangement 210 is implemented to determine a rearrangement of light rays sensed with the microlens/photosensor chip 212. Image data created with the ray-direction processor 226 is sent to the data storage arrangement 240 and/or to a communication link 250 for use in a variety of applications, such as in streaming image data or otherwise sending image data to a remote location.
In some applications, the integrated processing circuit 214 includes some or all of the processing functionality of the signal processor 220 by implementing, for example, a CMOS-type processor or other processor with appropriate functionality. For instance, the low-resolution image processor 222 is selectively included with the integrated processing circuit 214, with the low-resolution image data sent directly to the viewfinder display 230 from the image sensor arrangement 210. Similarly, the compression processor 224, or functionality similar thereto, is selectively implemented with the integrated processing circuit 214.
In some applications, computation of final images may be performed on the integrated processing circuit 214 (e.g. in some digital still cameras that output only final images). In other applications, the image sensor arrangement 210 may simply transmit the raw light ray data, or a compressed version of these data, to an external computational device, such as a desktop computer. Computation of final images from these data is then performed on the external device.
Raw data from the photosensor array is processed and compressed for use at block 340. Light ray data is extracted from the processed and compressed data at block 350. This extraction involves, for example, detecting a bundle or set of light rays incident upon a particular photosensor in the photosensor array. Ray mapping data is retrieved at block 360 for the imaging arrangement in which the image data is captured. The ray-mapping data and the extracted light ray data is used to synthesize a re-sorted image at block 370. For example, the extraction, mapping and synthesis blocks 350-370 are selectively implemented by determining a bundle of light rays for a particular pixel of a scene for which the light rays were collected, and integrating the energy of the light rays to synthesize a value for the particular pixel. In some applications, the ray mapping data is used to trace light rays for each particular pixel through actual lenses used to acquire the image data. For example, by determining an appropriate set of rays to add together in order to focus upon a selected subject at a particular focal depth at block 370, the rays can be re-sorted to arrive at a focused image. Similarly, by determining a proper arrangement of rays to correct for conditions such as lens aberrations in the imaging device, the rays can be re-sorted to generate an image relatively free of characteristics relating to the aberrations or other condition.
A variety of approaches are selectively used to generate preview images for camera-type and other applications.
A preview instruction with raw sensor image data is received at block 410. At block 420, a center pixel is selected from each microlens image in the raw sensor image data. The selected center pixels are collected to form a high depth-of-field image at block 430. At block 440, the high depth-of-field image is downsampled to a resolution amenable for use in a viewfinder display. Referring to
At block 510, raw image data is received from a sensor array. If coloring is desired at block 520, color filter array values are demosiaced at block 530 to produce color at the sensors. If rectification and alignment is desired at block 540, microlens images are rectified and aligned with the photosensor array at block 550. If interpolation is desired at block 560, pixel values are interpolated at block 570 to an integral number of pixels associated with each microlens. At block 580, the processed raw image data is compressed and presented for synthesis processing (e.g., to form a refocused and/or corrected image).
At block 610, raw image data is received from a photosensor array. lf refocusing is desired at block 620, image data is refocused at block 630 using, e.g., approaches discussed herein for selectively re-sorting light represented by the raw image data. If image correction is desired at block 640, image data is corrected at block 650. In various applications, image correction at block 650 is carried out before or concurrently with refocusing at block 630 in applications where both refocusing and image correction is desirable. A resultant image is generated at block 660 using processed image data including refocused and corrected data, where applicable.
At block 710, a virtual focal plane for refocusing an image portion is selected. At block 720, a pixel of a virtual image for the virtual focal plane is selected. If correction (e.g., for lens aberration) is desired at block 730, the value of a virtual light ray (or virtual set of light rays) passing between the selected pixel and each particular lens position is calculated at block 740. In one application, this calculation is facilitated by computing the conjugate light ray that would fall upon the selected pixel and tracing that ray through the path in the lens arrangement.
At block 750, the sum of light ray (or virtual set of light ray) values for each lens position for the particular focal plane are added to determine a total value for the selected pixel. In some applications, the sum added at block 750 is a weighted sum, wherein certain light rays (or set of light rays) are given greater weight than others. If there are additional pixels for refocusing at block 760, another pixel is selected at block 720 and the process continues until no further pixels are desirably refocused. After the pixels have been refocused, the pixel data is combined at block 770 to generate a refocused virtual image at the virtual focal plane selected in block 710. The refocusing approaches involving some or all of blocks 720, 730, 740 and 750 in
The sensor data processing circuitry implemented with one or more example embodiments described herein includes one or more microprocessors, Application-Specific Integrated Circuits (ASICs), digital signal processors (DSPs), and/or programmable gate arrays (for example, field-programmable gate arrays (FPGAs)), depending upon the implementation. In this regard, sensor data processing circuitry may be any type or form of circuitry whether now known or later developed. For example, the sensor data processing circuitry may include a single component or a multiplicity of components (microprocessors, ASICs and DSPs), either active and/or passive, which are coupled together to implement, provide and/or perform a desired operation/function/application.
In various applications, the sensor data processing circuitry performs or executes one or more applications, routines, programs and/or data structures that implement particular methods, tasks or operations described and/or illustrated herein. The functionality of the applications, routines or programs are selectively combined or distributed in certain applications. In some applications, the applications, routines or programs are implemented by sensor (or other) data processing circuitry using one or more of a variety of programming languages, whether now known or later developed. Such programming languages include, for example, FORTRAN, C, C++, Java and BASIC, whether compiled or uncompiled code, selectively implemented in connection with one or more aspects of the present. invention.
The various embodiments described above are provided by way of illustration only and should not be construed to limit the invention. Based on the above discussion and illustrations, those skilled in the art will readily recognize that various modifications and changes may be made to the present invention without strictly following the exemplary embodiments and applications illustrated and described herein. For instance, such changes may include implementing the various optical imaging applications and devices in different types of applications, increasing or decreasing the number of rays collected per pixel (or other selected image area), or implementing different algorithms and/or equations than the examples described to assemble or otherwise process image data. Other changes may involve using coordinate representations other than or in addition to Cartesian coordinates, such as polar coordinates. Such modifications and changes do not depart from the true spirit, and scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
PCT/US2005/035189 | Sep 2005 | US | national |
This patent application is a division of U.S. patent application Ser. No. 13/717,397, which is a continuation of U.S. patent application Ser. No. 13/078,909, filed Apr. 1, 2011. U.S. patent application Ser. No. 13/078,909 is a divisional application claiming benefit of U.S. patent application Ser. No. 11,576,438, filed Jun. 6, 2007 under 35 U.S.C. § 371 and claiming the benefit of International Patent Application PCT/US2005/035189, filed Sep. 30, 2005, which in turn claims the benefit, under 35 U.S.C. § 119(e), of U.S. Provisional Patent Application Ser. No. 60/615,179 filed on Oct. 1, 2004, and of U.S. Provisional Patent Application Ser. No. 60/647,492 filed on Jan. 27, 2005 All of the patent applications and patents named above are fully incorporated herein by reference.
This invention was made with government support under contract 0085864 awarded by the National Science Foundation. The government has certain rights in the invention.
Number | Date | Country | |
---|---|---|---|
60615179 | Oct 2004 | US | |
60647492 | Jan 2005 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13717397 | Dec 2012 | US |
Child | 13975842 | US | |
Parent | 11576438 | Jun 2007 | US |
Child | 13078909 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13078909 | Apr 2011 | US |
Child | 13717397 | US |