Image processing apparatus, method for controlling image processing apparatus, and program

JP2022093262A5Active Publication Date: 2024-10-09CANON KK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2021166499
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2020-12-11
Filing Date
2021-10-08
Publication Date
2024-10-09
Estimated Expiration
2041-10-08

AI Technical Summary

Technical Problem

Existing image processing technologies fail to adequately match the color and resolution of real and virtual objects under varying lighting and shooting conditions, leading to unnaturalness in synthesized images.

Method used

An image processing apparatus that adjusts the color and resolution of virtual objects based on the texture data of real objects captured by multiple physical cameras, using methods such as changing saturation, brightness, and resolution to align with the lighting and shooting conditions.

Benefits of technology

Generates a more natural composite image by matching the color and resolution of real and virtual objects, reducing the unnatural appearance in synthesized images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To appropriately create a virtual viewpoint image including a virtual object.SOLUTION: An image processing apparatus acquires one or more images based on photographing performed by one or more photographing devices, acquires information on a virtual object, and on the basis of the one or more images and the information on the virtual object, creates a two-dimensional image including the virtual object. In the creation of the two-dimensional image, the image processing apparatus determines color information on the virtual object on the basis of color information on a real object included in the one or more images.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an image processing apparatus for generating a virtual viewpoint image, a control method for the image processing apparatus, and a program.

Background Art

[0002] There is a technique for reproducing an image (hereinafter, virtual viewpoint image) from a virtual camera (hereinafter, virtual camera) virtually arranged in a three-dimensional space using images captured by a plurality of physical cameras (hereinafter, multi-viewpoint images). Further, there is a technique for superimposing and displaying a computer graphics (hereinafter, CG) image generated by capturing a virtual object with a virtual camera on such a virtual viewpoint image. For example, a virtual object, for example, a virtual signboard for advertising purposes, is arranged in a three-dimensional space (hereinafter, virtual space) obtained by reconstructing a shooting space based on multi-viewpoint images. Then, by capturing this virtual space with a virtual camera, it becomes possible to superimpose and draw a virtual advertisement (CG image) on the virtual viewpoint image.

[0003] When a virtual viewpoint image based on a captured image and a CG image independently generated from the captured image are superimposed and displayed, unnaturalness such as the CG image in the virtual viewpoint image appearing floating may occur. In Patent Document 1, in order to generate a more natural composite image of a captured image and a CG image, noise processing for estimating and adding noise generated in the captured image of a virtual object is performed, and a noise-processed CG image is superimposed on the captured image to generate a composite image. According to Patent Document 1, by matching the noise sense of the captured image and the CG image, reduction of unnaturalness in the composite image is achieved.

Prior Art Documents

Patent Documents

[0004]

Patent Document 1

Summary of the Invention

Problems to be Solved by the Invention

[0005] However, Patent Document 1 does not consider matching the color and resolution of virtual objects with those of real objects, which change depending on the lighting conditions of the shooting space and the shooting conditions of the physical camera. As a result, unnaturalness still occurs in the composite image of the virtual viewpoint image generated based on the captured image and the CG image of the virtual object.

[0006] This disclosure aims to appropriately generate virtual viewpoint images that include virtual objects. [Means for solving the problem]

[0007] An image processing apparatus according to one aspect of this disclosure has the following configuration: A first acquisition means for acquiring one or more images based on imaging by one or more imaging devices, A second acquisition means for obtaining information about virtual objects, The system comprises one or more images acquired by the first acquisition means and a generation means that generates a two-dimensional image including the virtual object based on information about the virtual object acquired by the second acquisition means, The generation means generates the two-dimensional image by determining the color information of the virtual object based on the color information of the real object included in the one or more images. [Effects of the Invention]

[0008] According to this disclosure, it is possible to appropriately generate virtual viewpoint images that include virtual objects. [Brief explanation of the drawing]

[0009] [Figure 1] (a) is a block diagram showing an example configuration of an image processing system, and (b) is a block diagram showing an example hardware configuration of an image processing device. [Figure 2] A block diagram showing an example of the functional configuration of an image processing device. [Figure 3] A diagram illustrating the generation of a composite image according to the first embodiment. [Figure 4] A flowchart showing an example of the composite image generation process according to the first embodiment. [Figure 5] A flowchart showing an example of the image processing process for CG images according to the first embodiment. [Figure 6] A diagram illustrating the generation of a composite image according to the second embodiment. [Figure 7] A flowchart showing an example of the image processing process for CG images according to the second embodiment. [Figure 8] A diagram illustrating the generation of a composite image according to the third embodiment. [Figure 9] A flowchart showing an example of image processing for CG images according to the third embodiment. [Figure 10] A block diagram showing an example configuration of an image processing system according to the fourth embodiment. [Figure 11] A block diagram showing an example of the functional configuration of an image processing apparatus according to the fourth embodiment. [Figure 12] A diagram illustrating the generation of a composite image according to the fourth embodiment. [Figure 13] A flowchart showing an example of the composite image generation process according to the fourth embodiment. [Figure 14] A flowchart showing an example of image processing according to the fourth embodiment. [Figure 15] A block diagram showing an example configuration of an image processing system according to the fifth embodiment. [Figure 16] A block diagram showing an example of the functional configuration of an image processing apparatus according to the fifth embodiment. [Figure 17] A flowchart showing an example of the CG image generation process according to the fifth embodiment. [Modes for carrying out the invention]

[0010] Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. Note that the following embodiments do not limit the invention according to the claims. Although a plurality of features are described in the embodiments, not all of these plurality of features are essential for the invention, and the plurality of features may be arbitrarily combined. Further, in the accompanying drawings, the same or similar configurations are denoted by the same reference numerals, and redundant descriptions are omitted.

[0011] Note that in the following embodiments, a virtual viewpoint image is an image generated by a user and / or a dedicated operator freely operating the position and orientation of a virtual camera, and is also called a free viewpoint image, an arbitrary viewpoint image, or the like. Further, unless otherwise specified, the term "image" will be described as including both the concepts of moving images and still images.

[0012] (First Embodiment) An actual object drawn on a virtual viewpoint image, such as a real existing signboard, is affected by factors such as weather, lighting, and the shadow of an obstacle, and its color becomes brighter or darker. On the other hand, a virtual object drawn on a CG image, such as a virtual signboard, will not have the brightness corresponding to the change in the surrounding environment unless it is drawn by simulating such lighting conditions. However, it is very difficult to faithfully simulate lighting conditions that change moment by moment by computer graphics. A composite image obtained by compositing a virtual viewpoint image whose brightness changes depending on the lighting conditions of the shooting space and a CG image without such a change may give an unnatural impression to viewers.

[0013] In the first embodiment, a configuration for generating a more natural composite image by adjusting the color tone of a CG image when generating a composite image in which a CG image is superimposed on a virtual viewpoint image generated from a plurality of images from a plurality of viewpoints (hereinafter, a plurality of viewpoint images) will be described. The adjustment of the color tone of the CG image can be performed, for example, by processing the saturation and / or brightness of the CG image based on the texture data (i.e., color information) of a subject (actual object) generated using the plurality of viewpoint images used for generating the virtual viewpoint image.

[0014] <Hardware configuration of the image processing system> Figure 1(a) shows an example of the configuration of an image processing system 10 according to the first embodiment. The image processing system 10 comprises a shooting system 101, an image processing device 102, and an information processing device 103, and generates a virtual viewpoint image, a CG image, and a composite image by superimposing them.

