3D model generation device and 3D model generation program

The 3D model generation device and program enhance images with multiple methods and select pixels based on specific criteria to generate stable and accurate 3D models from images with low-texture areas.

JP7540651B2Active Publication Date: 2024-08-27HOKKAIDO UNIVERSITY +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2020168525
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-10-05
Publication Date
2024-08-27
Estimated Expiration
2040-10-05

AI Technical Summary

Technical Problem

Existing 3D model generation techniques, such as SfM-MVS, struggle with generating accurate models from images with low-texture areas, especially when contrast enhancement methods like the Wallis filter have inconsistent effects and vary in success rates depending on the method used.

Method used

A 3D model generation device and program that perform multiple contrast enhancement processes on images, generate depth and normal maps, and select pixels based on minimum invalid pixel number, minimum stereo matching cost, or maximum supported pixel number to generate stable 3D models.

Benefits of technology

The method effectively generates accurate 3D models by selecting optimal pixels from multiple enhanced images, enhancing consistency and reducing errors in low-texture areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007540651000007
    Figure 0007540651000007
  • Figure 0007540651000008
    Figure 0007540651000008
  • Figure 0007540651000003
    Figure 0007540651000003
Patent Text Reader

Abstract

To appropriately generate a three-dimensional model.SOLUTION: A three-dimensional model generation device comprises: contrast emphasis means 105 which performs a plurality of kinds of contrast emphasis processing on a plurality of images respectively to generate a plurality of emphasized images; depth and normal map generation means 106 which generates depth maps and normal maps respectively corresponding to the plurality of kinds of contrast emphasis processing on the basis of the plurality of emphasized images generated by the contrast emphasis means 105; pixel selection means 107 which selects pixels corresponding to the plurality of kinds of contrast emphasis processing with respect to individual pixels constituting the depth maps and the normal maps; and three-dimensional model generation means 108 which generates a three-dimensional model on the basis of the pixels selected by the pixel selection means 107.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a three-dimensional model generating device and a three-dimensional model generating program that appropriately generate a three-dimensional model. [Background technology]

[0002] Structure-from-Motion / Multi-view-Stereo (SfM-MVS), a technology for generating 3D models from multiple images, is used, for example, in the fields of construction, civil engineering, and surveying for 3D measurement of features (e.g., Non-Patent Document 1).

[0003] However, when an object is photographed under inappropriate exposure conditions, or when the object is painted in a single color even if the exposure conditions are appropriate, the photographed image may contain low texture areas.

[0004] In such a case, even if we try to generate a 3D model for this low-texture area, the photometric consistency between different pixels will be unstable due to the lack of luminance variation. As a result, SfM may fail, or the model generated by MVS may have defects or poor accuracy.

[0005] Therefore, there is a technique for generating a three-dimensional model after enhancing the contrast of an image through preprocessing such as a Wallis filter or complete histogram equalization (for example, Non-Patent Document 2). [Prior art documents] [Non-patent literature]

[0006] [Non-Patent Document 1] Kazuo Oda, “Commentary: Structure from Motion (SfM) Part 1: Overview of SfM and Bundle Adjustment”, [online], 2016, Japan Society of Photogrammetry and Meteorology, Internet<URL:https: / / www.jstage.jst.go.jp / article / jsprs / 55 / 3 / 55_206 / _pdf> [Non-Patent Document 2] Kei Akutsu and 3 others, “Improving the robustness and accuracy of SfM-MVS reconstruction processing for low-texture objects by multiple shooting and histogram equalization”, [online], 2019, Japan Society for Precision Engineering, Internet<URL:https: / / www.jstage.jst.go.jp / article / pscjspe / 2019S / 0 / 2019S_89 / _pdf> Summary of the Invention [Problem to be solved by the invention]

[0007] However, with the technique described in Patent Document 2, even if contrast enhancement of the image is performed by preprocessing, it is sometimes difficult to generate a proper three-dimensional model.

[0008] For example, contrast enhancement using a Wallis filter may have an adverse effect in areas with a lot of brightness variation in the original image. In addition, there is a problem that the success rate of SfM and the image area where a 3D model can be generated vary depending on whether or not contrast enhancement is used and the difference in the enhancement method.

