Picture synthesizing apparatus

Abstract: The invention relates to a picture synthesizing apparatus for cutting out the background from a picture depending on the move of the viewing point, and presents a picture synthesizing apparatus capable of synthesizing a picture by hidden surface processing, processing of reflection motion by contact, or the like, which is mutual interference of background and foreground, wherein a background picture corresponding to the viewing field is cut out by a background cut-out unit (102) from a background picture in a wide range stored in a background picture store (101), the shape and position information of moving object of foreground is generated in a moving foreground object generating unit (501), the interference of depth information corresponding to background picture from a background depth store (103) and foreground object information is calculated in a background and foreground synthesizing unit (502), and a picture is synthesized by hidden surface processing or processing of change of moving direction of foreground object by reflection, so that the picture can be synthesized not as a shape such as column and plane, but in consideration of a picture hiding the foreground by the background, pass-through, and reflection of foreground object colliding against the background by making use of its undulation information.

Description: The present invention relates to a picture synthesising apparatus and method. From EP-A-0 100 097, a computer controlled imaging system is known making use of a gaming area database, which is purely mathematical, and of an object library database which stores real-world images of objects in a scene. The system has the ability to compose and construct a sequential stream of scenes for a display from a library of images with sufficient processing speed to permit real-time or near real-time analysis of the images by a human operator or a hardware/software equivalent thereof. This system can generate images from selected viewpoints by combining many real-world images. The real-world images are stored as components. This system therefore needs to consider positions and directions of many components in three-dimensional space which needs three-dimensional geometry procedures. In the present invention the whole background can be represented by two dimension data such as one image. This image is generated by viewing from a certain viewpoint, a three-dimensional space can be composed without three-dimensional geometric procedures, by using only two dimensional procedures for one background. From GB-A-2 256 567, a modeling system for producing a two dimensional image of a three-dimensional scene is known, including a three-dimensional computer graphics modeler for producing a view from a selectable viewpoint, and in a selectable direction of a three-dimensional computer graphics model of an object for forming a foreground image. It further comprises a source of backdrop video data, a digital video effects apparatus for manipulating the backdrop video data to produce a background image, and a compositor for keying for the foreground image into the background image to form the two dimensional image. The modeling system is able to produce in real-time photorealistic representations of computer models of objects, such as buildings and the like, in a real-world environment. It is possible to include moving foreground objects in the model for virtual reality applications. In contrast thereto, the present invention composes an image with high speed by considering depth information irrespective of any complicated shapes the background may have, similar to image composing methods in two dimensions. To present a picture with a presence so that the viewer feels as if seeing the actual scene, it is important to present the image corresponding to the changes of viewing point so that the surrounding scene may be looked around when the viewer turns the head. When a picture is synthesized from a three-dimensional model of an object or a reflection model of a surface hitherto used in computer graphics or the like, it is possible to synthesize the picture from an arbitrary viewpoint. It is, however, often impossible to synthesize a picture of high quality in real time, depending on the instruction of move of viewing point of the viewer, due to limitation of the performance of the apparatus and the like. Another problem is that the generated picture by computer graphics is an artificial and unnatural picture quality as compared with the natural picture taken by a camera or the like. To solve these problems, it has been attempted to take in and utilize a CG picture preliminarily prepared by taking a processing time or a natural picture taken by a camera, in a synthesized picture. Conventionally, such known arts included image synthesizing apparatuses for cutting out a picture depending on the direction of viewing point and angle of field of view indicated by the viewer, from a wide-angle plane picture taken by a wide-angle lens, or a columnar projected picture taken by rotating 360 degrees in the horizontal direction around one viewing point known as a panoramic picture. These arts are described below. Fig. 11 is a diagram showing a method of cutting out a synthesized picture from a wide-angle plane picture. In the diagram, reference numeral 1101 denotes a plane picture taken by a wide-angle lens or the like, and the X-axis is defined in the horizontal direction with O at the center, and the Y-axis, in the vertical direction. Suppose to cut out a picture when rotated by  degrees in the horizontal direction from the viewing point 1102. In this case, the center of a cut-out region 1103 is supposed to be P, and the right end and left end of the X-axis to be R and L, respectively. The X-coordinates of points R and L, Rx and Lx, are determined in the following formulas, supposing the angle of field of view in the horizontal direction to be α degrees, and the distance from viewing point 1102 to the center O of the plane picture, that is, the focal length in taking picture to be F. [1] Rx = F · tan( - α/2) Lx = F · tan( + α/2) where the angle of rotation is positive in the left-thread direction about the Y-axis. Similarly, the Y-coordinates of the upper end and lower end of the cut-out coordinates in the vertical direction, Uy, By, are calculated in the following formula, supposing the vertical field angle to be β. [2] Ux = F · tan(- β/2) Bx = F · tan( β /2) Hence, by cutting out the region designated by Rx, Lx, Uy, By, depending on the angle of rotation , a picture corresponding to the horizontal rotation of the viewing point can be synthesized. Next is described a method of obtaining a synthesized picture in a certain viewing line direction from a panoramic picture. Fig. 12a is a schematic diagram showing the relation between a panoramic picture seen from above and a synthesized picture. Reference numeral 1201 is a panoramic picture projecting an image of 360 degrees in the horizontal direction on a circular cylinder. Various methods are known to create a panoramic picture, including a method of taking while rotating the photo detector of a vertical slit by 360 degrees, and a montage method of splicing plane pictures taken by rotating the camera or the like around the receiving plane by specific angles by deforming geometrically. The panoramic picture 1201 is a two-dimensional picture with angle of rotation of e about the viewing point and height of h in the vertical direction. Fig. 12b is a plane development of this panoramic picture. In Fig. 12a, the picture of observing the 0 direction from the viewing point 1202 is a picture 1203 projecting the panoramic picture on a tangential plane of a circular cylinder. Supposing the horizontal and vertical axes of a synthesized picture to be U, V and the focal length to be F, the point (1, h1) of panoramic picture corresponding to point (u1, v1) in the synthesized picture is determined in the following formula. [3] 1 = arctan(u1/F) + 0 h1 = v1 · cos() Supposing the angle of field of view to be a, a desired synthesized picture is obtained by calculating about u1 corresponding from 0- α/2 to 0+ α/2. Fig. 12c shows an example of a picture. Reference numeral 1204 in Fig. 12b is a region in a panoramic picture corresponding to the cut-out picture of Fig. 12c. In such picture synthesizing apparatus, however, since all pictures are present on the same plane and circular cylinder, processing using the information of undulations on the picture is impossible. That is, in the picture synthesizing apparatus, when a background picture is handled, a sufficiently remote far-shot picture can be synthesized, but a picture mutually interfering with the foreground cannot be synthesized. For example, as the foreground other than the background, when an object by computer graphics or the like is synthesized simultaneously, there is no undulation information in the background picture, it is impossible to process so as to synthesize to hide part of the foreground object by part of the background, or to vary the mode of collision depending on the shape of the background when the foreground object moves to collide against the background. When handling the background of a short distance to the viewing point such as a room or a corner of street, mutual interference of background and foreground is effective to enhance the presence of the synthesizing effect. It is hence a primary object of the invention to eliminate the problems and present a picture synthesizing apparatus capable of synthesizing, for example, reproduction in a reflection direction when a fore object is hidden or an object collides against the background, by part of the background picture, due to undulations of a background picture. To solve the problems, the invention comprises means for storing a background picture, means for storing the information of depth, slope and possibility of edge pass-through as undulation information of background picture, and control means for controlling the display or moving direction of foreground object by means for calculating the interference between the foreground object and undulation information of background picture. According to the invention, since the undulation information of background picture is used, it is possible to synthesize not only plane or circular cylinder shapes, but also pictures having effects of hidden surface processing of background and foreground as the processing requiring complicated shape of background, or reflection depending on the inclination of undulations of the background object by collision of a foreground object against the background picture. As for rotation of viewing point, on the other hand, it is enough to vary only the cut-out position of picture, and therefore the background picture can be synthesized in a simple processing as compared with computer graphics of synthesizing the background picture from complicated three-dimensional shape. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a schematic structural diagram of a first embodiment of the invention; Fig. 2 is a diagram showing the relation between background picture and background depth; Fig. 3 is a diagram showing the shape expression of a foreground object and the system of coordinates; Fig. 4 is a processing flow chart of the first embodiment of the invention; Fig. 5 is a schematic structural diagram of a second embodiment of the invention; Fig. 6 is a processing flow chart of the second embodiment of the invention; Fig. 7 is a schematic structural diagram of a third embodiment of the invention; Fig. 8 is a schematic structural diagram of a fourth embodiment of the invention; Fig. 9 is a diagram showing depth edge information; Fig. 10 is a processing flow chart of the fourth embodiment of the invention; Fig. 11 is a diagram showing a prior art; and Fig. 12 is a diagram showing other prior art. DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiment 1 Fig. 1 is a schematic structural diagram of a picture synthesizing apparatus in a first embodiment of the invention. In Fig. 1, reference numeral 101 is a background picture store for storing a background picture in a wide range, 102 is a background picture cut-out unit for cutting out a background picture entering a viewing field by the viewing point information of viewing point direction, position and angle of field of view from the background picture in a wide range, 103 is a background depth store for storing the depth information of the background in a wide range corresponding to the background picture stored in 101, 104 is a foreground object generating unit for generating the foreground object information as the information for synthesizing the object in the picture such as the shape and position of the foreground object placed in three-dimensional space together with viewing point information, and 105 is a picture synthesizing unit for synthesizing the picture of the foreground object on the background picture in consideration of the hiding relation of the background picture and foreground object picture from 102 by comparing the background depth information from 103 and position of foreground object from 104. The operation of the first embodiment is described below. Fig. 2 expresses a rectangular background of a room or the like by a columnar panoramic picture, showing a case of synthesizing with a foreground object. Fig. 2 is a schematic diagram showing the relation between the panoramic picture and background from above the column. Fig.2a is a plan view of a room, and its projection on a column 203 about the viewing point 202 is a panoramic picture 206 in Fig. 2b. It is a two-dimensional array defined by the angle of rotation e about the viewing point and the height h in the vertical direction. This panoramic picture can be generated by a method of rotating the photo detector of vertical slit by 360 degrees or by splicing plane pictures. It is also possible to generate artificially by a technique of computer graphics, for example, a ray tracing method which takes a long processing time. Such picture is stored in the background picture store 101 in Fig. 1. In the background picture cut-out unit, supposing now the viewing point to be at the position of 202 in Fig. 2a, the viewing line direction 204 to be 0, and the viewing field to be somewhere between the angle value s indicated by 205 and e, the shaded area 207 on the panoramic picture 206 in Fig. 2b is the region corresponding to the background picture for cutting out the region 207. For high speed cut-out, approximately, the distortion of the projection images of column and plane is ignored, and the output of the background picture cut-out unit is obtained by primary linear interpolation from the region indicated by 207. As shown in Fig. 2c, supposing the horizontal axis and vertical axis of the cut-out background picture to be U and V, respectively, and the width and height of the background picture to be Uw and Vh, the values of the point (u1, v1) in the picture are determined as the values of the point (1, h1) of the corresponding panoramic picture in the following formulas. [4] 1 = u1/Uw · (e - s) + s h1 = v1/Vw · Hmax where Hmax is the maximum value of h of the panoramic picture. Since the panoramic picture is discretized, the point (1, h1) calculated in the formulas above may not be fitted accurately to the discretized point. In such a case, the value is calculated by linear approximation of four neighboring points. More accurately, projections of column and plane are transformed. In this case, the point (1, h1) of the panoramic picture corresponding to the point (u1, v1) in the synthesized picture is determined in the following formulas, supposing the angle of field of view in the lateral direction to be α, and the focal length to be F. [5] α= (e - s) F = 2 · Uw/tan(α /2) 1 = arctan(u1/F) + 0 h1 = v1 · cos(1) The depth information of the background is explained below. From a point at height h in the vertical direction from viewing point 202 in Fig. 2a, a straight line is extended in the direction of angle of rotation , and the distance until it hits against the background object 201 is supposed to be r (, h), and it is the background depth at (, h). The background depth information is a two-dimensional array of , h same as in the panoramic picture, and its element is the depth value r. It is Fig. 2d which shows the change of the depth value r on the straight line where h in Fig. 2b is 0. The background depth information is generated by a three-dimensional measuring apparatus such as range finder, or generated by man by entering while referring to the background image with CAD tool or the like. In the background depth cut-out unit, the depth value from s to e is cut out by the viewing point information. The depth value corresponding to point (u1, v1) in the picture is the value r (1, h1) corresponding to 1, h1 calculated in formula 4 or formula 5. In the foreground object generating unit, the surface shape of the object to be generated is expressed by a polygon which is an approximation of a plane. Fig. 3a shows a sphere expressed by a triangular polygon. One polygon 301 is expressed by three elements, that is, a list of peaks for composing the polygon 301, three-dimensional coordinates of peaks 302, 303, 304 in the list, and polygon attribute information necessary for rendering such as polygon color and reflection coefficient. The three-dimensional position of the peak 304 is expressed by the system of rectangular coordinates of X, Y, Z. As shown in Fig. 3b, the origin is set at the same viewing point as the system of columnar coordinates of the panoramic picture, and the Z-axis is the axis with zero degree of horizontal rotational angle  of panoramic picture. The Y-axis is an upward direction of the rotary axis of the cylinder, and X-axis is the system of right-hand coordinates orthogonal to the Z-axis and Y-axis. The three-dimensional positions of peaks, list of peaks for composing the polygon, and polygon attribute information about all polygons for composing the object is the foreground object information that is the output of the foreground object generating unit. Incidentally, the foreground object is not limited only to the one having a three-dimensional magnitude. For example, in the case of using a two-dimensional picture of an object, when the picture is handled as attribute information pasted on the plane polygon, it may be handled similarly when the foreground is a two-dimensional picture. Next, in the background and foreground synthesizing unit, a method of synthesizing the foreground and background from the foreground object information, background information, and background depth information is described by referring to a drawing. Fig. 4 is a flow chart of background and foreground synthesization. For hidden surface processing, the Z-buffer method widely employed in computer graphics is used. (1) First, the background picture of the output of the background picture cut-out unit is copied on the output picture. As a result, the value is defined in the entire output picture. (2) In the Z-buffer of which each element is a two-dimensional array of the depth information in the same size as the output picture, the background depth information from the background depth information cut-out unit is copied. The larger the depth value, the remoter it is from the viewing point. (3) The coordinates of each peak of the polygon for composing the object are seen through, projected and transformed. The coordinates of the peak are (x0, y0, z0). First, the direction 0 of viewing point and Z-axis shown in Fig. 2a are rotated about the Y-axis in the following formula to coincide with the direction of the viewing line. Supposing the coordinates after transforming into the system of coordinates of the viewing point to be (xp, yp, zp), it follows that: [6] xp = x0 · cos - z0 · sin yp = y0 zp = x0 · sin + z0 · cos Next, in the system of UV coordinates as shown in Fig. 2c, the projection is transformed onto the output picture of the width Uw, height Vh. The point (u0, v0) on the picture on which the peak is projected is determined in the following formula by using F in formula 5. Herein, the aspect ratio of the projection and transformation is supposed to be 1. [7] u0 = F · xp/zp v0 = F . yp/zp (4) Polygons of the foreground object from the foreground object generating unit are sequentially processed. (5) The polygon is divided into scan lines, and each pixel on each scan line is processed. The polygon is divided into scan lines parallel to the U-axis on the output image, and the coordinates in the system of coordinates of viewing field at both end points of each scan line are calculated, and the coordinates (xpl, ypl, zpl) in the system of coordinates of viewing field of internal point (u1,v1) on the scan line are calculated by internal division of both end points. (6) The depth value r of the columnar system of coordinates of the point (u1, v1) on the scan line is calculated in the following formula. [8] r = sqrt(xp · xp + zp · zp) where sqrt ( ) denotes the square root. (7) The depth value corresponding to (u1, v1) of the Z-buffer is compared with r. When r is smaller, the point of the foreground object is before the background, and steps (8) and (9) are processed. When larger, it remains as background picture. Hence, the foreground object hidden in the background is not displayed, and the partially concealed foreground object can be also expressed. (8) The color of the plane determined from the polygon attribute information is written into the point (u1, v1) of the output image. (9) The depth value r calculated in (7) is written into the point (u1, v1) of the Z-buffer. (10) All pixels on the scan line are processed according to steps (6) to (9). (11) All scan lines of polygon are processed according to steps (5) to (10). (12) All polygons of an object are processed according to steps (4) to (11). Embodiment 2 A second embodiment of the invention is described below. Fig. 5 is a schematic structural diagram of the second embodiment. Reference numeral 501 is a moving foreground object generating unit for generating a moving object which moves in a three-dimensional space according to moving control information. The moving control information is either interactively instructed by man by means of mouse or the like, or internally calculated to generate a trajectory. As a former example, an object simulating the hand of a man is moved in a room, and as a latter example, a ball bounces in a room. In this case, once the initial motion direction is determined, the subsequent trajectory until hitting against the wall can be calculated dynamically. In this moving foreground object generating unit, together with the three-dimensional shape of the object explained in the first embodiment, the information of its moving direction and speed are also stored. In a background and foreground synthesizing unit 502, steps (8) and (9) of the Z-buffer processing explained in Fig. 4 in the first embodiment is changed to conduct judging process as shown in Fig. 6. (13) Contacting of the background and moving foreground object is noticed to the moving foreground object generating unit as moving limit information. Afterwards, suspending the synthesizing process, picture synthesizing is started again with new foreground object information from the moving foreground object. When this moving limit information is entered, in the moving foreground object generating unit, the presently held moving direction is inverted, and the information of the changed moving foreground object is generated at the position moved by the portion of the speed. Hence, when attempted to synthesize a picture of moving an object behind the background, the motion of reflection such as bouncing against the wall is reproduced, without being buried in the wall or the like. At step (13), without stopping the synthesization instantly, by adding the number of the contacting polygon and the point coordinates to the moving limit information and then transferring to the next polygon processing, it is known how many polygons have made contact in the moving foreground object generating unit. By deforming the contacting polygons according to this information, shapes not only reflecting merely but crushed by contact can be also synthesized. Moreover, by providing the foreground object information with changeover information of reflection process or penetration process in every polygon, reflection processing and hidden surface processing can be changed over, so that a bouncing object and a wall penetrating object can be synthesized simultaneously. By producing the output of synthesized picture after completion of all processes, flickering of output image due to retry of synthesization or the like can be prevented. Embodiment 3 A third embodiment of the invention is described below. Fig. 7 is a schematic structural diagram of the third embodiment of the invention. Reference numeral 701 is a background characteristic store, which stores background characteristics, such as the inclination of the background surface, attracting and bouncing repulsive coefficients of the background and object, impact factor to determine the impact strength of collision due to hardness of the background material, and temperature of background material, as the information for determining the characteristics in the case of mutual action of the background and object by collision or the like, corresponding to the background picture of the background picture store 101. The background characteristic information is a two-dimensional array of rotational angle  around the horizontal axis and height h in the vertical direction same as in the background picture, and each element of the array consists of a corresponding background characteristic. For example, considering the inclination and repulsive coefficient as the background characteristics, the inclination of the background surface can be expressed by normal vectors (Nx, Ny, Nz). The system of coordinates of the normal vectors is the system of XYZ rectangular coordinates same as the system of coordinates of peaks of an object. Supposing the repulsive coefficient of background to be ν1, it refers to the ratio of speed of an object before and after collision, and when it is 1, the speed is not lowered, and when smaller than 1, it decelerates. For example, when ν1 is 0, the surface has a nature of attraction, and the object sticks to the background. Usually the value is somewhere between 0 and 1, but it may exceed 1 in the case of repulsion by magnetic force or the like. By collision, moreover, in an object generating unit 702, three-dimensional moving direction vectors (Mx, My, Mz) of object are added to the shape and position of the object, and the object information such as repulsive coefficient ν 2 of object same as the background characteristic is entered, if necessary, into a background object synthesizing unit 703. In the background object synthesizing unit, same as in the second embodiment, contact between background and object is investigated. In Fig. 6 (13) in the case of occurrence of contact, from the direction vector of the moving object and the normal vector of the background, reflection direction vectors (Lx, Ly, Lz) are determined as follows so as to be symmetrical to the normal of the background inclination and moving direction. [9] Lx = Mx - Nx Ly = My - Ny Lz = Mz - Nz Moreover, from the moving speed of the object before reflection, repulsive coefficient ν1 of background and repulsive coefficient ν2 of object, the moving speed of the object after reflection is calculated. For example, supposing the speed before reflection to be V1 and the speed after reflection to be V2, it can be calculated as [10] V2 = ν 1 x ν 2 x V1 The direction and moving speed after reflection of the object are added to the object change information. In the object generating unit, the averages of direction and speed of this reflection are determined in the entire object, and utilized as the direction and speed of the next moving quantity. Or, in the object change information, the point of the maximum difference between the background depth value and the object point depth value r is set as the first contact point, and the moving direction and speed of that point are set as the new moving direction and speed, thereby generating an object. By adding the impact coefficient of the background at the point of collision against the object to the object change information, in the object generating unit, when the impact coefficient exceeds the impact deformation threshold stored as the characteristic of object, by generating an object by adding deformation processing such as reduction of the object shape in the moving direction depending on the impact coefficient, it is possible to express a picture when a soft object collides against a hard background. Or, by adding the background temperature to the object change information, in the object generating unit, it is possible to synthesize a picture of change of the object due to background temperature by generating an exploded, evaporated or fused object in the case over a specific temperature, depending on the characteristic about the temperature of object. A method of calculating the inclination of background from the background depth information in the above case is described. Direction vectors are calculated in a three-dimensional space from a point desired to determine the inclination to a neighboring point. The three-dimensional position of a point on the background is expressed by the columnar system of three coordinates, that is,  and h of panoramic picture and depth value r. It is transformed into a system of rectangular coordinates explained in Fig. 3b, and the vectors are calculated by subtracting the central coordinate values from the coordinates of the neighboring point, thereby normalizing so that the magnitude may be 1. When concerning with four vicinities of upper, lower, right and left positions, four vectors are obtained. An outer product of two adjacent vectors of these vectors is calculated. In the case of four vicinities, four outer product vectors are obtained. Averaging these four outer product vectors and normalizing to magnitude 1, the background inclination of the point to be determined is obtained. Embodiment 4 A fourth embodiment of the invention is described below. Fig. 8 shows a schematic structural diagram of the fourth embodiment. Reference numeral 801 in Fig. 8 is an edge information store, which stores the edge information telling whether there is a discontinuous point or not in the depth of the background, and whether or not possible to pass through the discontinuous edge if any. The edge information is a two-dimensional array of  and h, and each element has a value of 0 if there is no edge, 1 if possible to pass through an edge, and 2 if impossible. In the case of the edge, moreover, it has maximum and minimum values of the edge depth. In the absence of edge, the values are indefinite. The edge information is specifically described by referring to the diagrams. In Fig. 9a, reference numeral 901 is a background picture, 902 denotes an object moving to position (1, h1) and its moving direction, and 903 indicates an object at position (2, h1) and its moving direction. Suppose the shape of the depth r at height h1 to be 904 as shown in Fig. 9b. At 1, there is a discontinuous edge in the depth due to door, and at 2, there is a discontinuous edge in the bookshelf. It is possible to pass through at 1, and impossible at 2. Accordingly, in the edge information, (1, h1) is the value of 1, and (2, h1) is 2, and maximum value and minimum value of each edge are stored. In the moving foreground object generating unit, the shape, position and moving direction of the moving object are entered in a background and foreground synthesizing unit 803 on the basis of the moving control information. In the background and foreground synthesizing unit, contact of the background and foreground moving object is judged. Fig. 10 is a flow chart of this contact judgment. (1) Referring to the flag at the corresponding point of edge information, process is branched. (2) If the flag is 0, it is not edge point, and contact is judged same as in the second embodiment, and in the case of contact, the contact is noticed to the moving foreground object generating unit by the moving control information. (3) If the flag is 1, it is the edge that can be passed through. Same as in the first embodiment, hidden surface processing is done by the Z-buffer. (4) If the flag is 2, there is an edge that cannot be passed through in the depth direction. In this case, when there is an object between the maximum and minimum of the edge, the moving control information is noticed to the moving foreground object generating unit so as to the reflect the moving direction to the opposite side of the depth direction. Depending on such processing, in the moving foreground object generating unit, the moving direction is corrected when necessary, and the moving object is generated. In the foregoing embodiments, panoramic pictures are used, but the background picture of the invention is not limited to panoramic picture alone. For example, it can be easily applied to plane pictures explained in the prior art by replacing the system of columnar coordinates with a system of rectangular coordinates. Or, instead of a column, a background picture projected on a sphere may be also used. In such a case, the system of columnar coordinates is replaced with a system of polar coordinates. Effects of the Invention Thus, according to the invention, by hidden surface processing and processing reflection by plane, which are three-dimensional mutual actions of the foreground object and background, together with synthesization of background by rotation of viewing point, it is possible to synthesize the picture with an enhanced presence as a three-dimensional space.