[0015] The imaging system 101 has multiple imaging devices (hereinafter also referred to as physical cameras) arranged at different locations, and performs synchronized imaging using the multiple physical cameras (in this embodiment, simultaneous imaging by the multiple physical cameras). By simultaneously imaging a three-dimensional space with the multiple physical cameras, the imaging system 101 acquires multiple viewpoint images consisting of multiple captured images and transmits them to the image processing device 102.

[0016] The image processing device 102 generates a virtual viewpoint image captured by a virtual camera based on multiple viewpoint images. The image processing device 102 also generates a computer graphics (CG) image obtained by capturing a virtual object placed in a three-dimensional space with the virtual camera. The image processing device 102 then processes the CG image based on the information (texture) used to render the real object. More specifically, the image processing device 102 processes the CG image to match the color tones of the real object and the virtual object based on the color information of a real object similar to the virtual object, and then superimposes the processed CG image and the virtual viewpoint image to generate a composite image. This processing of the CG image generates a CG image whose color tone changes according to the shooting conditions of the physical camera in the shooting system 101 and the lighting conditions of the shooting space, resulting in a more natural composite image. The viewpoint of the virtual camera is represented by camera parameters determined by the information processing device 103, which will be described later. The image processing device 102 transmits the generated composite image to the information processing device 103.

[0017] The information processing device 103 includes a controller for controlling a virtual camera (viewpoint) and a display unit for displaying a composite image, etc. The controller includes common devices for user input such as a keyboard and mouse, as well as joysticks, knobs, jog dials, etc. for controlling the position and orientation of the virtual camera. The display unit has one or more display devices (hereinafter referred to as "monitor") and displays information necessary for the user. If, for example, a touch panel display is used as the display device, the touch panel may also serve as part or all of the above-mentioned controller. The monitor displays a UI screen for controlling the virtual camera. The user can instruct the virtual camera's operation amount, i.e., direction of movement, orientation (orientation), rotation, distance of movement, and speed of movement, while viewing the display on the monitor. The information processing device 103 determines camera parameters such as the virtual camera's position, orientation, or zoom from the operation amount instructed by the user via the controller and transmits them to the image processing device 102. The determined parameters may be displayed on the monitor as the state of the virtual camera. The information processing device 103 also receives the composite image generated by the image processing device 102 and displays it on the monitor.

[0018] Figure 1(b) shows an example of the hardware configuration of the image processing device 102. The image processing device 102 comprises a CPU 111, RAM 112, ROM 113, and a communication unit 114. The CPU 111 is a processor that uses RAM 112 as work memory, executes programs stored in ROM 113, and comprehensively controls each component of the image processing device 102. By executing various programs, the CPU 111 realizes the various functional units shown in Figure 2, which will be described later. RAM 112 temporarily stores computer programs and intermediate calculation results read from ROM 113. ROM 113 holds computer programs and data that do not require modification. The data held in ROM 113 includes camera parameters of the physical camera, background models described later, and 3D data of virtual objects. The communication unit 114 has communication means such as Ethernet and USB, and communicates with the imaging system 101 and the information processing device 103.

[0019] <Functional configuration of the image processing device 102> Figure 2 is a block diagram showing an example of the functional configuration of the image processing device 102. Figure 2 shows an example of a functional configuration that processes a CG image to become a CG image corresponding to the shooting conditions of a physical camera and the lighting conditions of the shooting space, and generates a composite image by superimposing the processed CG image and a virtual viewpoint image. The image processing device 102 of this embodiment has a communication control unit 201, a virtual viewpoint image generation unit 202, a CG image generation unit 203, a CG image processing unit 204, and a composite image generation unit 205 as its functional configuration.

[0020] The communication control unit 201 receives multiple viewpoint images from the shooting system 101 using the communication unit 114 and receives camera parameter information of the virtual camera from the information processing device 103. The communication control unit 201 outputs the received multiple viewpoint images to the virtual viewpoint image generation unit 202 and outputs the received camera parameters to the virtual viewpoint image generation unit 202 and the CG image generation unit 203. The communication control unit 201 also receives a composite image from the composite image generation unit 205 and transmits it to the information processing device 103 via the communication unit 114. The virtual viewpoint image generation unit 202 generates a virtual viewpoint image based on the multiple viewpoint images and camera parameters of the virtual camera received from the communication control unit 201, and the camera parameters of the physical camera that are pre-stored in the ROM 113.

[0021] The virtual viewpoint image generation unit 202 generates a virtual viewpoint image in the following way, for example. First, the virtual viewpoint image generation unit 202 obtains a foreground image, which is an area corresponding to a predetermined object such as a person or a ball, extracted from multiple viewpoint images, and a background image, which is an area other than the foreground area extracted from multiple viewpoint images. Based on the foreground image and the camera parameters of the physical camera, the virtual viewpoint image generation unit 202 generates a foreground model representing the three-dimensional shape of the predetermined object, information on the position of the foreground model in virtual space, and texture data for rendering the surface of the foreground model. The virtual viewpoint image generation unit 202 also generates texture data for rendering the surface of a background model, which is an area representing the three-dimensional shape of a background object such as a stadium, which is stored in advance in the ROM 113, based on the background image. The virtual viewpoint image generation unit 202 maps the texture data to the foreground model and the background model, and generates a virtual viewpoint image by rendering the virtual space according to the camera parameters of the virtual camera. However, the method of generating a virtual viewpoint image is not limited to this, and various methods can be used, such as a method of generating a virtual viewpoint image by projective transformation of captured images without using a three-dimensional model.

[0022] A foreground image is an image extracted from multiple viewpoint images, specifically the area of ​​a designated object (foreground region). A designated object is, for example, a dynamic object (moving body) that moves (its absolute position and shape may change) when photographed from a fixed position. Such objects include, for example, players and referees on a field where a competition takes place, a ball used in a ball game, and singers, musicians, performers, and presenters at concerts and entertainment events. A background image is an image of an area (background region) that is at least different from the foreground object. More specifically, a background image refers to an object (immovable body) that is stationary or remains nearly stationary when photographed from a fixed position. Such objects include, for example, a stage for a concert, a stadium where an event such as a competition takes place, structures such as goals used in ball games, and the field.

[0023] The virtual viewpoint image generation unit 202 sends the virtual viewpoint image generated in the manner described above to the CG image processing unit 204 and the composite image generation unit 205. The virtual viewpoint image generation unit 202 also sends the multiple viewpoint image and intermediate data generated during the generation of the virtual viewpoint image (for example, the virtual space position of each foreground object and their texture data, etc.) to the CG image processing unit 204.

[0024] The CG image generation unit 203 generates a CG image by performing processes such as capturing a virtual object (projecting the virtual object onto an image), rasterizing, and determining the color, based on the camera parameters of the virtual camera received from the communication control unit 201. A virtual object is an object that exists only in a virtual space and has 3D data (mesh data, texture data, material data, etc.). The CG image generation unit 203 acquires the 3D data of the virtual object that is pre-stored in the ROM 113, places the virtual object at an arbitrary position in the virtual space, and generates an image as seen from the virtual camera. A virtual object is, for example, a virtual billboard that does not exist in the shooting space of a physical camera, and a virtual advertisement image (CG image) is generated when the virtual camera captures it. The CG image generation unit 203 sends the generated CG image and the 3D data of the virtual object used to generate the CG image to the CG image processing unit 204.