[0009] The present invention has been made in consideration of the above problems, and has an object to provide a 3D model generation device and a 3D model generation program that appropriately generate a 3D model. [Means for solving the problem]

[0010] In order to achieve the above object, a first feature of the 3D model generating device according to the present invention is to a contrast enhancement processing means for performing a plurality of contrast enhancement processes on a plurality of images to generate a plurality of enhanced images; a depth-normal map generating means for generating a depth map and a normal map corresponding to each of the plurality of contrast enhancement processes based on the plurality of enhanced images generated by the contrast enhancement processing means; a pixel selection means for selecting, for each pixel constituting the depth map and the normal map, one of the pixels corresponding to the plurality of contrast enhancement processes; a three-dimensional model generating means for generating a three-dimensional model based on the pixels selected by the pixel selecting means; The reason is that it is equipped with the following features.

[0011] A second feature of the 3D model generating device according to the present invention is The pixel selection means The method calculates a stereo matching cost C for each pixel of the depth map and normal map corresponding to each of the multiple contrast enhancement processes based on the zero-mean normalized cross-correlation value of the luminance values, and selects the pixel on the depth map and normal map for which the calculated stereo matching cost C is the smallest.

[0012] A third feature of the 3D model generating device according to the present invention is The pixel selection means Among the depth maps and normal maps corresponding to each of the plurality of contrast enhancement processes, a pixel of the depth map and normal map for which the cost C calculated using (equation) is the smallest is selected. C=1 - Zero-mean normalized cross-correlation value of luminance values ​​+ weighted reprojection error (Formula) The point is...

[0013] A fourth feature of the 3D model generating device according to the present invention is a priority order is determined in advance for the depth map and the normal map on which each of the plurality of contrast enhancement processes has been performed; The pixel selection means According to the priority order, pixels of the depth map and the normal map corresponding to the contrast enhancement process with the smallest number of invalid pixels are selected from among the depth map and the normal map corresponding to each of the plurality of contrast enhancement processes. The point is...

[0014] A fifth feature of the 3D model generating device according to the present invention is The pixel selection means For each of the depth map and the normal map, a pixel in the depth map and the normal map that has the largest number of supporting pixels, which is the number of pixels in the depth map and the normal map that are the projection source of the reconstruction point after map synthesis, is selected. The point is... Effect of the Invention

[0015] According to the 3D model generating device and the 3D model generating program of the present invention, features can be appropriately detected. [Brief description of the drawings]

[0016] [Figure 1] 1 is a schematic diagram showing the schematic configuration of a three-dimensional model generating device according to an embodiment of the present invention; [Diagram 2] FIG. 2 is an explanatory diagram illustrating the processing contents of a contrast enhancement means 105 included in the three-dimensional model generating device according to one embodiment of the present invention. [Diagram 3] 2 is an explanatory diagram illustrating the processing contents by a depth normal map generating means provided in the three-dimensional model generating device according to one embodiment of the present invention. FIG. [Figure 4] FIG. 2 is an explanatory diagram illustrating the processing contents of the minimum invalid pixel number method by a pixel selection means included in the three-dimensional model generating device according to one embodiment of the present invention. [Diagram 5] FIG. 11 is an explanatory diagram illustrating the processing contents of the minimum cost method performed by a pixel selection means included in the three-dimensional model generating device according to the first modified example of the present invention. [Figure 6]FIG. 11 is an explanatory diagram illustrating the processing contents of the maximum supported pixel number method performed by a pixel selection means included in the three-dimensional model generating device according to the second modified example of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. The same or equivalent parts and components are designated by the same or equivalent reference numerals throughout the drawings. However, it should be noted that the drawings are schematic and may differ from the actual product. In addition, the drawings may include parts with different dimensional relationships and ratios.

[0018] The embodiments described below are merely examples of devices for embodying the technical idea of ​​the present invention, and the technical idea of ​​the present invention does not limit the arrangement of each component to that described below. Various modifications can be made to the technical idea of ​​the present invention within the scope of the claims.

[0019] A three-dimensional model generating device according to one embodiment of the present invention will be described below.

[0020] FIG. 1 is a schematic diagram showing the schematic configuration of a three-dimensional model generating device according to an embodiment of the present invention.