Claims: A picture synthesising apparatus comprising: background image storing means (101) for storing a background image which is obtained by looking a certain background from a predetermined view point (202) within a 3 dimensional space, background depth storing means (103) for storing depth information's about each respective pixel of said background image, while said depth information is a distance between the view point and a constitution element of said certain background, the each respective element being corresponding to said each respective pixel, foreground object information input means (104) for entering object information of at least position and configuration of a foreground object placed in said 3 dimensional space, thereby to obtain a foreground image by looking the foreground object from the view point (202), foreground object depth calculation means for calculating foreground object depth information which are distances between said view point and each respective constitution element of said foreground object within said 3 dimensional space, by using said object information, synthesising means (105) for synthesising a total image by selecting either a pixel (A) of the background image or a pixel (B) of the foreground object image on the basis of the background depth information and the foreground depth information, while the two pixels (A), (B) to be selected are such pixels that a constitution element of the background corresponding to the pixel (A) of the background image and a constitution element of the foreground object corresponding to the pixel (B) of the foreground image are on a same direction from said view point, and the synthesising means selects a pixel which has a smaller value of said depth information. A picture synthesising apparatus as set forth in claim 1 further comprising: judging means (502) for determining if contact has occurred between the foreground element and the background element, changing means for changing the foreground information when the judging means determines that contact has occurred, and wherein said judging means for determining if contact has occurred is based on a property of the background element and a property of the foreground element, and wherein said information about the foreground object includes velocity of the foreground object, and the property of the foreground element includes a repulsive coefficient, a temperature and an elasticity of the foreground object, and the property of the background element includes a repulsive coefficient, a temperature and a hardness of the background element. A picture synthesising apparatus according to claim 2 wherein said changing means includes configuration changing characteristics of explosion and fusion, based on the temperature of the foreground object and the temperature of the background element. A picture synthesising apparatus according to claim 2 wherein said changing means includes configuration changing characteristics of deformation and scattering, based on the hardness of the background element and the elasticity of the foreground element. A picture synthesising apparatus according to claim 2 wherein (a) inclination of each background element is represented by normal vectors (Nx, Ny, Nz), the repulsive coefficient of each background element is represented by v1, moving speed of the foreground object is represented by V1, moving direction of the foreground object is represented by (Lx, Ly, Lz), new moving speed of the foreground object after the contact is represented by V2, and new moving direction of the foreground object after the contact is represented by (Mx, My, Mz). (b) the new moving speed V2, and the new moving direction (Mx, My, Mz) is calculated on the basis of the inclination (Nx, Ny, Nz), repulsive coefficient ν1, moving speed V1, and moving direction (Lx, Ly, Lz), and (c) a new position of the foreground object is obtained on the basis of the new speed V2, and new moving direction (Mx, My, Mz). A picture synthesising apparatus as set forth in claim 2 wherein said judging mans judges a contact, while the foreground element and the background element are on a same direction line from said view point, and said synthesising means synthesises a total image, while two pixels (A), (B) to be selected are such pixels that a constitution element of the background corresponding to the pixel (A) of the background image and a constitution element of the changed foreground object corresponding to the pixel (B) of the changed foreground image are on a same direction line from said view point. A picture synthesising apparatus according to claim 6, wherein the rule is such that the change is determined on the property of the background and the property of the foreground object. A picture synthesising apparatus according to claim 1, wherein the background depth information includes an information about a discontinuous point of the background. A picture synthesising apparatus according to claim 1, comprising further wide background image storing means for storing a wide background image, and background image cut out means for cutting out a narrow background image which is within a certain view filed which is determined by an inputted view point information, from the wide background image, wherein said background image storing means store the cut out narrow background image. A method for synthesising a picture comprising the steps of: (a) storing a background image obtained by viewing a background from a predetermined view point within a 3 dimensional space, (b) storing depth information about each respective pixel of the background image, wherein the depth information includes distance between the view point and an element of the background, each respective element corresponding to each respective pixel, (c) entering object information of at least position and configuration of a foreground object placed in the 3 dimensional space, thereby to obtain a foreground image by viewing the foreground object from the view point, (d) calculating foreground object depth including distances between the view point and each respective element of the foreground object within the 3 dimensional space, by using the object information, (e) synthesising a total image by selecting either a pixel (A) of the background image or a pixel (B) of the foreground object image based on the background depth information and the foreground depth information, when the two pixels (A), (B) to be selected are in a direction line from the view point, and wherein the step of synthesising includes selecting a pixel which has a smaller depth value. A method for synthesising a picture as set forth in claim 10 further comprising the steps of: (e) judging contact of an element (C) in the foreground object with an element (D) in the background, on the basis of the background depth and the foreground depth when element (C) and element (D) are in a direction line from the view point, and (f) changing the configuration or the position of the foreground object based on a predetermined rule after judging that contact has occurred, The method of claim 11, wherein the predetermined rule is based on a property of the background and a property of the foreground object. The method of claim 12, wherein the foreground object information includes velocity of the foreground object, the property of the background includes one of repulsive coefficient, temperature and hardness, and the property of the foreground object includes one of repulsive coefficient, elasticity and temperature. The method of claim 13, wherein the property of temperature of the foreground object is a configuration changing characteristic such as explosion or fusion and is based on temperature of the background. The method of claim 14, wherein the elasticity property of the foreground object is a configuration changing characteristic, such as deformation or disassembly corresponding to hardness of the background. The method of claim 14, wherein when inclination of each element of the background is represented with normal vectors (Nx, Ny, Nz), repulsive coefficient of the background is represented with ν1, moving speed of the foreground object is represented with V1, moving direction of the foreground object is represented with (Lx, Ly, Lz), new moving speed of the foreground object after the contact is represented with V2, and new moving direction of the foreground object after the contact is represented with (Mx, My, Mz), the new moving speed V2, and new moving direction (Mx, My, Mz) is calculated on the basis of the inclination (Nx, Ny, Nz), repulsive coefficient ν1, moving speed V1, and moving direction (Lx, Ly, Lz), and a new position of the foreground object is obtained on the basis of the new moving speed V2, and new moving direction (Mx, My, Mz). The method of claim 10, wherein the background depth information includes information about a discontinuous point of the background. The method of claim 10, including the following steps: (f) storing a wide background image, (g) cutting out a narrow background image from the wide background image, and (h) storing the cut out narrow background image as the background image in step (a).

Inventors: KADO YOSHIYASU, NAKAGAWA MASAMICHI, SATO JUNICHI, KADO, YOSHIYASU, NAKAGAWA, MASAMICHI, SATO, JUNICHI
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1995
Main classification: G06T15
IPC codes: G06T15