[0025] The CG image processing unit 204 processes the CG image received from the CG image generation unit 203 using the virtual viewpoint image, multiple viewpoint images, and intermediate data sent from the virtual viewpoint image generation unit 202, as well as the 3D data of the virtual object sent from the CG image generation unit 203. The CG image processing unit 204 sends the processed CG image to the composite image generation unit 205. The method of processing the CG image will be described later with reference to Figure 3. The composite image generation unit 205 generates a composite image in which the foreground, background, and CG are drawn by combining the virtual viewpoint image input from the virtual viewpoint image generation unit 202 and the CG image input from the CG image processing unit 204. The composite image generation unit 205 outputs the generated composite image to the communication control unit 201.

[0026] <Explanation of the method for processing a CG image and generating a composite image> Using FIG. 3, the procedure for processing a CG image and generating a composite image according to the first embodiment will be described. Here, as an example of the processing of the CG image by the CG image processing unit 204, a mode of changing the color tone of the CG image based on the texture (color information) of the real object in the virtual viewpoint image will be described. FIG. 3(a) is a schematic diagram showing an overhead view of the state where the foreground object 301, the background object 302 existing in the shooting space of the shooting system 101, and the virtual object 303 not existing in the shooting space are shot by the virtual camera 304. FIG. 3(b) is a schematic diagram explaining a method of synthesizing the virtual viewpoint image 312 and the CG image 313 generated in FIG. 3(a).

[0027] The physical cameras 305 and 306 included in the shooting system 101 shoot the foreground object 301 and the background object 302, and generate the shot images 307 and 308. Since the foreground object 301 is illuminated by the light source 309 such as the sun or a light, the shot image 307 is a dark image due to backlighting, and the shot image 308 is a bright image due to frontlighting. The image processing device 102 generates a foreground model 310 and a background model 311 in which the foreground object 301 and the background object 302 are reconstructed in the virtual space based on a plurality of viewpoint images shot by the shooting system 101. Then, the image processing device 102 generates a virtual viewpoint image 312 obtained by shooting the foreground model 310 and the background model 311, and a CG image 313 obtained by shooting the virtual object 303 based on the camera parameters of the virtual camera 304 received from the information processing device 103.

[0028] When generating the texture data of the foreground model 310, the image processing apparatus 102 preferentially uses the texture of the captured image of the physical camera 305 close to the virtual camera 304 in order to make it closer to the image captured from the virtual camera. Then, the foreground model 310 shown in the virtual viewpoint image 312 becomes a darker image compared to the captured image 308. On the other hand, the CG image 313 is not affected by the lighting conditions in the shooting space of the shooting system 101 unless the light source 309 is imitated in the virtual space, and the color of the virtual object 303 does not change even if the virtual camera 304 is moved. Therefore, if the virtual viewpoint image 312 and the CG image 313 are directly synthesized, there is a possibility that the foreground model 310 and the virtual object 303 have different hues and an unnatural synthesized image is obtained. Although it is possible to imitate the lighting in the shooting space of the shooting system 101 when generating the CG image 313, when there are a large number of illuminations such as the sun or the lights in the stadium, the image processing apparatus 102 requires a large amount of processing time to simulate them. In addition, since the color and intensity of the sun, the stage lights, etc. change every moment, it is difficult to faithfully imitate them. Therefore, the image processing apparatus 102 according to the first embodiment generates a CG image 314 with the saturation and brightness of the CG image 313 changed based on the texture data of the foreground model 310 in the virtual viewpoint image 312 in order to generate a natural synthesized image. By synthesizing the CG image 314 obtained by processing the CG image 313 as described above and the virtual viewpoint image 312, it becomes possible to generate a more natural synthesized image 315 of the virtual viewpoint image and the CG image.

[0029] <Control of CG Image Processing and Generation of Synthesized Image> Figure 4 is a flowchart showing the generation and synthesis process of CG images and virtual viewpoint images according to this embodiment. The process shown in Figure 4 is realized, for example, when a control program stored in ROM 113 is read into RAM 112 and executed by CPU 111. The communication control unit 201 receives multiple viewpoint images from the shooting system 101 and camera parameters of the virtual camera from the information processing device 103. When the virtual viewpoint image generation unit 202 and the CG image generation unit 203 receive this received data from the communication control unit 201, the process shown in Figure 4 is started.

[0030] In S401, the virtual viewpoint image generation unit 202 acquires multiple images from multiple shooting devices (multiple physical cameras). In this embodiment, multiple viewpoint images (multiple images captured by multiple shooting devices) are used as the multiple images, but this is not limited to this. For example, the multiple images may include texture images of foreground objects obtained from each of the multiple captured images (partial images extracted from the captured images to show the region of the foreground object). Alternatively, the multiple images may include texture images of background objects obtained from each of the multiple captured images (partial images extracted from the captured images to show the region of the background object). In these cases, the shooting system 101 extracts foreground and background objects from each of the captured images and sends them to the image processing device 102 as multiple images. When the image processing device 102 receives multiple viewpoint images, the extraction of foreground and background objects from each of the multiple captured images constituting the multiple viewpoint images can be performed, for example, by the virtual viewpoint image generation unit 202. In S402, the CG image generation unit 203 acquires information about virtual objects. Information about a virtual object includes at least one of the following: the virtual object's three-dimensional shape data (e.g., polygon data or voxel data) and the virtual object's position in virtual space (e.g., the position set by the user (operator)).

[0031] In S403, the virtual viewpoint image generation unit 202 generates a virtual viewpoint image captured by a virtual camera based on the plurality of viewpoint images acquired in S401 and the camera parameters of the virtual camera (the position and orientation of the virtual viewpoint). Note that the camera parameters of the virtual camera are input from the communication control unit 201. That is, an image representing the real space observed from the specified virtual viewpoint is generated as the virtual viewpoint image. The generated virtual viewpoint image is sent to the composite image generation unit 205. Also, intermediate data during the generation of the virtual viewpoint image (for example, the positions of foreground objects in the virtual space and their texture data, etc.) is sent to the CG image processing unit 204. In S404, the CG image generation unit 203 generates a CG image obtained by capturing the virtual object from the virtual camera based on the information regarding the virtual object acquired in S402 and the camera parameters of the virtual camera. Note that the camera parameters of the virtual camera are those used in S403 as well and are input from the communication control unit 201. That is, an image representing the virtual object observed from the virtual viewpoint used for generating the above virtual viewpoint image is generated as the CG image. The generated CG image is sent to the CG image processing unit 204.

[0032] In S405, the CG image processing unit 204 processes the CG image input from the CG image generation unit 203 based on the intermediate data input from the virtual viewpoint image generation unit 202. The details of the CG image processing in S405 will be described later by referring to FIG. 5. The processed CG image is output to the composite image generation unit 205. In S406, the composite image generation unit 205 synthesizes the virtual viewpoint image input from the virtual viewpoint image generation unit 202 and the processed CG image input from the CG image processing unit 204 to generate a composite image. Then, this process ends. After the end of this process, the generated composite image is transmitted from the composite image generation unit 205 to the information processing apparatus 103 via the communication control unit 201. The above is the composite image processing of the virtual viewpoint image and the CG image according to the first embodiment.