[0021] 1, the 3D model generating device 1 is connected to photographing devices 2A-2C and a monitor 3, generates a 3D model based on image data of an object TG captured by the photographing devices 2A-2C, and displays the generated 3D model on the monitor 3. The object TG may be any object having a shape on the ground, such as a building, factory equipment, bridge, mountain, forest, tree, etc.

[0022] The photographing devices 2A to 2C have the same configuration, so only the photographing device 2A will be described. Note that although the configuration includes three photographing devices 2A to 2C here, the number of photographing devices may be two, or may be four or more.

[0023] The photographing device 2A includes a camera 21A and a temporary data storage unit 23A.

[0024] Camera 21A is a digital camera capable of taking color still images and moving images, and stores the captured still image data or moving image data (hereinafter referred to as original image data) in temporary data storage unit 23A.

[0025] The temporary data storage unit 23A stores the original image data captured by the camera 21A.

[0026] The monitor 3 displays various screens, such as a screen displaying the three-dimensional model generated by the three-dimensional model generating device 1.

[0027] The three-dimensional model generating device 1 includes an image data acquisition means 101, an Sfm (Structure from Motion) processing means 102, a camera parameter memory unit 103, an image data memory unit 104, a contrast enhancement means 105, a depth normal map generation means 106, a pixel selection means 107, a three-dimensional model generation means 108, a three-dimensional model memory unit 109, and a display control means 110.

[0028] The image data acquisition means 101 acquires still image data or moving image data (original image data) stored in the temporary data storage units 23A-23C of the photographing devices 2A-2C. For example, the data may be acquired via a network, or the temporary data storage units 23A-23C may be removed from the photographing devices 2A-2C and physically connected to the 3D model generating device 1.

[0029] The image data acquisition means 101 stores the acquired original image data in the image data storage unit 104 , and also supplies the same to the Sfm processing means 102 .

[0030] The Sfm processing means 102 estimates tie points (sparse corresponding points) and camera parameters by executing Sfm (Structure from Motion) processing based on a plurality of original image data acquired from the image capturing devices 2A to 2C. The Sfm (Structure from Motion) processing is a process of searching for tie points between images using natural features, and estimating camera parameters by minimizing reprojection errors based on the tie points. The tie points are points that indicate points that can be clearly understood from each image data in the overlapping parts in order to join the original image data captured by the cameras 21A to 21C. The camera parameters include external parameters such as the position and orientation of the camera, and internal parameters such as the focal length and the center of the optical axis.

[0031] The camera parameter storage unit 103 is configured, for example, by a hard disk drive, and stores the tie points estimated by the Sfm processing means 102 and the camera parameters.

[0032] The image data storage unit 104 is configured, for example, by a hard disk drive or the like, and stores the original image data supplied from the image data acquisition means 101 .

[0033] The contrast enhancement means 105 generates a plurality of enhanced image data by performing a plurality of contrast enhancement processes on each of the original image data captured by the cameras 21A to 21C. Here, the contrast enhancement processes include histogram complete equalization and a Wallis filter. Details will be described later.

[0034] The depth normal map generation means 106 generates a depth map and a normal map corresponding to each of the multiple contrast enhancement processes (Wallis filter and histogram complete equalization) based on the multiple enhanced images (Wallis filter enhanced image and complete equalization enhanced image data) generated by the contrast enhancement means 105.

[0035] The pixel selection means 107 selects, for each pixel constituting the depth map and the normal map, one of the pixels corresponding to a plurality of contrast enhancement processes (Wallis filter and histogram complete equalization).

[0036] The pixel selection means 107 performs selection processing based on any one of the minimum invalid pixel number method, the minimum cost method, and the maximum supported pixel number method. Here, the minimum invalid pixel number method will be taken as an example for explanation.

[0037] In the minimum invalid pixel method, the priority order between the Wallis filter and the histogram complete equalization used in generating the depth map and the normal map is determined in advance, and according to this priority order, pixels of the depth map and the normal map corresponding to the contrast enhancement process with the minimum number of invalid pixels are selected from among the depth map and the normal map corresponding to the Wallis filter and the histogram complete equalization, respectively. Details will be described later.

