Point cloud data processing device, point cloud data processing method and point cloud data processing program
The point cloud data processing apparatus addresses inefficiencies in generating three-dimensional models by segmenting and extracting edges and surfaces from point cloud data, enhancing processing speed and accuracy through advanced feature extraction techniques.
Patent Information
- Application Number
- DE112010004767
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2009-12-11
- Filing Date
- 2010-11-19
- Publication Date
- 2024-09-12
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing methods for generating three-dimensional models from point cloud data are inefficient, requiring significant processing time and failing to effectively extract essential features such as edges and surfaces due to noise and non-surface regions.
A point cloud data processing apparatus with units for non-surface removal, area designation, three-dimensional edge extraction, two-dimensional edge extraction, edge integration, normal line calculation, and local curvature calculation, allowing for the automatic generation of three-dimensional models by segmenting point cloud data into areas and extracting relevant edges and surfaces.
The apparatus efficiently extracts three-dimensional and two-dimensional edges from point cloud data, reducing processing time and improving the accuracy of three-dimensional model generation by removing noise and non-surface regions, thereby facilitating rapid and precise object representation.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Scope of the invention
[0001] The present invention relates to a point cloud data processing device for extracting features of an object from point cloud data of the same and for automatically generating a three-dimensional model within a short period of time. Description of the state of the art
[0002] One method for generating a three-dimensional model from point cloud data of an object involves connecting adjacent points and forming a polygon. However, creating polygons from tens of thousands to tens of millions of points in the point cloud data requires considerable processing time, making this impractical. In this regard, the following technical measures are disclosed, for example, in Japanese patent publications (translation from a PCT application) No. JP 2000-509 150 A and Japanese patent publications No. JP 2004-272 459 A and JP 2005-24 370 A. These measures extract only three-dimensional features (edges and surfaces) from the point cloud data and automatically generate the three-dimensional polylines (multiple lines).
[0003] In the invention disclosed in Japanese patent application (translation of PCT application) No. JP 2000-509 150 A, a scanning laser device scans a three-dimensional object and generates point clouds. The point cloud is divided into a group of edge points and a group of non-edge points, based on changes in depth and normal lines of the scanned points. Each group is assembled into an original geometric drawing, and the assembled original geometric drawings are extended and intersected to generate the three-dimensional model.
[0004] According to the invention disclosed in Japanese patent publication no. JP 2004-272 459 A, segments (triangular polygons) are formed from point cloud data, and edges and surfaces are created based on continuity, the direction of the normal lines, or the distance between adjacent polygons (continuity). The point cloud data of each segment is then transformed into an area equation or curve equation using the least squares method and divided into groups with respect to area and curvature, thereby generating a three-dimensional model.
[0005] According to the invention disclosed in Japanese Patent Publication No. JP 2005-24 370 A, two-dimensional square regions are set for three-dimensional point cloud data, and synthesized normal vectors of the measured points within these square regions are obtained. All measured points within the square region are rotated so that the synthesized normal vectors correspond to a z-axis direction. The standard deviation σ of the z-value of each measured point within the square region is calculated. If the standard deviation σ exceeds a predetermined value, the measured point corresponding to the center point within the square region is processed as noise.
[0006] RUSU, R. et al.: Towards 3D point cloud based object maps for household environments. Robotics and Autonomous Systems, Vol. 56, No. 11, November 2008, investigates the problem of capturing 3D object maps of household environments, particularly kitchens. The objects modeled in these maps include cabinets, tables, drawers, and shelves, which are of particular importance to a household robot. The mapping approach is based on PCD (point cloud data) representations. Interpretation methods that work with these representations eliminate noise and re-capture the data without deleting important details, interpreting the improved point clouds in the form of rectangular planes and geometric 3D shapes.
[0007] ALSHAWABKEH, Y.: Integration of laser scanning and photogrammetry for heritage documentation. Dissertation. University of Stuttgart, 2006, discloses a method in which information about edges and linear surface features is provided from the analysis of distance and intensity images. For this purpose, an integrated segmentation process is used to extract object-geometric information from laser data. The method employs image-based semi-automatic techniques to fill gaps in the laser scanner data and add new details needed to construct realistic scenes. Disclosure of the invention
[0008] In this context, the present invention is based on the objective of providing a technique for extracting features of an object from point cloud data of the same and automatically generating a three-dimensional model in a short time.
[0009] In the invention according to claim 1, the present invention provides a point cloud data processing device comprising a non-area removal unit, an area labeling unit, a three-dimensional edge extraction unit, a two-dimensional edge extraction unit, an edge integration unit, a normal line calculation unit, and a local curvature calculation unit. The non-area removal unit removes points in non-area regions from the point cloud data of an object. The area labeling unit adds identical labels to points in the same area, except for the points removed by the non-area removal unit, in order to segment the point cloud data into areas. The three-dimensional edge extraction unit extracts three-dimensional edges based on at least one of the intersection lines of the segmented areas and convex lines that convexly encompass the segmented areas.The two-dimensional edge extraction unit extracts two-dimensional edges from within the segmented surfaces. The edge integration unit integrates the three-dimensional edges and the two-dimensional edges. The normal line calculation unit calculates local surfaces that have each point of the point cloud data at its center and calculates normal lines of the local surfaces. The local curvature calculation unit calculates a standard deviation of three axis components of the normal lines and a square root of the sum of the squares of the standard deviations, thus calculating a local curvature.
[0010] According to the invention specified in claim 1, features of the object are extracted from its point cloud data, and a three-dimensional model is automatically generated in a short time. The object's features consist of three-dimensional and two-dimensional edges. The three-dimensional edges primarily form three-dimensional images, and the two-dimensional edges form representations within planar and curved surfaces (hereinafter referred to simply as "surfaces"). The three-dimensional edges are intersection lines of the surfaces, which differ from each other in their position and direction, and are the outer edges of each surface. The two-dimensional edges are points and lines where the color density changes abruptly within a surface. The three-dimensional edges form the contours of the object.The contours are combined lines (outline lines) that better represent the object's shape and are necessary for visually perceiving its appearance. Specifically, contours include curved areas and areas where the curvature suddenly decreases. Contours are not only found outside of frame areas but also along edges, denoting convexly protruding areas and concavely recessed or indented areas (for example, grooved or furrowed areas). Based on these contours, so-called "line figures" are obtained, and an image is displayed that allows for easy perception of the object's appearance. Actual contours exist at the boundaries between surfaces and at the edges; however, according to the present invention, these areas are removed from the point cloud data as non-surface regions.Therefore, for example, the contours are obtained by calculating the intersection lines of the segmented surfaces and the convex lines. Points within the same surface are extracted based on the direction of the normal lines of each point in the point cloud data, segmenting the points of the point cloud data into surfaces. Points in non-surface areas are removed based on changes in the normal line (local curvature) of each point in the point cloud data.
[0011] In the invention according to claim 2, the non-surface removal unit can remove the points of the non-surface areas based on the local curvature.
[0012] According to the invention as specified in claim 2, points in the non-surface areas, including sharp three-dimensional edges, smooth three-dimensional edges, and noise, are removed. The sharp three-dimensional edges are generated by changes in the directions of the surfaces, and the smooth three-dimensional edges are generated by curved surfaces with large local curvatures.
[0013] In the invention according to claim 3, according to the invention according to the specifications in claim 1, the non-surface removal unit can remove points of the non-surface areas based on an accuracy of the matching of the points to the local surfaces.
[0014] According to the invention as specified in claim 3, points in the non-surface regions, including noise and three-dimensional edges generated by enclosure, are removed. Enclosure is a condition where the inner regions are obscured by front regions and are therefore not visible. Thus, the fit of a local surface is, for example, the average of the distances between a local surface and each point used to calculate the local surface. The three-dimensional edges generated by enclosure include points in the inner regions and the front regions where the three-dimensional positions differ significantly. Therefore, according to the fit (accuracy of the fit) of the local surfaces, the points in the non-surface regions, including noise and such three-dimensional edges, are removed.
[0015] In the invention according to claim 4, the non-area removal unit can remove the points of the non-area regions based on the coplanarity of a target point and the adjacent point.
[0016] If, according to the invention and the specifications in claim 4, a target point and an adjacent point are coplanar, then a normal line of each point and a segment line connecting these points intersect at right angles, and their internal product is zero. According to this condition, points in non-surface areas, including noise, and sharp three-dimensional edges generated by changes in the directions of the surfaces are removed.
[0017] In the invention according to claim 5, the area marking unit can add identical markings to the points in the same area on the basis of an angular difference of the normal lines of a target point and an adjacent point.
[0018] According to the invention as specified in claim 5, the points of the point cloud data are divided (segmented) into areas.
[0019] In the invention according to claim 6, the point cloud data processing device can further comprise a noise removal unit that removes noise based on areas of the segmented surfaces.
[0020] According to the invention as described in claim 6, only surfaces that characterize the object are extracted or selected.
[0021] In the invention according to claim 7, the point cloud data processing unit can further comprise a marker extension unit that adds markers of the nearest surfaces to points other than the marked points in order to extend or expand the marked surfaces.
[0022] According to the invention as specified in claim 7, markings are added to the points forming the surfaces, to the points of the non-surface areas, and then to the surfaces. Therefore, the three-dimensional edges are extracted based on at least one of the intersection lines of the segmented surfaces and the convex lines that convexly encompass the segmented surfaces.
[0023] In the invention according to claim 8, according to the details of the invention in claim 1, the point cloud data can be data in which three-dimensional coordinates of each point are linked with two-dimensional images.
[0024] According to the invention as specified in claim 8, the image processing technique is used to extract two-dimensional edges that are difficult to obtain when only three-dimensional coordinates are extracted.
[0025] In the invention according to claim 9, the two-dimensional edge extraction unit can extract two-dimensional edges from within areas of the two-dimensional images that are assigned to or correspond to the segmented surfaces.
[0026] According to the invention as specified in claim 9, the three-dimensional edges that primarily form three-dimensional shapes are removed, and only the two-dimensional edges that form the surfaces in the figure are extracted.
[0027] In the invention according to claim 10, the two-dimensional edge extraction unit can extract two-dimensional edges from within regions of the two-dimensional images that are associated with the segmented surfaces. Furthermore, the two-dimensional edge extraction unit can identify two-dimensional edges based on the three-dimensional positions of the three-dimensional edges in the vicinity of the two-dimensional edges.
[0028] According to the invention as specified in claim 10, the three-dimensional positions of the two-dimensional edges extracted from the two-dimensional images are identified on the basis of three-dimensional positions of the three-dimensional edges that form the outer edges of the surfaces.
[0029] In the invention according to claim 11, the point cloud data processing device can further comprise a rotational emission unit, a distance measuring unit, an emission direction measuring unit, and a three-dimensional coordinate calculation unit. The rotational emission unit emits distance-measuring light onto the object in a rotating manner. The distance measuring unit measures a distance from the point cloud data processing device to a target point on the object based on the travel time of the distance-measuring light. The emission direction measuring unit measures the emission direction of the distance-measuring light. The three-dimensional coordinate calculation unit calculates three-dimensional coordinates of the target point based on the distance and the emission direction.
[0030] According to the present invention as specified in claim 11, point cloud data are obtained which are formed from three-dimensional coordinates.
[0031] In the invention according to claim 12, the point cloud data processing unit can further comprise a grid formation unit. The grid formation unit forms a grid with equal spacing and registers the nearest points at the grid intersections when the distances between the points in the point cloud data are not constant.
[0032] According to the invention as specified in claim 12, the distances between the points of the point cloud data are corrected.
[0033] In the invention according to claim 13, as described in claim 11, the point cloud data processing device can further comprise an imaging unit and a linking unit. The imaging unit captures an image of the object and obtains or generates a two-dimensional image. The linking unit generates point cloud data by linking the three-dimensional coordinates of the target point with the two-dimensional image.
[0034] According to the invention as specified in claim 13, the three-dimensional edges that form the three-dimensional shape are extracted based on the three-dimensional coordinates. Furthermore, the two-dimensional edges (points and lines where the color density suddenly changes) that form the figure within the surfaces are extracted based on the two-dimensional image.
[0035] In the invention according to claim 14, the point cloud data processing device can further comprise a photography unit, a feature point matching unit, a photography position and direction measuring unit, and a three-dimensional coordinate calculation unit. The photography unit captures an image of the object in overlapping photographic areas from different directions. The feature point matching unit matches feature points in overlapping images obtained by the photography unit. The photography position and direction measuring unit measures the position and direction of the photography unit. The three-dimensional coordinate calculation unit calculates the three-dimensional coordinates of the feature points based on the position and direction of the photography unit and the positions of the feature points in the overlapping images.
[0036] According to the invention as specified in claim 14, point cloud data are obtained from the three-dimensional coordinates.
[0037] In the invention according to claim 15, the present invention further provides a point cloud data processing program that allows a computer to process the following steps. These steps include a non-surface removal step, a surface labeling step, a three-dimensional edge extraction step, a two-dimensional edge extraction step, an edge integration step, a normal line calculation step, and a local curvature calculation step. In the non-surface removal step, points of the non-surface areas are removed from the point cloud data of an object. In the surface labeling step, identical labels are added to points in the same surface, except for the points removed by the non-surface removal step, to segment the point cloud data into surfaces.In the three-dimensional edge extraction step, three-dimensional edges are extracted based on at least one of the intersection lines of the segmented surfaces and the convex lines that convexly encompass the segmented surfaces. In the two-dimensional edge extraction step, two-dimensional edges are extracted from within the segmented surfaces. In the edge integration step, the three-dimensional edges and the two-dimensional edges are integrated. In the normal line calculation step, local surfaces that have each point of the point cloud data at its center are calculated, and normal lines of the local surfaces are calculated. In the local curvature calculation step, standard deviations of three axis components of the normal line are calculated, and the square root of the sum of the squares of the standard deviations is obtained to calculate the local curvature.
[0038] According to the invention as specified in claim 15, features of the object are extracted from the point cloud data of the same, and a three-dimensional model is automatically formed within a short period of time.
[0039] In the invention according to claim 16, the present invention also provides a point cloud data processing method including a non-surface removal step, a surface labeling step, a three-dimensional edge extraction step, a two-dimensional edge extraction step, an edge integration step, a normal line calculation step, and a local curvature calculation step. In the non-surface removal step, points of a non-surface area are removed from the point cloud data of an object. In the surface labeling step, identical labels are added to the points in the same surface, except for the points that were removed by the non-surface removal step, to segment the point cloud data into surfaces.In the three-dimensional edge extraction step, three-dimensional edges are extracted based on at least one of the intersection lines of the segmented surfaces and the convex lines that convexly encompass the segmented surfaces. In the two-dimensional edge extraction step, two-dimensional edges are extracted from within the segmented surfaces. In the edge integration step, three-dimensional edges and two-dimensional edges are integrated. In the normal line calculation step, local surfaces that have each point of the point cloud data at its center are calculated, and normal lines of the local surfaces are calculated. In the local curvature calculation step, standard deviations of three axis components of the normal line are calculated, and the square root of the sum of the squares of the standard deviations is obtained to calculate the local curvature.
[0040] According to the invention as specified in claim 16, features of the object are extracted from the point cloud data of the object, and a three-dimensional model is automatically formed within a short period of time. Effects of the invention
[0041] According to the present invention, features of an object are extracted from point cloud data of the same, and a three-dimensional model is generated automatically and within a short period of time. Brief description of the figures. Fig. Figure 1 is a block diagram of a point cloud data processing device. Fig. Figure 2 is a flowchart illustrating the processing flow of a processing unit. Fig. Figure 3 is a photograph instead of a drawing to illustrate an intensity image (nvx) of normal vectors in an x-axis direction. Fig. Figure 4 is a photograph instead of a drawing to illustrate an intensity image (nvy) of normal vectors in a y-axis direction. Fig. Figure 5 is a photograph instead of a drawing to illustrate an intensity image (nvz) of normal vectors in a z-axis direction. Fig. Figure 6 is a photograph instead of a drawing to illustrate a curvature image (stdnvx) in an x-axis direction. Fig. Figure 7 is a photograph instead of a drawing to illustrate a curvature image (stdnvy) in a y-axis direction. Fig. Figure 8 is a photograph instead of a drawing to illustrate a curvature image (stdnvz) in a z-axis direction. Fig. Figure 9 is a photograph instead of a drawing to illustrate a local curvature image (crv). Fig. Figure 10 is a graphical representation illustrating distances between a local area and points for use in calculating the local area. Fig. Figure 11 is an illustrative representation to describe a procedure for processing coplanarity. Fig. Figure 12 is a photograph instead of a drawing to illustrate a result of not removing surface in a two-dimensional space. Fig. Figure 13 is a photograph instead of a drawing to illustrate a result of not removing a surface in a three-dimensional space. Fig. Figure 14 is a photograph instead of a drawing to illustrate a result of not removing a surface from a different direction compared to that of Fig. 13. Fig. Figure 15 is a photograph instead of a drawing to illustrate the result of an area labelling in a two-dimensional space. Fig. Figure 16 is a photograph instead of a drawing to illustrate the result of an area labelling in a three-dimensional space. Fig. Figure 17 is a photograph instead of a drawing to illustrate a result of noise removal. Fig. Figure 18 is a photograph instead of a drawing to illustrate the result of a marking extension in a two-dimensional space. Fig. 19 is a photograph instead of a drawing to illustrate a result of a marking extension in a three-dimensional space. Fig. Figure 20 is a graphic representation used to illustrate areas where two adjacent surfaces intersect. Fig. Figure 21 is a photograph instead of a drawing to illustrate three-dimensional edges formed by intersection lines of two adjacent surfaces. Fig. 22 is a photograph instead of a drawing to illustrate three-dimensional edges, based on convex lines. Fig. Figure 23 is a photograph instead of a drawing to illustrate two-dimensional edges to be extracted. Fig. 24 is a photograph instead of a drawing to illustrate three-dimensional edges and two-dimensional edges in a two-dimensional space and a three-dimensional space. Fig. Figure 25 is a sectional view illustrating the setup of a point cloud data processing device. Fig. Figure 26 is a sectional view illustrating the setup of a point cloud data processing device. Fig. Figure 27 is a block diagram of a control unit. Fig. Figure 28 is a block diagram of a processing unit. Fig. Figure 29 is a representation illustrating a linking structure of the three-dimensional coordinates and the two-dimensional images of the point cloud data. Fig. Figure 30 is a graphical representation to illustrate point cloud data where the distances between the points are not constant. Fig. Figure 31 is a graphic representation to illustrate a formed grid. Fig. Figure 32 is a photograph instead of a drawing to illustrate a point cloud that was registered at the intersections of a grid in a three-dimensional space. Fig. Figure 33 is a photograph instead of a drawing to illustrate point clouds registered at the intersections of a grid in a two-dimensional space. Fig. Figure 34 is a block diagram illustrating the structure of a point cloud data processing device. Fig. Figure 35 is a block diagram illustrating a processing unit. Fig. 36A shows a sharp three-dimensional edge of a straight line, Fig. 36B shows a smooth three-dimensional edge of a straight line, Fig. 36C shows a sharp three-dimensional edge of a curved line and Fig. 36D shows a smooth three-dimensional edge of a curved line. Fig. Figure 37 is a cross-sectional view of a smooth three-dimensional edge. Fig. Figures 38A to 38C are conceptual representations illustrating a function for calculating a convex line. Description of reference symbols
[0042] Reference numeral 1 denotes a point cloud data processing device, 2 denotes point cloud data, 3 denotes a data input unit, 4 denotes a processing unit, 5 denotes a memory, 6 denotes a controller, 7 denotes a display device, 8 denotes a data output unit, 9 denotes a grid generation unit, 10 denotes an area extraction unit, 11 denotes a three-dimensional edge extraction unit, 12 denotes a two-dimensional edge extraction unit, 13 denotes an edge integration unit, 14 denotes a normal line calculation unit, 15 denotes a local curvature calculation unit, 16 denotes a non-area removal unit, 17 denotes an area labeling unit, 18 denotes a noise removal unit, 19 denotes a labeling extension unit, 20 denotes three-dimensional polylines, 22 denotes a leveling unit.23 denotes a rotary mechanism, 24 denotes a distance measuring unit, 25 denotes an imaging unit, 26 denotes a control unit, 27 denotes a main body, 28 denotes a rotary emission unit, 29 denotes a base plate, 30 denotes a lower housing, 31 denotes a pin, 32 denotes an adjusting screw, 33 denotes an expansion spring, 34 denotes a leveling drive motor, 35 denotes a leveling drive pinion, 36 denotes a gear driven for leveling, 37 denotes an inclination sensor, 38 denotes a horizontal rotary drive motor, 39 denotes a horizontal rotary drive pinion, 40 denotes a horizontal rotary gear, 41 denotes a rotating shaft part, 42 denotes a rotary base plate, 43 denotes a bearing, 44 denotes a horizontal angle sensor, 45 denotes a main housing, 46 denotes a lens tube,47 denotes an optical axis, 48 denotes a beam splitter, 49 and 50 denote optical axes, 51 denotes a pulsed laser light source, 52 denotes a perforated mirror, 53 denotes a beam center-change optical system, 54 denotes a distance-measuring light receiver, 55 denotes a height-adjustment rotating mirror, 56 denotes an optical axis of the floodlight, 57 denotes a focusing lens, 58 denotes an image sensor, 59 denotes a floodlight housing, 60 denotes a flange part, 61 denotes a mirror mounting plate, 62 denotes a rotating shaft, 63 denotes a height adjustment gear, 64 denotes a height sensor, 65 denotes a height adjustment drive motor, 66 denotes a drive gear, 67 denotes a sighting device, 68 denotes an external storage device, 69 denotes a horizontal drive unit, 70 denotes a height drive unit, 71 denotes a leveling drive unit.72 denotes a distance data processing unit, 73 denotes an image data processing unit, 74 denotes a three-dimensional coordinate calculation unit, 75 denotes a linking unit, 76 and 77 denote photography units, 78 denotes a feature projector, 79 denotes a calibration object, 80 denotes a target object, 81 denotes a photography position and direction measurement unit, 82 denotes a feature point fitting unit, 83 denotes a background distance unit, 84 denotes a feature point extraction unit, 85 denotes a matching point search unit, 86 denotes a three-dimensional coordinate calculation unit, 87 denotes a mismatch point identification unit, 88 denotes a disparity evaluation unit, 89 denotes a spatial processing unit, 90 denotes a shape processing unit, 91 and 92 denote areas.93 denotes a virtual three-dimensional edge, 94 denotes a column, 95 denotes an actual three-dimensional edge, 301 denotes a contour, 302 denotes a surface, 303 denotes a non-surface area, and 304 denotes a surface. Best way to implement the invention1. First embodiment
[0043] An example of the point cloud data processing device is described below with reference to the figure. Structure of the point cloud data processing device
[0044] Fig. Figure 1 shows a block diagram of the point cloud data processing device. The point cloud data processing device 1 extracts features of an object and generates a three-dimensional model based on these features using point cloud data 2 of the object. The object's features consist of three-dimensional and two-dimensional edges. The three-dimensional edges primarily form three-dimensional shapes, and the two-dimensional edges form planar and curved surfaces (hereinafter referred to simply as "surfaces"). The three-dimensional edges are intersection lines of the surfaces, each distinct from the others in position and direction, and are the outer edges of each surface. The two-dimensional edges are points and lines where the color densities change abruptly within a surface.The three-dimensional model generated by the point cloud data processing device1 is an approximate or approximated form based on the features of the object and represents three-dimensional polylines 20 consisting of three-dimensional edges and two-dimensional edges.
[0045] According to the representation in Fig. The point cloud data processing device 1 comprises a data input unit 3, a processing unit 4, a memory 5, a controller 6, a display unit 7, and a data output unit 8. The data input unit 3 is an external storage device such as flash memory, a magnetic storage device such as a hard disk, or a connection device to provide a connection to a LAN (Local Area Network), a WAN (Wide Area Network), or the like. The processing unit 4 is a processing device such as a central processing unit (CPU), an application-specific integrated circuit (ASIC), or a programmable logic device (PLD) such as an FPGA (Field Programmable Gate Array).Memory 5 is a main memory device such as random access memory (RAM) or the like. Controller 6 is a control device such as a combination of a mouse and keyboard, a touchscreen (touch panel), or the like. Display device 7 is a display device such as a liquid crystal display. Data output unit 8 has the same structure as data input unit 3.
[0046] The processing unit 4 is controlled by the controller 6 and receives point cloud data 2 from the data input unit 3. The point cloud data 2 consists primarily of three-dimensional coordinates and RGB intensity data (two-dimensional images). The point cloud data 2 received or acquired from the data input unit 3 is stored in the memory 5. The processing unit 4 extracts three-dimensional and two-dimensional edges of an object based on the point cloud data 2 stored in the memory 5. The three-dimensional and two-dimensional edges extracted by the processing unit 4 are displayed on the display unit 7 as three-dimensional polylines 20. The display unit 7 can simultaneously display the three-dimensional polylines 20 in two-dimensional space and in three-dimensional space.The three-dimensional polylines 20 can be output to the data output unit 8 as CAD data (Computer Aided Design data).
[0047] The structure of processing unit 4 is described in detail below. Processing unit 4 comprises a surface extraction unit 10, a three-dimensional edge extraction unit 11, a two-dimensional edge extraction unit 12, and an edge integration unit 13. These consist of corresponding programs that are processed by a CPU, an ASIC, or a PLD such as an FPGA. The surface extraction unit 10 extracts surfaces from the point cloud data 2. The surface extraction unit 10 comprises a normal line calculation unit 14, a local curvature calculation unit 15, a non-surface removal unit 16, a surface labeling unit 17, a noise removal unit 18, and a labeling extension unit 19.
[0048] The normal line calculation unit 14 calculates a normal vector for each point in a local surface. The local curvature calculation unit 15 calculates changes (local curvatures) of the normal vectors in the local regions. The non-surface removal unit 16 removes points from the non-surface regions based on (1) the degree of strong local curvature, (2) the fit of the local surfaces, and (3) coplanarity. The non-surface regions are regions excluding planar and curved surfaces, although cases may include curved surfaces with strong curvature according to the thresholds of conditions (1) to (3). The surface labeling unit 17 adds identical labels to the remaining points in the same surfaces based on the continuity of the normal vectors. The noise removal unit 18 removes labels (surfaces) with a small area as noise.The label extension unit 19 adds labels of the nearest surfaces to unlabeled points, thereby extending or expanding the labeled areas. As a result, surfaces are extracted from the point cloud data 2.
[0049] If any unmarked points still exist in this context, they can be re-marked by automatically adjusting each threshold of the non-area removal unit 16, the noise removal unit 18, and the mark extension unit 19. Furthermore, the marks can be integrated if the areas have different marks but lie within the same area. This adds identical marks to areas that have the same position or direction, even if these areas are not connected. In this case, the Fig. 1 processing unit shown 4 furthermore a post-marking unit or a marking integration unit adjacent to the marking extension unit 19.
[0050] The three-dimensional edge extraction unit 11 extracts three-dimensional edges based on at least one of the intersection lines of the surfaces extracted by the surface extraction unit 10, and convex lines that convexly encompass the extracted surfaces. The two-dimensional edge extraction unit 12 extracts preliminary two-dimensional edges from within the surfaces segmented by the surface extraction unit 10. The two-dimensional edge extraction unit 12 then extracts as two-dimensional edges edges that approximately correspond to the three-dimensional positions of the three-dimensional edges near the preliminary two-dimensional edges.The edge integration unit 13 integrates the three-dimensional edges extracted by the three-dimensional edge extraction unit 11 and the two-dimensional edges extracted by the two-dimensional edge extraction unit 12, thereby generating three-dimensional polylines 20. The edge integration unit 13 is an example of a device for calculating three-dimensional contours of the object and is an example of a contour integration unit of the present invention. Furthermore, the edge integration unit 13 integrates the extracted three-dimensional edges and the two-dimensional edges that run in the surfaces extracted by the surface extraction unit 10. The edge extraction unit 13 then calculates data (in this example, three-dimensional polylines) required to form the three-dimensional shape of the object.In this context, the edge integration unit 13 is an example of a three-dimensional shape extraction unit for extracting three-dimensional shapes of an object based on a multitude of surfaces extracted by means of the surface extraction unit 10.
[0051] If the point cloud data 2 consists of a multitude of point cloud data (blocks) that were acquired or measured in different directions, then the processing by the processing unit 4 is repeated for each block. The processing unit 4 then transforms the points of the three-dimensional and two-dimensional edges extracted from each block into the same coordinates, thereby generating the three-dimensional polylines 20 in a multitude of directions. Operating principle of the point cloud data processing device
[0052] The following section describes in detail an area marking process and a three-dimensional shape extraction process. Processing unit 4 performs the area marking process and the extraction of three-dimensional shapes of the object based on the areas marked in the area marking process. Fig. Figure 2 shows a flowchart illustrating the processing flow of processing unit 4. The flowchart is processed in conjunction with programs that can be provided using computer-readable recording media such as a CD-ROM.
[0053] Processing unit 4 performs a recovery of the point cloud data 2 (step S1) and extracts surfaces from it (step S2). To extract the surfaces, processing unit 4 calculates a normal vector for each point in a local surface (step S3). A procedure for calculating the normal vector is described below.
[0054] In square areas of approximately 3 to 7 pixels (local areas of 3 × 3, 5 × 5, or similar) with a target point in the center, equations are derived from the three-dimensional coordinates of each point (local area fitting). Local area fitting is performed using the least squares method. To accurately formulate the local area equations, it is preferable in this case to create three different planar area equations, as represented by the first formula, and compare them. In the case of the first formula, the normal vectors (nvx, nvy, nvz) are now (a1, b1, -1), (a2, -1, b2), and (-1, a3, b3). Furthermore, normalization is performed so that the normal vectors have a magnitude of 1 (within a range of -1 to 1). First formula z=a1x+b1y+c1 y=a2x+b2z+c2 x=a3y+b3z+c3
[0055] Fig. Figure 3 shows a photograph as a substitute for or in place of a drawing to illustrate an intensity image (nvx) of normal vectors in an x-axis direction. Fig. Figure 4 is a photograph as a substitute for or in place of a drawing to illustrate an intensity image (nvy) of the normal vectors in a y-axis direction. Fig. Figure 5 is a photograph used as a substitute for, or in place of, a drawing to illustrate an intensity image (nvz) of normal vectors in a z-axis direction. Fig. Figures 3 to 5 show results using local areas measuring 7 × 7.
[0056] Next, variations (local curvatures) of the normal vectors in the local regions are calculated (step S4). In square regions of approximately 3 to 7 pixels with a target point in the center, mean values (mnvx, mnvy, mnvz) of intensity values (nvx, nvy, nvz) of the three axis components of the normal vectors are calculated. Additionally, standard deviations (stdnvx, stdnvy, stdnvz) are calculated. As shown in the second formula, the square root of the sum of the squares of the standard deviations is then calculated as the local curvature (crv).
[0057] Second formula LocalCurverture=(StdNVx2+StdNVy2+StdNVz2) (Local Curvature = local curvature)
[0058] Fig. Figure 6 shows a photograph as a substitute for a drawing to illustrate a curvature image (stdnvx) in an x-axis direction. Fig. Figure 7 shows a photograph as a substitute for a drawing to illustrate a curvature image (stdnvy) in a y-axis direction. Fig. Figure 8 shows a photograph as a substitute for a drawing to illustrate a curve diagram (stdnvz) in a z-axis direction. Fig. Figure 9 shows a photograph as a substitute for a drawing to illustrate a local curvature image (crv),
[0059] Next, points from non-surface areas are removed (step S5). To extract surfaces (planar and curved surfaces), areas identified as non-surface are thus provisionally (preparatorily) removed. The non-surface removal processing is performed using at least one of the following three methods. The non-surface areas are areas other than the flat (planar) surfaces and the curved surfaces; however, cases may occur in which curved surfaces with a high curvature are included, depending on the thresholds of methods (1) to (3). (1) Areas with strong local curvature
[0060] Points from regions with strong local curvature, calculated in step S4, are removed. Local curvature indicates a variation in the normal vector of the target point and the surrounding points. Therefore, local curvature is small with respect to surfaces (planar surfaces and curved surfaces with small curvature), whereas local curvature is large with respect to regions other than surfaces.
[0061] If the local curvature is greater than a predetermined threshold, then the target point is determined to not lie on the surface. Therefore, the local curvature pattern is calculated according to... Fig. 9 are converted into binary sizes, and areas with a local curvature greater than the threshold are removed. (2) Accuracy of fit of the local area
[0062] Distances between a local area and each point used in calculating the local area, as obtained in step S4, are calculated. If the average of these distances is greater than a predetermined threshold, the target point is determined to not lie on the area. Fig. Figure 10 shows a graphical representation of the distances between the local area and the points used in calculating the local area. The local area L is selected by placing a point A on the area. Point A has mean coordinates of points P1 to P8, which are used to calculate the local area. (3) Coplanarity test
[0063] The Fig. Figure 11 is an explanatory diagram describing a procedure for evaluating coplanarity. In this case, a local surface p1 and a local surface p2 have normal vectors n1 and n2, respectively, where a vector connecting the points defining the surface is denoted by r12. If the local surfaces p1 and p2 lie in the same surface, the normal vectors n1 and n2 and the r12 connecting the local surfaces intersect at nearly right angles, resulting in their inner products being nearly zero. Using this function, if the value of the larger of the inner products exceeds a predetermined threshold, the target point is then determined to be not lying on the surface (third formula). Third Formula n1→⋅r12→=|n1→|⋅|r12→|cosθ n2→⋅r21→=|n2→|⋅|r21→|cosθ MAX(|n1→⋅r12→|,|n2→⋅r21→|)
[0064] According to method (1), sharp three-dimensional edges generated by changes in the direction of surfaces and non-surface areas containing smooth three-dimensional edges generated by curved surfaces with high curvature are extracted. According to method (2), non-surface areas containing three-dimensional edges generated by occlusion are extracted because these areas have points whose positions change abruptly. Occlusion is a condition in which the inner areas are obscured by the front areas and are therefore not visible. According to method (3), non-surface areas containing sharp three-dimensional edges generated by changes in the direction of surfaces are extracted.
[0065] The three procedures above are executed sequentially, with the results being stored in the Fig. 12 to 14 are shown. Fig. 12 is a photograph rather than a drawing, showing a result of non-surface removal in a two-dimensional space. Fig. 13 is a photograph rather than a drawing, showing a result of non-surface removal in a three-dimensional space. Fig. 14 is a photograph instead of a drawing, which is a result of non-surface removal from a direction other than that in Fig. 13 shows. Black areas in the Fig. 12 to 14 are pixels that have been removed by this processing, specifically areas between surfaces with different orientations. As indicated by circles B in the Fig. 13 and Fig. As shown in Figure 14, there are areas identified as non-area regions, even though they are area regions. These areas represent passersby during the acquisition of the point cloud data. Removing the non-areas also removes large disturbances, such as trees in front of the object and passersby.
[0066] Next, an area label is performed for the remaining points based on the continuity of the normal vectors (step S6). More precisely, in the 8-neighborhood, an identical label is added if the angular difference between the normal vectors of the target point and the neighboring points is not greater than a predefined threshold. After the area labeling, the angular difference between the normal vectors and the standard deviations of the three axis components of the normal vectors are used to assess whether the label (area) is a flat surface or a curved surface with small curvature.
[0067] Fig. 15 is a photograph that, instead of a drawing, shows a result of area labelling in a two-dimensional space. Fig. Figure 16 is a photograph, rather than a drawing, showing the result of area labeling in a three-dimensional space. Fig. 15 and Fig. 16 show areas with ten different colors, however, the areas with the same color are not in the same areas as long as the labels of the areas are not connected to each other in the 8-neighborhood.
[0068] Next, labels (areas) with a small area are removed as noise (step S7). Noise removal and area label processing in step S7 can be performed simultaneously. That is, while area labeling is being carried out, a total count is taken for each identical label, and identical labels whose total count exceeds a predefined number are removed. Fig. Figure 17 is a photograph, rather than a drawing, showing the result of noise reduction. As in Fig. As shown in Figure 17, small markings present at the top and bottom have been removed as noise (in Figure 17). Fig. 17 dyed black).
[0069] Next, identical labels of the nearest surfaces are added to points that are not yet labeled. That is, the surfaces that are already labeled are extended (step S8). First, an equation for the surface with a label is obtained, calculating the distance between the surface and an unlabeled point. If multiple labels (surfaces) exist around the unlabeled point, the label with the shortest distance is selected. Fig. Figure 1 is a photograph instead of a drawing, showing a result of the marking extension in a two-dimensional space. Fig. Figure 19 is a photograph, rather than a drawing, showing the result of the marking extension in a three-dimensional space. As in the Fig. 18 and Fig. As shown in Figure 19, labels are extended to the interior and end regions of the surfaces. Thus, surfaces are extracted from the point cloud data 2 (step S2).
[0070] If unlabeled points still exist, a re-labeling process is performed, automatically adjusting each threshold in the non-surface removal processing (step S5), noise processing (step S7), and label extension processing (step S8). For example, increasing the local curvature threshold in the non-surface removal processing (step S5) extracts fewer points than non-surfaces. Similarly, increasing the distance threshold between the unlabeled point and the nearest surface in the label extension processing (step S8) adds labels to multiple unlabeled points.
[0071] If surfaces have different labels but lie within the same surface, the labels of the surfaces can be integrated. That is, identical labels are added to surfaces that have the same position or direction, even if the surfaces are not continuous. More precisely, by comparing the positions and directions of the normal vectors of each surface, discontinuous identical surfaces are extracted, and their labels are integrated into one of the labels of the same surface.
[0072] Subsequently, intersection lines of the extracted surfaces and convex lines that convexly encompass the extracted surfaces are calculated, with three-dimensional edges being extracted based on these (step S9). These two procedures are described below. When using the following two procedures, one or both procedures may be used. If both procedures are used, averages of the results of the two procedures or more suitable calculation results from the two procedures are used. Alternatively, one of the two procedures may be selected according to the circumstances. (1) Use of intersection lines as three-dimensional edges
[0073] In this process, two adjacent surfaces are extracted and treated as endless surfaces, with the intersection line of the two surfaces being extracted as a three-dimensional edge. Each surface is identified by means of a flat surface or a curved surface in the surface identification process in step S6. The three-dimensional edge is thus obtained as the intersection line of a pair of two flat surfaces, a pair of a flat surface and a curved surface, or a pair of a curved surface and a curved surface.
[0074] If, for example, the two adjacent surfaces are flat, normal vectors "a" and "b" are obtained. Then, an outer product "a × b" of the normal vectors "a" and "b" is calculated, yielding a vector of a line of intersection (fourth formula). Next, a point on the line of intersection is calculated using the equations of the two surfaces. Thus, the line of intersection is obtained.
[0075] Fourth formula a→×b→=(aybz−azby,azbx−axbz,axby−aybx)
[0076] The resulting intersection line is an endless straight line. By calculating a cut where the two surfaces intersect, and determining the endpoint coordinates of the cut, the intersection line is transformed into a line segment. Fig. Figure 20 is a view showing sections where two adjacent surfaces intersect. Fig. Figure 21 is a photograph, rather than a drawing, showing three-dimensional edges formed by the intersection lines of two adjacent surfaces. Since this method cannot preserve the intersection line if no adjacent surfaces are present, three-dimensional edges cannot be extracted from the object's exterior. Fig. Figure 21 shows an arrow pointing to an area of a surface from which no point cloud data can be obtained. Since this area has no adjacent surface, no three-dimensional edges can be extracted. (2) Gaining three-dimensional edges based on convex lines
[0077] In this process, points on an exterior (boundary region) of each label (face) are extracted and connected to form three-dimensional edges. More precisely, in the case of a relatively ordinary cubic object, points on the exterior of a face are extracted from a two-dimensional image, with adjacent extracted points connected by lines. If the angle between the face and the line segment of a target point and its adjacent points is greater than 90°, the target point is removed. The remaining adjacent points are then connected. Repeating this step creates a convex line that convexly encompasses the face.
[0078] An example of a process for obtaining a convex line for marking and for calculating a contour is described below. Fig. Figure 38A shows a contour 301 extending in a y-axis direction. An example of a method for calculating a convex line approximating contour 301 is described below. First, a cross-section along a plane ZX can be calculated. Fig. 38A will be used. Fig. Figure 38B conceptually shows one of the cross-sections along the plane ZX and shows labeled surfaces 302, 304 and a non-surface area 303 between surfaces 302 and 304. The measured points B1, B2 and B3 are not contained within the labeled surfaces and correspond to target points. In this example, the actual contour 301 at the central area consists of the non-surface area 303. Fig. Figure 38B shows an example in which the measured point B2 is positioned away from the actual non-area 303 due to a measurement error caused by a reflection condition of the laser light or the like.
[0079] In this case, a convex line is calculated that passes through the vicinity of the actual contour 301. First, an adjacent point A3 is determined. Fig. 38B. The neighboring point A3 is calculated as the intersection of a region of area 302 extending outwards from point A2 at its boundary and a region of the neighboring other area 304 extending outwards. Thus, the neighboring point A3 is extracted at the boundary of area 302. An angle θ0 between area 302 and a region extending from area 304 is calculated. Area 304 contains neighboring points C1 and C2, which are contained in a labeled area adjacent to area 302. Next, virtual lines connecting neighboring point A2 to each of the measured points B1, B2, and B3 in the non-area region 303 are assumed, with angles θ1, θ2, and θ3 measured clockwise from the extended region of area 302.The angles that are no larger than angle θ0 are selected from angles θ1, θ2, and θ3, while angles larger than angle θ0 are removed. In the case of... Fig. In step 38B, points B1 and B3 are selected, and point B2 is removed. An approximate curve connecting the selected points (in this case, points B1 and B3) is calculated as a convex line. Fig. Figure 38B shows a case where some errors are present and the convex line of the approximation curve approximately corresponds to the cross-sectional shape of the non-area region 303. In other words, Fig. Figure 38B shows a case where the approximation curve connects points B1 and B3 and is approximately the same as the curve shown by reference numeral 303. As in Fig. As shown in Figure 38C, in the resulting convex line, a midpoint between the marked surfaces and a region in which the angle of the normal line constructed on the approximation curve is equal to half the angle between the marked surfaces are defined as contour positions (contour crossing points). Fig. Figure 38C shows a case where the actual contour 301 approximately corresponds to the calculated contour positions. The approximate curve of the convex line can be obtained as a line connecting straight lines of very short length. The above processing is performed at several positions on the y-axis, where a line connecting several contour crossing points calculated on the y-axis is calculated as a single contour. Thus, the convex line is obtained that forms a corner of the curved surface as shown in Figure 38C. Fig. Figure 38B shows a convex contour. Accordingly, three-dimensional edges close to the actual contour 301 are calculated based on the convex line.
[0080] Decreasing the value of the distance L increases the computational effort but improves the resolution, thus reducing the difference between the convex line and the actual contour. Conversely, increasing the value of L decreases the computational effort but reduces the resolution, thus increasing the difference between the convex line and the actual contour. Therefore, adjusting the value of L changes the computational accuracy. Fig. 22 is a photograph rather than a drawing, showing an example of three-dimensional edges based on convex lines.
[0081] One method for extracting the three-dimensional edges is to apply surfaces to models. Alternatively, a method of repeatedly adjusting thresholds according to local curvatures can be used, leaving behind something resembling three-dimensional edges.
[0082] Subsequently, provisional two-dimensional edges are extracted from within regions of the two-dimensional images that correspond to the surfaces segmented in step S2. Additionally, edges that approximately correspond to the three-dimensional positions of the three-dimensional edges in the vicinity of the provisional two-dimensional edges are extracted as two-dimensional edges (step S10). Similarly, two-dimensional edges that form figures within surfaces and are difficult to extract as three-dimensional edges are extracted. Fig. 23 is a photograph, rather than a drawing, showing two-dimensional edges to be extracted. For example, the one in Fig. The dotted line shown in 23 is extracted as a two-dimensional edge.
[0083] First, provisional edges are extracted from within regions of the two-dimensional images associated with the surfaces segmented in step S2 using a commonly used edge extraction operator, such as Laplace, Prewitt, Sobel, or Canny. Next, the height (z-value) of a three-dimensional coordinate of a point forming the provisional edge is compared to that of a point forming a three-dimensional edge in the vicinity of the provisional edge. If this difference is not greater than a predefined threshold, the provisional edge is extracted as a two-dimensional edge. In other words, whether the point forming the provisional edge extracted from the two-dimensional image lies on the segmented surface is evaluated.
[0084] Next, the three-dimensional edges extracted in step S9 and the two-dimensional edges extracted in step S10 are integrated to generate three-dimensional polylines 20 (step S11). The three-dimensional polylines 20 are displayed in two-dimensional space and in three-dimensional space (step S12). Fig. Figure 24 is a photograph, rather than a drawing, showing three-dimensional and two-dimensional edges in two-dimensional and three-dimensional space. When an edge is selected in either two-dimensional or three-dimensional space, a corresponding edge is displayed in the other. The three-dimensional polylines 20 are converted into CAD data using a predefined format and output as data (step S13). Thus, the three-dimensional polylines 20 are calculated to understand the object's appearance based on the labeled surfaces. Based on the three-dimensional polylines 20, a three-dimensional model representing the object's appearance can be displayed and printed.The sequence of steps relating to the calculation of the three-dimensional polylines 20 can be used as a process for extracting three-dimensional shapes of an object based on labeled surfaces. As described above, in this embodiment the object is assumed to be an entire series of surfaces, with the three-dimensional shapes of the object being evaluated based on several extracted surfaces. Advantages of the first embodiment
[0085] The advantages of the first embodiment are described below. According to the first embodiment, each point of the point cloud data 2 is segmented into surfaces. Subsequently, three-dimensional edges are extracted based on at least one of the intersection lines of the segmented surfaces and convex lines that convexly encompass the segmented surfaces. Two-dimensional edges are also extracted from within the segmented surfaces. Next, the three-dimensional and two-dimensional edges are integrated. As described above, the point cloud data processing device 1 does not directly extract edges formed on different shapes. Therefore, the extracted edges exhibit little noise, as the three-dimensional and two-dimensional edges have been automatically extracted from the point cloud data 2.Furthermore, since surfaces are easier to extract than edges, the three-dimensional and two-dimensional edges are extracted in a short time.
[0086] According to the first embodiment, the object's appearance is assumed to be a complete series of surfaces. In this case, boundaries that divide adjacent surfaces are calculated from the surface data as three-dimensional edges. This method evaluates the object's shape as a complete series of surfaces, which are easily processed as data, thus minimizing computational effort and enabling a faster quantitative assessment of the object's shape.
[0087] The point cloud data processing device 1 removes points from non-surface areas based on local curvature. Points from non-surface areas containing sharp three-dimensional edges, smooth three-dimensional edges, and noise are removed. The sharp three-dimensional edges are generated by changes in the direction of the surfaces, while the smooth three-dimensional edges are generated by curved surfaces with large local curvature.
[0088] Accordingly, points in non-surface regions containing noise and three-dimensional edges generated by occlusion are removed. Occlusion is a state in which the inner regions are obscured by front regions and cannot be seen. The local surface fit, for example, is an average value of the distances between a local surface and each point used to calculate the local surface. The three-dimensional edges generated by occlusion contain points from inner regions and from front regions where the three-dimensional positions differ significantly. Therefore, according to the local surface fit, points in non-surface regions containing noise and such three-dimensional edges are removed.
[0089] The point cloud data processing device 1 removes points from non-surface areas based on the coplanarity of a target point and its neighboring point. If a target point and its neighboring point are coplanar, a normal line to each point and a line segment connecting the points intersect at right angles, with their inner product being zero. Based on this condition, points from non-surface areas containing noise and sharp three-dimensional edges generated by changes in surface direction are removed.
[0090] Furthermore, the point cloud data processing device adds labels from the nearest surfaces to unlabeled points, thus extending the labeled areas. That is, labels added to points forming the surfaces are added to the points of the non-surface areas closest to the surfaces. This allows three-dimensional edges to be extracted based on at least one of the intersection lines of the segmented surfaces and convex lines that convexly encompass the segmented surfaces.
[0091] Furthermore, the point cloud data consists of two sets of data in which the three-dimensional coordinates of each point are linked to the two-dimensional images. This allows image processing techniques to be applied to extract two-dimensional edges that are difficult to extract by extracting only their three-dimensional coordinates. Additionally, two-dimensional edges are extracted from within areas of the two-dimensional images that correspond to the surfaces segmented by the surface identification unit (SID). Thus, three-dimensional edges that primarily form three-dimensional shapes are removed, and only two-dimensional edges that form figures within the surfaces are extracted. The two-dimensional edges are identified based on their three-dimensional positions in the vicinity of the provisional two-dimensional edge.Thus, the three-dimensional positions of the two-dimensional edges extracted from the two-dimensional images are evaluated based on the three-dimensional positions of the three-dimensional edges that form the outer edges of the surface. 2. Second embodiment
[0092] A point cloud data processing device equipped with a three-dimensional laser scanner is described below. The same components as in the first embodiment are designated with the same reference numerals as in the first embodiment, their descriptions being omitted hereafter. Setup of the point cloud data processing device
[0093] The point cloud data processing device emits rotating distance-measuring light (laser light) towards an object and measures the distance to a target point on the object based on the laser light's travel time. The device then measures the direction of incidence (horizontal angle and elevation) of the laser light and calculates three-dimensional coordinates of the target point based on the distance and incidence direction. The device captures two-dimensional images (RGB intensity of each target point), which are photographs of the object, and forms point cloud data by combining the two-dimensional images and the three-dimensional coordinates. Finally, the device generates three-dimensional polylines from the three-dimensional edges and the two-dimensional edges of the generated point cloud data.
[0094] The Fig. 25 and Fig. Figures 26 are cross-sections showing the structure of the point cloud data processing device. The point cloud data processing device 1 includes a leveling unit 22, a rotation mechanism 23, a main body 27, and a rotation immission unit 28. The main body 27 is formed by a distance measuring unit 24, an imaging unit 25, a control unit 26, and the like. For the sake of simplicity, the description is shown Fig. 26 the point cloud data processing device 1, in which only the rotational immission unit 28 from a lateral direction with respect to the Fig. The cross-sectional direction shown in section 25 is shown.
[0095] The leveling unit 22 comprises a base plate 29 and a lower housing 30. The lower housing 30 is supported by the base plate 29 at three points by a pin 31 and two adjusting screws 32. The lower housing 30 can be tilted on a pivot point of the head of the pin 31. A tension spring 33 is provided between the base plate 29 and the lower housing 30 to prevent them from separating.
[0096] Two leveling motors 34 are provided within the lower housing 30. The two leveling motors 34 are controlled independently of each other by the control unit 26. By activating the leveling motors 34, the adjusting screws 32 rotate via a leveling drive gear 35 and a leveling output gear 36, thereby adjusting the downwardly projecting dimensions of the adjusting screws 32. A tilt sensor 37 is also included (see Fig. 27) provided within the lower housing 30. The two leveling motors 34 are controlled by detection signals from the tilt sensor 37, thereby performing leveling.
[0097] The rotation mechanism 23 has a horizontal rotary drive motor 38 within the lower housing 30. The horizontal rotary drive motor 38 has an output shaft into which a horizontal rotary drive gear 39 is inserted. The horizontal rotary drive gear 39 meshes with a horizontal rotary gear 40. The horizontal rotary gear 40 is provided on a rotary shaft section 41. The rotary shaft section 41 is provided on the central section of the rotating base 42. The rotating base 42 is attached to the lower housing 30 by means of a bearing 43.
[0098] The rotating shaft section 41 is, for example, equipped with a sensor acting as a horizontal angle sensor. The horizontal angle sensor 44 measures a relative rotation angle (horizontal angle) of the rotating shaft section 41 with respect to the lower housing 30. The horizontal angle is input into the control unit 26, which then controls the horizontal rotary drive motor 38 based on the measurement results.
[0099] The main body 27 has a main body housing 45. The main body housing 45 is fixedly attached to the rotating base 42. A lens tube 46 is provided within the main body housing 45. The lens tube 46 has a center of rotation that is concentric with the center of rotation of the main body housing 45. The center of rotation of the lens tube 46 corresponds to an optical axis 47. A beam splitter 48, for dividing the light flow, is provided within the lens tube 46. The beam splitter 48 transmits visible light and reflects infrared light. The optical axis 47 is divided into an optical axis 49 and an optical axis 50 by the beam splitter 48.
[0100] The distance measuring unit 24 is provided on the outer circumferential section of the lens tube 46. The distance measuring unit 24 has a pulsed laser light source 51 as its light-emitting part. The pulsed laser light source 51 and the beam splitter 48 are equipped with a perforated mirror 52 and an intermediate beam-center-changing optical system 53. The beam-center-changing optical system 53 changes the beam center diameter of the laser light. The pulsed laser light source 51, the beam-center-changing optical system 53, and the perforated mirror 52 form a distance measuring light source unit. The perforated mirror 52 directs pulsed laser light from a hole 52a to the beam splitter 48 and reflects laser light that is reflected by the object and returns to a distance measuring light receiver 54.
[0101] The pulsed laser light source 51 is controlled by the control unit 26 and emits infrared pulsed laser light according to a predefined time sequence. The infrared pulsed laser light is reflected to an elevation-adjusting rotary mirror 55 by means of the beam splitter 48. The elevation-adjusting rotary mirror 55 reflects the infrared pulsed laser light towards the object. The elevation-adjusting rotary mirror 55 rotates in the elevation direction and thus converts the optical axis 47, which extends in a vertical direction, into a floodlight axis 56 in the elevation direction. A focusing lens 57 is arranged between the beam splitter 48 and the elevation-adjusting rotary mirror 55 within the lens tube 46.
[0102] The laser light reflected from the object is directed via the elevation adjustment rotary mirror 55, the focusing lens 57, the beam splitter 48, and the perforated mirror 52 to the distance measuring light receiver 54. A reference light is also directed to the distance measuring light receiver 54 via an internal reference light path. Based on the time it takes for the laser light to be reflected and received at the distance measuring light receiver 54, and the time it takes for the laser light to be received at the distance measuring light receiver 54 via the internal reference light path, a distance from the point cloud data processing device 1 to the object is measured.
[0103] The image acquisition unit 25 has an image sensor 58 located at the base of the lens tube 45. The image sensor 58 is formed from a device in which a large number of pixels are assembled and arranged in a flat manner, such as a CCD (charge-coupled device). The position of each pixel of the image sensor 58 is identified by the optical axis 50. For example, the optical axis 50 can be used as the origin, assuming an XY coordinate, thus defining the pixel as a point at the XY coordinate.
[0104] The rotary emission unit 28 is contained in a floodlight housing 59, part of the circumferential wall of which is designed as a floodlight window. As in Fig. As shown in Figure 26, the lens tube 46 has a flange section 60 on which two mirror mounting plates 61 are provided opposite each other. A rotating shaft 62 is arranged between the mirror mounting plates 61. The elevation adjustment rotary mirror 55 is attached to the rotating shaft 52. The rotating shaft 62 has one end into which an elevation gear 63 is inserted. An elevation sensor 64 is provided on the side of the other end of the rotating shaft 62 and measures a rotation angle of the elevation adjustment rotary mirror 55 and outputs the measurement result to the control unit 26.
[0105] One of the mirror mounting plates 61 is mounted with an elevation adjustment drive motor 65. The elevation adjustment drive motor 65 has an output shaft into which a drive gear 66 is inserted. The drive gear 66 meshes with an elevation gear 63. The elevation adjustment drive motor 65 is controlled by the control unit 26 and is thus controlled approximately based on the measurement results of the elevation sensor 64.
[0106] A sighting device 67 is provided on the top of the floodlight housing 59. The sighting device 67 is used for approximate collimation with respect to the object. The collimation direction using the sighting device 67 is one that intersects the direction of extension of the floodlight axis 56 and the direction of extension of the rotating shaft 62 perpendicularly.
[0107] Fig. Figure 27 is a block diagram of a control unit. The control unit 26 receives detection signals from the horizontal angle sensor 44, elevation sensor 64, and tilt sensor 37. The control unit 26 also receives instruction signals from the control device 6. The control unit 26 drives and controls the horizontal rotation drive motor 38, the elevation adjustment drive motor 65, and the leveling motor 34, and also controls the display device 7, which displays operating conditions and measurement results. The control unit 26 is equipped with a removable external storage device, such as a memory card, a hard disk drive, or the like.
[0108] The control unit 26 consists of a processing unit 4, a memory 5, a horizontal drive unit 69, an elevation drive unit 70, a leveling drive unit 71, a distance data processing unit 72, an image data processing unit 73, and the like. The memory 5 stores various programs; an integration and control program executes these programs and various data, such as measurement data, image data, and the like. The programs are sequential programs required for measuring distances, elevations, and horizontal angles; calculation programs; programs for processing measurement data; image processing programs; image display programs for displaying data on the display device 7; and the like. The horizontal drive unit 69 drives and controls the horizontal rotation drive motor 38. The elevation drive unit 70 drives and controls the elevation adjustment drive motor 65.The leveling drive unit 71 drives and controls the leveling motor 34. The distance data processing unit 72 processes distance data received from the distance measuring unit 24, while the image data processing unit 73 processes image data received from the image acquisition unit 25.
[0109] Fig. Figure 28 is a block diagram of the processing unit. The processing unit 4 also includes a linking unit 75 and a grid-forming unit 9 in addition to those shown in Fig. The components shown in Figure 1 and described in the first embodiment are used. The linking unit 75 acquires the distance data from the distance data processing unit 72 and further acquires direction data (horizontal angle and elevation) from the horizontal angle sensor 44 and the elevation sensor 64. The linking unit 75 calculates three-dimensional coordinates (orthogonal coordinates) of each target point with an origin (0, 0, 0) at the position of the point cloud data processing device 1 based on the acquired distance and direction data. For example, if a distance is represented as "r", a horizontal angle is represented as "ϕ", an elevation is represented as "θ", and the three-dimensional coordinates (x, y, z) of a target point are obtained by the following fifth formula. Fifth Formula x=r sin θ cos ϕ y=r sin θ sin ϕ z=r cos θ
[0110] The linking unit 75 also obtains the image data from the image data processing unit 73. The linking unit 75 forms point cloud data 2 in which image data (RGB intensity of each target point) are linked with the three-dimensional coordinates. The point cloud data processing device 1 can acquire point cloud data 2 of the object that have been measured from different directions. Therefore, if one measurement direction is represented as a block, the point cloud data 2 consists of two-dimensional images and three-dimensional coordinates of several blocks.
[0111] Fig. Figure 29 is a view showing a linking structure of three-dimensional coordinates and two-dimensional images of the point cloud data. The figures on the left in Fig. 29 is a structure of two-dimensional data, while the figures on the right are in Fig. 29 is a structure of three-dimensional data. The two-dimensional data consists of a block number (blk), block sizes (nx, ny), a transformation matrix (RT), an index matrix (IDX), stored points (pts), original images (rgb, r, g, b, u), processed images (nvx, nvy, nvz, fe, mdx, mdy, mdz, crx, cry, crz, crv), a number of two-dimensional edges (eds), a number of points forming the two-dimensional edges (ne), and a list of two-dimensional edge points.
[0112] The number of blocks (blk) represents the number of measurement directions, while the block sizes (nx, ny) represent the image size (number of horizontal and vertical pixels) within a block. The transformation matrix (RT) represents a 4x4 transformation matrix used for an affine transformation of point cloud data from a second block and subsequent blocks into the coordinate system of a first block. The index matrix (IDX) is an index used to reference a two-dimensional image of a block for three-dimensional coordinates (x, y, z). The stored points (pts) represent the number of points stored in a block. The original image consists of RGB intensity values (rgb, r, g, b) and their brightness (u).
[0113] According to the processing described in the first embodiment, the processed images are stored in the two-dimensional data. The processed images consist of intensity values of the three axes of normal vectors (nvx, nvy, nvz), the fit to local surfaces (fe), grayscale-processed (0.255) means (mdx, mdy, mdz) of the three axes of normal vectors in local areas, grayscale-processed (0.255) standard deviations (crx, cry, crz) of the three axes of normal vectors in the local areas, and local curvatures (crv) of the normal vectors in the local areas.
[0114] Following the processing of the two-dimensional edge extraction, as described in the first embodiment, the number of two-dimensional edges (eds) is subsequently stored in the two-dimensional data. Additionally, the number of points forming the two-dimensional edges (ne) and a list of two-dimensional edge points (ILIST) are also stored in the two-dimensional data. The RGB intensity values and the brightness (rgb, r, g, b, u) of each point can be retrieved from the list of two-dimensional edge points.
[0115] On the other hand, the three-dimensional data consists of a total number of points (n), three-dimensional coordinates (x, y, z), block numbers (blk), positions in an image (i, j), processed data (nvx, nvy, nvz, fe, mdx, mdy, mdz, mnvx, mnvy, mnvz, sdnvx, sdnvy, sdnvz, crv) and an internal index matrix (IDXPT).
[0116] The total number of points (n) is the total number of points across all blocks, where all points are transformed into three-dimensional coordinates (x, y, z) of the first block's coordinate system. The RGB intensity values and brightness (rgb, r, g, b, u) of each point can be recovered using the block number (blk) and its position (i, j) in the image. The internal index matrix (IDXPT) is used to recover a point identification number (ptid).
[0117] According to the processing described in the first embodiment, the processed data are stored in the three-dimensional data. The processed data consist of intensity values of the three axes of the normal vectors (nvx, nvy, nvz), accuracy of fit to local surfaces (fe), grayscale-processed (0.255) mean values (mdx, mdy, mdz) of the three axes of the normal vectors in the local areas, mean values (mnvx, mnvy, mnvz) of the three axes of the normal vectors in the local areas, standard deviations (sdnvx, sdnvy, sdnvz) of the three axes of the normal vectors in the local areas, and local curvatures of the normal vectors in the local areas.
[0118] Following the processing of the three-dimensional edge extraction, as described in the first embodiment, the number of three-dimensional edges (eds) is subsequently stored in the three-dimensional data. Additionally, the number of points forming the three-dimensional edges (ne) and a list of three-dimensional edge points (ELIST) are also stored in the three-dimensional data. The three-dimensional coordinates (x, y, z) of each point can be retrieved from the list of three-dimensional edge points (ELIST).
[0119] As in Fig. As shown in Figure 28, the linking unit 75 outputs the above point cloud data 2 to the grid building unit 9. The grid building unit 9 forms a grid (mesh) with equal spacing and registers the nearest points at the grid intersections if the distances between adjacent points in the point cloud data 2 are not constant. Alternatively, the grid building unit 9 corrects all points to the grid intersections using a linear interpolation method or a bicubic method. If the distances between the points in the point cloud data 2 are constant, the processing by the grid building unit 9 can be omitted.
[0120] The processing of the grid formation is described below. Fig. Figure 30 shows point cloud data in which distances between the points are not constant, while Fig. 31 shows a formed grid. As in Fig. As shown in figure 30, an average horizontal angle H is calculated. 1-N Each line is obtained, where a difference ΔH i,j The mean horizontal angle between the lines is calculated. Then the difference ΔH is determined. i,j The values are averaged and obtained as the horizontal spacing ΔH of the grid (sixth formula). Regarding the distances in the vertical direction, a distance ΔV is used. N,H The distance between adjacent points on each line in the vertical direction is calculated. Then, an average of ΔV is determined. N,H The vertical distance ΔV is obtained in the entire image of an image size W, H (seventh formula). As in Fig. As shown in Figure 31, a grid is formed with the calculated horizontal distance ΔH and the vertical distance ΔV. Sixth Formula ∑ΔHi,jN−1=ΔH Seventh formula ∑ΔVi,jW*H=ΔV
[0121] Next, the nearest points on the intersections of the formed grid are registered. In this case, predefined thresholds are set for the distances from each point to the intersections to limit the register of points. For example, the thresholds can be set to half the horizontal distance ΔH and half the vertical distance ΔV. As in the case of the linear interpolation method and the bicubic method, all points can be corrected by weighting them according to their distances to the intersections. In this case, when interpolation is performed, the points are not necessarily measured points.
[0122] Fig. 32 is a photograph rather than a drawing, showing point clouds registered at the intersections of a grid in a three-dimensional space. Fig. 33 is a photograph rather than a drawing, showing point clouds registered at the intersections of a grid in a two-dimensional space. Fig. 33 shows black pixels, indicating that there is no loss of measured data in the point cloud data 2, or that there are no surrounding points within limited distances from the intersections of the grid. Advantages of the second embodiment
[0123] Advantages of the second embodiment are described below. According to the second embodiment, point cloud data, consisting of two-dimensional images and three-dimensional coordinates, is obtained by the three-dimensional laser scanner. The point cloud data is generated by combining two-dimensional images and three-dimensional coordinates. Thus, three-dimensional edges forming three-dimensional shapes are extracted based on the three-dimensional coordinates. Additionally, two-dimensional edges (points and lines whose color densities change abruptly) forming figures within the surfaces are extracted based on the two-dimensional images. Accordingly, while the two-dimensional and three-dimensional edges are displayed simultaneously, extraction and verification are performed. Fig. 24).
[0124] Furthermore, if the distances between points in the point cloud data are not constant, a grid with equal spacing is created, with the nearest points being recorded at the grid intersections. The distances between the points in the point cloud data are then corrected accordingly. 3. Third embodiment
[0125] A point cloud data processing device equipped with an image measurement unit is described below. The same components as in the first and second embodiments are designated with the same reference numerals as in the first and second embodiments, their descriptions being omitted hereafter. Setup of the point cloud data processing device
[0126] The point cloud data processing device photographs an object from different directions in overlapping photographic areas and aligns feature points in the overlapping images. It then calculates three-dimensional coordinates for its feature points based on the position and direction of a photographic unit and the positions of the feature points in the overlapping images. The position and direction of the photographic unit are calculated preliminaryly. Next, the point cloud data processing device identifies misalignment points based on the inequality of the feature points in the overlapping images, the measurement space, and a reference shape to form point cloud data. The point cloud data contains two-dimensional images and three-dimensional coordinates that are linked together.Furthermore, the point cloud data processing device generates three-dimensional polylines, consisting of three-dimensional edges and two-dimensional edges, from the point cloud data.
[0127] Fig. Figure 34 is a block diagram showing the setup of the point cloud data processing device. The point cloud data processing device is equipped with photography units 76, 77, a feature projector 78, an image data processing unit 73, a processing unit 4, a memory 5, a control device 6, a display device 7, and a data output unit 8. The photography units 76, 77 can be digital cameras, video cameras, CCD cameras (charge-coupled cameras) for industrial measurements, CMOS cameras (complementary metal-oxide semiconductor cameras), or the like. The photography units 76, 77 photograph an object from different positions to overlap the photographed areas. The number of photography units can be 1 or greater, depending on the size and shape of the object.
[0128] The feature projector 78 can be a projector, a laser unit, or the like. The feature projector 78 projects random dot patterns, patterns from a point source or slit light, or similar devices onto the object. As a result, areas with fewer features of the object are characterized. This is primarily useful in cases requiring precise measurement of medium-sized to small artificial objects with few patterns. For measurements of relatively large objects, usually outdoors, and in cases where precise measurement is not required, or where the object already has features or patterns can be applied to it, the feature projector 78 is not necessary.
[0129] The image data processing unit 73 transforms the overlapping images captured by the photography units 76 and 77 into image data so that the processing unit 4 can process them. Memory 5 stores various programs and data, such as point cloud data and image data. The programs include those for measuring the photography position and direction, as well as those for extracting feature points from the overlapping images and aligning them. Furthermore, the programs contain those for calculating three-dimensional coordinates based on the photography position and direction, and the positions of the feature points in the overlapping images.Furthermore, the programs include programs for identifying misalignment points and for generating point cloud data, as well as programs for extracting surfaces from the point cloud data and for extracting three-dimensional and two-dimensional edges. The programs also include programs for displaying integrated edges on the display device 7.
[0130] The control device 6 sends instruction signals to the processing unit 4. The display unit 7 shows processed data from the processing unit 4, while the data output unit 8 outputs the processed data from the processing unit 4. The processing unit 4 acquires the image data from the image data processing unit 73.
[0131] The processing unit 4 measures the position and direction of the photographic units 76, 77 based on photographed images of a calibration object 79 when two or more stationary cameras are used. The processing unit 4 also extracts feature points from within the overlapping images of the object and matches them. When one or more non-stationary cameras are used, two or more images are photographed, detecting multiple matched points (6 or more points) in each image. The processing unit 4 then calculates the position and direction of the photographic units 76, 77. Based on the calculated position and direction, and the position of the feature points in the overlapping images, the processing unit 4 calculates three-dimensional coordinates of the object to form point cloud data 2.Furthermore, the processing unit 4 extracts surfaces from the point cloud data 2, and then extracts and integrates three-dimensional edges and two-dimensional edges to create three-dimensional polylines of the object.
[0132] Fig. Figure 35 is a block diagram of the processing unit. Processing unit 4 has the following components in addition to those shown in Figure 35. Fig. The processing unit 4 comprises the components shown in Figure 1. That is, the processing unit 4 further includes a photographic position and direction measurement unit 81, a feature point matching unit 82, a background removal unit 83, a feature point extraction unit 84, and a matching point unit 85. The processing unit 4 also includes a three-dimensional coordinate calculation unit 86, a mismatched point identification unit 87, an inequality evaluation unit 88, a spatial evaluation unit 89, and a shape evaluation unit 90.
[0133] The photographic position and direction measurement unit 81 acquires photographed images of the calibration object 79 from the image data processing unit 73 when two or more fixed cameras are used. The calibration object 79 is equipped with targets 80 (retro target, code target, or color code target) at predetermined distances. The photographic position and direction measurement unit 81 detects image coordinates of the targets 80 from the photographed images of the calibration object 79 and measures the position and direction of the photographic units 76, 77 using generally known methods. The method can be a relative orientation method, a single-photo orientation method, a DLT method (DLT = direct linear transformation), or a bundle alignment method. The relative orientation method, the single-photo orientation method, the DLT method, and the bundle alignment method can be used separately or in combination.When one or more non-stationary cameras are used, two or more images are photographed, detecting multiple aligned points (6 or more points) in each image. Subsequently, the photographic position and direction measuring unit 81 resolves the position and direction of the photographic units 76, 77 by generally known methods. The method can be a relative orientation method, a single-photo orientation or DLT method, or a bundle alignment method. The relative orientation method, the single-photo orientation or DLT method, and the bundle alignment method can be used separately or in combination.
[0134] The feature point matching unit 82 acquires the overlapping images of the object from the image data processing unit 73 and then extracts and matches feature points of the object from the overlapping images. The feature point matching unit 82 is comprised of the background removal unit 83, the feature point extraction unit 84, and the matching point search unit 85. The background removal unit 83 generates a background-free image containing only the object. In this case, a background image that does not contain the object is subtracted from the photographed image of the object. Alternatively, an operator selects target positions using the control device 6, or target positions are automatically extracted using pre-registered models or by automatically detecting areas with abundant features.It is not necessary to remove the background; processing of the background removal unit 26 can be omitted.
[0135] The feature point extraction unit 84 extracts feature points from the image without background. To extract the feature points, a differentiation filter is used, such as Sobel, Laplace, Prewitt, and Roberts. The matching point search unit 85 searches for matched points in the other image that correspond to the feature points extracted from one image. To search for the matched points, a pattern matching procedure is used, such as a sequential similarity detection algorithm (SSDA), a normalized correlation procedure, or an orientation code matching (OCM).
[0136] The three-dimensional coordinate calculation unit 86 calculates three-dimensional coordinates of each feature point based on the position and direction of the photographic units 76, 77, which are measured by the photographic position and direction measurement unit 81. This calculation is also performed based on image coordinates of the feature points, which are matched by the feature point matching unit 82. The mismatch point identification unit 87 identifies mismatch points based on at least one inequality, the measurement space, and a reference shape. The mismatch point identification unit 87 is formed by the inequality evaluation unit 88, the space evaluation unit 89, and the shape evaluation unit 90.
[0137] The inequality evaluation unit 88 forms a histogram of the inequality of the feature points that have been matched in the overlapping images. Subsequently, the inequality evaluation unit 88 identifies feature points whose inequality lies outside a prescribed range based on a mean inequality value as mismatch points. For example, a mean value of ±1.5 σ (standard deviation) can be set as the threshold. The spatial evaluation unit 89 defines a space within a specified distance from the center of gravity of the calibration object 79 as the measurement space. Furthermore, the spatial evaluation unit 89 identifies feature points as mismatch points if the three-dimensional coordinates of the feature points, calculated by the three-dimensional coordinate calculation unit 86, lie outside the measurement space.The shape evaluation unit 90 creates or derives a reference shape (coarse surface) of the object from the three-dimensional coordinates of the feature points calculated by the three-dimensional coordinate calculation unit 86. Additionally, the shape evaluation unit 90 identifies mismatch points based on the distances between the reference shape and the three-dimensional coordinates of the feature points. For example, a triangulated irregular network (TIN) with one side not less than a specified length is created based on the feature points. The TIN with one long side is then removed, creating coarse surfaces. Next, mismatch points are identified based on the distances between the coarse surfaces and the feature points.
[0138] The misalignment points identified by the misalignment point identification unit 87 are removed, thereby forming point cloud data 2. As described in the second embodiment, the point cloud data 2 has a directly linked structure in which the two-dimensional images are linked to three-dimensional coordinates. If distances between adjacent points of the point cloud data 2 are not constant, as described in the second embodiment, the processing unit 4 must include the grid formation unit 9 between the misalignment point identification unit 87 and the area extraction unit 10. In this case, the grid formation unit 9 forms a grid (mesh) with equal spacing and registers the nearest points at the grid intersections.Subsequently, as described in the first embodiment, surfaces are extracted from the point cloud data 2, whereby three-dimensional edges and two-dimensional edges are extracted and integrated. Advantages of the third embodiment
[0139] The advantages of the third embodiment are described below. According to the third embodiment, point cloud data is obtained by the image measurement unit, consisting of two-dimensional images and three-dimensional coordinates. 4. Fourth embodiment
[0140] The following describes a modification example of the method for extracting three-dimensional edges. This modification example is a further example of the method for extracting three-dimensional shapes from an object based on labeled surfaces. The same components as in the first to third embodiments are designated with the same reference numerals as in the first to third embodiments, their descriptions being omitted below.
[0141] Fig. 36A shows a sharp three-dimensional edge of a straight line, Fig. 36B is a smooth three-dimensional edge of a straight line, Fig. 36C shows a sharp three-dimensional edge of a curved line, and Fig. 36B shows a smooth three-dimensional edge of a curved line. Fig. 37 is a cross-section of a smooth three-dimensional edge.
[0142] The Fig. 36A and Fig. 36C shows sharp three-dimensional edges using solid lines. As in the three-dimensional edge extraction step 9 in Fig. As described in section 1, the sharp three-dimensional edges are extracted as intersection lines of surfaces (intersection lines of a pair of a flat surface and a flat surface, a pair of a flat surface and a curved surface, and a pair of a curved surface and a curved surface). On the other hand, the Fig. 36B and Fig. 36D smooth three-dimensional edges using dashed lines. As in Fig. As shown in Figure 37, each smooth three-dimensional edge is a virtual three-dimensional edge 93 of an intersection line of surfaces 91 and 92, which is defined in surface extraction step S10 in Fig.1 have been extracted. Alternatively, an equation can be calculated for a column 94 that touches the surfaces 91 and 92 and has points outside the surfaces 91 and 92, whereby a real three-dimensional edge 95 can be obtained on the basis of the radius of the column 94. Advantages of the fourth embodiment
[0143] The advantages of the fourth embodiment are described below. According to the fourth embodiment, three-dimensional edges are extracted with increased accuracy, depending on the type of three-dimensional edge. Commercial applicability
[0144] The present invention can be used for techniques of generating data of three-dimensional shapes of objects from point cloud data of the same.
Claims
[1] A point cloud data processing device (4) for processing point cloud data containing points of non-surface areas and surface areas of an object, the device comprising: a non-area removal unit (16) for removing the points of the non-area regions from the point cloud data; an area labeling unit (17) for adding identical labels to points in the same areas except the points removed by the non-area removing unit (16) to thereby segment the areas; a three-dimensional edge extraction unit (11) for extracting three-dimensional edges based on at least one of the intersection lines of the segmented surfaces and convex lines convexly enclosing the segmented surfaces; a two-dimensional edge extraction unit (12) for extracting two-dimensional edges from within the segmented surfaces; an edge integration unit (13) for integrating the three-dimensional edges and the two-dimensional edges; a normal line calculation unit (14) that calculates local areas having each point of the point cloud data at the center and calculates the normal lines of the local areas; and a local curvature calculation unit (15) that calculates standard deviations of three axis components of the normal line and obtains a square root of the sum of the squares of the standard deviations to thereby calculate a local curvature. [2] The point cloud data processing apparatus according to claim 1, wherein the non-surface removing unit (16) removes the points of the non-surface regions based on the local curvature. [3] The point cloud data processing apparatus (4) according to claim 1, wherein the non-surface removing unit (16) removes the points of the non-surface regions based on the fitting accuracy of the points to the local surfaces. [4] The point cloud data processing apparatus (4) according to claim 1, wherein the non-surface removing unit (16) removes the points of the non-surface regions based on the coplanarity of a target point and the neighboring point. [5] The point cloud data processing apparatus (4) according to claim 1, wherein the area labeling unit (17) adds the identical labels to the points in the same areas based on an angle difference of the normal lines of a target point and the neighboring point. [6] The point cloud data processing apparatus (4) according to claim 1, further comprising a noise removal unit (18) that removes noise based on areas of the segmented surfaces. [7] The point cloud data processing apparatus (4) according to claim 1, further comprising a label extending unit (19) that adds labels of the nearest areas to points other than the points labeled by the area labeling unit (17) to extend the labels. [8] A point cloud data processing apparatus (4) according to claim 1, wherein the point cloud data is data in which three-dimensional coordinates of each point are linked to two-dimensional images. [9] The point cloud data processing apparatus (4) according to claim 8, wherein the two-dimensional edge extraction unit (12) extracts two-dimensional edges from within regions of the two-dimensional images associated with the segmented surfaces. [10] The point cloud data processing apparatus (4) according to claim 8, wherein the two-dimensional edge extraction unit (12) extracts the two-dimensional edges from within regions of the two-dimensional images associated with the segmented surfaces, and identifies the two-dimensional edges based on three-dimensional positions of three-dimensional edges in the vicinity of the two-dimensional edges. [11] Point cloud data processing apparatus (4) according to claim 1, further comprising: a rotation emission unit (28) for rotatingly emitting distance measuring light onto the object; a distance measuring unit (24) for measuring a distance from the point cloud data processing device (4) to a target point on the object based on the travel time of the distance measuring light; an emission direction measuring unit for measuring the emission direction of the distance measuring light; and a three-dimensional coordinate calculation unit (74) for calculating three-dimensional coordinates of the target point based on the distance and the emission direction. [12] A point cloud data processing apparatus (4) according to claim 1, further comprising a grid forming unit (9) that forms a grid with equal intervals and registers the nearest points on intersection points of the grid when distances between the points of the point cloud data are not constant. [13] The point cloud data processing apparatus (4) according to claim 11, further comprising; an imaging unit (25) for taking an image of the object and obtaining a two-dimensional image; and a linking unit (75) for forming point cloud data by linking the three-dimensional coordinates of the target point with the two-dimensional image. [14] Point cloud data processing apparatus (4) according to claim 1, further comprising: a photographing unit (76; 77) for taking images of the object in overlapping photographing areas from different directions to thereby obtain overlapping images; a feature point matching unit (82) for matching feature points in the overlapping images; a photographing position and direction measuring unit (81) for measuring the position and direction of the photographing unit; and a three-dimensional coordinate calculation unit (74) for calculating three-dimensional coordinates of the feature points based on the position and direction of the photographing unit (76; 77) and the positions of the feature points in the overlapped images. [15] Point cloud data processing program for processing point cloud data containing points from non-surface areas and surface areas of an object, which enables a computer to perform steps including: a non-area removal step (S5) for removing the points of the non-area regions from the point cloud data; a surface labeling step (S6) for adding identical labels to points in the same surfaces except the points removed by the non-surface removing step (S5) to thereby segment the surfaces; a three-dimensional edge extraction step (S9) for extracting three-dimensional edges based on at least one of the intersection lines of the segmented surfaces and convex lines convexly enclosing the segmented surfaces; a two-dimensional edge extraction step (S10) for extracting two-dimensional edges from within the segmented surfaces; an edge integration step (S11) for integrating the three-dimensional edges and the two-dimensional edges; a normal line calculation step (S3) for calculating local areas having each point of the point cloud data at the center and for calculating normal lines of the local areas; and a local curvature calculation step (S4) for calculating standard deviations of three axis components of the normal line and obtaining a square root of the sum of the squares of the standard deviations to thereby calculate a local curvature. [16] A point cloud data processing method for processing point cloud data containing points of non-surface areas and surface areas of an object, the method comprising: a non-area removal step (S5) for removing the points of the non-area regions from the point cloud data; a surface labeling step (S6) for adding identical labels to points in the same surfaces except the points removed by the non-surface removing step (S5) to thereby segment the surfaces; a three-dimensional edge extraction step (S11) for extracting three-dimensional edges based on at least one of the intersection lines of the segmented surfaces and convex lines convexly enclosing the segmented surfaces; a two-dimensional edge extraction step (S12) for extracting two-dimensional edges from within the segmented surfaces; an edge integration step (S11) for integrating the three-dimensional edges and the two-dimensional edges; a normal line calculation step (S3) for calculating local areas having each point of the point cloud data at the center and for calculating normal lines of the local areas; and a local curvature calculation step (S4) for calculating standard deviations of three axis components of the normal line and obtaining a square root of the sum of the squares of the standard deviations to thereby calculate a local curvature.
Citation Information
Patent Citations
Integrated device for imaging and modeling three-dimensional objects
JP2000509150A
Automatic generation device and automatic generation method of three-dimensional shape, program and storage medium recording the program
JP2004272459A
Method for processing survey data
JP2005024370A