[0033] <Explanation of the CG Image Processing> Figure 5 is a flowchart showing an example of the CG image processing process according to this embodiment, and details the CG image processing process at S405 in Figure 4. In the CG image processing process in the first embodiment, the color information of the CG image is determined and processed based on the texture data (saturation and brightness) of a foreground model close to the virtual object in three-dimensional space. More specifically, the CG image processing unit 204 obtains the saturation and brightness of a foreground model close to the position where the virtual object is placed in the virtual space, and changes the saturation and brightness of the virtual object to approach them. The saturation and brightness of the CG image before processing are calculated by the CG image generation unit 203 based on the texture data and material data of the virtual object. The process shown in Figure 5 is executed by the CG image processing unit 204. The process shown in Figure 5 is triggered when intermediate data is obtained from the virtual viewpoint image generation unit 202 and the CG image is obtained from the CG image processing unit 204.

[0034] In S501, the CG image processing unit 204 selects a foreground model closest to the virtual object from the intermediate data input from the virtual viewpoint image generation unit 202 and acquires its texture data. A foreground model close to the virtual object is, for example, the foreground model of a real object located closest to the virtual object. However, the foreground model selected in S501 is not limited to this. For example, a predetermined number of foreground models of real objects may be selected in order of proximity to the virtual object, or all foreground models of real objects located within a predetermined distance from the virtual object may be selected. In other words, when processing a CG image, if there are multiple foreground models located close to the virtual object, the CG image may be processed based on multiple foreground models rather than just one. Furthermore, the distance between the real object and the virtual object may be, for example, the distance between the centroids of both objects or the shortest distance between the surfaces of both objects. Also, it is not necessarily the case that the entire texture data used to render the selected foreground model is used. In other words, only the texture data of a part of the foreground object (for example, the texture data corresponding to the part of the foreground object within a predetermined range centered on the point of the foreground object closest to the virtual object) may be acquired.

[0035] In S502, the CG image processing unit 204 converts the texture data of the foreground model acquired in S502 from RGB space to HSI space. In S503, the CG image processing unit 204 converts the color information of the CG image generated by the CG image generation unit 203 from RGB space to HSI space. In S504, the CG image processing unit 204 processes the saturation and brightness of the CG image based on the HSI space model of the texture data of the foreground model. For example, the CG image processing unit 204 calculates the average values ​​of the saturation and brightness of the texture data of the foreground model. Then, the CG image processing unit 204 changes the saturation and brightness of the CG image so that the average values ​​of the saturation and brightness of the CG image match or approach the respective average values ​​calculated for the texture data of the foreground model, while keeping the hue of the CG image unchanged. In S505, the CG image processing unit 204 converts the CG image inversely from HSI space to RGB space. The above is an example of the CG image processing according to the first embodiment.

[0036] As described above, in the first embodiment, the saturation and brightness of the CG image are processed using texture data of a foreground model generated based on multiple viewpoint images. This makes it possible to create a more natural composite image when the virtual viewpoint image and the CG image are superimposed, as the colors of the real objects in the virtual viewpoint image and the CG image become closer.

[0037] In the first embodiment, an example of processing saturation and brightness using texture data of a foreground model was described, but this is not the only example. For example, texture data of a background model may be used. Also, if the background model is large, such as a stadium or field, a part of it may be used. For example, texture data from a part of the background model's texture data that is close to the virtual object may be extracted, and the extracted texture data may be used. Alternatively, an image captured by a physical camera selected based on the position and orientation of the virtual object may be selected from multiple viewpoint images, and the saturation and brightness of the selected captured image may be used. The orientation of the virtual object's faces can be determined, for example, based on the polygon's face normal or vertex normal. In this case, the color information of the entire selected captured image may be used, or a part of the selected captured image may be extracted, and the color information of the extracted part of the image may be used. Examples of images of a part extracted from a captured image include an image of a predetermined range near the virtual object, and an image of the region of a real object close to the virtual object.

[0038] Furthermore, when processing CG images, the changes may be made gradually so that the CG image does not change abruptly. Instead of processing CG images every frame, a predetermined unit of time may be set, and the CG image may be processed at each unit of time. In this case as well, the CG image may be changed gradually. Processing of CG images based on multiple viewpoint images is not performed at all times, and the user may switch whether or not to process the image via the information processing device 103. Furthermore, CG image processing is not limited to processing based on multiple viewpoint images; processing may also be applied using computer graphics by setting light sources and materials. In addition, although the CG image generation unit 203 and the CG image processing unit 204 are described separately in this embodiment, the embodiment is not limited to this. For example, the CG image processing unit 204 may combine some or all of the functions of the CG image generation unit 203. In this case, for example, the CG image processing unit 204 may generate CG images while processing images of virtual objects based on multiple viewpoint images (texture data obtained from them).

[0039] (Second Embodiment) In the first embodiment, a configuration was described in which the saturation and brightness of the CG image superimposed on the virtual viewpoint image are processed based on the texture of the foreground model to match the color tones of the real objects in the virtual viewpoint image and the virtual objects in the CG image, thereby reducing the sense of incongruity in the composite image. In the second embodiment, a configuration is described in which the sense of incongruity caused by the difference in resolution between real objects and virtual objects is reduced. For example, an image of a real sign taken close to the physical camera or with a telephoto lens will have a high resolution, while an image of a real sign taken far from the physical camera or with a wide-angle lens will have a low resolution. Thus, the resolution of the image of a real sign differs depending on the shooting conditions, but the resolution of the CG image of the virtual sign, which is a virtual object, is always constant. Therefore, the resolution of the image of the virtual sign placed in the virtual space will differ from that of the surrounding real signs, and the sense of resolution between the signs will be uneven, which may result in the generation of an unnatural composite image that feels out of place.

[0040] In the second embodiment, the resolution of the texture data of the virtual object is processed according to the resolution of the texture data (i.e., color information) of the background model that is close to the virtual object. Note that the hardware configuration and functional configuration of the image processing device 102, which are common to the first embodiment, will be omitted or simplified in the description below, and the differences will be explained primarily in terms of the control of CG image processing.

[0041] Figure 6 is a diagram illustrating the compositing process between a virtual viewpoint image and a CG image according to the second embodiment. Figure 7 is a flowchart illustrating the CG image processing process according to the second embodiment. In the CG image processing process according to the second embodiment, the resolution of the CG image is changed according to the resolution of the texture data used to draw the surface of the background model.

[0042] In Figure 6, the virtual viewpoint image 601 is an image obtained by photographing a real sign 602 that actually exists with a virtual camera, and the CG image 603 is an image obtained by photographing a virtual sign 604 with a virtual camera. The resolution of the texture data of the virtual sign 604 shown in the CG image 603 is higher than the resolution of the texture data of the real sign 602 in the virtual viewpoint image 601. If the CG image 603 is superimposed on the virtual viewpoint image 601 with the texture data of the virtual sign 604 having an excessively high resolution compared to the real sign 602, an unnatural composite image may result. Therefore, the CG image processing unit 204 of the second embodiment processes the CG image 603 so that the resolution of the texture data of the virtual sign 604 is closer to the resolution of the texture data of the real sign 602 in the virtual viewpoint image 601. The composite image generation unit 205 superimposes the thus processed CG image 605 onto the virtual viewpoint image 601 to generate a composite image 606 in which the unnaturalness caused by the difference in resolution is reduced or eliminated.

[0043] Figure 7 is a flowchart that shows in detail the process of S405 in Figure 4 (CG image processing). When the CG image processing unit 204 receives texture data of the background model from the virtual viewpoint image generation unit 202 and texture data of the virtual object from the CG image generation unit 203, it starts the processing shown in Figure 7.