[0038] The three-dimensional model generation means 108 generates a three-dimensional model with normals by projecting the map values ​​of the depth map and normal map onto a three-dimensional virtual space using the camera parameters stored in the camera parameter storage unit 103 based on the pixels selected by the pixel selection means 107.

[0039] The three-dimensional model storage unit 109 is configured, for example, by a hard disk drive, and stores the three-dimensional model generated by the three-dimensional model generating means .

[0040] The display control means 110 causes the monitor 3 to display a three-dimensional model based on the three-dimensional model stored in the three-dimensional model storage unit 109 .

[0041] Next, the details of the processing executed by the contrast enhancement means 105 will be described.

[0042] 2 is an explanatory diagram illustrating the processing contents of the contrast enhancement means 105 included in the three-dimensional model generating device 1 according to one embodiment of the present invention. Here, a case where original image data is acquired from the photographing device 2A and the photographing device 2B will be described.

[0043] In FIG. 2, original image data D10 including original image data D11 captured by the image capture device 2A and original image data D12 captured by the image capture device 2B is supplied to the contrast enhancement means 105.

[0044] The contrast enhancing means 105 functionally comprises a complete uniformizing means 105A and a Wallis filter means 105B.

[0045] The complete equalization means 105A generates complete equalization enhanced image data D21 by repeatedly changing the luminance values ​​of randomly selected pixels from the original image data D11 so that the total frequency of the luminance histogram in the image becomes a constant value, starting from the luminance value 0. Similarly, the complete equalization means 105A generates complete equalization enhanced image data D22 from the original image data D12.

[0046] This maximizes the average amount of information across the entire image, increasing the uniqueness of each pixel and reducing erroneous matching during stereo matching.

[0047] The Wallis filter means 105B is a kind of high-pass filter. It generates Wallis filter enhanced image data D31, D32 by calculating the filtered luminance value I^'(u,v) for each channel luminance value I(u,v) of each pixel position (u,v) of the original image data D11, D12, which are 8-bit color images, using the following formula (1).

[0048]

number

[0049] Here, σ_set is a user-specified enhancement parameter, μ is the average luminance value within a window of width w×w centered on the target pixel (u,v), and σ is the standard deviation of the luminance values ​​within the window.

[0050] FIG. 3 is an explanatory diagram illustrating the processing contents of the depth normal map generating means 106 included in the three-dimensional model generating device 1 according to one embodiment of the present invention.

[0051] As shown in FIG. 3, the depth normal map generating means 106 includes a depth map generating means 106A and a normal map generating means 106B.

[0052] The depth map generation means 106A generates corresponding original image depth maps D41, D42 for the original image data D11, D12 stored in the image data storage unit 104 using stereo matching based on the camera parameters and tie points stored in the camera parameter storage unit 103.

[0053] In addition, the depth map generation means 106A generates corresponding completely equalized depth maps D51, D52 for the completely equalized enhanced image data D21, D22 generated by the completely equalized means 105A, using stereo matching, based on the camera parameters and tie points stored in the camera parameter storage unit 103.

[0054] Furthermore, the depth map generation means 106A generates corresponding Wallis filter depth maps D61, D62 for the Wallis filter enhanced image data D31, D32 generated by the Wallis filter means 105B using stereo matching based on the camera parameters and tie points stored in the camera parameter memory unit 103.

[0055] Although not shown, the normal map generation means 106B, like the depth map generation means 106A, uses stereo matching to generate corresponding original image normal maps, fully uniformized normal maps, and Wallis filter normal maps for the original image data D11, D21, the fully uniformized enhanced image data D21, D22, and the Wallis filter enhanced image data D31, D32, respectively.

[0056] FIG. 4 is an explanatory diagram illustrating the processing contents of the minimum invalid pixel number method by the pixel selection means 107 included in the three-dimensional model generating device 1 according to one embodiment of the present invention.

[0057] 4, the pixel selection means 107 performs a selection process using a minimum invalid pixel number method. In the minimum invalid pixel number method, a depth map and a normal map are selected on a pixel-by-pixel basis according to a preset priority order of depth map and normal map selection so as to minimize the number of invalid pixels.

[0058] 4, the order of priority is, for example, original image depth maps D41 and D42, fully uniform depth maps D51 and D52, and Wallis filter normal maps D61 and D62. Here, a 3×3 pixel group, which is a part of each pixel group, is used as an example for explanation.

