Spectral texture image generating system, spectral texture image generating method and program
The spectral texture image generation system uses digital cameras to classify and convert multi-view images with different spectral sensitivities, addressing the limitations of hyperspectral cameras by generating high-resolution texture images that accurately reflect spectral reflectance for three-dimensional shape models.
Patent Information
- Application Number
- JP2020139273
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-08-20
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-08-20
AI Technical Summary
Hyperspectral cameras are expensive and time-consuming, producing images with lower resolution than digital cameras, making them impractical for generating texture images of three-dimensional shape models from multi-view images.
A spectral texture image generation system that uses digital cameras to capture multi-view images with different spectral sensitivities, classifies these images into groups, generates virtual multi-view images, and estimates spectral reflection spectra to create texture images for three-dimensional shape models, overcoming the limitations of hyperspectral cameras.
This system allows for the generation of texture images that accurately reflect spectral reflectance using affordable digital cameras, providing detailed spectral texture images with higher resolution than traditional methods, enabling efficient texture mapping on three-dimensional shape models.
Smart Images

Figure 0007574569000005 
Figure 0007574569000006 
Figure 0007574569000007
Abstract
Description
[Technical field]
[0001] The present invention relates to a spectral texture image generating system, a spectral texture image generating method, and a program for generating a texture image for performing texture mapping on a three-dimensional shape model. [Background technology]
[0002] 3D shape recovery technology, which generates a 3D shape model of a target object based on multi-view images, is attracting attention not only from the computer vision research community but also from a wide range of fields, such as digital archiving of cultural assets and the entertainment industry.
[0003] The three-dimensional shape of a target object is reconstructed based on differences in how the silhouette and surface texture of the target object appear in each of the captured images in the multi-viewpoint images (see, for example, Patent Documents 1 and 2). Generally, when restoring the three-dimensional shape of a target object from such multi-viewpoint images, a texture image for the restored three-dimensional shape model is generated from the RGB values (pixel values of each of the Red, Green, and Blue channels) of corresponding pixels in the multi-viewpoint images, or the average RGB values of each of the corresponding multiple viewpoint images in the multi-viewpoint image.
[0004] However, the RGB values of typical imaging devices (such as digital cameras) available on the market are affected by the spectral distribution of the light source in the imaging environment when capturing an image of a target object and the spectral sensitivity characteristics of the imaging device used for capturing the image. Therefore, when generating a texture image of a three-dimensional shape model using viewpoint images of the same target object captured under different light sources or with different imaging devices, even though the target object is the same, the texture image of the three-dimensional shape model will be generated in different colors depending on the light source or digital camera, because the spectral reflectance of the target object cannot be obtained.
[0005] On the other hand, there is a method that uses a hyperspectral camera to obtain color information of a target object for three-dimensional shape reconstruction without being affected by the spectral distribution of the light source in the imaging environment between viewpoint images in a multi-viewpoint image or differences in spectral sensitivity during imaging. A hyperspectral camera can capture a hyperspectral image, which is an image in which wavelengths are finely separated into tens to hundreds of bands and spectral information indicating the intensity of each band is held for each pixel. By using the above-mentioned hyperspectral camera to obtain the spectral reflectance (reflectance of light for each wavelength) of a target object, it is possible to represent colors that are not dependent on the spectral distribution of the light source in the imaging environment between the viewpoint images of a multi-view image or differences in the spectral sensitivity of the digital cameras used for imaging. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2018-181047 A [Patent Document 2] Patent No. 5068732 Summary of the Invention [Problem to be solved by the invention]
[0007] However, a problem with hyperspectral cameras is that they are expensive compared to general digital cameras that capture RGB images. In addition, a hyperspectral camera takes several tens of seconds (or more than one minute in some cases) to capture one hyperspectral image, which is much longer than a digital camera that can capture one image in less than one second. For this reason, a hyperspectral camera takes more time to capture a target object than a digital camera because many images must be captured to generate a texture image. For example, a digital camera can capture 100 or more multi-viewpoint images of a target object in just a few minutes, but a hyperspectral camera requires several hours of work.
[0008] Furthermore, the resolution of the captured image of the hyperspectral camera is lower than that of a general digital camera that captures RGB images. That is, when generating a texture image of a three-dimensional shape model from a multi-view image captured by a hyperspectral camera, the resolution of the viewpoint image in the multi-view image significantly affects the resolution of the texture image. For this reason, a hyperspectral camera with low resolution cannot generate a texture image of a three-dimensional shape model of a target object with the same resolution as when it is generated from an image captured by a digital camera.
[0009] For the reasons described above, it is difficult to use hyperspectral images captured by a hyperspectral camera as multi-viewpoint images for generating texture images of a three-dimensional shape model that reconstructs a target object. For this reason, there is a demand for a technology that can easily obtain the shape and spectral reflectance of a target object using an imaging device that is less expensive than a hyperspectral camera and can capture many multi-viewpoint images in a short period of time.
[0010] The present invention has been made in consideration of the above-mentioned circumstances, and provides a spectral texture image generation system, a spectral texture image generation method, and a program that can easily generate a texture image that reflects the spectral reflectance of a target object using images captured by an imaging device that is less expensive than expensive hyperspectral cameras that are available on the market and available to general users. [Means for solving the problem]
[0013] The spectral texture image generation system of the present invention is a spectral texture image generation system that generates, from multi-viewpoint images, a spectral texture image corresponding to a spectral reflectance spectrum of four or more bands in the spectral reflectance of a target object, as a texture image of a three-dimensional shape model of the target object, and is characterized by comprising: a multi-viewpoint image classification unit that classifies each of multi-viewpoint images captured of the target object by imaging devices of a plurality of different viewpoints and a plurality of different spectral sensitivities into spectral sensitivity groups having the same spectral sensitivity; a virtual multi-viewpoint image generation unit that uses the multi-viewpoint image at each of the viewpoints as a reference image and converts other multi-viewpoint images that are in the vicinity of the viewpoint of the reference image and belong to different spectral sensitivity groups into images captured from the viewpoint of the reference image to generate a virtual multi-viewpoint image; a texture image generation unit that generates a texture image corresponding to the spectral sensitivity of the spectral sensitivity group from each of the reference images and virtual multi-viewpoint images in the spectral sensitivity group; and a spectral texture image generation unit that estimates a spectral reflectance spectrum of four or more bands of the target object from each of the texture images corresponding to each of the spectral sensitivities, and generates the spectral texture image of the three-dimensional shape model.
[0014] The spectral texture image generation system of the present invention is characterized in that, when generating the texture image for any of the spectral sensitivities, the texture image generation unit generates a lookup table in which texture coordinates indicating the positions of each vertex of a texture region in a two-dimensional coordinate system of the texture image correspond to vertex coordinates indicating the positions of the vertices of polygons of a three-dimensional shape model to which each of the texture regions is attached, and refers to the lookup table to generate texture images for other spectral sensitivities in which the correspondence between the vertex coordinates of the polygons and the texture coordinates is similar.
[0015] The spectral texture image generation system of the present invention further includes a texture image reconstructing unit that reconstructs the texture images, wherein the texture image generation unit generates texture images corresponding to each of the spectral sensitivities, and, when generating each of the texture images, generates respective lookup tables in which texture coordinates indicating the positions of each vertex of a texture region in the texture image correspond to vertex coordinates indicating the positions of the vertices of a polygon of a three-dimensional shape model to which the texture image is applied, and the texture image reconstructing unit sets one of the texture images as a reference texture image, and reconstructs the correspondence between the vertex coordinates of the polygons and the texture coordinates in the other texture images to match the correspondence between the vertex coordinates of the polygons and the texture coordinates in the lookup table of the reference texture image.
[0016] The spectral texture image generation system of the present invention is characterized in that the texture image generation unit generates texture images corresponding to each of the spectral sensitivities, and, when generating each of the texture images, generates respective lookup tables in which texture coordinates indicating each vertex of a texture region in the texture image correspond to vertex coordinates indicating the positions of vertices of a polygon of a three-dimensional shape model to which the texture image is applied, the spectral texture image generation unit refers to each of the lookup tables, matches pixels in the texture region of each of the texture images with the vertex coordinates in each of the lookup tables, estimates a spectral reflectance spectrum from each of the matched pixels, and generates the spectral texture image.
[0022] The spectral texture image generation method of the present invention is a method for generating a spectral texture image corresponding to a spectral reflectance spectrum of four or more bands in the spectral reflectance of a target object from a multi-viewpoint image as a texture image of a three-dimensional shape model of the target object, the method including a multi-viewpoint image classification step in which a multi-viewpoint image classifying unit classifies each of the multi-viewpoint images obtained by capturing the target object from a plurality of different viewpoints and using imaging devices with a plurality of different spectral sensitivities into a spectral sensitivity group having the same spectral sensitivity; and a virtual multi-viewpoint image generation unit classifies the multi-viewpoint images at each of the viewpoints as a reference image, and classifies each of the multi-viewpoint images that are in the vicinity of the viewpoint of the reference image and that are in a different spectral sensitivity group. the reference image and the virtual multi-viewpoint image generation process generating a virtual multi-viewpoint image by converting the other multi-viewpoint images belonging to the reference image into images captured from the viewpoint of the reference image; a texture image generation process in which a texture image generation unit generates a texture image corresponding to the spectral sensitivity of the spectral sensitivity group from each of the reference images and the virtual multi-viewpoint images in the spectral sensitivity group; and a spectral texture image generation process in which a spectral texture image generation unit estimates a spectral reflectance spectrum of four or more bands of the target object from each of the texture images corresponding to each of the spectral sensitivities, and generates the spectral texture image of the three-dimensional shape model.
[0024] A program of the present invention is a program for causing a computer to function as a spectral texture image generation system that generates, from multi-viewpoint images, spectral texture images corresponding to a spectral reflectance spectrum of four or more bands in the spectral reflectance of a three-dimensional shape model of a target object, as texture images of the three-dimensional shape model of the target object. The program causes the computer to function as: a multi-viewpoint image classification means that classifies each of multi-viewpoint images captured of the target object from a plurality of different viewpoints and with imaging devices having a plurality of different spectral sensitivities into spectral sensitivity groups having the same spectral sensitivity; a virtual multi-viewpoint image generation means that uses the multi-viewpoint image at each of the viewpoints as a reference image, and converts other multi-viewpoint images that are in the vicinity of the viewpoint of the reference image and belong to different spectral sensitivity groups into images captured from the viewpoint of the reference image to generate a virtual multi-viewpoint image; a texture image generation means that generates a texture image corresponding to the spectral sensitivity of the spectral sensitivity group from each of the reference image and virtual multi-viewpoint image in the spectral sensitivity group; and a spectral texture image generation means that estimates a spectral reflectance spectrum of four or more bands of the target object from each of the texture images corresponding to each of the spectral sensitivities, and generates the spectral texture image of the three-dimensional shape model. Effect of the Invention
[0025] As described above, according to the present invention, it is possible to provide a spectral texture image generation system, a spectral texture image generation method, and a program that can easily generate a texture image that reflects the spectral reflectance of a target object using images captured by an imaging device that is less expensive than expensive hyperspectral cameras that are available on the market and available to general users. [Brief description of the drawings]
[0026] [Figure 1] 1 is a block diagram showing an example of the configuration of a spectral texture image generating system according to a first embodiment of the present invention. [Diagram 2] 10 is a diagram showing an example of the configuration of a multi-viewpoint image information table written and stored in a multi-viewpoint image storage unit 107. FIG. [Diagram 3] 13 is a diagram showing an example of the configuration of a spectral sensitivity group data table in a multi-viewpoint image storage unit 107. FIG. [Figure 4] FIG. 2 is a conceptual diagram illustrating generation of a spectral texture image by the spectral texture image generation system of the first embodiment. [Diagram 5] 11A and 11B are diagrams illustrating a process of selecting a target multi-viewpoint image that can be converted into a virtual multi-viewpoint image. [Figure 6] 1 is a diagram showing an example of the configuration of a same-viewpoint multi-viewpoint image table in a multi-viewpoint image storage unit 107. FIG. [Figure 7] FIG. 13 is a conceptual diagram showing how spectral reflectance is expressed by combining spectral reflectance basis vectors. [Figure 8] 4 is a diagram showing an example of the configuration of a spectroscopic image table stored in a spectroscopic image storage unit 109 in this embodiment. FIG. [Figure 9] 1A and 1B are conceptual diagrams showing the generation of a development view of a polygon mesh in a three-dimensional shape model. [Figure 10] 11 is a diagram showing an example of the configuration of a correspondence coordinate lookup table indicating the correspondence between polygon mesh vertex coordinates in a three-dimensional shape model and area vertex coordinates in a development view. FIG. [Figure 11] FIG. 11 is a diagram showing an example of the configuration of a spectral texture image table in the spectral texture image storage unit 110. As shown in FIG. [Figure 12] FIG. 13 is a conceptual diagram showing an example of a spectral texture image processed under the conditions of pattern #1 being rendered onto a three-dimensional shape model. [Figure 13] FIG. 13 is a conceptual diagram showing an example of a spectral texture image processed under the conditions of pattern #2 being rendered onto a three-dimensional shape model. [Figure 14] FIG. 13 is a conceptual diagram showing an example of a spectral texture image processed under the conditions of pattern #3 being rendered onto a three-dimensional shape model. [Figure 15] 10 is a flowchart showing an example of the operation of a process for generating spectral texture images for a three-dimensional shape model from multi-viewpoint images according to the present embodiment. [Figure 16]FIG. 11 is a block diagram showing an example of the configuration of a spectral texture image generating system according to a second embodiment of the present invention. [Figure 17] FIG. 11 is a conceptual diagram illustrating generation of a spectral texture image by a spectral texture image generation system according to a second embodiment. [Figure 18] FIG. 11 is a diagram showing an example of the configuration of a texture image table of a texture image storage unit 113 in the second embodiment. [Figure 19] FIG. 13 is a diagram showing an example of the configuration of a texture image table in a texture image storage unit 113 in the third embodiment. [Figure 20] FIG. 13 is a block diagram showing an example of the configuration of a spectral texture image generating system according to a fourth embodiment of the present invention. [Figure 21] FIG. 13 is a block diagram showing an example of the configuration of a spectral texture image generating system according to a fifth embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0027] <First embodiment> Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an example of the configuration of a spectral texture image generating system according to a first embodiment of the present invention. In this embodiment, captured images of a target object to be restored as a three-dimensional shape model are supplied as data of viewpoint images from an external device (not shown). Each of these viewpoint images is a multi-view image captured from different viewpoints. Each of the viewpoint images includes captured image data of the same and different viewpoints captured by a plurality of imaging devices with different spectral sensitivities. The imaging device used in this embodiment is not a hyperspectral camera, but is, for example, a digital camera used by a general user. In this embodiment, a multi-view image will be described as a collection of a plurality of viewpoint images (captured images captured by imaging devices having different viewpoints and different spectral sensitivities).
[0028] In FIG. 1, the spectral texture image generation system 100 includes a data input / output unit 101, a multi-viewpoint image classification unit 102, a virtual multi-viewpoint image generation unit 103, a spectral image generation unit 104, a spectral texture image generation unit 105, a visualization texture image generation unit 106, a multi-viewpoint image storage unit 107, a three-dimensional shape model storage unit 108, a spectral image storage unit 109, and a spectral texture image storage unit 110.
[0029] The data input / output unit 101 writes and stores in the multi-viewpoint image storage unit 107 each of the pieces of viewpoint image data obtained by capturing an object from each viewpoint, which is supplied from an external device, as a multi-viewpoint image. Furthermore, the data input / output unit 101 writes and stores data of the three-dimensional shape model of the target object, which is reconstructed using the multi-viewpoint images, in the three-dimensional shape model storage unit 108. The three-dimensional shape model is a surface model formed of a polygon mesh reconstructed from the three-dimensional point group. In addition, the data input / output unit 101 writes and stores in the multi-viewpoint image storage unit 107 the viewpoint information indicating the viewpoint coordinates and viewpoint direction at which the multi-viewpoint image was captured, the camera parameters of the imaging device that captured the multi-viewpoint image, and data on the spectral distribution of the light source (light source spectral distribution) in the environment in which the multi-viewpoint image was captured, which are supplied from the external device that restored the three-dimensional shape model. Furthermore, when the data input / output unit 101 is accessed by an external device and requested to transmit spectral texture images, the data input / output unit 101 reads each of the spectral texture images (described later) from the spectral texture image storage unit 110 and outputs them to the external device.
[0030] Fig. 2 is a diagram showing an example of the configuration of a multi-viewpoint image information table written and stored in multi-viewpoint image storage unit 107. The multi-viewpoint image information table shown in Fig. 2 has columns for each record, corresponding to multi-viewpoint image identification information, for image capture device type, viewpoint information, camera parameters, image data index, and spectral distribution data index. The multi-viewpoint image identification information is identification information that uniquely identifies each of the individual multi-viewpoint images (e.g., a number indicating the order in which the images were supplied). The viewpoint position is, for example, information indicating an external parameter of the imaging device, and indicating the center coordinates (hereinafter, viewpoint position) of the lens of the imaging device in the three-dimensional spatial coordinate system (world coordinate system) of the three-dimensional shape model, and the optical axis direction of the lens (vector of the optical axis, hereinafter, optical axis vector).
[0031] Furthermore, the camera parameters indicate internal parameters of the imaging device, such as the focal length of the imaging device when the viewpoint images were captured, the image center, the image resolution (number of pixels), and the distortion aberration coefficient. The image data index is an address indicating an area in multi-viewpoint image storage unit 107 where data of the multi-viewpoint image is written. The spectral sensitivity data index is an address indicating an area in multi-viewpoint image storage unit 107 where data of the spectral sensitivity of the imaging device is written. The spectral distribution data index is an address indicating an area in multi-viewpoint image storage unit 107 where data of the spectral distribution of the light source (light source spectral distribution) of the environment in which the multi-viewpoint image of the target object supplied from an external device is captured is written.
[0032] 1, the multi-viewpoint image classification unit 102 classifies each of the multi-viewpoint images stored in the multi-viewpoint image storage unit 107 into a spectral sensitivity group provided for each different spectral sensitivity. Then, the multi-viewpoint image classification unit 102 writes and stores each of the multi-viewpoint images classified into the corresponding spectral sensitivity group in a spectral sensitivity group data table for each spectral sensitivity group in the multi-viewpoint image storage unit 107.
[0033] 3 is a diagram showing an example of the configuration of a spectral sensitivity group data table in multi-viewpoint image storage unit 107. The spectral sensitivity group data table is provided for each spectral sensitivity group, and shows the spectral sensitivity data of the spectral sensitivity group. Furthermore, the spectral sensitivity group data table has columns for multi-viewpoint image identification information, image index, viewpoint information, camera parameters, and spectral distribution data index for each record.
[0034] For example, when images are captured by three imaging devices each having a different spectral sensitivity, the viewpoint images have three different types of spectral sensitivity and are therefore classified into three spectral sensitivity groups. Each of the three spectral sensitivity groups may have the same number of multi-viewpoint images or a different number of multi-viewpoint images. In addition, a spectral sensitivity data index is added to the spectral sensitivity group data table. The spectral sensitivity data index is an address indicating an area in which the spectral sensitivity data of the imaging devices is written.
[0035] The viewpoint image identification information is identification information for identifying each multi-view image (e.g., a number indicating the order in which they were supplied). The image index is an address indicating an area in the multi-view image storage unit 107 in which the data of the multi-view image is written. The viewpoint position indicates, for example, external parameters of the imaging device, and is information indicating the viewpoint position and optical axis vector in the world coordinate system. The camera parameters indicate, for example, internal parameters of the imaging device, and are the focal length, image center, image resolution, and distortion aberration coefficient of the imaging device when the viewpoint image is captured. The spectral distribution data index is an address indicating an area in the multi-view image storage unit 107 in which data of the light source spectral distribution of the environment in which the multi-view image of the target object supplied from an external device is captured is written.
[0036] 4 is a conceptual diagram for explaining generation of a spectral texture image by the spectral texture image generation system of the first embodiment. As the imaging devices, for example, three imaging devices A1, A2, and A3 having different spectral sensitivities are used. 4(a) shows each of the multi-viewpoint images (multi-viewpoint images 601 to 607, etc.) captured of the target object 500 at different viewpoint positions and optical axis vectors. Here, the multi-viewpoint images 601, 604, and 607 are captured by the imaging device A3. The multi-viewpoint images 602 and 605 are captured by the imaging device A1. The multi-viewpoint images 603 and 606 are captured by the imaging device A2.
[0037] FIG. 4(b) shows the process of generating virtual multi-viewpoint images from target multi-viewpoint images. Multi-viewpoint image 601 is used as a reference multi-viewpoint image, and multi-viewpoint images 602 and 603 captured by imaging devices A1 and A2 having different spectral sensitivities from the imaging device A3 that captured multi-viewpoint image 601 are used as target multi-viewpoint images. Virtual viewpoint images having viewpoint information similar to the viewpoint information of multi-viewpoint image 601 are generated from multi-viewpoint images 602 and 603, which are the target multi-viewpoint images. Similarly, multi-viewpoint image 602 is used as a reference multi-viewpoint image, and multi-viewpoint images 601 and 603 captured by imaging devices A3 and A2, which have different spectral sensitivities from the imaging device A1 that captured multi-viewpoint image 601, are used as target multi-viewpoint images.The figure shows the generation of virtual viewpoint images having viewpoint information similar to the viewpoint information of multi-viewpoint image 602 from multi-viewpoint images 601 and 603, which are the target multi-viewpoint images.
[0038] Multi-viewpoint image 603 is used as a reference multi-viewpoint image, and multi-viewpoint images 602 and 604 captured by imaging devices A1 and A3, which have different spectral sensitivities from the imaging device A2 that captured multi-viewpoint image 603, are used as target multi-viewpoint images.The figure shows the generation of virtual viewpoint images having viewpoint information similar to the viewpoint information of multi-viewpoint image 602 from multi-viewpoint images 602 and 604, which are the target multi-viewpoint images. In addition, each of the multi-viewpoint images 604 to 607 is also used as a reference multi-viewpoint image, and multi-viewpoint images captured by imaging devices with different spectral sensitivities are used as target multi-viewpoint images, and a process of generating (converting) a virtual multi-viewpoint image is performed from the target multi-viewpoint images.
[0039] 4(c) shows a process of generating a spectral image (hyperspectral image) from each of the target multi-viewpoint image and the virtual multi-viewpoint image in each viewpoint information. The spectral image is generated, for example, at wavelengths from 400 nm to 700 nm for every 10 nm (described later). 4(d) shows a process of using the spectral images of each viewpoint information to generate spectral texture images for a three-dimensional shape model of the target object 500. The spectral texture images are generated, for example, at intervals of 10 nm from wavelength 400 nm to 700 nm (described later).
[0040] 1, the virtual multi-viewpoint image generator 103 sets the multi-viewpoint image at each viewpoint position as a reference multi-viewpoint image, and sets the multi-viewpoint images at other viewpoint positions near the reference multi-viewpoint image and belonging to a different spectral sensitivity group from the reference multi-viewpoint image as target multi-viewpoint images. The virtual multi-viewpoint image generator 103 then converts each of the target multi-viewpoint images into captured images captured from the same viewpoint position and optical axis vector as the reference multi-viewpoint image, thereby generating a virtual multi-viewpoint image.
[0041] At this time, when selecting a target multi-viewpoint image to convert into a virtual multi-viewpoint image, if all of the following three conditions, the first condition, the second condition, and the third condition, are satisfied, the virtual multi-viewpoint image generation unit 103 determines that a portion of the three-dimensional shape model in the reference multi-viewpoint image can be reproduced in the virtual multi-viewpoint image converted from the target multi-viewpoint image with a different viewpoint position and optical axis vector.
[0042] 5 is a diagram for explaining the process of selecting a target multi-viewpoint image that can be converted into a virtual multi-viewpoint image. When selecting a target multi-viewpoint image in which a portion 201 in a three-dimensional shape model 200 captured in a reference multi-viewpoint image exists when converted into a virtual multi-viewpoint image, the virtual multi-viewpoint image generating unit 103 determines the visibility of the portion 201 at each viewpoint position of the target multi-viewpoint image for each spectral sensitivity group. When all of the following three conditions, the first condition to the third condition, are satisfied, the virtual multi-viewpoint image generator 103 determines that a portion of the 3D shape model has visibility from the viewpoint position of each of the viewpoint images.
[0043] Here, when a portion of a three-dimensional shape model captured in a reference multi-view image is projected onto a viewpoint image (first condition), the dot product of the normal vector of that portion and the optical axis vector of the target multi-view image is negative (second condition), and the portion is a target multi-view image at a viewpoint position that is not obstructed by other portions in the optical axis vector direction (third condition), if the viewpoint position satisfies the above three conditions, it is determined that the target multi-view image can be converted into a virtual multi-view image, and the target multi-view image at the viewpoint position that satisfies these conditions is selected as the target multi-view image to be converted into the virtual multi-view image.
[0044] Here, the second condition is that the normal vector and the optical axis vector are opposite to each other, i.e., the normal vector points outward from the part of the three-dimensional shape model and the optical axis vector points from the viewpoint position to the part of the three-dimensional shape model, which is one of the conditions for whether or not a part of the three-dimensional shape model can be seen from the viewpoint position. On the other hand, if the viewpoint position does not satisfy any one of the first condition, the second condition, or the third condition, the virtual multi-viewpoint image generation unit 103 does not select the target multi-viewpoint image for that viewpoint position as the target multi-viewpoint image to be converted into a virtual multi-viewpoint image.
[0045] In Fig. 5, viewpoint position 301 does not satisfy the second and third conditions, and viewpoint position 302 satisfies the second condition but does not satisfy the third condition. Viewpoint positions 303 to 306 satisfy the first, second and third conditions, where the second condition is that the inner product of the normal vector of the part and the line of sight vector of the viewpoint image is negative. For this reason, all may be selected as having visibility that satisfies all of the first, second and third conditions, or viewpoint images of viewpoint positions within a range of a predetermined inner product under the second condition may be selected from among viewpoint positions that satisfy all of the first, second and third conditions. On the other hand, the viewpoint position 307 satisfies the second and third conditions, but does not satisfy the first condition because the part 201 is not projected onto the viewpoint image at the viewpoint position.
[0046] Also, the virtual multi-viewpoint image generating unit 103 may be configured to determine an aptitude score corresponding to the visibility of each viewpoint for each target multi-viewpoint image determined to be convertible into a virtual multi-viewpoint image, using data of a portion of the three-dimensional shape model and camera parameters (external parameters) of the viewpoint position. In this configuration, the virtual multi-viewpoint image generating unit 103 selects target multi-viewpoint images of a predetermined number of viewpoint positions in descending order of aptitude score (selects target viewpoint images of some viewpoint positions as target viewpoint images convertible into a virtual multi-viewpoint image). Furthermore, the virtual multi-viewpoint image generating unit 103 may select one target multi-viewpoint image from each spectral sensitivity group, or may select one or more target multi-viewpoint images from each spectral sensitivity group. For example, one may be selected from among the multi-viewpoint images that satisfy the first condition, the second condition, and the third condition, or all of the multi-viewpoint images that satisfy the first condition, the second condition, and the third condition may be selected as the target multi-viewpoint image. When multiple target multi-viewpoint images are selected, the virtual multi-viewpoint image generating unit 103 generates a virtual multi-viewpoint image using the average value or the median value of corresponding pixels of the multiple target multi-viewpoint images.
[0047] Returning to Figure 1, the virtual multi-viewpoint image generation unit 103 generates a coordinate transformation matrix for each target multi-viewpoint image (a matrix that transforms the two-dimensional coordinate system of the target multi-viewpoint image into the two-dimensional coordinate system of the reference multi-viewpoint image, and includes matrices for zoom, rotation, translation, affine transformation, and projective transformation) that converts an image of a portion of a specified range of the three-dimensional shape model in the target multi-viewpoint image into a two-dimensional plane with the same viewpoint position and optical axis vector as the reference multi-viewpoint image. The virtual multi-viewpoint image generation unit 103 determines the correspondence between each of the vertex coordinate values (coordinate values in the world coordinate system, hereafter referred to as polygon mesh vertex coordinate values) of the polygon mesh that constitutes the surface of the three-dimensional shape model in a specified range of the three-dimensional shape model, and the coordinates A of a pixel in the target multi-viewpoint image (the two-dimensional coordinate system of the target multi-viewpoint image). In addition, the virtual multi-viewpoint image generation unit 103 determines the correspondence between each of the polygon mesh vertex coordinates that constitute the surface of the three-dimensional shape model in a specified range of the three-dimensional shape model and pixel coordinates B in the reference multi-viewpoint image (the two-dimensional coordinate system of the reference multi-viewpoint image).
[0048] As a result, the virtual multi-viewpoint image generation unit 103 can obtain coordinates A, B of corresponding pixels in each of the two-dimensional coordinate systems of the target multi-viewpoint image and the reference multi-viewpoint image using the polygon mesh vertex coordinates, and generates a coordinate transformation matrix using the coordinates A, B of corresponding pixels in the target multi-viewpoint image and the reference multi-viewpoint image. Then, the virtual multi-viewpoint image generation unit 103 converts the coordinates A of each pixel in the two-dimensional coordinate system of the target multi-viewpoint image into the coordinates B of each pixel in the two-dimensional coordinate system of the reference multi-viewpoint image using the coordinate transformation matrix obtained, thereby generating a virtual multi-viewpoint image. Here, the virtual multi-viewpoint image generating unit 103 may change the target multi-viewpoint image for each polygon mesh of the three-dimensional model projected onto the reference multi-viewpoint image. This is because the viewpoints that satisfy the first condition, the second condition, and the third condition for selecting the target multi-viewpoint image are different for different polygon meshes. In other words, the virtual multi-viewpoint image generating unit 103 may select an image of a different viewpoint as the target viewpoint image for each pixel of the reference multi-viewpoint image to generate a virtual multi-viewpoint image.
[0049] As shown in FIG. 4(b), for each piece of viewpoint information, multi-viewpoint images (a reference multi-viewpoint image and a virtual multi-viewpoint image) captured by imaging devices A1 to A3 having different spectral sensitivities are generated. At this time, virtual multi-viewpoint image generation unit 103 performs processing such as pixel integration and complementation for pixels other than those corresponding to the polygon mesh vertex coordinates so that pixels in the target multi-viewpoint image that have been subjected to coordinate transformation correspond to each pixel in the reference multi-viewpoint image. In other words, virtual multi-viewpoint image generation unit 103 performs correction processing to place each pixel of the virtual multi-viewpoint image to be generated in one-to-one correspondence with each pixel of the reference multi-viewpoint image.
[0050] In addition, the virtual multi-viewpoint image generation unit 103 generates a same-viewpoint multi-viewpoint image table in the multi-viewpoint image storage unit 107 corresponding to each piece of viewpoint information, and writes and stores each piece of information about the reference multi-viewpoint image and the virtual multi-viewpoint image in the same-viewpoint multi-viewpoint image table. 6 is a diagram showing an example of the configuration of a same-viewpoint multi-viewpoint image table in the multi-viewpoint image storage unit 107. The same-viewpoint multi-viewpoint image table is generated for each piece of viewpoint information, and therefore has columns for describing the viewpoint information. Also, the same-viewpoint multi-viewpoint image table has columns for reference viewpoint image identification information, image data index, camera parameters, spectral sensitivity data index, and spectral distribution data index in a record corresponding to a reference multi-viewpoint image.
[0051] Moreover, the reference viewpoint image identification information is multi-viewpoint image identification information of the multi-viewpoint image that is set as the reference multi-viewpoint image. The image data index indicates the address of an area in which data of the multi-viewpoint image that is set as the reference multi-viewpoint image is written. The camera parameters indicate internal parameters of the imaging device that captured the multi-viewpoint image that is set as the reference multi-viewpoint image, and include the focal length of the imaging device when the viewpoint image was captured, the image center, the image resolution, and the distortion aberration coefficient. The spectral sensitivity index indicates the address of an area in which spectral sensitivity data of the imaging device that captured the multi-viewpoint image that is set as the reference multi-viewpoint image is written. The spectral sensitivity index indicates the address of an area in which spectral distribution data of the light source of the environment in which the multi-viewpoint image that is set as the reference multi-viewpoint image is captured is written.
[0052] In addition, the same viewpoint multi-viewpoint image table has columns for each of target viewpoint image identification information, image data index, camera parameters, spectral sensitivity data index, and spectral distribution data index in a record corresponding to a target multi-viewpoint image. The target viewpoint image identification information is multi-viewpoint image identification information of the multi-viewpoint image that is determined as the target multi-viewpoint image. The image data index indicates the address of an area where data of the multi-viewpoint image that is determined as the target multi-viewpoint image is written.
[0053] The camera parameters indicate internal parameters of the imaging device that captured the multi-viewpoint image that is the target multi-viewpoint image, such as the focal length of the imaging device when the viewpoint image was captured, the image center, the image resolution, and the distortion aberration coefficient. The spectral sensitivity index indicates the address of an area in multi-viewpoint image storage unit 107 into which the spectral sensitivity data of the imaging device that captured the multi-viewpoint image that is the target multi-viewpoint image is written. The spectral sensitivity index indicates the address of an area in multi-viewpoint image storage unit 107 into which the spectral distribution data of the light source of the environment in which the multi-viewpoint image that is the target multi-viewpoint image was captured is written.
[0054] Returning to FIG. 1, the spectral image generation unit 104 generates spectral images of each of a plurality of wavelength bands (e.g., bands every 10 nm from wavelength 400 nm to wavelength 700 nm) from the multi-viewpoint images (multi-viewpoint images and virtual multi-viewpoint images) for each viewpoint information (FIG. 4(c)). Here, the spectral image generation unit 104 refers to a same-viewpoint multi-viewpoint image table corresponding to each piece of viewpoint information in the multi-viewpoint image storage unit 107, sequentially reads out each of the image data, spectral sensitivity data, and spectral distribution data of the reference multi-viewpoint image and the virtual multi-viewpoint image, and estimates the spectral reflectance spectrum in a specified wavelength band for each pixel.
[0055] In this embodiment, the spectral image generating unit 104 reads in a plurality of spectral reflectance basis vectors from, for example, the spectral image storage unit 109. Then, the spectral image generating unit 104 expresses the spectral reflectance of a pixel of the multi-viewpoint image of each viewpoint as a weighted sum of the plurality of read-in spectral reflectance basis vectors. The spectral image generating unit 104 estimates a weighting coefficient for weighting each spectral reflectance basis vector, thereby estimating the spectral reflectance spectrum of each pixel of the reference multi-viewpoint image and the virtual multi-viewpoint image obtained by capturing an image of a target object when restoring a three-dimensional shape model.
[0056] Here, the spectral reflectance basis vectors are derived in advance from a spectral reflectance data group, which is a collection of a plurality of pieces of spectral reflectance data, by using principal component analysis as spectral reflectance basis vectors for expressing the spectral reflectance data group. In this principal component analysis, it becomes possible to express the spectral reflectance by a combination of a smaller number of spectral reflectance basis vectors than the actual dimensions of the spectral reflectance. In other words, by using the spectral reflectance basis vectors, the dimensions of the spectral reflectance to be estimated are compressed, and the calculation load is reduced.
[0057] That is, the spectral image generating unit 104 generates a plurality of spectral reflectance basis vectors B=[b1, b2, . . . ] as shown in the following formula (1). T To perform this weighting, the weighting coefficients of the spectral reflectance basis vectors are expressed as r=[r1, r2, …] T The spectral reflectance spectrum s is estimated by calculating the spectral reflectance basis vectors. Here, the spectral reflectance basis vectors are stored in advance in the spectral image storage unit 109, for example, as a set. In addition, in the spectral image storage unit 109, a plurality of spectral reflectance basis vectors are stored in descending order of the principal component scores in the principal component analysis, and a configuration may be adopted in which the spectral reflectance basis vectors up to a predetermined order are read and used as many as necessary.
[0058] Fig. 7 is a conceptual diagram showing how spectral reflectance is expressed by combining spectral reflectance basis vectors. As shown in Fig. 7, the spectral reflectance spectrum s is expressed by combining the spectral reflectance basis vectors b1 to b2 obtained by principal component analysis using the respective spectral reflectances of a given object. Nr is obtained by multiplying each of the above by a weighting coefficient and combining the multiplication results. That is, the spectral image generating unit 104 generates the necessary number of spectral reflectance basis vectors b1 to b Nr is extracted from the spectroscopic image storage unit 109. Then, the spectral image generating unit 104 extracts the spectral reflectance basis vectors b1 to b Nr Each weight coefficient r1 to r Nr are estimated so as to obtain the spectral reflectance spectrum s which is the pixel value of each pixel of the reference multi-viewpoint image, and the spectral reflectance spectrum s is calculated from the estimation result (described later).
[0059]
number
[0060] Returning to Fig. 1, the spectral image generating unit 104 estimates each weighting coefficient r for the spectral reflectance spectrum expressed by the above formula (1) by solving the following formula (2). Then, the spectral image generating unit 104 estimates the spectral reflectance spectrum s by formula (1) using the estimated weighting coefficients. Here, the spectral reflectance spectrum si is expressed as a 31-dimensional vector obtained by sampling the wavelength range from 400 nm to 700 nm in increments of 10 nm, for example.
[0061]
number
[0062] In the above formula (2), p m,k is the pixel value of the k-th channel of the m-th multi-view image. That is, p m,k In the above, m is a number indicating a multi-viewpoint image in the group of multi-viewpoint images (reference multi-viewpoint image and virtual multi-viewpoint image) for generating a spectral image in the same-viewpoint multi-viewpoint image table. Also, k indicates the channel of the color component in a portion in the multi-viewpoint image. For example, if a portion is indicated by pixel values of color components R, G, and B, then channel (band) 1 is color component R, channel 2 is color component G, and channel 3 is color component B. Also, the pixels whose pixel values are to be read from each multi-viewpoint image are extracted from the image data of each virtual multi-viewpoint image as pixels corresponding to each of the reference multi-viewpoint images in the group of multi-viewpoint images for generating a spectral image.
[0063] In addition, in equation (2), the matrix C m、k indicates the spectral sensitivity of the k-th channel (wavelength band of color component) of the m-th multi-viewpoint image. m、k Element c in m,k (λ) indicates the spectral sensitivity of the wavelength λ in the k-th channel of the m-th multi-viewpoint image in the group of multi-viewpoint images for generating a spectral image. The spectral distribution l of the light source is written as already measured spectral distribution data in the spectral image storage unit 109. The spectral image generation unit 104 reads out, from the same-viewpoint multi-viewpoint image table in the multi-viewpoint image storage unit 107, the spectral distribution of the light source in the environment in which each of the multi-viewpoint images in the group of multi-viewpoint images for generating spectral images was captured.
[0064] Here, the spectral image generating unit 104 may be configured to select and read out a set of spectral reflectance basis vectors from the spectral image storage unit 109 in accordance with the number of spectral sensitivities in the group of multi-viewpoint images for generating spectral images. In addition, when solving equation (2), the number of spectral reflectance basis vectors (principal components) used to represent the spectral reflectance data (hereinafter, the number of spectral reflectance basis vectors) N r The upper limit is determined based on, for example, the number of spectral sensitivity groups that capture multi-viewpoint images (the number of imaging devices, or the number of spectral sensitivity adjustments made by color change filters, etc.).
[0065] When using multi-viewpoint images in q spectral sensitivity groups, r It is determined by the relational expression: (number of spectral reflectance basis vectors) = q (number of types of spectral sensitivity, number of spectral sensitivity groups) × k (number of channels, hereafter referred to as channel number). In other words, the number of spectral reflectance basis vectors N r If is equal to or smaller than k times the number of channels of the number of spectral sensitivity groups q, then it is possible to solve equation (3). As an example, when three imaging devices with different spectral sensitivities are used and there are three channels, R, G, and B, the upper limit of the basis vectors is 9 (=3×3).
[0066] However, in order to suppress the influence of noise when solving equation (3), the number of spectral reflectance basis vectors N r However, it is desirable to operate it as Nr=q×k-1, which is less than k times the number of channels of the number of spectral sensitivity groups q. In this case, when three imaging devices with different spectral sensitivities are used and there are three channels, R, G, and B, the upper limit of the spectral reflectance basis vector is 8 (=3×3-1).
[0067] In addition, a group of multi-viewpoint images for generating a spectral image may be obtained for each piece of viewpoint information, and the number of pixels in the virtual multi-viewpoint image for each pixel in the reference multi-viewpoint image, i.e., the number of spectral sensitivity groups q, may differ. In this case, for each pixel in the reference multi-viewpoint image, the set of spectral reflectance basis vectors that the spectral image generating unit 104 reads out from the spectral image storage unit 109 (the number of spectral reflectance basis vectors N r Each pixel in the spectral images corresponds to a pixel in the reference multi-view image.
[0068] Through the above-described processing, the spectral image generation unit 104 estimates the spectral reflectance spectrum of each pixel of the spectral image corresponding to each pixel of the reference multi-viewpoint image in the same-viewpoint multi-viewpoint image table from the pixel values of corresponding pixels between the reference multi-viewpoint image and the virtual multi-viewpoint image, generates a spectral image for each piece of viewpoint information (a spectral image with a predetermined number of wavelength bands), and writes and stores the spectral image table for each piece of viewpoint information in the spectral image storage unit 109. Fig. 8 is a diagram showing an example of the configuration of a spectral image table stored in the spectral image storage unit 109 in this embodiment. The spectral image table shown in Fig. 8 has a column for viewpoint information, and also has columns for band wavelengths and spectral image data indexes corresponding to the spectral image identification information for each record.
[0069] Here, the viewpoint information is viewpoint information of the spectral image in the spectral image table. The spectral image identification information is identification information for identifying each spectral image (e.g., a number indicating the order in which they were supplied). The wavelength of the band indicates the wavelength band of the spectral reflectance spectrum of the corresponding spectral image. The spectral image data index is an address indicating the area in the spectral image storage unit 109 where the image data of the spectral image is written.
[0070] Returning to Figure 1, the spectral texture image generation unit 105 reads out data of the polygon mesh that forms the surface of the three-dimensional shape model from the three-dimensional shape model storage unit 108, and generates an unfolded view of the polygon mesh (e.g., an unfolded view after UV unfolding) based on the brightness values of each of the spectral images at each viewpoint information. Fig. 9 is a conceptual diagram showing the generation of a development of polygon meshes in a three-dimensional shape model. Fig. 9(a) shows a three-dimensional shape model in which surfaces are configured with polygon meshes. Fig. 9(b) shows a development (UV development as an example) in which each of the polygon meshes in the above surface is developed in a two-dimensional coordinate system.
[0071] For example, polygon meshes 651 and 602 in Fig. 9(a) correspond to regions 801 and 802 in Fig. 9(b), respectively. That is, polygon mesh 651 is developed in region 801 of the development view, and polygon mesh 652 is developed in region 802 of the development view. Here, each of the vertices (hereinafter referred to as polygon mesh vertices) 701 to 704 of the polygon mesh 651 of the three-dimensional shape model in the world coordinate system corresponds to each of the vertices (hereinafter referred to as area vertices) 951, 952, 953, and 954 of the area 801 of the development in the two-dimensional coordinate system. Similarly, each of the polygon mesh vertices 703 to 706 of the polygon mesh 652 of the three-dimensional shape model in the world coordinate system corresponds to each of the area vertices 953, 954, 955, and 956 of the area 801 of the development in the two-dimensional coordinate system.
[0072] The spectral texture image generating unit 105 generates a correspondence coordinate lookup table indicating the correspondence between the vertex coordinate values of the polygon mesh in the above-mentioned three-dimensional shape model and the area vertex coordinate values (coordinates of the area vertices) in the development. FIG. 10 is a diagram showing an example of the configuration of a correspondence coordinate lookup table indicating the correspondence between the vertex coordinate values of a polygon mesh in a three-dimensional shape model and the vertex coordinate values of an area in a development view. The corresponding coordinate lookup table indicates the correspondence between polygon mesh vertex coordinate values and region vertex coordinate values on a record-by-record basis, corresponding to region identification information. Region identification information is identification information that individually identifies each region in the development. Polygon mesh vertex coordinate values are the coordinate values of each vertex of a polygon mesh in the world coordinate system. Region vertex coordinate values are the coordinate values of each vertex of a region (texture region, described below) in the development.
[0073] For example, in FIG. 10, if the texture region identification information P10001 indicates the polygon mesh 651 in FIG. 9(a), the coordinate values of polygon mesh vertex 701 are polygon mesh vertex coordinate values (x1_1, y1_1, z1_1), the coordinate values of polygon mesh vertex 702 are polygon mesh vertex coordinate values (x1_2, y1_2, z1_2), the coordinate values of polygon mesh vertex 703 are polygon mesh vertex coordinate values (x1_3, y1_3, z1_3), and the coordinate values of polygon mesh vertex 704 are polygon mesh vertex coordinate values (x1_4, y1_4, z1_4).
[0074] Also, in Figure 10, when showing region 801 in Figure 9(b), the coordinate values of region vertex 951 are region vertex coordinate values (U1_1, V1_1), the coordinate values of region vertex 952 are region vertex coordinate values (U1_2, V1_2), the coordinate values of region vertex 953 are region vertex coordinate values (U1_3, V1_3), and the coordinate values of region vertex 954 are region vertex coordinate values (U1_4, V1_4). According to this corresponding coordinate lookup table, it can be seen that the polygon mesh formed by the polygon mesh vertex coordinate values (x1_1, y1_1, z1_1), (x1_2, y1_2, z1_2), (x1_3, y1_3, z1_3), and (x1_4, y1_4, z1_4) is developed and placed in an area whose vertices are the area vertex coordinate values (U1_1, V1_1), (U1_2, V1_2), (U1_3, V1_3), and (U1_4, V1_4) in the development drawing. Furthermore, the corresponding coordinate lookup table indicates that each of the polygon mesh vertex coordinate values (x1_1, y1_1, z1_1), (x1_2, y1_2, z1_2), (x1_3, y1_3, z1_3), and (x1_4, y1_4, z1_4) correspond to the area vertex coordinate values (U1_1, V1_1), (U1_2, V1_2), (U1_3, V1_3), and (U1_4, V1_4), respectively.
[0075] The spectral texture image generating unit 105 reads out each of the spectral images of the same wavelength band from each of the same-viewpoint multi-viewpoint image tables provided for each piece of viewpoint information in the spectral image storage unit 109 . Then, the spectral texture image generating unit 105 extracts the correspondence between the pixels in each of the spectral images and the polygon mesh vertex coordinate values of the polygon mesh of the three-dimensional shape model. Here, the spectral texture image generating unit 105 projects the polygon mesh of the three-dimensional shape model onto the spectral images in correspondence with, for example, each of the viewpoint information and camera parameters, and obtains the correspondence between the polygon mesh vertex coordinate values (i.e., each vertex of the polygon mesh) and pixels (the coordinate values of the pixels in the coordinate system of the spectral images).
[0076] The spectral texture image generating unit 105 assigns pixel values (spectral reflectance spectrum) of pixels in a pixel region surrounded by pixel coordinate values of the spectral image corresponding to the vertex coordinate values of the polygon mesh as pixel values of pixels in each region of the development diagram obtained by developing the polygon mesh. At this time, the spectral texture image generating unit 105 preferentially assigns to the pixels of the spectral texture image the pixel values of the spectral image corresponding to the viewpoint information having an optical axis vector that is most parallel to the normal of each face of the polygon mesh in the three-dimensional shape model.
[0077] Then, the spectral texture image generation unit 105 performs the above-mentioned processing on all of the spectral images, thereby assigning pixel values to pixels in all areas of the development view, and generating a spectral texture image of a wavelength band corresponding to the wavelength band of the used spectral image. The spectral texture image generation unit 105 performs the above-mentioned process of generating a spectral texture image on each of the spectral images of all wavelength bands. For example, if there are 31 wavelength bands, it generates 31 spectral texture images, one for each wavelength band (FIG. 4(d)). Here, the spectral texture image generating unit 105 may perform the above-mentioned processing one band at a time, or may perform the above-mentioned processing on multiple bands at once. For example, considering that many image formats are expressed in three RGB bands, processing can be performed efficiently by processing three bands at a time as one image.
[0078] The spectral texture image generating unit 105 writes and stores each of the generated spectral texture images in the spectral texture image storage unit 110 in combination with the respective wavelength bands. FIG. 11 is a diagram showing an example of the configuration of a spectral texture image table in the spectral texture image storage unit 110. As shown in FIG. The spectral texture image table has columns for spectral texture image identification information, band wavelength, and spectral texture image data index for each record.
[0079] The spectral texture image identification information is identification information for individually identifying each of the spectral texture images. The band wavelength indicates the wavelength of the band (channel) of the spectral texture image indicated by the spectral texture image identification information. The spectral texture image data index indicates the address of the area in the spectral texture image storage unit 110 where the image data of the spectral texture image is written. The spectral texture image table in FIG. 11 corresponds to, for example, each of the spectral texture images of 31 bands of wavelengths in 10 nm increments from a wavelength of 400 nm to a wavelength of 700 nm.
[0080] The visualization texture image generating unit 106 renders a visualized spectral texture image on the display unit according to predetermined conditions for the three-dimensional shape model read out from the three-dimensional shape model storage unit 108 . The visualization texture image generation unit 106 converts the spectral reflectance of the spectral texture image (the spectral reflectance spectrum of each of all the spectral images) into pixel values of wavelength bands that can be displayed on the display screen according to the following three patterns of specified conditions, and displays them on the display screen.
[0081] FIG. 12 is a conceptual diagram showing an example of a spectral texture image processed under the conditions of pattern #1 being rendered onto a three-dimensional shape model. Pattern #1 shows an image from a predetermined viewpoint position and viewpoint direction (corresponding to the optical axis vector) of a three-dimensional shape model in which a texture image of RGB values is rendered using arbitrary spectral sensitivities corresponding to three bands of color components RGB (red, green, blue) that can be displayed on a display screen, and the spectral distribution of an arbitrary light source, for the spectral reflectance of each pixel in the spectral texture image. Here, the arbitrary spectral sensitivity may be, for example, the spectral sensitivity of an imaging device or a color matching function. The color matching function may be, for example, the CIE (Commission Internationale de Illumination) colorimetric observer color matching function. The spectral distribution of the light source may be, for example, the spectral distribution of a standard light source D65, or the spectral distribution of sunlight, an LED (light emitting diode), a fluorescent lamp, an incandescent lamp, or the like. The data of the spectral sensitivity and the spectral distribution are written and stored in a storage unit (not shown) in advance, and the visualization texture image generating unit 106 reads them out as necessary.
[0082] In the processing of pattern #1, the visualization texture image generating unit 106 reads out the three-dimensional shape model 901 from the three-dimensional shape model storage unit 108. Then, the visualization texture image generation unit 106 refers to the spectral image storage unit 109 and generates a texture image 902 in which the spectral reflectance based on the pixel values of each pixel of the spectral texture image is expressed in RGB values using an arbitrary spectral sensitivity and an arbitrary light source spectral distribution. The visualization texture image generating unit 106 displays a three-dimensional shape model 903 obtained by rendering the texture image 902 onto the three-dimensional shape model 901 as an image from a predetermined viewpoint position and viewpoint direction.
[0083] FIG. 13 is a conceptual diagram showing an example of a spectral texture image processed under the conditions of pattern #2 being rendered onto a three-dimensional shape model. Pattern #2 shows an image in which the gradations of three arbitrary wavelength bands are displayed as gradations of each band of RGB values that can be displayed on the display screen. 13, the 440 nm wavelength band is replaced with color component B in RGB, and the pixel values (spectral reflectance spectrum) of the spectral texture image at wavelength 440 nm are set as pixel values of color component B. Similarly, the 500 nm wavelength band is replaced with color component G in RGB, and the pixel values (spectral reflectance spectrum) of the spectral texture image at wavelength 500 nm are set as pixel values of color component G. Furthermore, the 660 nm wavelength band is replaced with color component R in RGB, and the pixel values (spectral reflectance spectrum) of the spectral texture image at wavelength 660 nm are set as pixel values of color component R.
[0084] In the processing of pattern #2, the visualization texture image generating unit 106 reads out the three-dimensional shape model 913 from the three-dimensional shape model storage unit 108. Then, the visualization texture image generation unit 106 refers to the spectral image storage unit 109 and sets the pixel values of each pixel of the spectral texture image of any three wavelength bands to the pixel values of the color components R, G, and B (graph 911), thereby generating a texture image 912 expressed in RGB values. The visualization texture image generating unit 106 renders the texture image 912 onto a three-dimensional shape model 913 to generate a three-dimensional shape model 914, which is then displayed as an image from a predetermined viewpoint position and viewpoint direction.
[0085] FIG. 14 is a conceptual diagram showing an example of a spectral texture image processed under the conditions of pattern #3 being rendered onto a three-dimensional shape model. FIG. 14(a) illustrates, as pattern #3, a process of allocating pixel values in a spectral texture image to pixel values of each of the color components RGB that can be displayed on a display device. 14(a), the range T of the spectral reflectance spectrum R(λi) of each pixel in any one of the spectral texture images is divided into three ranges, for example, a high numerical range H, a medium numerical range M, and a low numerical range L. λi indicates the wavelength of each band of the spectral texture image (for example, in the case of 31 bands, 1≦i≦31). The conversion rule for pattern #3 is shown, in which the spectral reflectance spectrum intensity in the high numerical range H is allocated to the gradient range of color component R, the spectral reflectance spectrum intensity in the medium numerical range M is allocated to the gradient range of color component G, and the spectral reflectance spectrum intensity in the low numerical range L is allocated to the gradient range of color component B.
[0086] In FIG. 14( b ), the visualization texture image generating unit 106 reads out the three-dimensional shape model 921 from the three-dimensional shape model storage unit 108 . Then, the visualization texture image generation unit 106 refers to the spectral image storage unit 109, and assigns the spectral reflectance spectrum intensity, which is the pixel value of each pixel of the spectral texture image of any one wavelength band, to pixel values in the gradient ranges of each of the color components R, G, and B in accordance with the conversion rule described above (FIG. 4(a)), thereby generating a texture image 922 expressed in RGB values. The visualization texture image generating unit 106 displays a three-dimensional shape model 923 obtained by rendering the texture image 922 onto the three-dimensional shape model 921 as an image from a predetermined viewpoint position and viewpoint direction.
[0087] FIG. 15 is a flowchart showing an example of the operation of a process for generating spectral texture images for a three-dimensional shape model from multi-viewpoint images according to this embodiment. Step S101: The data input / output unit 101 adds information on the spectral sensitivity at the time when each of the viewpoint images in the multi-viewpoint image supplied from the external device to the multi-viewpoint image storage unit 107 for storage. In addition, the data input / output unit 101 writes and stores in the multi-viewpoint image storage unit 107 data of a three-dimensional shape model of a surface model (the surface is composed of a polygon mesh) restored from the multi-viewpoint image supplied from an external device.
[0088] Step S102: The multi-viewpoint image classification unit 102 refers to the multi-viewpoint image storage unit 107 and classifies each of the multi-viewpoint images into a spectral sensitivity group in accordance with the spectral sensitivity added to the multi-viewpoint image. Then, the multi-viewpoint image classifying unit 102 writes and stores each of the multi-viewpoint images classified into the spectral sensitivity groups in the corresponding spectral sensitivity group data table.
[0089] Step S103: The virtual multi-viewpoint image generation unit 103 sets a multi-viewpoint image at each viewpoint position as a reference multi-viewpoint image, and sets a multi-viewpoint image at another viewpoint position near this reference multi-viewpoint image, which belongs to a different spectral sensitivity group from the reference multi-viewpoint image, as a target multi-viewpoint image. Then, the virtual multi-viewpoint image generator 103 selects, from each of the target multi-viewpoint images, a target multi-viewpoint image that can reproduce a virtual viewpoint image that is assumed to have been captured with the same viewpoint information as the reference multi-viewpoint image. Then, the virtual multi-viewpoint image generation unit 103 converts each of the selected target multi-viewpoint images into captured images captured from the same viewpoint position and optical axis vector as the reference multi-viewpoint image, generates a virtual multi-viewpoint image, and writes and stores it in a same multi-viewpoint image table in the multi-viewpoint image storage unit 107.
[0090] Step S104: The spectral image generation unit 104 uses, for each piece of viewpoint information, each pixel of the multi-viewpoint images (reference multi-viewpoint image and virtual multi-viewpoint image) in the same multi-viewpoint image table, the spectral sensitivity of the imaging device that captured each multi-viewpoint image, and the spectral distribution of the light source to calculate the spectral reflectance spectrum of each pixel of the spectral images (corresponding to a pixel of the reference multi-viewpoint image) corresponding to each wavelength band, using each of equations (1) and (2). Then, the spectral image generating unit 104 generates spectral images (31 images) of predetermined wavelength bands (31 types) for each piece of viewpoint information, and writes and stores them in a spectral image table in the spectral image storage unit 109.
[0091] Step S105: The spectral texture image generation unit 105 creates a development by developing the polygon mesh of the three-dimensional shape model, and assigns the intensity of the spectral reflectance spectrum as the pixel values of the pixels in each region in this development, which are surrounded by the pixel coordinate values of the spectral image corresponding to the vertex coordinate values of the polygon mesh.
[0092] Then, the spectral texture image generation unit 105 assigns the intensities of the spectral reflectance spectra of each of the spectral images of the viewpoint information as pixel values to each of the pixels in all areas of the development, thereby generating a spectral texture image corresponding to one wavelength band. The spectral texture image generating unit 105 writes and stores the generated spectral texture image in a spectral texture image table in the spectral texture image storage unit 110 in association with the wavelength band of the spectral image used for generation.
[0093] Step S106: The spectral texture image generating unit 105 determines whether or not spectral texture images for all wavelength bands have been generated. At this time, if the spectral texture image generating unit 105 determines that the spectral texture images for all wavelength bands have been generated, the process ends. On the other hand, if the spectral texture image generating unit 105 determines that spectral texture images for all wavelength bands have not been generated, the process proceeds to step S105.
[0094] As described above, according to this embodiment, a virtual multi-viewpoint image with different spectral sensitivities for each piece of viewpoint information is generated from a multi-viewpoint captured image captured with different spectral sensitivities and viewpoint information (viewpoint position, optical axis vector) using an imaging device such as a digital camera available on the market that is available to general users. This makes it possible to obtain a multi-viewpoint image corresponding to a plurality of spectral sensitivities for each piece of viewpoint information, and to generate a spectral image similar to a hyperspectral image for each piece of viewpoint information. Compared to an image captured with normal RGB color components, the spectral reflectance of the target object can be obtained as a more detailed spectral reflectance spectrum, and a spectral texture image for a three-dimensional shape model can be easily generated as a texture image that accurately reflects the spectral reflectance of the target object corresponding to each of a predetermined number of wavelength bands (a number of bands exceeding the three bands of RGB color components (for example, 31 bands of different wavelengths)).
[0095] Furthermore, according to this embodiment, a spectral texture image of a plurality of wavelength bands (e.g., 31 bands) is generated, and each pixel value of the spectral texture image of each wavelength is made to correspond to each pixel value of the RGB color components so that the spectral texture image can be observed on a display device that displays the RGB color components. By doing so, the spectral texture image can be texture-mapped onto the restored three-dimensional shape model, and the texture-mapped three-dimensional shape model can be observed on the display device, thereby making it possible to visually recognize the state of the spectral reflectance of the target object in more detail.
[0096] <Second embodiment> A second embodiment of the present invention will now be described with reference to the drawings. FIG. 16 is a block diagram showing an example of the configuration of a spectral texture image generating system according to the second embodiment of the present invention. 16, spectral texture image generation system 100A includes a data input / output unit 101, a multi-viewpoint image classification unit 102, a virtual multi-viewpoint image generation unit 103, a texture image generation unit 111, a spectral texture image generation unit 112, a visualization texture image generation unit 106, a multi-viewpoint image storage unit 107, a three-dimensional shape model storage unit 108, a texture image storage unit 113, and a spectral texture image storage unit 110. Below, configurations and operations that differ from the first embodiment will be described.
[0097] 17 is a conceptual diagram for explaining generation of a spectral texture image by the spectral texture image generation system of the second embodiment. As the imaging devices, for example, three imaging devices A1, A2, and A3 with different spectral sensitivities are used, as in the case of FIG. In Figure 17, the process of capturing multi-viewpoint images of a target object 500 at different viewpoint positions and optical axis vectors (viewpoint information conditions) in Figure 17(a), and the process of generating a virtual multi-viewpoint image from the target multi-viewpoint images in Figure 17(b) are similar to those in Figures 4(a) and 4(b), respectively.
[0098] 17(c) shows a process of generating texture images by extracting multi-viewpoint images (reference multi-viewpoint images and virtual multi-viewpoint images) of the same spectral sensitivity with reference to each of the same multi-viewpoint image tables for each viewpoint information in the multi-viewpoint image storage unit 107. Texture images 951, 952, and 953 of spectral sensitivity B1 are generated from multi-viewpoint images captured by different imaging devices with spectral sensitivities B1, B2, and B3, respectively. 17(d) shows a process for generating, from texture images with different spectral sensitivities, spectral texture images (hyperspectral images) for a three-dimensional shape model of a target object 500. The spectral texture images are generated, for example, at wavelengths from 400 nm to 700 nm, every 10 nm (described later).
[0099] Returning to Figure 16, the texture image generation unit 111 refers to each of the same multi-viewpoint image tables for each viewpoint information in the multi-viewpoint image storage unit 107, extracts multi-viewpoint images (reference multi-viewpoint images and virtual multi-viewpoint images) with the same spectral sensitivity, and generates a texture image. Here, the texture image generating unit 111 reads out the data of the three-dimensional shape model from the three-dimensional shape model storage unit . Similar to the spectral texture image generation unit 105 in the first embodiment, the texture image generation unit 111 generates a development of a polygon mesh of a three-dimensional shape model by the process described in Fig. 9. Here, for the development corresponding to each texture image, a corresponding coordinate lookup table that differs for each spectral sensitivity of the multi-view image is generated.
[0100] Then, the texture image generation unit 111 assigns pixel values to pixels in the areas of the multi-viewpoint images (reference multi-viewpoint image and virtual multi-viewpoint image) in each piece of viewpoint information onto which the polygon mesh corresponding to each area in the development view is projected. The texture image generating unit 111 writes and stores each of the texture images generated corresponding to each of the spectral sensitivities in a texture image table in the texture image storage unit 113 (FIG. 17(c)). At this time, when generating each texture image, the texture image generating unit 111 generates a corresponding coordinate lookup table shown in FIG. 10 corresponding to each texture image.
[0101] FIG. 18 is a diagram showing an example of the configuration of a texture image table in the texture image storage unit 113 in the second embodiment. The texture image table has columns for texture image identification information, a spectral sensitivity data index, a texture image data index, and a lookup table index for each record. The texture image identification information is identification information that individually identifies each of the texture images generated for each spectral sensitivity.
[0102] The spectral sensitivity data index is an address indicating an area in the texture image storage unit 113 into which the spectral sensitivity data corresponding to the texture image has been written. The texture image index is an address indicating an area in the texture image storage unit 113 into which the data of the texture image has been written. The lookup table index is an address indicating an area in the texture image storage unit 113 into which the data of the corresponding coordinate lookup table has been written.
[0103] The spectral texture image generation unit 112 refers to a texture image table in the texture image storage unit 113, and generates a spectral texture image for each wavelength band using the spectral sensitivity data of each texture image, the pixel values of the pixels in the texture image, and a corresponding coordinate lookup table of the texture image. Here, the spectral texture image generating unit 112 estimates the spectral reflectance spectrum of each pixel in the spectral texture image of each wavelength band using the already explained equations (1) and (2).
[0104] At this time, the spectral texture image generating unit 112 detects texture regions that correspond to the same polygon mesh in each texture image by extracting combinations of the same polygon mesh vertex coordinate values in the corresponding coordinate lookup table of each texture image. The spectral texture image generation unit 112 uses the pixel values (color components RGB) of each pixel in the detected texture region to estimate the spectral reflectance spectrum of each wavelength band of the pixel in the spectral texture image corresponding to that pixel position, using equations (1) and (2).
[0105] Here, the spectral texture image generating unit 112 selects one of the texture images, and generates a spectral texture image by assigning the acquired spectral reflectance spectrum intensity as the pixel value of each pixel in the texture region of the development view of this texture image (Figure 17(d)). Then, each of the generated spectral texture images is combined with the respective wavelength bands and written and stored in the spectral texture image storage unit 110 shown in FIG.
[0106] As described above, according to this embodiment, a virtual multi-viewpoint image with a different spectral sensitivity for each viewpoint information is generated from a multi-viewpoint captured image captured with different spectral sensitivities and viewpoint information (viewpoint position, optical axis vector) using an imaging device such as a digital camera available on the market that is available to general users. By arranging multi-viewpoint images corresponding to a plurality of spectral sensitivities for each viewpoint information, it is possible to generate a texture image for each spectral sensitivity. As with the case of generating texture images with different spectral sensitivities from a hyperspectral image, a spectral texture image for a three-dimensional shape model can be easily generated as a texture image that accurately reflects the spectral reflectance of the target object corresponding to each of a plurality of finer wavelength bands (a number of bands exceeding the three bands of the color components RGB (for example, 31 bands of different wavelengths)) compared to an image captured using normal RGB color components.
[0107] <Third embodiment> Hereinafter, a third embodiment of the present invention will be described with reference to the drawings. The configuration of a spectral texture image generation system according to the third embodiment is similar to that of the second embodiment (the spectral texture image is generated by the process of FIG. 17). In the following description, operations different from those of the second embodiment will be described. The texture image generation unit 111 generates a texture image using all of the multi-viewpoint images included in the same-viewpoint multi-viewpoint image table by matching the spectral sensitivity of any of the multi-viewpoint images (reference multi-viewpoint image and virtual multi-viewpoint image) with that of the reference multi-viewpoint image in the same-viewpoint multi-viewpoint image table of the viewpoint information written first in the multi-viewpoint image storage unit 107. At this time, the texture image generating unit 111 writes and stores in the texture image storage unit 113 the corresponding coordinate lookup table (similar to the table in FIG. 10) created when generating the texture image as a reference corresponding coordinate lookup table.
[0108] Then, the texture image generation unit 111 refers to the reference correspondence coordinate lookup table, and generates a texture image in which the polygon mesh vertex coordinate values and the region vertex coordinate values have similar correspondences for each correspondence between the polygon mesh vertex coordinate values and the region vertex coordinate values in the reference correspondence coordinate lookup table. That is, the texture image generating unit 111 refers to the reference corresponding coordinate lookup table, and generates each of the texture images of the spectral sensitivities other than the spectral sensitivity for which this reference corresponding coordinate lookup table was generated.
[0109] FIG. 19 is a diagram showing an example of the configuration of a texture image table in the texture image storage unit 113 in the third embodiment. The texture image table has columns for texture image identification information, a spectral sensitivity data index, a texture image data index, and a lookup table index for each record. The texture image identification information is identification information that individually identifies each of the texture images generated for each spectral sensitivity.
[0110] The spectral sensitivity data index is an address indicating an area in the texture image storage unit 113 in which the spectral sensitivity data corresponding to the texture image has been written. The texture image index is an address indicating an area in the texture image storage unit 113 in which the data of the texture image has been written. Furthermore, the spectral texture image generation unit 112 refers to the texture image table in the texture image storage unit 113, and uses each of the pixels in the texture region based on the region vertex coordinate values of each texture image, and uses equations (1) and (2) to determine the spectral reflectance spectrum of each pixel in the texture region in the spectral texture image of each wavelength band, thereby generating a spectral texture image. Then, each of the generated spectral texture images is combined with the respective wavelength bands and written and stored in the spectral texture image storage unit 110 shown in FIG.
[0111] <Fourth embodiment> Hereinafter, a third embodiment of the present invention will be described with reference to the drawings. Fig. 20 is a block diagram showing an example of the configuration of a spectral texture image generation system according to a fourth embodiment of the present invention. Similarly to the second embodiment, the spectral texture image generation system according to this embodiment generates a spectral texture image by the process of Fig. 17. 20, spectral texture image generation system 100B includes a data input / output unit 101, a multi-viewpoint image classification unit 102, a virtual multi-viewpoint image generation unit 103, a texture image generation unit 111, a texture image reconstruction unit 114, a spectral texture image generation unit 112, a visualization texture image generation unit 106, a multi-viewpoint image storage unit 107, a three-dimensional shape model storage unit 108, a texture image storage unit 113, and a spectral texture image storage unit 110. Below, configurations and operations that differ from the first embodiment will be described.
[0112] The texture image generating unit 111 generates a texture image for each spectral sensitivity, similarly to the second embodiment. At this time, when generating texture images for each of the spectral sensitivities, the texture image generating unit 111 generates a corresponding coordinate lookup table corresponding to each of the spectral sensitivities. Then, the texture image reconstruction unit 114 sets the correspondence coordinate lookup table corresponding to the spectral sensitivity of a multi-viewpoint image (reference multi-viewpoint image and virtual multi-viewpoint image) of any of the spectral sensitivities, for example, the reference multi-viewpoint image in the same-viewpoint multi-viewpoint image table of the viewpoint information listed first in the multi-viewpoint image storage unit 107, as the reference correspondence coordinate lookup table.
[0113] The texture image reconstruction unit 114 compares the reference correspondence coordinate lookup table in the texture image storage unit 113 with the correspondence coordinate lookup tables of texture images of other spectral sensitivities, matches them with the developments of the texture images that correspond to the reference correspondence coordinate lookup table, and changes the arrangement of the texture regions in the other texture images. That is, the texture image reconstructing unit 114 compares the correspondence between the polygon mesh vertex coordinates and the region vertex coordinates in the correspondence coordinate lookup table with the correspondence between the polygon mesh vertex coordinates and the region vertex coordinates in the reference correspondence coordinate lookup table.
[0114] Then, the texture image reconstructing unit 114 extracts a polygon mesh formed from the polygon mesh vertex coordinates in each of the corresponding coordinate lookup table and the reference corresponding coordinate lookup table. The texture image reconstruction unit 114 reconstructs the correspondence between the polygon mesh vertex coordinates and the region vertex coordinates so that the polygon mesh vertex coordinates and the region vertex coordinates in the reference correspondence coordinate lookup table are identical to the polygon mesh vertex coordinates and the region vertex coordinates in the correspondence coordinate lookup table, and changes the correspondence coordinate lookup table.
[0115] The spectral texture image generation unit 112 matches the region vertex coordinates in the correspondence coordinate lookup table and the reference correspondence coordinate lookup table, and uses each of the pixels in the texture region based on the region vertex coordinate values of each texture image to calculate the spectral reflectance spectrum of each pixel in the texture region in the spectral texture image for each wavelength band according to equations (1) and (2), thereby generating a spectral texture image. Then, each of the generated spectral texture images is combined with the respective wavelength bands and written and stored in the spectral texture image storage unit 110 shown in FIG.
[0116] <Fifth embodiment> Hereinafter, a fifth embodiment of the present invention will be described with reference to the drawings. Fig. 21 is a block diagram showing an example of the configuration of a spectral texture image generation system according to the fifth embodiment of the present invention. In Fig. 21, spectral texture image generation system 100C includes data input / output unit 101, multi-viewpoint image classification unit 102, virtual multi-viewpoint image generation unit 103, spectral distribution estimation unit 115, spectral image generation unit 104, spectral texture image generation unit 105, visualization texture image generation unit 106, multi-viewpoint image storage unit 107, three-dimensional shape model storage unit 108, spectral distribution basis vector storage unit 116, spectral image storage unit 109, and spectral texture image storage unit 110.
[0117] In this embodiment as well, captured image data of a target object to be restored as a three-dimensional shape model is supplied as a viewpoint image from an external device (not shown). Only configurations and operations different from the first embodiment will be described below. In the first to fourth embodiments, the spectral distribution of the light source when each multi-viewpoint image is captured is already acquired as measured spectral distribution data. In the fifth embodiment, the spectral distribution is also estimated when the spectral reflectance is estimated.
[0118] The spectral distribution estimation unit 115 estimates the spectral distribution of the light source in the environment in which a multi-viewpoint image made up of viewpoint images captured by a plurality of imaging devices with different spectral sensitivities is captured. The spectral distribution estimation unit 115 reads in a plurality of spectral distribution base vectors, for example, from the spectral distribution base vector storage unit 116. Then, similar to the case of the spectral reflectance, the spectral distribution estimation unit 115 expresses the spectral distribution of the light source in the environment in which the multi-viewpoint image is captured as a weighted sum of the plurality of read-in spectral distribution base vectors. The spectral distribution estimation unit 115 estimates the spectral distribution of the light source by estimating a weighting coefficient that weights each of the spectral distribution base vectors.
[0119] Here, the spectral distribution basis vectors are derived from a spectral distribution data group, which is a collection of the spectral distributions of a plurality of light sources, by using principal component analysis as spectral distribution basis vectors for expressing the spectral reflectance data group. In this principal component analysis, as in the case of spectral reflectance, it becomes possible to express the spectral distribution by combining a smaller number of spectral distribution basis vectors than the actual dimensions of the spectral distribution. In other words, by using the spectral distribution basis vectors, the dimensions of the spectral distribution of the light source to be estimated are compressed, and the calculation load is reduced.
[0120] That is, the spectral distribution estimation unit 115 estimates a plurality of spectral distribution basis vectors e j =[e j(λ1) ,e j(λ2) ,…] T The weighting coefficients of the spectral distribution basis vectors are expressed as a=[a1, a2, …] T The spectral distribution l is estimated by calculating the above. Here, the spectral distribution basis vectors are stored in advance in the spectral distribution basis vector storage unit 116 as a set, for example. In addition, the spectral distribution basis vectors are stored in the spectral distribution basis vector storage unit 116 in a plurality of arrangements in descending order of principal component scores in the principal component analysis, and the spectral distribution basis vectors up to a predetermined order may be read and used as necessary (described later). The synthesis of this spectral distribution basis vector is similar to the case where the spectral reflectance is expressed by synthesizing the spectral reflectance basis vectors shown in FIG.
[0121]
number
[0122] Then, the spectral distribution estimation unit 115 estimates each weighting coefficient a by solving the following equation (4) for the spectral distribution expressed by the above equation (3).Then, the spectral distribution estimation unit 115 estimates the spectral distribution l by equation (3) using the estimated weighting coefficients. Here, the spectral distribution l is expressed as a 31-dimensional vector obtained by sampling the wavelength range from 400 nm to 700 nm in increments of 10 nm, for example, as in the case of the spectral reflectance.
[0123]
number
[0124] In the above formula (4), p m,k is the pixel value of the k-th channel of the m-th viewpoint image. That is, p m,k In the above, m is a number indicating a viewpoint image in the viewpoint group for estimating spectral reflectance. Also, k indicates a channel of a color component in a part in the viewpoint image. For example, if a part is indicated by pixel values of color components R, G, and B, channel 1 is color component R, channel 2 is color component G, and channel 3 is color component B.
[0125] In addition, in equation (4), the matrix C m、k indicates the spectral sensitivity of the kth channel (wavelength band of color components, i.e., band) of the mth viewpoint image. m、k Element c in m,k (λ) indicates the spectral sensitivity of the wavelength λ in the kth channel of the mth viewpoint image. The viewpoint images used in equation (4) are obtained by sampling several parts of the three-dimensional shape model, and are viewpoint images of a group of viewpoints for estimating the spectral reflectance of the sampled parts. Then, the spectral distribution estimation unit 115 estimates the spectral distribution of the light source by solving equation (4) using the spectral reflectance of the sampled part, the pixel value corresponding to the part in each viewpoint image, and the spectral sensitivity of the imaging device that captured the viewpoint image. The part to be sampled may be selected from the three-dimensional shape model, or may be selected from the pixels in the viewpoint image.
[0126] Here, similar to the case of estimating spectral reflectance, the spectral distribution estimation unit 115 may be configured to select and read out a set of spectral distribution base vectors from the spectral distribution base vector storage unit 116 in accordance with the number of spectral sensitivity groups in the viewpoint group for estimating spectral reflectance. In addition, when solving equation (3), the number of spectral distribution basis vectors (principal components) used to represent the spectral distribution data (hereinafter, the number of spectral distribution basis vectors) N χThe upper limit is determined based on, for example, the number of spectral sensitivity groups that capture multi-viewpoint images (the number of imaging devices, or the number of spectral sensitivity adjustments made by color change filters, etc.).
[0127] In addition, a group of viewpoints for estimating spectral reflectance is obtained for each part of the three-dimensional shape model, and the number m of spectral sensitivity groups is different for each part. Therefore, for each part of the three-dimensional shape model, the set of spectral distribution basis vectors that the spectral distribution estimation unit 115 reads out from the spectral distribution basis vector storage unit 116 (the number of spectral distribution basis vectors N χ ) are different.
[0128] When estimating the spectral reflectance of each portion of a three-dimensional shape model and the spectral distribution of a light source, the estimation of the spectral reflectance and the spectral distribution is alternately repeated multiple times. When starting with estimating the spectral reflectance, the spectral texture image generation unit 112 reads the spectral distribution of a preset default light source from the spectral image storage unit 109, and estimates the spectral reflectance using equations (1) and (2). Next, when estimating the spectral distribution, the spectral distribution estimating unit 115 uses the spectral reflectance obtained from the above-mentioned default light source spectral distribution to estimate the spectral distribution using equations (3) and (4).
[0129] On the other hand, when starting from estimating the spectral distribution, the spectral distribution estimation unit 115 estimates the spectral distribution by using the spectral reflectance of the portion sampled from the three-dimensional shape model, which is a default spectral reflectance that is set in advance, using equations (3) and (4). Next, when estimating the spectral reflectance, the spectral texture image generating unit 112 uses the spectral distribution obtained from the default spectral reflectance and estimates the spectral reflectance using equations (1) and (2).
[0130] As described above, according to this embodiment, by repeatedly estimating the spectral reflectance of each voxel portion of a three-dimensional shape model and estimating the spectral distribution using a portion sampled from that portion, it is possible to determine with improved estimation accuracy the spectral reflectance of each portion of the three-dimensional shape model and the spectral distribution of the light source in the environment in which the multi-view image was captured. In addition, at this time, the number of times to repeat the estimation of the spectral distribution and the estimation of the spectral reflectance may be set in advance, and the processing may be terminated when the number of repetitions reaches this set number, or the processing may be terminated when the difference between the obtained numerical value and the numerical value of the immediately preceding calculation result reaches a predetermined value.
[0131] Furthermore, when estimating the spectral reflectance, the spectral distribution of the light source may be estimated using either a viewpoint image in which a reference object (e.g., a color chart) with known spectral reflectance is captured in the same image as the target object, or a reference image in which the reference object is captured under the light source in which the target object is captured. In this case, when using viewpoint images in which the reference object and the target object are captured as the same image, the spectral distribution estimation unit 115 selects viewpoint images in which the reference object is captured from at least two of the spectral sensitivity groups, and generates a group of viewpoints for light source estimation.
[0132] Then, the spectral distribution estimation unit 115 calculates the spectral distribution of the light source that captured the multi-viewpoint image according to equations (3) and (4), using the spectral sensitivities corresponding to the viewpoint images in the group of viewpoints for light source estimation, the known spectral reflectances of specific parts of the reference object, and the pixel values of positions corresponding to the above-mentioned specific parts of the viewpoint images in the group of viewpoints for light source estimation. Furthermore, in the present embodiment, the first embodiment has been described in terms of being provided with the spectral distribution estimation unit 115 that estimates the spectral distribution of the light source and the spectral distribution basis vector storage unit 116, but these may be provided in each of the second to fourth embodiments.
[0133] As described above, according to this embodiment, by repeating the process of estimating the three-dimensional shape and spectral reflectance of the target object and the process of generating a grayscale image from the viewpoint image corresponding to the spectral reflectance of the target object, the spectral distribution viewpoint image of the light source, and the spectral sensitivity, it is possible to improve the accuracy of estimating the three-dimensional shape of the target object as well as the accuracy of estimating the spectral reflectance.
[0134] Furthermore, the above-mentioned first to fifth embodiments may be configured to include a three-dimensional shape restoration unit (not shown) that reads each of the multi-viewpoint images of a target object stored in the multi-viewpoint image storage unit 107, estimates the three-dimensional shape of the target object, and generates a three-dimensional shape model. The three-dimensional shape restoration unit then writes and stores data of the three-dimensional shape model of the target object in the three-dimensional shape model storage unit 108. Here, regarding the method of generating a 3D shape model, for example, a depth map may be generated from a viewpoint image, and a 3D shape model may be generated from this depth map as a 3D point cloud, and then generated as a 3D mesh model (e.g., a triangular mesh model) represented by a polygonal mesh (see, for example, Shuji Sakai, Takashi Watanabe, Tomohito Masuda, Koichi Ito, Takafumi Aoki: Proposal of a High-Precision Multi-View 3D Restoration Algorithm Based on Phase-Only Correlation Method, 20th Image Recognition and Understanding Symposium (2017)). Furthermore, when reproducing the three-dimensional shape as a three-dimensional point cloud or mesh, the three-dimensional shape restoration unit also estimates the camera parameters of the image capturing device when each of the viewpoint images was captured.
[0135] In addition, a program for realizing each function of each of the spectral texture image generating systems of FIG. 1, FIG. 16, FIG. 20, and FIG. 21 in the present invention may be recorded in a computer-readable recording medium, and the program recorded in the recording medium may be read into a computer system and executed to generate each spectral texture image of a three-dimensional shape model of a target object in a wavelength band corresponding to a hyperspectral image. In addition, the term "computer system" as used herein includes hardware such as an OS (Operating System) and peripheral devices. In addition, the term "computer system" also includes a WWW (World Wide Web) system equipped with a homepage providing environment (or display environment). In addition, the term "computer-readable recording medium" refers to portable media such as a flexible disk, a magneto-optical disk, a ROM (Read Only Memory), and a CD-ROM (Compact Disc - Read Only Memory), and a storage device such as a hard disk built into a computer system. In addition, the term "computer-readable recording medium" also refers to a storage device that holds a program for a certain period of time, such as a volatile memory (RAM (Random Access Memory)) inside a computer system that becomes a server or a client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line.
[0136] The above program may also be transmitted from a computer system in which the program is stored in a storage device or the like to another computer system via a transmission medium, or by transmission waves in the transmission medium. Here, the "transmission medium" that transmits the program refers to a medium that has the function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line. The above program may also be for realizing part of the above-mentioned functions. Furthermore, it may be a so-called difference file (difference program) that can realize the above-mentioned functions in combination with a program already recorded in the computer system.
[0137] Although an embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and design changes and the like that do not deviate from the gist of the present invention are also included. [Explanation of symbols]
[0138] 100, 100A, 100B...Spectral texture image generation system 101...Data input / output section 102…Multi-view image classification unit 103...Virtual multi-viewpoint image generation unit 104...Spectral image generating unit 105, 112...Spectral texture image generation unit 106…Texture image generation unit for visualization 107...Multi-viewpoint image storage unit 108…Three-dimensional shape model storage unit 109…Spectral image storage 110...Spectral texture image storage unit 111...Texture image generation unit 113...Texture image storage unit 114...Texture image reconstruction unit 115...Spectral distribution estimation section 116...Spectral distribution basis vector storage unit
Claims
1. a spectral texture image generation system for generating a spectral texture image corresponding to a spectral reflectance spectrum of four or more bands in the spectral reflectance of a target object as a texture image of a three-dimensional shape model of the target object from multi-viewpoint images, a multi-viewpoint image classifying unit that classifies each of the multi-viewpoint images obtained by capturing the object from a plurality of different viewpoints and using an imaging device with a plurality of different spectral sensitivities into a spectral sensitivity group having the same spectral sensitivity; a virtual multi-viewpoint image generating unit that generates a virtual multi-viewpoint image by using the multi-viewpoint image at each of the viewpoints as a reference image and converting other multi-viewpoint images that are in the vicinity of the viewpoint of the reference image and belong to different spectral sensitivity groups into images captured from the viewpoint of the reference image; a texture image generating unit that generates a texture image corresponding to the spectral sensitivity of the spectral sensitivity group from each of the reference image and the virtual multi-viewpoint image in the spectral sensitivity group; a spectral texture image generating unit that estimates a spectral reflectance spectrum of four or more bands of the target object from each of the texture images corresponding to each of the spectral sensitivities, and generates the spectral texture image of the three-dimensional shape model; A spectral texture image generating system comprising:
2. The texture image generating unit When generating the texture image in any one of the spectral sensitivities, a lookup table is generated in which texture coordinates indicating the positions of each vertex of a texture region in a two-dimensional coordinate system of the texture image correspond to vertex coordinates indicating the positions of vertices of polygons of a three-dimensional shape model to which each of the texture regions is applied, and a texture image in another spectral sensitivity having a similar correspondence between the vertex coordinates of the polygons and the texture coordinates is generated by referring to the lookup table.
2. The spectral texture image generating system according to claim 1 .
3. A texture image reconstruction unit that reconstructs the texture image, The texture image generating unit generating texture images corresponding to the respective spectral sensitivities, and when generating the respective texture images, generating respective lookup tables in which texture coordinates indicating the positions of the vertices of the texture regions in the respective texture images correspond to vertex coordinates indicating the positions of the vertices of the polygons of the three-dimensional shape model to which the respective texture images are applied; The texture image reconstruction unit sets one of the texture images as a reference texture image, and performs reconstruction so that the correspondence between the vertex coordinates of the polygon and the texture coordinates in the other texture images coincides with the correspondence between the vertex coordinates of the polygon and the texture coordinates in a lookup table of the reference texture image.
2. The spectral texture image generating system according to claim 1 .
4. The texture image generating unit generating texture images corresponding to the respective spectral sensitivities, and when generating the respective texture images, generating respective lookup tables in which texture coordinates indicating vertices of texture regions in the respective texture images correspond to vertex coordinates indicating positions of vertices of polygons of a three-dimensional shape model to which the respective texture images are applied; A spectral texture image generating unit Referring to each of the lookup tables, corresponding pixels in each texture region of the texture image to the vertex coordinates in each of the lookup tables are associated with each other, and a spectral reflectance spectrum is estimated based on each of the associated pixels to generate the spectral texture image.
2. The spectral texture image generating system according to claim 1 .
5. A method for generating spectral texture images, comprising: generating a spectral texture image corresponding to a spectral reflectance spectrum of four or more bands in the spectral reflectance of a target object from multi-viewpoint images as a texture image of a three-dimensional shape model of the target object; a multi-viewpoint image classification step in which a multi-viewpoint image classification unit classifies each of the multi-viewpoint images obtained by capturing the target object using a plurality of different viewpoints and imaging devices having a plurality of different spectral sensitivities into a spectral sensitivity group having the same spectral sensitivity; a virtual multi-viewpoint image generating process in which a virtual multi-viewpoint image generating unit uses the multi-viewpoint images at each of the viewpoints as a reference image, and converts other multi-viewpoint images that are in the vicinity of the viewpoint of the reference image and belong to different spectral sensitivity groups into images captured from the viewpoint of the reference image to generate a virtual multi-viewpoint image; a texture image generating step of generating texture images corresponding to the spectral sensitivities of the spectral sensitivity groups from the reference images and the virtual multi-viewpoint images in the spectral sensitivity groups by a texture image generating unit; a spectral texture image generation step of estimating a spectral reflectance spectrum of four or more bands of the target object from each of the texture images corresponding to each of the spectral sensitivities, and generating the spectral texture image of the three-dimensional shape model by a spectral texture image generation unit; A method for generating a spectral texture image comprising:
6. a program for causing a computer to function as a spectral texture image generation system for generating a spectral texture image corresponding to a spectral reflectance spectrum of four or more bands in the spectral reflectance of a target object as a texture image of a three-dimensional shape model of the target object from multi-viewpoint images, The computer, a multi-viewpoint image classification means for classifying each of the multi-viewpoint images obtained by capturing the object from a plurality of different viewpoints and using an imaging device with a plurality of different spectral sensitivities into a spectral sensitivity group having the same spectral sensitivity; a virtual multi-viewpoint image generating means for generating a virtual multi-viewpoint image by using the multi-viewpoint image at each of the viewpoints as a reference image and converting other multi-viewpoint images that are in the vicinity of the viewpoint of the reference image and belong to different spectral sensitivity groups into images captured from the viewpoint of the reference image; a texture image generating means for generating a texture image corresponding to the spectral sensitivity of the spectral sensitivity group from each of the reference image and the virtual multi-viewpoint image in the spectral sensitivity group; a spectral texture image generating means for estimating a spectral reflectance spectrum of the target object having four or more bands from each of the texture images corresponding to each of the spectral sensitivities, and generating the spectral texture image of the three-dimensional shape model; A program to function as a
Citation Information
Patent Citations
JP1975068732A
Apparatus and method for simultaneously acquiring spectroscopic information and shape information
JP2008128771A
Image input device, image input method and image input program
JP2012029047A
Three-dimensional shape model generating device, three-dimensional shape model generating method and program
JP2018181047A
Image processing apparatus, method, and program
JP2019020951A