[0044] In S701, the CG image processing unit 204 acquires texture data to be applied to a background model close to the virtual object. The texture data to be applied to a background model close to the virtual object is, for example, texture data extracted from the texture data of the background object, specifically the portion close to the virtual object (a predetermined range centered on the position closest to the virtual object). Of course, this is not the only option; for example, the entire texture data of the background model corresponding to the physical object closest to the virtual object may be selected. In S702, the CG image processing unit 204 acquires texture data to be applied to the virtual object.

[0045] In S703, the CG image processing unit 204 compares the resolution of the texture data of the background model and the virtual object. In this embodiment, the resolution of the texture data of the background model is obtained, for example, from the number of pixels in the area to which the texture data is applied in the captured image that is the source of the texture data, and the actual size of that area in three-dimensional space. Also in this embodiment, the resolution of the texture data of the virtual object is obtained from the size of the area to which the texture data is applied in the virtual object, and the number of pixels in the CG image corresponding to that area. In S704, the CG image processing unit 204 branches the processing according to the result of the resolution comparison in S703. If the difference in resolution between the texture data of the background model and the virtual object is less than or equal to a predetermined value (NO in S704), this process ends. In this case, the CG image generated in S404 is used as is in the generation of the composite image in S406.

[0046] If the difference in resolution between the background model and the virtual object's texture data is greater than a predetermined value (YES in S704), the process proceeds from S704 to S705. In S705, the CG image processing unit 204 changes the resolution of the virtual object's texture data in the CG image based on the resolution of the background model's texture data. For example, suppose the virtual object and the background model are the same size, and the resolution of the virtual object's texture data is twice that of the background model's texture data. In this case, the CG image processing unit 204 processes the CG image generated in S404 by reducing the virtual object's texture data size to 50%. In this way, the resolution of the texture data of the real sign and the virtual sign used in the composite image can be matched, or their texture data resolutions can be brought closer together.

[0047] As described above, according to the second embodiment, the CG image is processed by changing the resolution of the virtual object according to the resolution of the texture data of the background model, and a more natural composite image is generated by superimposing the processed CG image and the virtual viewpoint image. The texture data used for processing the CG image is not limited to the background model, and as in the first embodiment, the texture data of the foreground model located near the virtual object may be used. In addition, in the second embodiment, the CG image was processed based on the texture data of a real-world sign (real sign) located near the virtual sign, but this is not the only method. For example, when replacing a real sign with a virtual sign, the texture data of the virtual sign may be changed based on the texture data of the real sign to be replaced.

[0048] (Third embodiment) In the first and second embodiments, texture data was selected based on a real object chosen based on its positional relationship with a virtual object, and the CG image was processed based on the selected texture data. In the third embodiment, the type of real object (player, ball, signboard, etc.) present in the space captured by the shooting system 101 is identified, and the CG image is processed based on the texture data of the real object selected based on the identified type and the type of virtual object. Note that the hardware configuration and functional configuration of the image processing device 102, which are common to the first embodiment, will be omitted or simplified in the description below, and the differences will be explained mainly in the CG image processing process.

[0049] Figure 8 is a diagram illustrating the compositing process of a virtual viewpoint image and a CG image according to the third embodiment. Figure 9 is a flowchart illustrating the CG image processing process according to the third embodiment. As described above, in the third embodiment, the type of object is identified, and the CG image is processed according to the texture data of a predetermined object among the identified objects.

[0050] In Figure 8, the virtual viewpoint image 801 is an image of a real-world sign 802 and an object other than the sign 803, captured by a virtual camera. The CG image 804 is an image of a virtual sign 805, captured by a virtual camera. The texture data of the virtual sign 805 has a higher resolution than that of the real-world sign 802. In the second embodiment, a method of processing the resolution of a CG image using texture data of a foreground or background model that is close to the virtual object was described. In contrast, the CG image processing unit 204 of the third embodiment identifies the type of object in the foreground or background model, selects an object of a pre-set type, and processes the CG image using the texture data of the selected object.

[0051] In the example shown in Figure 8, the virtual object is a sign, and a real object of the same type, sign 802, is selected. Based on its texture data, the texture data of the virtual sign 805 is modified. The composite image generation unit 205 then superimposes the thus processed CG image 806 onto the virtual viewpoint image 801 to generate a composite image 807. For example, the color or resolution of the virtual object is changed based on the color or resolution of the texture data of the real object. The color change is as described in the first embodiment, and the resolution change is as described in the second embodiment. As a result, when a real sign and a virtual sign are captured by the virtual camera, the color and resolution of the real sign and the virtual sign are similar, making it possible to generate a composite image with less incongruity.

[0052] The process shown in the flowchart of Figure 9 is performed by the CG image processing unit 204 of the third embodiment. The CG image processing unit 204 starts the process shown in Figure 9 when it receives the positions and texture data of the foreground model or background model from the virtual viewpoint image generation unit 202 and the texture data of the virtual object from the CG image generation unit 203. Figure 9 is a flowchart that explains in detail the process of S405 in Figure 4 (the process of processing the CG image).

[0053] In S901, the CG image processing unit 204 identifies the type of real object in the foreground or background model and selects a real object of the same type as the virtual object. For example, an object detection algorithm may be used to identify the type of object. Alternatively, if it is a background model, information indicating the type may be embedded in the mesh data, for example. In S902, the CG image processing unit 204 processes the CG image of the virtual object based on the texture data of the real object selected in S901. The processing of the CG image is as described in the first and second embodiments.

[0054] As described above, according to the third embodiment, the CG image is processed based on texture data for a predetermined type of object from among the real objects identified by the type. According to this third embodiment, for example, when generating a composite image in which one of several real signs is replaced with a virtual sign, the CG image can be processed using the texture data of the sign object more reliably. In this way, since the CG image is processed using the texture data of a real object of the same type as the virtual object, a more natural composite image can be obtained. Needless to say, the first to third embodiments can be used in combination as appropriate.

[0055] (Fourth Embodiment) In the first to third embodiments, a process was described in which a CG image is superimposed on a virtual viewpoint image, which is a two-dimensional image, and the CG image is processed based on the texture data of an object generated by multiple viewpoint images. In the fourth embodiment, an augmented reality image is used as the two-dimensional image. That is, in the fourth embodiment, a method of processing a CG image based on a camera-captured image in augmented reality (AR) is described. Recently, various services using augmented reality technology have been provided. Using AR technology, a CG image can be superimposed on an image captured in real space (real image). For example, a virtual advertisement (CG image) can be displayed on a real image. However, when a real image and a CG image are superimposed and displayed, an unnatural appearance may occur where the CG image in the real image appears to float. This is the same unnaturalness described in the first to third embodiments. In augmented reality as well, it is necessary to match the color and resolution of objects existing in the real space captured in the real image (real objects) and virtual objects captured in the CG image, depending on the lighting conditions of the shooting space and the shooting conditions of the camera. Therefore, in the fourth embodiment, as an example of matching the color tones of a real object and a virtual object, a method for processing the saturation and / or brightness of a CG image based on a real image captured by a camera will be described. Note that parts common to the first to third embodiments will be omitted or simplified in the description.

[0056] <Hardware configuration of the image processing system> Figure 10 shows an example of the overall configuration of the image processing system according to this embodiment. The image processing system 1000 acquires an image captured by a camera and determines the color information of a CG image according to the color information of the real objects captured in the image. Then, the image processing system 1000 generates and outputs a composite image based on the determined color information of the CG image. The image processing system 1000 includes a camera 1010, an image processing device 1020, and a display device 1030. An example of the hardware configuration of the image processing device 1020 in the fourth embodiment is as described in the first embodiment (Figure 1(b)).