[0059] The pixel selection means 107 extracts a pixel group D411 that is a part of the original image depth map D41. Of this pixel group, D411a, D411d, D411e, D411f, D411h, and D411j shown in color are valid pixels, and D411b, D411c, and D411g shown in black are invalid pixels.

[0060] The pixel selection means 107 extracts a pixel group D511 that is a part of the complete uniform normal map D51 that is in the same region as the pixel group D411. Of this pixel group, D511b is an invalid pixel in the pixel group D411 and a valid pixel in the pixel group D511.

[0061] Therefore, the pixel selection means 107 replaces pixel D411b of pixel group D411 with pixel D511b of pixel group D511 to generate pixel group D711.

[0062] Furthermore, the pixel selection means 107 extracts pixel group D611, which is a part of the Wallis filter normal map D61 which is in the same region as pixel group D411. Of this pixel group, pixel group D711 is an invalid pixel, and pixel group D611 is a valid pixel D611g.

[0063] The pixel selection means 107 replaces pixel D711g of pixel group D711 with pixel D611g of pixel group D611 to generate pixel group D712. Note that pixel D411c of pixel group D411 is an invalid pixel, but pixel D511c of pixel group D511 is also an invalid pixel, and pixel D611c of pixel group D611 is also an invalid pixel. Therefore, pixel D411c is used in pixel group D712 without being supplemented with a valid pixel.

[0064] By performing this for all pixels, rather than just some of the pixels, of the original image depth maps D41, D42, the fully uniform depth maps D51, D52, and the Wallis filter normal maps D61, D62, a selected image can be obtained.

[0065] In this way, the pixel selection means 107 selects a depth map for every pixel according to a preset depth map selection priority order so as to minimize the number of invalid pixels. Note that although the depth map has been described here, the same selection is also performed for the normal map.

[0066] This allows pixels to be selected to be supplemented with pixels from multiple depth maps or normal maps based on priority, thereby generating an appropriate 3D model with an increased number of effective pixels.

[0067] <Variation 1> In the above-described three-dimensional model generating device 1 according to one embodiment of the present invention, the pixel selection means 107 performs the selection process using the minimum invalid pixel number method.

[0068] In the first modification, a three-dimensional model generating device 1 in which the pixel selection means 107 performs selection processing using the minimum cost method will be described as an example.

[0069] In variant example 1, the pixel selection means 107 selects, on a pixel-by-pixel basis, pixels on the depth map that minimize the stereo matching cost C based on the zero-mean normalized cross-correlation value of the luminance values ​​for each of the original image depth map, the fully uniform depth map, and the Wallis filter normal map.

[0070] FIG. 5 is an explanatory diagram illustrating the processing contents of the minimum cost method performed by the pixel selection means 107A included in the three-dimensional model generating device 1 according to the first modification of the present invention.

[0071] As shown in Figure 5, the pixel selection means 107A extracts a pixel group D411 that is a portion of the original image depth map D41, a pixel group D511 that is a portion of the fully uniform normal map D51 which is in the same area as the pixel group D411, and a pixel group D611 that is a portion of the Wallis filter normal map D61 which is in the same area as the pixel group D411.

[0072] Furthermore, the pixel selection means 107 calculates a stereo matching cost C based on the zero-mean normalized cross-correlation value of the luminance values ​​for each pixel of the original image depth map, the fully uniform depth map, and the Wallis filter normal map using the following formula (2), and selects the pixel on the depth map that minimizes the calculated stereo matching cost C. The smaller the stereo matching cost C, the higher the consistency.

[0073] C=1—zero-mean normalized cross-correlation value ρ of the luminance values l m + weighted reprojection error F l m (2)

[0074] Here, ρ l m is calculated using the following formula (3): lis a set of pixels within a certain range centered on the image position of the reference image, and w l m is a set of pixels within a certain range centered on the pixel position on image m corresponding to the reference image.

[0075]

number

[0076] Also, F l m is calculated using the following formula (4), where η is a normalization constant, and here, η=0.5. l m =||x l -H l m H l x l ||, maximum reprojection error φ max = 3 [pixels]. l m is the reprojection error, and x l is the pixel position (patch) in the original image, H l m H l x l is the pixel position (patch) obtained by backprojecting the reference image.

