Source: https://patents.google.com/patent/WO2008112776A2/en
Timestamp: 2018-05-22 09:10:33
Document Index: 361816634

Matched Legal Cases: ['Application No. 60', 'Application No. 12', 'Application No. 12', 'Application No. 12', 'Application No. 12', 'Application No. 12', 'Application No. 12', 'Application No. 12', 'Application No. 12', 'Application No. 12', 'Application No. 10', 'Application No. 11', 'Application No. 11', 'Application No. 11']

WO2008112776A2 - Systems and methods for filling occluded information for 2-d to 3-d conversion - Google Patents
WO2008112776A2
WO2008112776A2 PCT/US2008/056679 US2008056679W WO2008112776A2 WO 2008112776 A2 WO2008112776 A2 WO 2008112776A2 US 2008056679 W US2008056679 W US 2008056679W WO 2008112776 A2 WO2008112776 A2 WO 2008112776A2
PCT/US2008/056679
WO2008112776A3 (en )
Conversion Works, Inc.
The present invention is directed to systems and methods for processing 2-D to 3-D image conversion. The system and method includes erode filling when an object has been removed from an image. In one embodiment, a target binary t image mask of the removed object is used for comparison with a binary source mask of the image. In an iterative process, color differences between pixels in the target mask and pixels in the source mask are identified and the pixels in the target mask are changed working from the periphery of the target mask to the center of the mask. Color noise is eliminated in the filled region of the target mask and, if desired, random color noise is added to the filled target mask.
SYSTEMS AND METHODS FOR FILLING OCCLUDED INFORMATION FOR
[0001] This application claims priority to U.S. Provisional Patent Application No. 60/894,450 filed 3/12/2007 entitled "TWO-DIMENSIONAL TO THREE-DIMENSIONAL CONVERSION", and U.S. Patent Application No. 12/046,272 filed March 11, 2008 entitled "SYSTEMS AND METHODS FOR FILLING OCCLUDED INFORMATION FOR 2-D TO 3-D CONVERSION"; the disclosure of which is incorporated herein by reference and is also related to U.S. Patent Application No. 12/046,235 filed March 11, 2008 entitled "SYSTEMS AND METHODS FOR 2-D TO 3-D CONVERSION USING DEPTH ACCESS SEGMENTS TO DEFINE AN OBJECT"; U.S. Utility Application No. 12/046,215 filed March 113 2008 entitled "SYSTEMS AND METHODS FOR 2-D TO 3-D IMAGE CONVERSION USING MASK TO MODEL, OR MODEL TO MASK, CONVERSION"; U.S. Patent Application No. 12/046,247 filed March 113 2008 entitled "SYSTEM AND METHOD FOR USING FEATURE TRACKING TECHNIQUES FOR THE GENERATION OF MASKS IN THE CONVERSION OF TWO-DIMENSIONAL IMAGES TO THREE- DIMENSIONAL IMAGES"; U.S. Patent Application No. 12/046,255 filed March 11, 2008 entitled "SYSTEMS AND METHODS FOR GENERATING 3-D GEOMETRY USING POINTS FROM IMAGE SEQUENCES"; U.S. Patent Application No. 12/046,263 filed March 11, 2008 entitled "SYSTEMS AND METHODS FOR TREATING OCCLUSIONS IN 2-D TO 3-D IMAGE CONVERSION"; U.S. Patent Application No. 12/046,281 filed March 11, 2008 entitled "SYSTEM AND METHOD FOR FILLING LIGHT IN FRAMES DURING 2-D TO 3-D IMAGE CONVERSION", U.S. Patent Application No. 12/046,290 filed March 11, 2008 entitled "SYSTEMS AND METHODS FOR ALLOWING A USER TO DYNAMICALLY MANIPULATE STEREOSCOPIC PARAMETERS", and U.S. Patent Application No. 12/046,295 filed March 11, 2008 entitled "SYSTEMS AND METHODS FOR DEPTH PEELING USING STEREOSCOPIC VARIABLES DURING THE RENDERING OF 2-D TO 3-D IMAGES," the disclosures of which are incorporated herein by reference. TECHNICAL FIELD
[0002] The present disclosure is directed towards two-dimensional (2-D) to three-dimensional (3-D) conversion of images. More specifically the present disclosure is directed to systems and methods for replacing information lost during 2-D to 3-D image conversion.
[0005] An example of a conversion technology is described in U.S. Patent No. 6,477,267 (the '267 patent). In the '267 patent, only selected objects within a given two dimensional image are processed to receive a three dimensional effect in a resulting three dimensional image. In the '267 patent, an object is initially selected for such processing by outlining the object. The selected object is assigned a "depth" value that is representative of the relative distance of the object from the viewer. A lateral displacement of the selected object is performed for each image of a stereoscopic pair of images that depends upon the assigned depth value. Essentially, a "cut-and-paste" operation occurs to create the three dimensional effect. The simple displacement of the object creates a gap or blank region in the object's background. The system disclosed in the '267 patent compensates for the gap by "stretching" the object's background to fill the blank region.
[0007] Another example of a conversion technology is described in U.S. Patent No. 6,466,205 (the '205 patent). In the '205 patent, a sequence of video frames is processed to select objects and to create "cells" or "mattes" of selected objects that substantially only include information pertaining to their respective objects. A partial occlusion of a selected object by another object in a given frame is addressed by temporally searching through the sequence of video frames to identify other frames in which the same portion of the first object is not occluded. Accordingly, a cell may be created for the full object even though the full object does not appear in any single frame. The advantage of such processing is that gaps or blank regions do not appear when objects are displaced in order to provide a three dimensional effect. Specifically, a portion of the background or other object that would be blank may be filled with graphical information obtained from other frames in the temporal sequence. Accordingly, the rendering of the three dimensional images may occur in an advantageous manner.
[0008] In reconstructing these scenes, features in the 2-D images, such as edges of objects, often need to be identified, extracted and their positions ascertained relative to the camera. Differences in the 3-D positions of various object features, coupled with differing camera positions for multiple images, result in relative differences in the 3-D to 2-D projections of the features that are captured in the 2-D images. By determining the positions of features in 2-D images, and comparing the relative locations of these features in images taken from differing camera positions, the 3-D positions of the features may be determined. 10009] However, fundamental problems still exist with current conversion methods. For example, a typical motion picture will have a very large and predetermined image set, which (for the purposes of camera and scene reconstruction) may contain extraneous or poorly lit images, have inadequate variations in perspective, and contain objects with changing geometry and image data. Nor can the known conversion methods take advantage of the processor saving aspects of other applications, such as robot navigation applications that, while having to operate in real time using verbose and poor quality images, can limit attention to specific areas of interest and have no need to synthesize image data for segmented objects.
[0011] The existing techniques are also not well suited to the 2-D to 3-D conversion of things such as motion pictures. Existing techniques typically cannot account for dynamic objects, they usually use point clouds as models which are not adequate for rendering, and they do not accommodate very large sets of input images. These techniques also typically do not accommodate varying levels of detail in scene geometry, do not allow for additional geometric constraints on object or camera models, do not provide a means to exploit shared geometry between distinct scenes (e.g., same set, different props), and do not have interactive refinement of a scene model. BRIEF SUMMARY OF THE INVENTION
[0013] Embodiments of the invention are directed to systems and methods for processing 2-D to 3-D image conversion. Embodiments includes erode filling when an object has been removed from an image. In one embodiment, a target binary t image mask of the removed object is used for comparison with a binary source mask of the image. In an iterative process, color differences between pixels in the target mask and pixels in the source mask are identified and the pixels in the target mask are changed working from the periphery of the target mask to the center of the mask. Color noise is eliminated in the filled region of the target mask and, if desired, random color noise is added to the filled target mask.
[0014] One embodiment of the invention is a method for erode fill when converting 2-D images to 3-D images, that comprises using a source mask of an image and a target mask of an image to be removed from said source mask, identifying all pixels in said target mask that have one or more adjacent pixels in said source mask which are not in said target mask; and replacing all said identified pixels in said target mask with pixels having a color taken from neighboring pixels.
[0015] Another embodiment of the invention is a method for erode filling during image conversion, that comprises identifying pixels in a target mask that have one or more adjacent pixels in a source mask which are not in said target mask, said target mask being a binary image representing pixels that are to be removed from a source mask which is a binary image of what is to be filled; estimating a color of each identified pixel by blending colors associated with an identified adjacent pixel; changing a color of each said identified pixel to conform with said estimated color; and iterating said identifying, estimating and changing until all pixels in said target mask have been changed. [0016] A further embodiment of the invention is code for controlling a processor so as to allow said process to control erode filling during image conversion, that comprises control sequences for identifying pixels in a target mask that have one or more adjacent pixels in a source mask which are not in said target mask, said target mask being a binary image representing pixels that are to be removed from a source mask which is a binary image of what is to be filled; control sequences for estimating a color of each identified pixel by blending colors associated with an identified adjacent pixel; control sequences for changing a color of each said identified pixel to conform with said estimated color; and control sequences for iterating said identifying, estimating and changing until all pixels in said target mask have been changed.
[0017] A further embodiment of the invention is a method for filling in an image when an object has been removed from that image, that comprises determining color differences between adjacent pixels at an intersection of a binary target mask of said removed object with pixels in a binary mask of said image; and adjusting a color of said pixels within said target mask at said intersection to account for said color differences.
[0018] The foregoing has outlined rather broadly the features and technical advantages of the present invention in order that the detailed description of the invention that follows may be better understood. Additional features and advantages of the invention will be described hereinafter which form the subject of the claims of the invention. It should be appreciated by those skilled in the art that the conception and specific embodiment disclosed may be readily utilized as a basis for modifying or designing other structures for carrying out the same purposes of the present invention. It should also be realized by those skilled in the art that such equivalent constructions do not depart from the spirit and scope of the invention as set forth in the appended claims. The novel features which are believed to be characteristic of the invention, both as to its organization and method of operation, together with further objects and advantages will be better understood from the following description when considered in connection with the accompanying figures. It is to be expressly understood, however, that each of the figures is provided for the purpose of illustration and description only and is not intended as a definition of the limits of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] FIGURE 1 is a flow diagram illustrating the steps of 2-D to 3-D conversion according to an embodiment of the invention;
[0021] FIGURE 2 is a flow diagram illustrating the steps for automatically masking an object according to one embodiment of the invention;
[0022] FIGURE 3 is a flow diagram illustrating the steps of generating a camera geometry according to one embodiment of the invention;
[0023] FIGURE 4 is a flow diagram illustrating the steps of managing object occlusion according to one embodiment of the invention;
[0024] FIGURE 5 is a flow diagram illustrating the steps for removing an object and filling in the missing information according to one embodiment of the invention;
[0025] FIGURE 6 depicts a flowchart for generating texture data according to one representative embodiment;
[0026] FIGURE 7 depicts a system implemented according to one representative embodiment; and
[0027] FIGURE 8 illustrates a block diagram of one embodiment of the present invention. DETAILED DESCRIPTION OF THE INVENTION
[0028] The process of converting a two dimensional (2-D) image to a three dimensional (3-D) image according to one embodiment of the invention can be broken down into several general steps. FIGURE 1 is a flow diagram illustrating an example process of conversion at a general level. It should be noted that FIGURE 1 presents a simplified approach to the process of conversions those skilled in the art will recognize that the steps illustrated can be modified in order such that steps can be performed concurrently. Additionally in some embodiments the order of steps is dependent upon each image. For example the step of masking can be performed, in some embodiments, up to the point that occlusion detection occurs. Furthermore, different embodiments may not perform every process shown in FIGURE 1.
[0029] Additional description of some aspects of the processes discussed below can be found in , U. S. Patent No. 6,456,745, issued September 24, 2002, entitled METHOD AND APPARATUS FOR RE-SIZING AND ZOOMING IMAGES BY OPERATING DIRECTLY ON THEIR DIGITAL TRANSFORMS, U. S. Patent No. 6,466,205, issued 10/15/2002, entitled SYSTEM AND METHOD FOR CREATING 3-D MODELS FROM 2-D SEQUENTIAL IMAGE DATA, U. S. Patent Application No. 10/946,955, filed 9/22/2004, entitled SYSTEM AND METHOD FOR PROCESSING VIDEO IMAGES, and U. S. Patent Application No. 11/627,414, filed 1/26/2007, entitled METHODOLOGY FOR 3-D SCENE RECONSTRUCTION FROM 2-D IMAGE SEQUENCES, the contents of which are hereby incorporated by reference in their entirety.
[0030] At process 101 of the illustrated embodiments ingestion of the images occurs. At this step, images are digitized and brought into the associated system for conversion. Preprocessing of the images occurs at process 101 to break the footage into discreet segments or cuts. Also at this step, the footage is formed into the file structure required for the system. Further object lists representing objects in the image are created for each of the discreet cuts. Additionally, other image processing techniques can be performed such as color correction, the creation of additional sequences with different file structures for different parts of the process (e.g. different color depths). Cache files also can be created at different resolutions, and metadata also can be associated with the various areas of the structure.
[0031] At process 102 of the illustrated embodiment, the masking process occurs. At this step outlines are created for the various elements of the individual cuts identified at process 101. During this process both manual and automatic processes can be used to define discreet elements in the cuts. Again it should be noted that process 102 can occur prior to process 103, but in other embodiments process 102 can be performed at any point prior to process 106. Various masking processes are disused in the masking section below.
[0032] At process 103 camera reconstruction is performed. At this step cameras are created for each of the individual cuts. The cameras are created using various camera reconstruction techniques. From the camera reconstruction a camera file is generated for each cut. In some embodiments, camera geometry and static geometry can also be created via artist interpretation of the ingested image sequence. Various methods of generating camera and static geometry are discussed in the section below.
[0033] At process 104 of the illustrated embodiment, static modeling is performed. At this step models of elements that are stationary within the scene are preferably created. Geometries representing the shape and size are created. This conceptually forms the environment in which the cut occurs.
[0034] At process 105 of the illustrated embodiment, dynamic modeling occurs. At this step models are created for objects that are moving in the environment created in process 104. Geometries representing the shape, size and position of the moving objects are created relative to the environment and other dynamic objects in the images.
[0035] At process 106 of the illustrated embodiment, occlusion detection is performed. During occlusion detection areas of overlap between objects and the environment are preferably calculated. Bitmaps may then be created to represent the occlusions. This allows for the system to know the discreet elements of each object that are both visible and not visible from the camera perspective. Various methods of handling occlusion are described in the section Handling Occlusion below. [0036] At process 107 of the illustrated embodiment, filling is performed. Filling recreates the occluded regions of each element. This process can use both automatic and manual techniques. A temporal filling method can be used to recreate information in one frame that is available in other frames from the movement of models and the camera. A spatial method can be uses which use information available within the image itself to synthesize the missing information. Various methods are further described in the section Spatial Methods below.
[0037] At process 108 of the illustrated embodiment, texture generation is performed. Texture generation takes information created at process 107 and applies it to the models to create texture. Texture generation may also use information from images. Additional discussion of texture generation appears in the Texture section below.
[0038] At process 109 of the illustrated embodiment, visualization or stereo visualization is performed. This process determines the stereoscopic parameters of the image in 3-D. The point upon which the eyes or the camera converge, the convergence point, is defined as is the inter-ocular distance, the space between the eyes or the cameras. These values are applied either as static or dynamic values. Visualization is further described in the Visualization section below.
[0039] The final process of the conversion as set forth in the illustrated embodiment is the rendering of the image. This is shown at process 110. At 110 based on the result of process 109 full resolution of the images is rendered for the left and right images. Rendering further described in the Rendering section below. Note that in its most minimal form, embodiments define a single object, set the stereo parameters, and render.
[0040] In one embodiment, a mask is generated from an object model using a polycurve. A polycurve is a closed sequence of adjacent parametric curves; such as Bezier or B-spline curves. However, in other embodiments the polycurve, or other structure, is a definition of a subset of pixels in each image representing an object. A 2- D polycurve can be taken to represent a planar region under certain geometric constraints (e.g., no constituent curve intersects any other except at endpoints). A 2-D polycurve (exterior) together with zero or more 2 -D poly curves (holes) is taken to represent a planar region with holes, provided all of the hole regions are contained within the exterior and are disjoint. A 2-D mesh representation of this region is constructed by overlaying the region with a rectangular grid of a chosen resolution. Each grid element is classified as being interior to the region, exterior to the region, or intersecting the boundary of the region. In one embodiment, a mesh is generated through a modified scan-line traversal of the grid, where the number of triangles contributed by each grid element to the resulting mesh depends on its classification. In this classification, exterior elements have no contribution, interior elements contribute two triangles, and boundary elements contribute one or more triangles depending on how many corners of the grid element lie within the region.
[0041] The resulting 2-D mesh is converted into a 3-D mesh by reverse- projecting it onto any viewing plane in the 3-D space. Further, the obtained 3-D planar mesh is 'lofted' to form a 3-D mesh with volume by replicating/mirroring the surface structure. In one embodiment, this process introduces additional copies of internal vertices or of all vertices together with the required edges and faces. The resulting 3-D mesh can then be manipulated by any one of the standard modeling techniques known to those of skill in the art.
[0042] In an alternative embodiment, the 3-D mesh is converted to 2-D polycurves. Conversion from a 3-D mesh to a collection of 2-D polycurves which define a region is achieved by first rendering the 3-D mesh to produce a boolean image. Next, using image processing, partitioning occurs to partition the boundary pixels into a collection of pixel paths representing an exterior and a list of holes. Then curve fitting techniques are used to generate polycurves which approximate each of these component regions.
[0043] There have been numerous attempts to use auto-masks to either fully generate a mask or to refine an initially supplied mask. Livewire and Livelane are techniques that assist a user in masking to increase efficiency and accuracy. These have been discussed in "User-steered image segmentation paradigms: live wire and live lane" Graphical Models and Image Processing, Volume 60 , Issue 4 (July 1998) Pages: 233 - 260, the contents of which are hereby incorporated by reference in their entirety. In general, these techniques utilize the fact that a user is good at recognizing objects and can quickly provide a crude mask, whereas a computer is good at calculating the optimal pixels that separate the object.
[0044] Active contours and snakes are other techniques that can either be user assisted or fully automated. Active contours have been described in IEEE Transactions on Volume 10, Issue 2, Feb 2001 Page(s):266 - 277, the contents of which are hereby incorporated by reference in their entirety. In general, these techniques utilize a curve and iteratively evolve the curve, subject to a set of constraints, until an equation minimum has been found. The goal is that the equation will be at a minimum when the curve matches the outline of one or more objects.
[0045] One embodiment of the present disclosure is directed to a novel feature-tracking algorithm for use in generating a mask. This approach is based off of the data structures used to represent the mask. The polycurve polygon, a series of polycurves connected to form a loop, is the primary data structure used to define a mask. The feature tracking algorithm assumes that every endpoint of a polycurve corresponds to a feature in the image. The algorithm is preferably initialized by providing a very accurate polycurve polygon of the desired object to be masked in a very small subset of the images. In one embodiment, the subset used represents an equal distribution of the total set, such as the first, middle, and last image. The feature tracker algorithm in such an embodiment can then track all the endpoint vertices of the polycurve polygon. The algorithm assumes that the object is more or less rigid, and thus the position of the control vertices of polycurve polygon remain relative to endpoint vertices. In some embodiments the control vertices can be automatically refined using image analysis tools.
[0046] One current embodiment of the feature tracker algorithm of the present invention works in a sequential manner. That is, the feature tracking algorithm starts at either end of the image set and works its way to the other. The algorithm can work on the image set in any order. The algorithm assumes not only that the provided frames are correct but also all previously tracked frames are correct and uses that information to help locate the position of the vertex in subsequent frames. Thus, if the tracker algorithm fails to locate the correct position of a vertex in one frame, it will likely fail to locate the correct position in many (or all) subsequent frames. In this event the user is able to manually specify the position of the vertex in any of the incorrect frames. The algorithm is then rerun with the assumption that this newly provided information is accurate and the additional information will be sufficient to track the vertex in all other incorrect frames. This iterative process can be performed as many times as necessary to correctly track all features and thus correctly mask the object.
[0047] In another embodiment, an alternative approach for masking is used. In this approach, masks, feature detection, and tracking, together with possible user inputj are used as the basis for deriving a set of 'features' within a sequence of images. Each such feature comprises a list of pairs: the first element indicating the source image and the second element describing the feature geometry in image coordinates (e.g. a 2D point). Such a feature set is described in relation to a method of camera reconstruction described in U.S. Patent Application No. 11/627,414 (hereby incorporated herein by reference), where each feature determines a point in 3D scene coordinates. The reconstruction process determines this 3D point through a global optimization process according to which an error value is assigned each feature to describe how closely the estimated camera model maps the 3D point to the observed 2D image points. A threshold on this error value can be used to recognize Outliers' ~ features whose inclusion in the optimization process has a detrimental effect on the calculated scene geometry. This provides a means of classifying features as static vs dynamic: features whose image-coordinate motion is accurately described by the camera model correspond to static geometry, while the complementary set correspond to dynamic geometry.
[0048] Given an initial classification of features into static/dynamic, camera reconstruction can be used in an iterative fashion to refine this classification. The initial classification can be given in the form of approximate boolean image masks for the dynamic objects. The initial segmentation can be used to determine weights on features for use in the optimization process — static features receiving higher weights than dynamic features and thus having the greater influence on the calculated scene geometry. Each iteration of the reconstruction process preferably updates the classification according to the determined outliers and adjusts the feature weights for the next iteration. The iteration process terminates when either: the feature classification does not change; a specified condition on the global error has been achieved; or a specified number of iterations has been performed. A final iteration should be performed without the influence of dynamic features (e.g. with zero weights) to ensure the accuracy of the calculated camera and static geometry.
[0049] The feature classification resulting from the iterative camera reconstruction process can be used to refine the initially supplied approximate dynamic object masks. If the initial masks were not supplied as polycurve regions, then such can be generated from boolean images. These initial polycurve regions can then be refined so as to include all dynamic features and to exclude all static features. A static feature may be excluded from a polycurve region by determining the nearest component curve and adjusting its parameters algorithmically. A dynamic feature can be included by determining the nearest object region and the nearest component curve therein, and adjusting the curve parameters algorithmically. This process may utilize user interaction to obtain optimal results in some cases.
[0050] A third embodiment is directed to auto generating the mask from a point cloud. During the camera reconstruction process and triangulation process a great deal of 3-D features can be produced in the form of a point cloud. The point cloud may be grouped using a segmentation process. In this approach a group of vertices represents an object in the scene. The segmentation process can be user assisted or completely manual. Following segmentation a group of feature points and the camera are used to generate a mask. In some embodiments, this mask may be very crude, but in these instances another technique, such as the afore mentioned techniques can be used to automatically refine the mask.
[0051] Segmentation can also be fully automated. The point cloud (as discussed below) can be rendered to a Boolean image. This can occur via creating a mesh from the point cloud, or by rendering each point and calculating the outline of the object by calculating the corresponding convex hull or using the previously mentioned active contours. From this Boolean image a polycurve can be create via segmentation and curve fitting techniques. This polycurve could then be refined manually, automatically or manually assisted. Refining may include image processing techniques such as the previously listed livewire, active contours, or feature tracking. Segmentation has been discussed in for example: "Recognising structure in laser scanner point clouds," G. Vosselman, B.G.H. Gorte, G. Sithole and T. Rabbanim, published by IAPRS and found at www.itc.nl/personal/vosselman/papers/vosselman2004.natscan.pdf: "Shape segmentation and matching with flow discretization," T. K. Dey, J. Giesen and S. Goswami. Proc. Workshop Algorithms Data Structures (WADS 03), LNCS 2748, F. Dehne, J.-R. Sack, M. Smid Eds., 25 — 36; and "Shape segmentation and matching from noisy point clouds," T. K. Dey, J. Giesen and S. Goswami, Proc. Eurographics Sympos. Point-Based Graphics (2004), Marc Alexa and S. Rusinkiewicz (eds) (2004), 193-199., the contents of which are hereby incorporated by reference in their entirety.
[0052] A mask (i.e., a 2-D polycurve) is obtained in one embodiment from a 3-D point cloud according to the process illustrated in FIGURE 2. A point cloud is rendered according to the camera model to obtain a boolean image of process 201 of the illustrated embodiments of the illustrated embodiments. Next a scan-line algorithm may be employed to identify a sequence of boundary points, as is illustrated at process 202. Curve fitting techniques may be used to obtain a polycurve at process 203. The resulting polycurve is refined at process 204. This refinement can be done manually by a user, or automatically in conjunction with the previously described contour-based methods. Method of refinement has been discussed in "Reconstructing B-spline Curves from Point Clouds— A Tangential Flow Approach Using Least Squares Minimization," Yang Liu, Huaiping Yang, and Wenping Wang, International Conference on Shape Modeling and Applications 2005 (SMI' 05) pp. 4-12, the contents of which are incorporated by reference in their entirety.
[0053] In one embodiment, 3-D camera and scene geometry are used to calculate new 3-D geometry from supplied 2-D information via triangulation. Triangulation is discussed in U.S. Patent Application No. 11/627,414, filed January 26, 2007, entitled "Methodology For 3-D Scene Reconstruction From 2-D Image Sequences" the contents of which are hereby incorporated by reference in their entirety. Briefly, paragraph 38 of the referenced Application is reproduced below. [0054] The addition of mesh detail through triangulation is performed, according to some embodiments, involves adding structure to the mesh (i.e., vertices, edges and faces), and then triangulating the location of each new vertex with reference to a set of frames for which camera geometry has already been calculated (e.g., key frames). The new vertices may be assigned to images at each of the selected frames. Then the underlying 3-D scene location is calculated through triangulation. This assignment of image coordinates can be performed, in some embodiments, through user input or through application of automated feature detection and tracking algorithms. It should be noted that the more frames that are providing observed image coordinates for a vertex, the greater the accuracy of triangulated scene-coordinate point.
[0055] 2-D images capture a great deal of information that can be used in a wide variety of ways depending on the viewer. Unfortunately, there is also a great deal of information that 2-D images cannot capture that is useful. Most notably is the loss of 3-D information. Viewers have the ability to infer relative positions within a 2-D image, and given certain camera angles can even take measurements from the 2-D information. However, there are often times when 3-D information of the scene or features within the scene would be of great use.
[0056] Several techniques are used to generate 3-D scene information that is associated with a set of 2-D images. Examples of this information include reconstruction from a sequence of 2-D images, on site measurements from tools such as Global Positioning System (GPS) or lasers, and artistic creation with 3-D software with or without the aid of 2-D images. Some of these techniques, such as artistic creation, can produce data that encompasses all of the 3-D information of a scene. However, most only create a small subset of the available 3-D information.
[0057] In one embodiment, using the provided image sequence and camera parameters that were used to create the image sequence, new 3-D geometry can be calculated. It should be noted that although existing scene geometry is not required, in some embodiments it is provided and enhances the usefulness of new geometry. A specific feature is calculated provided that a sufficient number (2 or more) of images in the sequence contain that feature, and that the cameras used to capture the images have sufficient disparity. [0058] FIGURE 3 is a flow diagram illustrating the process for generating a 3-D geometry according to one embodiment. A subset of the images containing the feature is chosen either as input from a user or automatically calculated. This is shown at process 301. 2-D vertex positions are provided, at process 302. These vertex positions represents the image coordinates corresponding to the feature in each of the images in the chosen subset. The cameras representing each image of the subset are used to triangulate the 3-D position that best describes all of the 2-D vertex positions. This is shown at process 303. It should be noted that there are several factors that effect the accuracy of the calculated 3-D position. These factors include the accuracy of the camera parameters, the disparity of the cameras, the accuracy in the 2-D vertex positions and the number of images in the subset.
[0059] The above process can be automated in numerous ways. For example, feature detection locates features that stand out in the image sequence. Feature tracking can position 2-D vertices in subsequent images provided, however, that an initial 2-D vertex is placed in the first image. These two techniques are coupled to automatically generate features and their associated 2-D image coordinates. Given a set images and 2-D vertex information a subset of images and corresponding 2-D vertices are automatically selected to produce the greatest accuracy.
[0060] An occlusion is a the portion of an object's surface which is not visible from a given perspective or camera configuration. This obscuring of portions of the object can occur for a number of reasons. First, back-facing portions as well as portions outside the camera viewing volume are obscured. Second, inter-object occlusion of front-facing portions of an object occur when other objects appear between the camera and the object of interest. Third, intra-object occlusion of front-facing portions of an object occur when non-convex geometry of the object obscure potions of the object. An occlusion is logically related to an object's texture, and may be considered as an extra channel of boolean image data (i.e. true to indicate occlusion, false for non- occlusion). [0061] In one embodiment, inter-object occlusions for projective textures are calculated according to the process illustrated in FIGURE 4. At process 401 the entire scene is rendered according to the camera perspective to form a depth image S. Next, the object of interest is rendered in isolation according to the same camera perspective to form a second depth image T, and (if necessary) a boolean image indicating the object mask M. This is shown at process 402. Note that each of these three images (S, T and M) have the same dimensions. A boolean occlusion image of the same dimension is formed where each pixel p has the value
O[p] := ifM[p] then SfpJ ~ < (or ≠) TfpJ else false Equation 1
[0062] In one embodiment, the process of FIGURE 4 is implemented in a graphics application programming interface (API) using "shadow mapping". Here the depth image S is pre-computed and loaded as a depth texture. Then the shadow mapping functionality of the graphics API is used to calculate the boolean occlusion image directly from a single pass render of the chosen object in isolation. In open graphics library (OpenGL), for example, a simple fragment shader can be used to output a boolean value by comparing the depth buffer (i.e. the object depth) to the depth texture (i.e. the scene depth).
[0063] For the purpose of 2-D to 3-D conversion, additional flexibility is required when introducing inter-object occlusions. Specifically, object models often overlap slightly at their boundaries, and treating such overlap as occlusion can introduce unnecessary filling artifacts. In one embodiment, this problem is avoided by adding a user-controlled tolerance value to the comparison function of Equation 1. Specifically, the condition becomes:
abs(S[p] - TfpJ) > tolerance Equation 2 [0064] For the purpose of optimizing 2-D to 3-D conversion, it is desirable to limit the reconstruction of texture data to the portions of an object surface which are actually visible in the derived stereo pair. In one embodiment, this is accomplished by generating additional occlusion images OL and OR that corresponding to the left and right-eye perspectives according to the above process. Then replacing the occlusion O with the intersection of O, OL and OR. In some embodiments, a set of stereo cameras can be used to calculate the optimal occlusion. This approach allows some flexibility in choosing the stereo camera parameters during rendering without allowing any new occlusions to appear.
[0065] Spatial methods can be used in a plurality of filling techniques. One such technique is the brush fill, which is a highly user involved process. Another technique is the erode fill, which is an automatic process. Each technique has benefits in different situations.
[0066] The erode fill is designed to be an automatic filling process. There are a number of ways in which an object can be specified for removal. This can be done using the manual or automatic masking techniques discussed above. Further, for example, outlining the object via manual rotoscoping, using an automatic selection tool such as a wand, or by manually selecting all the pixels that pertain to the object. After removing an object the remaining objects should be modified to account for the removed object. Ideally, the remaining image should look as natural as possible, that is it should appear to a viewer as if the removed object was never in the image. Thus, to remove the object all of the pixels of the object should be changed to represent what is behind the object. Currently there are several techniques to achieve this. These include manually painting, temporal filling, or brushes. Many times what is behind the object is quite simple, like a white wall or blue sky. Thus, it is desirable to have an automatic filling process to fill in this simple information.
[0067] In one embodiment, the system takes an image and a binary image (the mask) representing the pixels that are to be removed as a starting point. The process of the present embodiment replaces those pixels with information taken from the remaining image. The process is iterative, and can require a very large number of iterations to complete the process. First the process identifies all pixels in the mask that have one or more adjacent pixels that are not in the mask. This is shown in process 501 of FIGURE 5. Next the process estimates the color of each of these pixels by blending the color of the adjacent pixels. Each of these filled pixels is then removed from the mask, at process 503, and processes 501 and 503 are repeated again. Essentially then the color of each of the pixels in the target mask is changed to match the surrounding pixel color, starting from the periphery and working inward. After each iteration pixels are essentially removed (color changed) from the mask so that as the process works toward the center of the target mask new pixels will be found with at least one adjacent pixel not in the unfilled mask. Thus, after each iteration the mask becomes smaller until there are no pixels left unchanged in the mask. Note that the flow of FIGURE 5 is an example, and other embodiments may use fewer processes.
[0068] However, sometimes it does not make sense to assume that all pixels not in the provided mask can be used. Thus, in some embodiments, a second binary image can be provided representing the pixels that the process can choose from. Thus, for each iteration only pixels with at least one adjacent pixel from the second supplied mask will be filled at process 503. In this embodiment, processes of FIGURE 5 terminate when the intersection of the source and target masks is empty.
[0069] In another embodiment, the processes depicted in FIGURE 5 accounts for digital noise that is found in most digital images. If during the filling and estimating process a noise pixel is adjacent to a pixel to be filled, and it is the only adjacent pixel then the color of this noise will be copied to the filled pixel. In order to avoid a copying of noise, in one embodiment, only pixels with a sufficient number of adjacent good pixels (i.e. pixels having substantially the same color) will be filled. This approach causes the noise pixels to be blended with non-noise pixels giving the filled pixel a much more accurate color. In one embodiment, the sufficient number of pixels can be supplied by the user, or can be automatically determined via analysis of the supplied image. To prevent the resulting filled image from appearing too smooth, because there is noise throughout the image except in area that has been filled, one embodiment provides noise to the filled image either during the filling process or via separate process used in conjunction with the filling process. This is shown at optional process 505.
[0070] FIGURE 6 is a flowchart depicting one example embodiment for creating texture map data for a three dimensional object for a particular temporal position. The flowchart for creating texture map data begins in step 601 of the depicted embodiment where a video frame is selected. The selected video frame identifies the temporal position for which the texture map generation will occur. In step 602 of the depicted embodiment, an object from the selected video frame is selected.
[0071] In step 603, of the depicted embodiment, surface positions of the three dimensional model that correspond to visible portions of the selected object in the selected frame are identified. The identification of the visible surface positions may be performed, as an example, by employing ray tracing from the original camera position to positions on the three dimensional model using the camera reconstruction data. In step 604 of the depicted embodiment, texture map data is created from image data in the selected frame for the identified portions of the three dimensional model.
[0072] In step 605 of the depicted embodiment, surface positions of the three dimensional model that correspond to portions of the object that were not originally visible in the selected frame are identified. In one embodiment, the entire remaining surface positions are identified in step 605 thereby causing as much texture map data to be created for the selected frame as possible. In certain situations, it may be desirable to limit construction of the texture data. For example, if texture data is generated on demand, it may be desirable to only identify surface positions in this step (i) that correspond to portions of the object not originally visible in the selected frame and (ii) that have become visible due to rendering the object according to a modification in the viewpoint. In this case, the amount of the object surface exposed due to the perspective change can be calculated from the object's camera distance and a maximum inter-ocular constant.
[0073] In step 606 of the depicted embodiment, the surface positions identified in step 605 are correlated to image data in frames prior to and/or subsequent to the selected frame using the defined model of the object, object transformations and translations, and camera reconstruction data. In step 607 of the depicted embodiment, the image data from the other frames is subjected to processing according to the transformations, translations, and camera reconstruction data. For example, if a scaling transformation occurred between frames, the image data in the prior or subject frame may be either enlarged or reduced depending upon the scaling factor. Other suitable processing may occur. In one representative embodiment, weighted average processing may be used depending upon how close in the temporal domain the correlated image data is to the selected frame. For example, lighting characteristics may change between frames. The weighted averaging may cause darker pixels to be lightened to match the lighting levels in the selected frame. In one representative embodiment, light sources are also modeled as objects. When models are created for light sources, lighting effects associated with the modeled objects may be removed from the generated textures. The lighting effects would then be reintroduced during rendering.
[0074] In step 608 of the depicted embodiment, texture map data is created for the surface positions identified in step 605 from the data processed in step 607 of the depicted embodiment, Because the translations, transformations, and other suitable information are used in the image data processing, the texture mapping of image data from other frames onto the three dimensional models occurs in a relatively accurate manner. Specifically, significant discontinuities and other imaging artifacts generally will not be observable.
[0075] In one representative embodiment, steps 604-607 are implemented in association with generating texture data structures that represent the surface characteristics of an object of interest. A given set of texture data structures define all of the surface characteristics of an object that may be recovered from a video sequence. Also, because the surface characteristics may vary over time, a texture data structure may be assigned for each relevant frame. Accordingly, the texture data structures may be considered to capture video information related to a particular object. Visualization
[0076] Another embodiment of the present disclosure is directed to an interactive system for observing and manipulating the stereo effect in a sequence of stereo pairs (frames) obtained by rendering a scene model according to a stereo camera model. The stereo camera model comprises a given camera model together with values for inter-ocular and convergence-point distances suitably animated over a sequence of frames. The scene model comprises a number of object models together with any additional data required to render realistic images of the scene at the desired frames (e.g. lighting data). Each object model includes the data required to render realistic images of the object at the desired frames. This data may comprise a mesh specifying the object geometry to a sufficient level of detail, texture data, and masking data used to clip the projection of approximate geometry.
[0077] For the purpose of 2-D to 3-D conversion, in one embodiment, the original image sequence serves uniformly as the texture data for all objects using the techniques of projective texture mapping.
[0078] Embodiments allow for the independent choice of both an inter- ocular distance and a convergence distance for each of the desired frames. These parameters can be specified using a Graphical User Interface (GUI), or through an input device, such as a keyboard or mouse. Embodiments allow users to move freely through the sequence of frames adjusting the stereo camera parameters, and observing the corresponding effects through any viable means for stereo pair presentation (e.g. interleaved via shutter glasses, dual projector via polarization). Using interpolation techniques, these values are preferably specified at chosen key frames to reduce the burden on the user, this allows the user to define any number of stereo camera models, and to switch between these modes easily for reference. In some embodiments, caching of rendered images is used to improve performance when switching between frames.
[0079] This process allows for the rendering of the scene in its entirety, or to limit rendering to a selected collection of objects within the scene. This allows for rendering objects as wireframes, as surfaces with texture data, in some embodiments, or permit any other visual effect applied (e.g. lighting). In the case of texture mapping, in some embodiments, the technique applied may be a simplification of the technique use in final rendering. That is the process may not use depth peeling.
[0080] In one embodiment, rendering of images is performed by depth peeling. Depth peeling is an order independent approach that allows for correct blending of inter related models. Typically rendering engines either use a depth traversal tree, rendering layers or some sort of per pixel rendering algorithm (ray tracing, global illumination, photon mapping, radiosity, etc...). The rendering approach of the present embodiments is capable of generating both left and right eye images from scene assets using the stereoscopic variables as defined within the stereoscopic camera data structure. The left and right-eye projections for stereo rendering are obtained with respect to the original camera model using an "off-axis" method. To achieve an order independent rendering engine a multi pass approach is taken. For each image that is created a number of scene traversals are performed that peel off each depth layer based on a previous traversal s depth map. After completion of rendering all of the layers, the layers are then blended together from back to front. The rendering engine of the present embodiments can render out the scene in its entirety or just in portions. Further the rendering engine can also change the number of rendering traversals. Blending of the layers is done on the final stage, and can use any known blend function to generate the correct blending. To increase smoothness among objects edges anti-aliasing can be performed to remove any unwanted j aggies (jagged edges).
[0081] An embodiment of the present invention may utilize a general purpose processor-based system, such as PC 700 illustrated in FIGURE 7, adapted to manipulate video image information through the use of machine vision algorithm 710 and video generation algorithm 720. PC 700 includes processor (CPU) 701 coupled to memory (RAM) 702. RAM 702 provides storage for digitized image information associated with a source video image as well as for any video image resulting from the operation of the present invention. PC 700 is also adapted to accept input of a source video as well as output a resulting video. Of course, acceptance and output of such video may be in digitized form. Alternatively, PC 700 may be adapted to accept and/or output analogue video, such as in the form of National Television System Committee (NTSC) compatible signals. It should be noted that while a processor is shown, the system could be hard wires, or could be a series of processors.
[0082] PC 700 also includes an operator interface providing information exchange with an operator of the system. Such information exchange may include the display of source and/or resulting video images on a suitable display device. Additionally, the information exchange may include an operator selecting and/or inputting information with respect to the generation of video images according to the present invention.
[0083] FIGURE 8 depicts system 800 for processing a sequence of video images according to one representative embodiment. System 800 may be implemented on a suitable computer platform such as depicted in FIGURE 7. System 800 includes conventional computing resources such as central processing unit 801, random access memory (RAM) 802, read only memory (ROM) 803, user-peripherals (e.g., keyboard, mouse, etc.) 804, and display 805. System 800 further includes non- volatile storage 806.
[0084] Non- volatile storage 806 comprises data structures and software code or instructions that enable conventional processing resources to implement some representative embodiments. The data structures and code may implement the flowcharts of FIGS. 6 and 7 as examples.
[0085] As shown in FIGURE 8, non-volatile storage 806 comprises video sequence 807. Video sequence 807 may be obtained in digital form from another suitable medium (not shown). Alternatively, video sequence 807 may be obtained after analog-to- digital conversation of an analog video signal from an imaging device (e.g., a video cassette player or video camera). Object matting module 814 defines outlines of selected objects using a suitable image processing algorithm or algorithms and user input. Camera reconstruction algorithm 817 processes video sequence 807 to determine the relationship between objects in video sequence 807 and the camera used to capture the images. Camera reconstruction algorithm 817 stores the data in camera reconstruction data 811. [0086] Model selection module 815 enables model templates from model library 810 to be associated with objects in video sequence 807. The selection of models for objects are stored in object models 808. Object refinement module 816 generates and encodes transformation data within object models 808 in video sequence 807 using user input and autonomous algorithms. Object models 808 may represent an animated geometry encoding shape, transformation, and position data over time. Object models 808 may be hierarchical and may have an associated template type (e.g., a chair).
[0087] Texture map generation module 821 generates textures that represent the surface characteristics of objects in video sequence 807. Texture map generation module 821 uses object models 808 and camera data 811 to generate texture map data structures 809. Preferably, each object comprises a texture map for each key frame that depicts as much surface characteristics as possible given the number of perspectives in video sequence 807 of the objects and the occlusions of the objects. In particular, texture map generation module 821 performs searches in prior frames and/or subsequent frames to obtain surface characteristic data that is not present in a current frame. The translation and transform data is used to place the surface characteristics from the other frames in the appropriate portions of texture map data structures 809. Also, the transform data may be used to scale, morph, or otherwise process the data from the other frames so that the processed data matches the characteristics of the texture data obtained from the current frame. Texture refinement module 822 may be used to perform user editing of the generated textures if desired.
[0088] Scene editing module 818 enables the user to define how processed image data 820 is to be created. For example, the user may define how the left and right perspectives are to be defined for stereoscopic images if a three dimensional effect is desired. Alternatively, the user may provide suitable input to create a two dimensional video sequence having other image processing effects if desired. Object insertion and removal may occur through the receipt of user input to identify objects to be inserted and/or removed and the frames for these effects. Additionally, the user may change object positions.
[0089] When the user finishes inputting data via scene editing module 818, the user may employ rendering algorithm 819 to generate processed image data 820. Processed image data 820 is constructed using object models 808, texture map data structures 809, and other suitable information to provide the desired image processing effects.
[0090] Although the present invention and its advantages have been described in detail, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims. Moreover, the scope of the present application is not intended to be limited to the particular embodiments of the process, machine, manufacture, composition of matter, means, methods and steps described in the specification. As one of ordinary skill in the art will readily appreciate from the disclosure of the present invention, processes, machines, manufacture, compositions of matter, means, methods, or steps, presently existing or later to be developed that perform substantially the same function or achieve substantially the same result as the corresponding embodiments described herein may be utilized according to the present invention. Accordingly, the appended claims are intended to include within their scope such processes, machines, manufacture, compositions of matter, means, methods, or steps.
1. A method for generating image information when converting 2-D images to 3-D images, said method comprising: using a source mask of an image and a target mask of an image to be removed from said source mask, identifying all pixels in said target mask that have one or more adjacent pixels in said source mask which are not in said target mask; and replacing all said identified pixels in said target mask with pixels having a color taken from neighboring pixels.
2. The method of claim 1 wherein said identifying comprises: determining pixels in said mask having one or more adjacent pixels not in said mask.
3. The method of claim 2 wherein said replacing comprises: estimating a color of each determined pixel by blending colors associated with said neighboring pixels; and substituting each said determined pixel with a pixel having said estimated color.
4. The method of claim 1 , wherein the source mask is the negation of the target mask.
7. The method of claim 1, further comprising: using the target mask of an image, wherein the target mask denotes pixels to be filled of said image.
8. The method of claim 3 further comprising; iterating said determining, estimating and substituting until all pixels in said target mask have been substituted.
9. The method of claim 8 further comprising: selecting a second binary mask; and wherein said determining is with respect to said second mask for at least one of said iterations.
10. The method of claim 9 further comprising ending said iteration when an intersection of said source mask and said target masks is empty.
11. The method of claim 8 wherein said estimating comprises: eliminating color noise from said estimating.
12. The method of claim 11 further comprising: selectively adding color noise to said substituted pixels.
13. A method for generating image information during image conversion, said method comprising: identifying pixels in a target mask that have one or more adjacent pixels in a source mask which are not in said target mask, said target mask being a binary image representing pixels that are to be removed from a source mask which is a binary image of what is to be filled; estimating a color of each identified pixel by blending colors associated with an identified adjacent pixel; changing a color of each said identified pixel to conform with said estimated color; and iterating said identifying, estimating and changing until all pixels in said target mask have been changed.
14. The method of claim 13 further comprising: selecting a second target mask; and wherein said identifying for at least some of said pixels is with respect to said second target mask for at least one of said iterations.
15. The method of claim 14 further comprising ending said iterations when an intersection of said source mask and said target masks is empty.
16. The method of claim 13 wherein said estimating comprises: eliminating color noise from said estimating.
17. The method of claim 8 wherein said eliminating comprises: using only adjacent pixels where more than a certain number of pixels have substantially a same color.
18. The method of claim 13 further comprising: selectively adding color noise to said changed pixels.
19. Code for controlling a processor so as to allow said process to control erode filling during image conversion, said code comprising: control sequences for identifying pixels in a target mask that have one or more adjacent pixels in a source mask which are not in said target mask, said target mask being a binary image representing pixels that are to be removed from a source mask which is a binary image of what is to be filled; control sequences for estimating a color of each identified pixel by blending colors associated with an identified adjacent pixel; control sequences for changing a color of each said identified pixel to conform with said estimated color; and control sequences for iterating said identifying, estimating and changing until all pixels in said target mask have been changed.
20. The code of claim 19 further comprising: control sequences for selecting a second target mask; and wherein said identifying for at least some of said pixels is with respect to said second mask for at least one of said iterations.
21. The code of claim 20 further comprising control sequences for ending said iterations when an intersection of said source mask and said target masks is empty.
22. The code of claim 19 wherein said control sequences for estimating comprises: control sequences for eliminating color noise from said estimating.
23. The code of claim 22 wherein said control sequences for eliminating comprises: control sequences for selecting only adjacent pixels where more than a certain number of pixels have substantially a same color.
24. The code of claim 23 further comprising: control sequences for selectively adding color noise to said changed pixels.
25. A method for filling in an image when an object has been removed from that image, said method comprising: determining color differences between adjacent pixels at an intersection of a binary target mask of said removed object with pixels in a binary mask of said image; and adjusting a color of said pixels within said target mask at said intersection to account for said color differences.
26. The method of claim 25 further comprising: repeatedly repeating said determining for intersections of unadjusted pixels within said target mask with adjacent ones of said adjusted pixels until all pixels within said target mask have been adjusted.
27. The method of claim 25 wherein said adjusting comprises: eliminating color noise from said determined color differences.
28. The method of claim 27 wherein said eliminating comprises: using only adjacent pixels where more than a certain number of pixels have substantially a same color.
29. The method of claim 25 further comprising: selectively adding color noise to said adjusted pixels.
PCT/US2008/056679 2007-03-12 2008-03-12 Systems and methods for filling occluded information for 2-d to 3-d conversion WO2008112776A3 (en)
US60/894,450 2007-03-12
US12/046,272 2008-03-11
WO2008112776A2 true true WO2008112776A2 (en) 2008-09-18
WO2008112776A3 true WO2008112776A3 (en) 2009-07-16
PCT/US2008/056679 WO2008112776A3 (en) 2007-03-12 2008-03-12 Systems and methods for filling occluded information for 2-d to 3-d conversion
CN104506828A (en) * 2015-01-13 2015-04-08 中南大学 Halogen-free low-smoke low-toxic flame-resistant epoxy resin system
FR2569020B1 (en) 1984-08-10 1986-12-05 Radiotechnique Compelec Method to create and modify a synthetic picture
US6724386B2 (en) 2001-10-23 2004-04-20 Sony Corporation System and process for geometry replacement
GB2405775B (en) * 2003-09-05 2008-04-02 Canon Europa Nv 3D computer surface model generation
JP4407670B2 (en) * 2006-05-26 2010-02-03 セイコーエプソン株式会社 Electro-optical device and electronic apparatus
Ref document number: 08732016