[0057] Camera 1010 captures images of the real world. The captured images and pre-calculated internal parameters of camera 1010 are then transmitted to image processing device 1020. Camera internal parameters are camera-specific parameters, such as focal length, image center, and lens distortion parameters. There may be more than one camera. If there are multiple cameras, multiple captured images and internal parameters are transmitted to image processing device 1020. In this embodiment, the process of processing a CG image based on an image captured by one camera is described, but the process is not limited to this, and a single CG image may be processed based on images from multiple cameras.

[0058] The image processing device 1020 estimates three-dimensional information of the real world and the position and orientation of the camera based on the captured image input from the camera 1010 and the camera's internal parameters. The estimation of three-dimensional information of the real world and the position and orientation of the camera is performed using techniques such as Visual SLAM. Using this technique, it is possible to calculate three-dimensional information of the area around the camera and parameters indicating the camera's position and orientation (external parameters of the camera). For example, with Visual SLAM, three-dimensional information of the real world is obtained by recognizing feature points of surrounding objects from the camera's captured image and outputting it as a set of three-dimensional coordinates of many feature points (point cloud). In other words, three-dimensional information (three-dimensional coordinates) of real objects in the real world can be obtained. Note that the estimation of three-dimensional information of the real world is not limited to this method; sensors such as laser sensors represented by LiDAR may also be used or used in combination, and the image processing device 1020 may include various sensors (depth sensors and acceleration sensors). The three-dimensional information of the real object group may include not only three-dimensional coordinates but also information such as the type of real object (signboard, floor, wall, etc.) corresponding to the three-dimensional coordinates, by using object recognition technology. Furthermore, the estimation of the camera's external parameters may be calculated geometrically, for example, by detecting markers with unique identification information placed in the real space, and is not limited to the method described above. The camera's external parameters are represented, for example, by a rotation matrix and a position vector. The camera's internal and external parameters together are called camera parameters. In this embodiment, the position and orientation of the real camera (real camera) are assumed to match the position and orientation of the virtual camera, and the camera parameters of the virtual camera are made to match the camera parameters of the real camera. However, the camera parameters of the real camera and the virtual camera may be different, and this is not limited to this. Also, the coordinate systems of the real space where the three-dimensional information is estimated and the virtual space where the virtual advertisement is placed are assumed to be the same.

[0059] The image processing device 1020 captures a virtual space containing virtual objects such as virtual advertisements based on acquired camera parameters and generates a CG image. The 3D data of the virtual objects is pre-stored in ROM 113 (Figure 1(b)) and read from there for use. The 3D data of the virtual objects contains placement information (orientation information and position information), and the virtual objects are placed in the virtual space based on this information. The placement position of the virtual objects is not limited to this; the image processing device 1020 may change the position and orientation of the virtual objects, or place them in the virtual space at any position and orientation. The image processing device 1020 then processes the CG image based on the captured image and the three-dimensional information of the generated group of real objects. More specifically, the image processing device 1020 processes the CG image to match the color tones of the real objects and the virtual objects based on the color information of real objects that are close to the virtual objects. First, the image processing device 1020 uses the three-dimensional information of the group of real objects to select a real object (or point) that is close to the virtual object and projects it onto the captured image based on the camera parameters. The image processing device 1020 then acquires color information of the projection target and modifies and processes the color information of the virtual object based on that color information. Finally, the image processing device 1020 superimposes the captured image and the processed CG image to generate a composite image. Through this processing of the CG image, a CG image is generated in which the color tone changes according to the shooting conditions of the camera 1010 and the lighting conditions of the shooting space, resulting in a more natural composite image.

[0060] The image processing device 1020 outputs the generated composite image to the display device 1030.

[0061] The display device 1030 displays the composite image generated and output by the image processing device 1020. The display device 1030 realizes augmented reality by continuously updating and displaying the composite image. The user views the composite image displayed on the display device 1030 and operates the camera 1010 to specify the camera's zoom, position, and orientation. The display device 1030 can be, for example, a monitor, a tablet, or a video see-through type head-mounted display (HMD).

[0062] In this embodiment, the camera 1010, image processing device 1020, and display device 1030 are assumed to be separate devices, but this is not limited to this configuration. The image processing device 1020 may also perform the functions of the camera 1010 or the display device 1030. For example, when displaying a composite image on a tablet with a built-in camera and touch panel display, the tablet can also perform the functions of the camera 1010, image processing device 1020, and display device 1030. The composite image is displayed on the tablet's touch panel display, and the user operates the tablet by touching the touch panel display. The CPU, RAM, and ROM, described later, work together to generate the composite image.

[0063] <Image Processing Device Functional Configuration> Figure 11 shows an example of the functional configuration of the image processing device 1020, which processes CG images based on images captured by the camera 1010.

[0064] The image processing device 1020 includes a communication control unit 1101, a camera information estimation unit 1102, a CG image generation unit 1103, a CG image processing unit 1104, and a composite image generation unit 1105.

[0065] The communication control unit 1101 receives the captured image and internal parameters of the camera 1010 from the camera 1010 using the communication unit 114. The communication control unit 1101 outputs the received captured image and internal parameters to the camera information estimation unit 1102. The communication control unit 1101 also outputs the captured image to the CG image processing unit 1104. Furthermore, the communication control unit 1101 transmits the composite image received from the composite image generation unit 1105 to the display device 1030 using the communication unit 114.

[0066] The camera information estimation unit 1102 estimates the three-dimensional information of the real space and the external parameters of the camera 1010 based on the captured image of the camera 1010 and the internal parameters acquired from the communication control unit 1101. The camera information estimation unit 1102 outputs the internal parameters input from the communication control unit 1101, the generated three-dimensional information of the real space, and the external parameters of the camera 1010 to the CG image generation unit 1103.

[0067] Based on the camera parameters input from the camera information estimation unit 1102, the CG image generation unit 1103 captures a virtual object and generates a CG image. Since the camera parameters are those of the camera 1010, the angle of view and the position and orientation of the generated CG image match those of the captured image of the camera 1010. The CG image generation unit 1103 outputs the generated CG image, the arrangement information of the virtual object, the three-dimensional information of the real space, and the camera parameters input from the camera information estimation unit 1102 to the CG image processing unit 1104.

[0068] The CG image processing unit 1104 processes the CG image received from the CG image generation unit 1103 using the captured image of the camera 1010 sent from the communication control unit 1101 and the arrangement information of the virtual object, the three-dimensional information of the real space, and the camera parameters sent from the CG image generation unit 1103. The CG image processing unit 1104 sends the processed CG image and the captured image of the camera 1010 to the composite image generation unit 1105. The method of processing the CG image will be described later using FIG. 12.

[0069] The composite image generation unit 1105 generates a composite image in which CG is drawn on the captured image of the camera 1010 by synthesizing the captured image of the camera 1010 and the CG image input from the CG image processing unit 1104. The composite image generation unit 1105 outputs the generated composite image to the communication control unit 1101.

[0070] <Explanation of the method for processing the CG image and generating the composite image> Using Figure 12, the procedure for processing CG images and generating composite images according to the fourth embodiment will be explained. Here, as an example of CG image processing by the CG image processing unit 1104, a method of changing the color tone of a CG image based on a captured image of a real object will be described. Figure 12(a) is a schematic diagram showing an overhead view of a real object 1201 in the shooting space of camera 1010 and a virtual object 1202 that does not actually exist in the shooting space being captured by a real camera (virtual camera) 1203. Note that the position and orientation of the real camera and the virtual camera are the same. Figure 12(b) is a schematic diagram illustrating the method of compositing the captured image 1204 and the CG image 1206 from Figure 12(a).