[0077] F l m =ηmin(φ l m , φ max ) (4)

[0078] The cost images D81 and D82 are images based on the original image depth maps D41 and D42, in which pixels with smaller stereo matching costs C are indicated in blue and pixels with larger stereo matching costs C are indicated in red. Similarly, the cost images D91 and D92 are images based on the complete uniform normal maps D51 and D52, in which pixels with smaller stereo matching costs C are indicated in blue and pixels with larger stereo matching costs C are indicated in red. Similarly, the cost images D101 and D102 are images based on the Wallis filter normal maps D61 and D62, in which pixels with smaller stereo matching costs C are indicated in blue and pixels with larger stereo matching costs C are indicated in red.

[0079] The cost map D111 is a cost map that indicates the stereo matching costs C of pixels corresponding to a pixel group D411 that is a part of the original image depth map D41.

[0080] In the cost map D111, D111a, D111d, D111e, D111f, D111h, and D111j shown in numerical values ​​are valid pixels, and D111b, D111c, and D111g shown in black are invalid pixels.

[0081] The pixel selection means 107 extracts D112 indicating the stereo matching cost C of pixels corresponding to a partial pixel group D511 of the complete uniform depth map D51 which is in the same region as the cost map D111.

[0082] Furthermore, the pixel selection means 107 extracts D113 indicating the stereo matching cost C of pixels corresponding to a partial pixel group D511 of the Wallis filter depth map D51 which is in the same region as the cost map D111.

[0083] Then, the pixel selection means 107 compares the cost map D111, the cost map D112, and the cost map D113 on a pixel-by-pixel basis, and selects the pixel with the smallest stereo matching cost C.

[0084] 5, for example, the stereo matching cost C of pixel D111d is "0.8", the stereo matching cost C of pixel D112d is "0.1", and the stereo matching cost C of pixel D113d is "0.2". Therefore, the pixel selection means 107 selects pixels corresponding to a pixel group D511 that is a part of the complete uniform depth map D51 corresponding to pixel D112d having the smallest stereo matching cost C.

[0085] It should be noted that D111c, D112c, and D113c shown in black are invalid, and therefore none of the pixels are selected.

[0086] In this way, the pixel selection means 107 generates a cost map D114 for each of the original image depth map, the fully uniform depth map, and the Wallis filter normal map, which minimizes the stereo matching cost C based on the zero-mean normalized cross-correlation value of the luminance values ​​on a pixel-by-pixel basis.

[0087] Then, the pixel selection means 107 selects pixels from the original image depth maps D41, D42, the complete uniform depth maps D51, D52, and the Wallis filter normal maps D61, D62 based on the cost map D114 so that the stereo matching cost C is minimized.

[0088] The pixel selection means 107 performs this for all pixels, not just some of the pixels, of the original image depth maps D41 and D42, the fully uniform depth maps D51 and D52, and the Wallis filter depth maps D61 and D62 to obtain a selected image D70A. Note that although the depth maps have been described here, the same selection is also performed for normal maps.

[0089] As a result, pixels on the depth map that has the smallest stereo matching cost C on a pixel-by-pixel basis are selected from among the original image depth map, the fully uniformized depth map, and the Wallis filter depth map, and pixels on the normal map that has the smallest stereo matching cost C on a pixel-by-pixel basis are selected from among the original image normal map, the fully uniformized normal map, and the Wallis filter normal map.By combining these, it is possible to generate the most appropriate 3D model with the highest consistency.

[0090] <Variation 2> In the above-described three-dimensional model generating device 1 according to one embodiment of the present invention, the pixel selection means 107 performs the selection process using the minimum invalid pixel number method.

[0091] In variant example 2, pixel selection means 107B selects pixels of the depth map and normal map that have the maximum number of supporting pixels, which is the number of pixels in each of the depth map and normal map from which the reconstruction point is projected after map synthesis.

[0092] 6 is an explanatory diagram illustrating the processing contents of the maximum supported pixel number method by the pixel selection means 107B included in the three-dimensional model generating device 1 according to the modified example 2 of the present invention. It is assumed here that images are taken using three cameras 21A to 21C.

