1. Field of the Invention
The present invention relates generally to obstacle removal using point cloud and depth map data, and more specifically to foreground obstacle removal in digitally captured images using point cloud and depth map data. Even more specifically, the present invention relates to foreground obstacle removal in digitally captured images using point cloud and depth map data to separate desired background subject matter from undesired foreground obstacles.
2. Discussion of the Related Art
When a picture (or image) is taken (or captured), its composition may include certain structures or objects that are undesirable. For example, when we take a photo of an outdoor scene, a building, sporting event, wildlife or other animals, or the like there may be structures (i.e., structures composed of geometric features characterized by foreground structure and openings through which background subject matter can be viewed, e.g., a fence or fence-like structure) located between the camera and the scene photographed.
Such structures may be esthetically undesirable to the photographer or artist capturing the image.
Many image editing or inpainting techniques have been recently developed to remove such undesirable structure and fill the holes left behind in a visually plausible way. However, many existing inpainting techniques require human interactions to label the undesirable structure to be removed. Such labels may take different forms, including strokes, structural boundaries, specified colors, etc. This human labeling step is usually labor intensive (especially in processing a large collection of images) and may require experience and skills.
Several embodiments of the invention advantageously address the needs above as well as other needs by providing a system and method for foreground obstacle removal in digitally captured images using point cloud and depth map data to separate desired background subject matter from undesired foreground obstacles.
In one embodiment, the invention can be characterized as a system comprising a non-transitory storage medium, wherein the non-transitory storage medium contains a first image captured at a first position relative to background subject matter, wherein undesirable structure is interposed between the first position and the background subject matter, and a second image captured at a second position, different from the first position, relative to the background subject matter wherein the undesirable structure is interposed between the second position and the background subject matter; a point cloud generation module coupled to the non-transitory storage medium, wherein the point cloud generation module generates a point cloud in response to the first image and the second image, and wherein the point cloud generation module stores the point cloud in the non-transitory storage medium; an identification module coupled to the non-transitory storage medium for retrieving the point cloud and identifying within the point cloud the undesirable structure and the background subject matter; and an image generation module coupled to the identification module for generating a third image in response to the background subject matter within the point cloud, wherein the image generation module stores the third image in the non-transitory storage medium.
In another embodiment, the invention can be characterized as a system comprising a camera comprising a non-transitory storage medium, wherein the non-transitory storage medium contains a first image captured by the camera at a first position relative to background subject matter, wherein undesirable structure is interposed between the first position and the background subject matter, and a second image captured by the camera at a second position, different from the first position, relative to the background subject matter wherein the undesirable structure is interposed between the second position and the background subject matter; a point cloud generation module coupled to the non-transitory storage medium, wherein the point cloud generation module generates a point cloud in response to the first image and the second image, and wherein the point cloud generation module stores the point cloud in the non-transitory storage medium; an identification module coupled to the non-transitory storage medium for retrieving the point cloud and identifying within the point cloud the undesirable structure and the background subject matter; and an image generation module coupled to the identification module for generating a third image in response to the background subject matter within the point cloud, wherein the image generation module stores the third image in the non-transitory storage medium; and a display device, wherein the display device is coupled to the camera, receives the third image from the camera and displays the third image in a human-perceptible form.
In a further embodiment, the invention may be characterized as a method comprising providing a non-transitory storage medium, wherein the non-transitory storage medium contains a first image captured at a first position relative to background subject matter, wherein undesirable structure is interposed between the first position and the background subject matter, and a second image captured at a second position, different from the first position, relative to the background subject matter wherein the undesirable structure is interposed between the second position and the background subject matter; generating a point cloud in response to the first image and the second image, and storing the point cloud in the non-transitory storage medium; retrieving the point cloud and identifying within the point cloud the undesirable structure and the background subject matter; generating a third image in response to the background subject matter within the point cloud; and storing the third image in the non-transitory storage medium.
The above and other aspects, features and advantages of several embodiments of the present invention will be more apparent from the following more particular description thereof, presented in conjunction with the following drawings.
Corresponding reference characters indicate corresponding components throughout the several views of the drawings. Skilled artisans will appreciate that elements in the figures are illustrated for simplicity and clarity and have not necessarily been drawn to scale. For example, the dimensions of some of the elements in the figures may be exaggerated relative to other elements to help to improve understanding of various embodiments of the present invention. Also, common but well-understood elements that are useful or necessary in a commercially feasible embodiment are often not depicted in order to facilitate a less obstructed view of these various embodiments of the present invention.
The following description is not to be taken in a limiting sense, but is made merely for the purpose of describing the general principles of exemplary embodiments. The scope of the invention should be determined with reference to the claims.
Reference throughout this specification to “one embodiment,” “an embodiment,” or similar language means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, appearances of the phrases “in one embodiment,” “in an embodiment,” and similar language throughout this specification may, but do not necessarily, all refer to the same embodiment.
Furthermore, the described features, structures, or characteristics of the invention may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided, such as examples of programming, software modules, user selections, network transactions, database queries, database structures, hardware modules, hardware circuits, hardware chips, etc., to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention can be practiced without one or more of the specific details, or with other methods, components, materials, and so forth. In other instances, well-known structures, materials, or operations are not shown or described in detail to avoid obscuring aspects of the invention.
In accordance with the present embodiment, a geometric features making up undesirable structure in an image are defined by a predefined geographic shape that permits full view of the background subject matter provided that the background subject matter is viewed from a plurality of positions selected as a function of the predefined geographic shape. For example, in the case of a fence or fence-like structure composed of one or more sets of parallel structures, e.g., vertical posts, and horizontal cross-members, the plurality of positions must include positions (at least two) defined by a linear relationship between the positions that is not parallel to the one or more parallel structures and a distance between positions that is sufficiently far, as a function of the distance between the camera and the background subject matter and the width of the parallel structures, that the full view of the background subject matter is available in a set of images captured at the plurality of positions.
Referring first to
Referring next of
Referring next to
The esthetically undesirable structure 102, is shown, as interposed between the background subject matter 302 and the camera 304.
The camera 304 is shown in a plurality of positions 306, 308, 310, 312, 314, 316, 318.
In operation, the camera 304 is positioned in a first position 308 and directed to (i.e., aimed at) the subject matter 302, with the undesirable structure 102 interposed therein between, so as to take a picture of, i.e., capture an image of, the subject matter 302. A first image is then captured. Next, the camera 304 is moved to a second position 316. A line (not shown) between the first position 308 and the second position 316 is not parallel to any part of the undesirable structure 102. In the case illustrated, this means that the line between the first position 308 and the second position 316 is not parallel to vertical components 320 of the fence, and furthermore, is not parallel to the horizontal components 322 of the fence.
In the event more than two images are captured, a line between at least two of the positions 306, 308, 310, 312, 314, 316, 318 must meet these criteria. However, it is not required that all of the lines between all of the positions 306, 308, 310, 312, 314, 316, 318 meet these criteria. For example, in the event three images are captured at first position 308, a second position 316, and a third position 312, respectively, the line between the first position 308 and the second position 316 may be parallel to the horizontal components 322 of the fence, and the line between the second position 316 and the third position 312 may be parallel to the vertical components 320 of the fence. However, the line between the first position 308 and the third position 312 should not be parallel to either the vertical components 320 of the fence, or the horizontal components 322 of the fence. Note that this exemplary geometry is not illustrated.
In addition, the distance between the positions 306, 308, 310, 312, 314, 316, 318 must be sufficient that the entire background subject matter 302 can be composed by combining the images captured. This is described further herein below in reference to
Returning to the example in which only two images are captured, after the camera 312 is moved to the second position 316, a second image is captured, again with the line between the first position 308 and the second position 316 being as defined above.
The first image and the second image are then combined electronically to generate a point cloud (i.e., a three-dimensional representation of the undesirable structure 102 and the subject matter 302), as described herein below, and the undesirable structure 102 are electronically identified based on their depth within the point cloud and/or a space between the undesirable structure 102 and the subject matter 302 within the point cloud, and the undesirable structure 102 are then eliminated from (deleted from) the point cloud. A resultant image (i.e., a two-dimensional image) is then generated, and output as described herein below.
Referring next to
In operation, utilizing the first image and the second image, as described in reference to
Referring next to
As noted above, a discernable space between the undesirable structure 102 and the background subject matter 302 is identified and employed by components of the present embodiment in order to delete the undesirable structure 102 from the point cloud 402.
The point cloud 402 is then electronically projected onto a plane (not shown) in order to obtain a resultant image of the background subject matter 302, with the undesirable structure 102 having been deleted. Alternatively, the background subject matter 302 may be identified based on a particular depth, i.e., distance from the camera positions (shown in
Referring next to
A first 600 of the three images shows the background subject matter 302, with the undesirable structure 102 interposed between the camera 312 and the background subject matter 302. As will be noted, the undesirable structure 102 is in a first position relative to the background subject matter 302. In a second image 602, the undesirable structure 102 is in a second position relative to the background subject matter 302, this “movement” of the undesirable structure 102 is achieved by moving the camera 312 from a first position 308 to a second position 316 in taking the first image and the second image, respectively. Also shown is the third image 604 of the background subject matter 302 in which the undesirable structure 102 is shown in a third position 312 relative to the background subject matter 302. This further “movement” of the undesirable structure 102 is achieved by moving the camera 312 to a third position during the capture of the third image 604. These three images 600, 602, 604 are utilized in the generation of the point cloud 402 (
In accordance with one variation, the distance from the camera 312 can be defined manually, such as by a slider, which may be displayed on the display of the camera 312, that is manipulated (such as by a touch screen, arrow keys, joystick, a mechanized slider or the like in order to indicate the distance which is defined as further away from the camera than the undesirable structure 103 and closer to the camera than the background subject matter 302.
Preferably the distance is selected by the user after the first image 600, second image 602 and third image 604 are captured. The display of the camera may show the resultant image in real time as the user defines the distance, such as by manipulating the slider, thereby allowing the user to see the undesirable structure “disappear” as the distance is defined from a plane in front of the undesirable structure, then through the undesirable structure 103 to a plane between the undesirable structure 103 and the background object matter 302.
In accordance with another variation, the distance from the camera 312 can be defined automatically by a processor modified with software within the camera 312. In accordance with this other variation density of the point cloud 402 is evaluated as a function of distance from the camera 312. This elevation will result in a distinct peak density corresponding to the undesirable structure 103, and another peak density representing the background subject matter 302. From within a range of distances between the distinct peak and the other peak, the distance is automatically selected.
Referring next to
As shown, the background subject matter 302 and the camera 304 have undesirable structure 102 interposed therein between. In order to simplify this explanation, only one of the vertical members 320 of the fence is schematically depicted. While the camera 304 is in a first position 308, a portion of the background subject matter 302 is obstructed by the vertical member 320 of the fence, as represented by a first pair of lines 702. The vertical member 320 of the fence has a width W, and is a distance L2 from the camera 304 during the capture of the first image. The background subject matter 302 is at a distance L1, which is greater than the distance L2, from the camera 304 during the capture of the first image. The camera 304 is then moved to a second position 316 with a line 704 between the first position 308 and the second position 316 having a direction that is not parallel to the vertical member 320 illustrated, and being at least a distance D from the first position 308 such that the portion 706 of the background subject matter 302 obstructed by the vertical member 320 having width W is now seen by the camera 304, as illustrated by the second pair of lines 708. As such, the combination of the first image and the second image provides a complete representation of the background subject matter 302. The undesirable structure 102 can be eliminated by eliminating all points within the above-mentioned point cloud 402 that are no more than a distance L2 from the camera 304, while positioning the subject matter 302 at the distance L1 from the camera 304.
Referring next to
At the outset 802, in accordance to one embodiment, a user of the camera 304 initiates operation of a function or application of the camera adapted to perform the operations described herein. The user may then, for example, depress 804 a “start” button and simultaneously therewith move the camera along the line that is not parallel to any of the undesirable structure 102. Following the pressing of the start button, the camera may then be directed 806 through electronic, software, or mechanical means to automatically capture two or more images. In accordance with the present embodiment, the camera 304 then generates 808 the above-described point cloud 402 data from the two or more images and determines 810, 812 the background subject matter 302 by identifying a discernable space between the undesirable structure 102 and the background subject matter 302 within the point cloud 402, or defining a distance from the camera 304 during image capture beyond which the background subject matter 302 is present, and closer than which the undesirable structure 102 is present. (Alternatively, these steps 808, 810, and/or 812 may be performed at a location remote from the camera 304, such as on a server coupled to the camera via a communications network.) The camera 304 then deletes 814 (or otherwise separates) the undesirable structure 102 from the remainder of the point cloud 402 data, and projects 816 the remaining background subject matter 302 data of the point cloud on to a plane, and outputs 818 this projection as a two-dimensional image. (Again, these steps 814 and/or 816 may be performed remotely at the server.) This output may be in the form of a digital image file that may, for example, be saved within the camera 304 to a non-transitory medium, or can be transmitted via a communications channel to a remote location at which it can be saved to a non-transitory medium. In addition, or alternatively, the image may be displayed on a display screen on the camera, or located remotely from the camera, or may be printed on to paper by the camera, or at a location remote from the camera, such as by a photo printer.
While the invention herein disclosed has been described by means of specific embodiments, examples and applications thereof, numerous modifications and variations could be made thereto by those skilled in the art without departing from the scope of the invention set forth in the claims.
Number | Name | Date | Kind |
---|---|---|---|
20110123113 | Berretty | May 2011 | A1 |
20130182184 | Senlet | Jul 2013 | A1 |
20160317811 | Greenberg | Nov 2016 | A1 |
Number | Date | Country |
---|---|---|
2013117961 | Aug 2013 | WO |
Entry |
---|
Zou et al.; “Automatic Inpainting by Removing Fence-Like Structures in RGBD Images”; Machine Vision and Applications; Aug. 8, 2014; pp. 1841-1858. |
He et al.; “Object Removal by Depth-Guided Inpainting”; Institute for Software Technology and Interactive Systems, Interactive and Multimedia Systems Group (IMS), Vienna University of Technology, Austria; Apr. 28, 2011; 8 pages. |
Yamashita et al.; “Fence Removal from Multi-Focus Images”; Department of Mechanical Engineering, Shizuoka University, Japan; May 14, 2010; 4 pages. |
Lee et al.; “Removing Foreground Objects by Using Depth Information From Multi-View Images”; SPIE Proceedings; vol. 6696; Sep. 24, 2007; 2 pages. |