[0071] The real camera 1203 captures the real object 1201 and generates the captured image 1204. The real camera 1203 corresponds to camera 1010. The real object 1201 is backlit by a light source 1205 such as the sun or a light, so its color is darker than when illuminated in front. The image processing device 1020 estimates three-dimensional information including the real object 1201 and the camera's external parameters based on the captured image 1204 taken by the real camera 1203. Then, the image processing device 1020 generates a CG image 1206 based on the camera parameters of camera 1010. Furthermore, the image processing device 1020 processes the CG image 1206 to bring its color saturation and brightness closer to that of the real object 1201, based on the estimated three-dimensional information and the captured image 1204, and generates a CG image 1207. Here, the real object used to process the saturation and brightness of the CG image 1206 is selected, for example, one that is close in distance to the virtual object. Finally, the image processing device 1020 superimposes the processed CG image 1207 and the captured image 1204 to generate a composite image 1208.

[0072] As described above, by processing the color of the virtual object 1202 in the CG image 1206 according to the color information of the real object 1201 in the captured image 1204, it becomes possible to generate a natural composite image 1208 without having to mimic the light source 1205 in the virtual space.

[0073] <Control of CG Image Processing and Generation of Composite Image> FIG. 13 is a flowchart showing the composite processing of a photographed image and a CG image according to the present embodiment. The processing shown in FIG. 13 is realized by, for example, a control program stored in the ROM 113 being read into the RAM 112 and the CPU 111 executing them. The communication control unit 1101 receives a photographed image and internal parameters from the camera 1010. When the camera information estimation unit 1102 receives these received data from the communication control unit 1101, the processing shown in FIG. 13 starts.

[0074] In S1301, the camera information estimation unit 1102 acquires the photographed image and internal parameters of the camera 1010. Then, based on the acquired data, it estimates the three-dimensional information of the real space and the external parameters of the camera 1010. The camera information estimation unit 1102 outputs the camera parameters and the three-dimensional information of the real space to the CG image generation unit 1103.

[0075] In S1302, the CG image generation unit 1103 acquires the camera parameters of the camera 1010 and the 3D data of the virtual object, and generates a CG image showing the virtual object. The CG image generation unit 1103 outputs the generated CG image, the arrangement information of the virtual object, the three-dimensional information of the real space, and the camera parameters to the CG image processing unit 1104.

[0076] In S1303, the CG image processing unit 1104 processes the CG image input from the CG image generation unit 1103 based on the arrangement information of the virtual object, the three-dimensional information of the real space, the camera parameters input from the CG image generation unit 1103, and the photographed image input from the communication control unit 1101. The details of the CG image processing in S1303 will be described later with reference to FIG. 14. The CG image processing unit 1104 outputs the processed CG image and the photographed image to the composite image generation unit 1105.

[0077] In S1304, the composite image generation unit 1105 synthesizes the captured image and the CG image input from the CG image processing unit 1104 to generate a composite image. Then, in S1305, the composite image generation unit 1105 outputs the generated composite image. In this embodiment, the composite image generation unit 1105 transmits the composite image to the display device 1030 via the communication control unit 1101. The above is the composite process of the captured image of the camera 1010 and the CG image according to the fourth embodiment.

[0078] <Description of the CG image processing> FIG. 14 is a flowchart showing an example of the CG image processing according to this embodiment, and shows the details of the CG image processing in S1303 of FIG. 13. In the CG image processing in the fourth embodiment, the color information of the CG image is determined and processed based on the saturation and brightness of the captured image of the real object close to the virtual object in the three-dimensional space. More specifically, the CG image processing unit 1104 acquires the saturation and brightness of the captured image of the real object whose placement position is close to the virtual object in the real (virtual) space, and changes the saturation and brightness of the virtual object so as to approach them. The saturation and brightness of the CG image before processing are calculated by the CG image generation unit 1103 based on the texture data and material data of the virtual object. The process shown in FIG. 14 is executed by the CG image processing unit 104. Also, the process shown in FIG. 14 is started triggered by the acquisition of the captured image from the communication control unit 1101 and the acquisition of the three-dimensional information of the real space, the CG image, the placement information of the virtual object, and the camera parameters from the CG image generation unit. However, the three-dimensional information of the real space assumes a set (point group) of the three-dimensional coordinates of the real object group.

[0079] In S1401, the CG image processing unit 1104 obtains a point cloud of real objects that are close to the virtual object's placement location from the set of three-dimensional coordinates (point cloud) of real objects input from the CG image generation unit. For example, the CG image processing unit 1104 obtains a point cloud of real objects that are within a predetermined distance from the virtual object's placement location. The point cloud may contain the coordinates of multiple points or the coordinates of a single point. The selection of the point cloud of real objects may be determined based on type information corresponding to the point cloud, if such type information exists. For example, when processing a CG image of a virtual billboard advertisement, the point cloud of billboards existing in real space may be preferentially selected.

[0080] In S1402, the CG image processing unit 1104 projects the point cloud of the selected real object onto the captured image input from the communication control unit 1101, based on camera parameters input from the CG image generation unit.

[0081] In S1403, the CG image processing unit 1104 acquires the color information of the captured image on which the point cloud of the real object is projected.

[0082] In S1404, the CG image processing unit 1104 converts the acquired color information from the RGB space to the HSI space.

[0083] In S1405, the CG image processing unit 1104 converts the color information of the CG image generated by the CG image generation unit 1103 from the RGB space to the HSI space.

[0084] In S1406, the CG image processing unit 1104 processes the saturation and brightness of the CG image based on the HSI spatial model of the color information of the captured image. For example, the CG image processing unit 1104 calculates the average values ​​of the saturation and brightness of the color information of the captured image acquired in S1404. Then, the CG image processing unit 1104 modifies the saturation and brightness of the CG image so that the average values ​​of the saturation and brightness of the CG image match or approach the respective average values ​​calculated for the color information of the captured image, while keeping the hue of the CG image unchanged.

[0085] In S1407, the CG image processing unit 1104 performs a reverse conversion of the CG image from HSI space to RGB space. The above is an example of the CG image processing according to the fourth embodiment.

[0086] As described above, in the fourth embodiment, the saturation and brightness of the CG image are processed using the image captured by the camera 1010. This makes it possible to create a more natural composite image when the captured image and the CG image are superimposed in augmented reality, as the colors of the real objects in the captured image and the virtual objects in the CG image become closer. The various methods described in the first to third embodiments, such as the color processing method of the first embodiment, can also be used in combination as appropriate in the fourth embodiment.

[0087] (Fifth embodiment) In the fourth embodiment, a process was described for displaying a composite image on the display device 1030 by superimposing a CG image on a real image. In the fifth embodiment, a method for displaying a CG image processed based on a captured real image on an optical see-through type display device, such as an optical see-through type HMD for augmented / mixed reality, will be described. Parts common to the fourth embodiment will be omitted or simplified in the description.

[0088] Figure 15 shows an example of the overall configuration of the image processing system according to this embodiment. The image processing system 1500 acquires an image captured by a camera and determines the color information of a CG image according to the color information of the real objects captured in the image. The image processing system 1500 then displays the CG image with the determined color information. The image processing system 1500 includes a camera 1510, an image processing device 1520, and a display device 1530. However, the camera 1510 is the same as the camera 1010. An example of the hardware configuration of the image processing device 1520 in the fifth embodiment is shown in the first embodiment (Figure 1(b)).