[0093] As shown in Fig. 6, it is assumed that there is a reconstruction point G in the cameras 21A to 21C. The reconstruction point G is a point generated by projecting the depth in the image captured by each of the cameras 21A to 21C onto a three-dimensional space. The number of pixels (depth and normal) from which this reconstruction point is projected is called the number of supporting pixels. In the example shown in Fig. 6, there are three pixels G1 to G3 from which the reconstruction point G is projected, so the number of supporting pixels is "3".

[0094] The pixel selection means 107B creates a supporting pixel number map by substituting this number of supporting pixels for all pixels of the original projection source, and, similar to the minimum cost method, selects, for each pixel, the pixel with the largest number of supporting pixels from among the original image depth maps D41, D42, the fully uniform depth maps D51, D52, and the Wallis filter depth maps D61, D62.

[0095] If the numbers of supporting pixels are all the same, pixels may be selected according to a preset selection priority order of the depth map, as in the minimum invalid pixel number method.

[0096] Also, although the depth map has been described here, the selection is made similarly for the normal map.

[0097] As a result, the pixel on the depth map with the maximum number of supporting pixels on a pixel-by-pixel basis is selected from the original image depth map, the fully uniformized depth map, and the Wallis filter depth map, and the pixel on the normal map with the maximum number of supporting pixels on a pixel-by-pixel basis is selected from the original image normal map, the fully uniformized normal map, and the Wallis filter normal map.By combining these, it is possible to generate the most appropriate 3D model with the highest consistency.

[0098] The above-described embodiment can also be realized by executing a feature detection program installed in a computer. [Explanation of symbols]

[0099] 1. 3D model generation device 2A~2C Imaging device 3 Monitors 21A~21C Camera 23A~23C Temporary data storage section 101 Image data acquisition means 102 Sfm processing means 103 Camera parameter storage unit 104 Image data storage unit 105 Contrast enhancement methods 105A Complete equalization means 105B Wallis filter means 106 Depth normal map generation method 106A Depth map generating means 106B Normal map generation means 107, 107A, 107B Pixel selection means 108 3D model generation means 109 3D model storage section 110 Display control means

Claims

1. a contrast enhancement processing means for performing a plurality of contrast enhancement processes on a plurality of images to generate a plurality of enhanced images; a depth-normal map generating means for generating a depth map and a normal map corresponding to each of the plurality of contrast enhancement processes based on the plurality of enhanced images generated by the contrast enhancement processing means; a pixel selection means for selecting, for each pixel constituting the depth map and the normal map, one of the pixels corresponding to the plurality of contrast enhancement processes; a three-dimensional model generating means for generating a three-dimensional model based on the pixels selected by the pixel selecting means; A three-dimensional model generating device comprising:

2. The pixel selection means Calculate a stereo matching cost C for each pixel of the depth map and normal map corresponding to each of the plurality of contrast enhancement processes based on a zero-mean normalized cross-correlation value of the luminance values, and select a pixel on the depth map and normal map for which the calculated stereo matching cost C is the smallest.

2. The three-dimensional model generating device according to claim 1.

3. The pixel selection means Among the depth maps and normal maps corresponding to the respective contrast enhancement processes, pixels of the depth map and normal map for which the cost C calculated using (equation) is the smallest are selected. C = 1 - zero-mean normalized cross-correlation value of luminance values ​​+ weighted reprojection error (Formula) 2. The three-dimensional model generating device according to claim 1.

4. a priority order is determined in advance for the depth map and the normal map on which each of the plurality of contrast enhancement processes has been performed; The pixel selection means According to the priority order, pixels of the depth map and the normal map corresponding to the contrast enhancement process with the smallest number of invalid pixels are selected from among the depth map and the normal map corresponding to each of the plurality of contrast enhancement processes.

2. The three-dimensional model generating device according to claim 1.

5. The pixel selection means For each of the depth map and the normal map, a pixel in the depth map and the normal map that has the largest number of supporting pixels, which is the number of pixels in the depth map and the normal map that are the projection source of the reconstruction point after map synthesis, is selected.

2. The three-dimensional model generating device according to claim 1.

Citation Information

Patent Citations

  • Vehicle environment recognizing system

    JP2009176087A