[0089] Unlike the image processing device 1020, the image processing device 1520 outputs the CG image processed based on the image captured by the camera 1510 directly to the display device 1530 without superimposing it onto the captured image. Otherwise, it is the same as the image processing device 1020.

[0090] The display device 1530 displays the CG image generated and output by the image processing device 1520. The display device 1530 is, for example, an optical see-through HMD, which displays the CG image on a transparent screen and overlays it with the real-world scenery to realize augmented / mixed reality.

[0091] In this embodiment, the camera 1510, image processing device 1520, and display device 1530 are assumed to be separate devices. However, as in the fourth embodiment, the image processing device 1520 may also perform the functions of the camera 1510 and the display device 1530.

[0092] Figure 16 shows an example of the functional configuration of the image processing device 1520, which processes CG images based on images captured by the camera 1510.

[0093] The image processing device 1520 comprises a communication control unit 1601, a camera information estimation unit 1602, a CG image generation unit 1603, and a CG image processing unit 1604. However, the camera information estimation unit 1602 and the CG image generation unit 1603 are the same as the camera information estimation unit 1102 and the CG image generation unit 1103, respectively.

[0094] The communication control unit 1601 receives the captured image and internal parameters of the camera 1510 from the camera 1510 using the communication unit 114. The communication control unit 1601 outputs the received captured image and internal parameters to the camera information estimation unit 1602, and the captured image to the CG image processing unit 1604. The communication control unit 1601 also transmits the CG image received from the CG image processing unit 1604 to the display device 1530 using the communication unit 114.

[0095] The CG image processing unit 1604 processes the CG image received from the CG image generation unit 1603 using the image captured by the camera 1510 sent from the communication control unit 1601, and the virtual object placement information, three-dimensional information of the real space, and camera parameters sent from the CG image generation unit 1103. The CG image processing unit 1604 sends the processed CG image to the communication control unit 1601. The method for processing the CG image is the same as the method for processing the CG image in the fourth embodiment.

[0096] Figure 17 is a flowchart showing the CG image generation process according to the fifth embodiment. As described above, in the fifth embodiment, the CG image generated based on the image captured by the camera 1510 is output directly to the display device 1530 without being superimposed on the captured image. The process shown in Figure 17 is realized, for example, by reading a control program stored in the ROM 113 into the RAM 112, and then executing these programs by the CPU 111. The communication control unit 1601 receives the captured image and internal parameters from the camera 1510. When the camera information estimation unit 1602 receives this received data from the communication control unit 1601, the process shown in Figure 17 is started. However, S1701 and S1702 are the same as S1301 and S1302, respectively.

[0097] In S1703, the CG image processing unit 1604 processes the CG image input from the CG image generation unit 1603 based on the virtual object placement information, three-dimensional information of the real space, camera parameters, and the captured image input from the communication control unit 1601. The processing of the CG image is as described in the fourth embodiment (Figure 14). In S1704, the CG image processing unit 1604 outputs the processed CG image to the communication control unit 1601. Then, this process is completed. The processed CG image is transmitted from the communication control unit 1601 to the display device 1530. The above is the CG image generation process according to the fifth embodiment.

[0098] As described above, in the fifth embodiment, the image captured by the camera 1510 is used to process a CG image, and the CG image is displayed on a transparent screen such as an optical see-through HMD. This makes the colors of the CG image closer to those of the real scenery, enabling a more natural augmented / mixed reality experience. The various methods described in the first to third embodiments, such as the CG image processing method of the fourth embodiment, can also be used in combination as appropriate in the fifth embodiment.

[0099] (Other embodiments) This disclosure can also be implemented by supplying a program that implements one or more of the functions of the above-described embodiments to a system or device via a network or storage medium, and by having one or more processors in the computer of that system or device read and execute the program. It can also be implemented by a circuit (e.g., an ASIC) that implements one or more functions.

[0100] This disclosure is not limited to the embodiments described above, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, the following claims are attached to make the scope of the invention public. [Explanation of symbols]

[0101] 101: Shooting system, 102: Image processing device, 103: Information processing device, 201: Communication control unit, 202: Virtual viewpoint image generation unit, 203: CG image generation unit, 204: CG image processing unit, 205: Composite image generation unit

Claims

1. An acquisition means for acquiring a two-dimensional image including a virtual object; a processing means for processing the saturation and / or brightness of the virtual object in the two-dimensional image so as to match or approach the saturation and / or brightness included in color information corresponding to the three-dimensional shape of a real object generated based on a plurality of images; 13. An image processing device comprising:

2. Furthermore, a means for generating a virtual viewpoint image based on the plurality of images and viewpoint information indicating a position of a virtual viewpoint and a line of sight direction from the virtual viewpoint; a means for generating a composite image based on the virtual viewpoint image and the two-dimensional image processed by the processing means; 2. The image processing apparatus according to claim 1, further comprising:

3. The image processing device described in Claim 2, characterized in that the synthetic image is generated by superimposing the virtual viewpoint image on the two-dimensional image.

4. The acquisition means acquires a position of the virtual object in a virtual space, 4. The image processing device according to claim 1, wherein the processing means processes the saturation and / or brightness of the virtual object in the two-dimensional image based on the saturation and / or brightness included in color information corresponding to a three-dimensional shape of a real object selected based on a positional relationship with the virtual object.

5. 5. The image processing apparatus according to claim 4, wherein the processing means selects a real object that is closest to the virtual object or that is within a predetermined distance from the virtual object.

6. The image processing device according to claim 1, wherein the real object is a person.

7. An image processing device as described in any one of claims 1 to 5, characterized in that the real object is a structure.

8. An image processing device described in any one of claims 1 to 7, characterized in that the two-dimensional image is a CG image generated based on the multiple images.

9. 9. The image processing device according to claim 1, wherein the processing means processes the saturation and lightness of the virtual object in the two-dimensional image so that average values ​​of the saturation and lightness included in color information corresponding to the three-dimensional shape of the real object and average values ​​of the saturation and lightness of the virtual object in the two-dimensional image match or approach each other.

10. 10. The image processing device according to claim 1, wherein the processing means processes a resolution of the virtual object in the two-dimensional image when a difference between a resolution of the virtual object in the two-dimensional image and a resolution of the real object is larger than a predetermined value.

11. Further, the apparatus further comprises an identification means for identifying a type of the real object, 11. The image processing device according to claim 1, wherein the processing means processes the saturation and / or brightness of the virtual object based on the saturation and / or brightness contained in color information corresponding to the three-dimensional shape of a real object of the identified type.

12. 12. The image processing device according to claim 1, wherein the processing means determines the saturation and / or luminosity of the virtual object based on the saturation and / or luminosity of an image selected from the plurality of images based on the position of the virtual object and the direction of a surface of the virtual object.

13. An image processing device as described in any one of claims 1 to 12, characterized in that the processing means processes the saturation and / or brightness of the virtual object while maintaining the hue of the virtual object.

14. An acquisition step of acquiring a two-dimensional image including a virtual object; a processing step of processing the saturation and / or brightness of the virtual object in the two-dimensional image so as to match or approach the saturation and / or brightness included in color information corresponding to the three-dimensional shape of a real object generated based on a plurality of images; 13. A method for controlling an image processing apparatus comprising the steps of:

15. A program for causing a computer to function as each of the means of the image processing device according to any one of claims 1 to 13.