WO2021017471A1 - Point cloud filtering method based on image processing, apparatus, and storage medium - Google Patents
Point cloud filtering method based on image processing, apparatus, and storage medium Download PDFInfo
- Publication number
- WO2021017471A1 WO2021017471A1 PCT/CN2020/078288 CN2020078288W WO2021017471A1 WO 2021017471 A1 WO2021017471 A1 WO 2021017471A1 CN 2020078288 W CN2020078288 W CN 2020078288W WO 2021017471 A1 WO2021017471 A1 WO 2021017471A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- point cloud
- coordinates
- image
- initial point
- integer
- Prior art date
Links
- 238000001914 filtration Methods 0.000 title claims abstract description 45
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000012545 processing Methods 0.000 title claims abstract description 35
- 238000004422 calculation algorithm Methods 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 abstract description 4
- 238000013507 mapping Methods 0.000 abstract description 4
- 230000000717 retained effect Effects 0.000 abstract description 4
- 230000015654 memory Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 11
- 230000000694 effects Effects 0.000 description 10
- 238000004590 computer program Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 3
- 238000012876 topography Methods 0.000 description 3
- 230000006872 improvement Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/20—Image enhancement or restoration using local operators
- G06T5/30—Erosion or dilatation, e.g. thinning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10028—Range image; Depth image; 3D point clouds
Definitions
- the present invention relates to the technical field of data processing, in particular to a point cloud filtering method, device and storage medium based on image processing.
- non-contact three-dimensional measurement equipment can obtain the topography information of objects without touching the object, and it is widely used.
- the scanning accuracy has been steadily improved, It is inevitable that there will be problems such as lens distortion and inaccurate camera parameter estimation, resulting in the acquired topography information containing a lot of noise.
- the topography information is usually presented in the form of point clouds, so it is necessary to denoise the point clouds to ensure subsequent work Accuracy.
- Existing solutions usually process point clouds based on three-dimensional space, and remove noise by calculating the relationship between the initial point clouds.
- the initial point cloud acquired by the three-dimensional measuring equipment often has a huge amount of data, and the direct processing of the initial point cloud has a large amount of calculation. , The shortcomings of low efficiency and high complexity.
- the purpose of the present invention is to provide a point cloud filtering method, device and storage medium based on image processing, reducing the amount of point cloud denoising calculations, and completing point cloud filtering quickly and efficiently.
- the present invention provides a point cloud filtering method based on image processing, which includes the following steps:
- the client obtains the initial point cloud, and filters the scattered points of the initial point cloud;
- the client obtains the initial point cloud coordinates corresponding to the initial point cloud in the point cloud coordinate system, and numbers the initial point cloud coordinates to obtain a coordinate number uniquely corresponding to the initial point cloud coordinates;
- the client converts the initial point cloud coordinates into integer point cloud coordinates whose data type is integer, establishes an image coordinate system, and maps the integer point cloud coordinates to the image coordinate system;
- the client acquires a mapped image composed of data in the image coordinate system, and after extracting connected components from the mapped image, sets the connected domain with the most integer point cloud coordinates corresponding to the image coordinates as the target connected Domain, and filter out other connected domains;
- the scattered points in the initial point cloud are filtered by the k nearest neighbor algorithm.
- the image coordinate system is established according to the origin, x-axis and y-axis of the point cloud coordinate system.
- the coordinate value in the integer point cloud coordinate is a value obtained by rounding the coordinate value of the initial point cloud coordinate.
- the method further includes: performing a closing operation on the mapped image to bridge the broken area.
- the present invention provides a device for performing a point cloud filtering method based on image processing, including a CPU unit configured to perform the following steps:
- the client obtains the initial point cloud, and filters the scattered points of the initial point cloud;
- the client obtains the initial point cloud coordinates corresponding to the initial point cloud in the point cloud coordinate system, and numbers the initial point cloud coordinates to obtain a coordinate number uniquely corresponding to the initial point cloud coordinates;
- the client converts the initial point cloud coordinates into integer point cloud coordinates whose data type is integer, establishes an image coordinate system, and maps the integer point cloud coordinates to the image coordinate system;
- the client acquires a mapped image composed of data in the image coordinate system, and after extracting connected components from the mapped image, sets the connected domain with the most integer point cloud coordinates corresponding to the image coordinates as the target connected Domain, and filter out other connected domains;
- the CPU unit is further configured to perform the following steps: performing a closing operation on the mapped image to bridge the fractured area.
- the present invention provides a device for performing a point cloud filtering method based on image processing, including at least one control processor and a memory for communicating with the at least one control processor; the memory stores at least An instruction executed by a control processor, the instruction is executed by at least one control processor, so that the at least one control processor can execute the above-mentioned point cloud filtering method based on image processing.
- the present invention provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to make a computer execute the above-mentioned image processing-based point cloud filtering method.
- the present invention also provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer , Let the computer execute the point cloud filtering method based on image processing as described above.
- the present invention provides a point cloud filtering method, device and storage medium based on image processing, which scatters the obtained initial point cloud Filter to avoid the impact of scattered points on subsequent processing; after the initial point cloud coordinates corresponding to the filtered initial point cloud are uniquely numbered, the point cloud coordinates are mapped to the image coordinate system, and the initial point cloud coordinates are usually It is a floating point type, so the data type of the initial point cloud coordinates is converted to an integer type to make the mapping more accurate; at the same time, after the connected components of the mapped image are extracted, the image coordinates in the connected domain are the most corresponding integer point cloud coordinates.
- the connected domain of which retains the unique number of the initial point cloud coordinates corresponding to the image coordinates in this connected domain.
- the corresponding data in other connected domains filtered out is noise data, and the point cloud restored by the unique number is the filtered
- the target point cloud does not need to be compared one by one, the calculation amount is small, and the point cloud noise is quickly filtered out.
- Fig. 1 is a flowchart of a method according to an embodiment of the present invention
- Fig. 2 is an example diagram of an initial point cloud according to an embodiment of the present invention.
- FIG 3 is an example diagram of the effect of filtering scattered points in the initial point cloud according to an embodiment of the present invention.
- FIG. 4 is an example diagram of the effect of a mapped image according to an embodiment of the present invention.
- FIG. 5 is an example diagram of the effect of a closed operation on a mapped image according to an embodiment of the present invention
- FIG. 6 is an example diagram of the effect of acquiring target connected domains according to an embodiment of the present invention.
- FIG. 7 is a diagram showing an example of the effect of point cloud filtering in an embodiment of the present invention.
- Fig. 8 is a schematic diagram of an apparatus for executing a point cloud filtering method based on image processing according to an embodiment of the present invention.
- the data of the present invention can be collected by common collection equipment on the market.
- the present invention does not involve the improvement of the collection equipment, but only processes the data acquired by the collection equipment.
- the first embodiment of the present invention provides a point cloud filtering method based on image processing, including the following steps:
- Step S100 the client obtains the initial point cloud, and filters scattered points of the initial point cloud;
- Step S200 The client obtains the initial point cloud coordinates corresponding to the initial point cloud in the point cloud coordinate system, and numbers the initial point cloud coordinates to obtain a coordinate number uniquely corresponding to the initial point cloud coordinates;
- Step S300 The client converts the initial point cloud coordinates into integer point cloud coordinates whose data type is integer, establishes an image coordinate system, and maps the integer point cloud coordinates to the image coordinate system ;
- Step S400 The client acquires a mapped image composed of data in the image coordinate system, and after extracting connected components from the mapped image, sets the image coordinates corresponding to the connected domain with the most integer point cloud coordinates Is the target connected domain, and filter out other connected domains;
- Step S500 Obtain the coordinate numbers included in the target connected domain, restore the integer point cloud coordinates to the corresponding initial point cloud coordinates according to the coordinate numbers, and map them to the point cloud coordinate system to complete Point cloud filtering.
- the initial point cloud coordinates are three-dimensional coordinates, that is, including the x-axis, y-axis, and z-axis. Therefore, the initial point cloud coordinates in this embodiment can be expressed as (x, y, z), then step S200 After the initial point cloud coordinates are numbered, the initial point cloud coordinates are (x i , y i , z i ), and its unique coordinate number is i. The specific value of i is determined by the order of the initial point cloud coordinates, for example, according to x When the axis values are arranged in order, the coordinate with the smallest x-axis value is x 1 , and so on, so I won’t repeat them here.
- the data type of the initial point cloud usually obtained is floating point. If mapping is to be performed, the floating point data needs to be converted into integer data. This embodiment The rounding method is preferred to obtain integer data more easily.
- step S300 After the mapping is completed in step S300 and the floating-point point cloud coordinates are converted into integer coordinates, there is a situation where one or more floating-point coordinates correspond to an integer coordinate, that is, an integer point
- an integer point When cloud coordinates are mapped to image coordinates, there will be one or more integer point cloud coordinates corresponding to one image coordinate, and the effect diagram is shown in Figure 4.
- the coordinate number corresponding to the integer point cloud coordinate is unique, and the image coordinate also corresponds to the integer point cloud coordinate and its corresponding coordinate number. Therefore, it is possible to distinguish the integer point cloud coordinates corresponding to the image coordinate.
- step S400 the number of integer point cloud coordinates corresponding to the image coordinates in each connected domain is counted, and the connected domain with the largest number of integer point cloud coordinates corresponding to the image coordinates in the connected domain is reserved. , That is, the coordinate number corresponding to the integral point cloud coordinate of the image coordinate in this connected domain is retained, and other connected domains are filtered out, that is, the coordinate number corresponding to the integral point cloud coordinate of the image coordinate in other connected domains is filtered out, and
- the effect example is shown in Figure 6.
- step S400 the number corresponding to the integer point cloud coordinates retained in step S400 is restored to the corresponding initial point cloud coordinates, that is, the integer point cloud coordinates with inconsistent coordinate numbers in the connected domain are filtered out, thereby achieving Filter out the noise point cloud, and only keep the target point cloud. Because each initial point cloud coordinate is numbered, the corresponding initial point cloud coordinate is found in the initial point cloud according to the reserved number in step S400, and point cloud filtering is realized. The effect example is shown in Figure 7. .
- the scattered points in the initial point cloud are filtered by the k nearest neighbor algorithm.
- the filtering of scattered points can be completed by any algorithm to achieve the effect of filtering scattered points.
- This embodiment preferably adopts the k nearest neighbor algorithm to achieve efficient and accurate filtering of scattered points.
- the algorithm can be selected according to actual needs.
- the image coordinate system is established according to the origin, x-axis and y-axis of the point cloud coordinate system.
- the length H and the width W of the image coordinate system respectively satisfy the following formulas:
- x k is the abscissa value of the integer point cloud coordinate converted from the initial point cloud coordinate with the coordinate number k minus the minimum coordinate value
- y k is the initial point cloud coordinate with the coordinate number k minus the minimum coordinate value The ordinate value of the integer point cloud coordinate after conversion.
- the coordinate value in the integer point cloud coordinate is a value obtained by rounding the coordinate value of the initial point cloud coordinate.
- rounding is the preferred embodiment of this embodiment, and methods such as rounding up or rounding down can also be used to obtain integer data, and the specific method can be adjusted according to actual needs.
- the method before extracting connected components from the mapped image, the method further includes: performing a closing operation on the mapped image to bridge the fractured area.
- the closed operation is preferably used to bridge the fractured areas to improve the accuracy of the image.
- the schematic diagram of the effect is shown in Figure 5, and it should be noted that the closed The operation is an algorithm in the prior art, and this embodiment does not involve the improvement of the closed operation algorithm, and will not be repeated here.
- the second embodiment of the present invention also provides a device for performing a point cloud filtering method based on image processing.
- the device is a smart device, such as a smart phone, a computer, and a tablet. Take the computer as an example.
- the computer 8000 for performing a point cloud filtering method based on image processing includes a CPU unit 8100, and the CPU unit 8100 is configured to perform the following steps:
- the client obtains the initial point cloud, and filters the scattered points of the initial point cloud;
- the client acquires the initial point cloud coordinates corresponding to the initial point cloud in the point cloud coordinate system, and numbers the initial point cloud coordinates to obtain a coordinate number uniquely corresponding to the initial point cloud coordinates;
- the client converts the initial point cloud coordinates into integer point cloud coordinates whose data type is integer, establishes an image coordinate system, and maps the integer point cloud coordinates to the image coordinate system;
- the client acquires a mapped image composed of data in the image coordinate system, and after extracting connected components from the mapped image, sets the connected domain with the most integer point cloud coordinates corresponding to the image coordinates as the target connected Domain, and filter out other connected domains;
- the CPU unit 8100 is further configured to perform the following steps: performing a closing operation on the mapped image to bridge the fractured area.
- the computer 8000 and the CPU unit 8100 can be connected by a bus or other means.
- the computer 8000 also includes a memory.
- the memory can be used to store non-transitory software programs and non-transitory Computer-executable programs and modules, such as program instructions/modules corresponding to the device for executing the point cloud filtering method based on image processing in the embodiment of the present invention.
- the computer 8000 runs the non-transitory software programs, instructions, and modules stored in the memory to control the CPU unit 8100 to execute various functional applications and data processing for performing the point cloud filtering method based on image processing, that is, to implement the above method Example point cloud filtering method based on image processing.
- the memory may include a storage program area and a storage data area.
- the storage program area may store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the CPU unit 8100 and the like.
- the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid state storage devices.
- the memory may optionally include a memory remotely provided with respect to the CPU unit 8100, and these remote memories may be connected to the computer 8000 via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
- the one or more modules are stored in the memory, and when executed by the CPU unit 8100, the point cloud filtering method based on image processing in the foregoing method embodiment is executed.
- the embodiment of the present invention also provides a computer-readable storage medium that stores computer-executable instructions that are executed by the CPU unit 8100 to implement the aforementioned image processing-based points. Cloud filtering method.
- the device embodiments described above are merely illustrative, and the devices described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network devices. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- the device for performing the point cloud filtering method based on image processing in this embodiment is based on the same inventive concept as the above-mentioned point cloud filtering method based on image processing, the corresponding content in the method embodiment The same applies to the embodiments of the device, and will not be described in detail here.
- each implementation manner can be implemented by means of software plus a general hardware platform.
- All or part of the processes in the methods of the above embodiments can be implemented by computer programs instructing relevant hardware.
- the programs can be stored in a computer readable storage medium. , May include the flow of the embodiment of the above method.
- the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
A point cloud filtering method based on image processing, an apparatus, and a storage medium. The scattered points of an obtained initial point cloud are filtered to avoid the impact of the scattered points on subsequent processing; after initial point cloud coordinates corresponding to the filtered initial point cloud are uniquely numbered, because the point cloud coordinates are mapped to an image coordinate system, and the values of the initial point cloud coordinates are usually a floating point type, the data type of the initial point cloud coordinates is converted to an integer type to make mapping more accurate; in addition, after the connected components are extracted from a mapped image, the connected domain with the most integer-type point cloud coordinates corresponding to image coordinates in connected domains is retained, that is, the unique numbers of the initial point cloud coordinates corresponding to the image coordinates in this connected domain are retained; at this time, the filtered-out corresponding data in the other connected domains is noise data. The point cloud restored with the unique numbers is a target point cloud after filtering. There is no need to compare coordinates one by one, the amount of calculation is small, and point cloud noise is quickly filtered out.
Description
本发明涉及数据处理技术领域,特别是一种基于图像处理的点云滤波方法、装置和存储介质。The present invention relates to the technical field of data processing, in particular to a point cloud filtering method, device and storage medium based on image processing.
在古建筑重构、工件的逆向工程或测量工程等领域中,非接触性的三维测量设备能够在不接触物体的情况下获取物体的形貌信息,应用非常广泛,虽然扫描精度稳步提高,但是难免会出现镜头失真、摄像机参数估计不准确等问题,导致获取的形貌信息中包含较多的噪声,形貌信息通常以点云的形式呈现,因此需要对点云进行去噪,确保后续工作的准确性。现有方案通常基于三维空间对点云进行处理,通过计算初始点云之间的关系去除噪声,但是三维测量设备获取的初始点云往往数据量巨大,直接对初始点云进行处理存在计算量大,效率低和复杂性高的缺点。In the fields of reconstruction of ancient buildings, reverse engineering of workpieces or survey engineering, non-contact three-dimensional measurement equipment can obtain the topography information of objects without touching the object, and it is widely used. Although the scanning accuracy has been steadily improved, It is inevitable that there will be problems such as lens distortion and inaccurate camera parameter estimation, resulting in the acquired topography information containing a lot of noise. The topography information is usually presented in the form of point clouds, so it is necessary to denoise the point clouds to ensure subsequent work Accuracy. Existing solutions usually process point clouds based on three-dimensional space, and remove noise by calculating the relationship between the initial point clouds. However, the initial point cloud acquired by the three-dimensional measuring equipment often has a huge amount of data, and the direct processing of the initial point cloud has a large amount of calculation. , The shortcomings of low efficiency and high complexity.
发明内容Summary of the invention
为了克服现有技术的不足,本发明的目的在于提供一种基于图像处理的点云滤波方法、装置和存储介质,减少点云去噪的计算量,快速高效地完成点云滤波。In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a point cloud filtering method, device and storage medium based on image processing, reducing the amount of point cloud denoising calculations, and completing point cloud filtering quickly and efficiently.
本发明解决其问题所采用的技术方案是:第一方面,本发明提供 了一种基于图像处理的点云滤波方法,包括以下步骤:The technical solution adopted by the present invention to solve its problems is: In the first aspect, the present invention provides a point cloud filtering method based on image processing, which includes the following steps:
客户端获取初始点云,并将所述初始点云的散乱点进行过滤;The client obtains the initial point cloud, and filters the scattered points of the initial point cloud;
所述客户端获取初始点云在点云坐标系中对应的初始点云坐标,对所述初始点云坐标进行编号,得出与所述初始点云坐标唯一对应的坐标编号;The client obtains the initial point cloud coordinates corresponding to the initial point cloud in the point cloud coordinate system, and numbers the initial point cloud coordinates to obtain a coordinate number uniquely corresponding to the initial point cloud coordinates;
所述客户端将所述初始点云坐标转换成数据类型为整型的整型点云坐标,建立图像坐标系,并将所述整型点云坐标映射到所述图像坐标系中;The client converts the initial point cloud coordinates into integer point cloud coordinates whose data type is integer, establishes an image coordinate system, and maps the integer point cloud coordinates to the image coordinate system;
所述客户端获取由所述图像坐标系中的数据构成的映射图像,对所述映射图像提取连通分量后,将所述图像坐标对应所述整型点云坐标最多的连通域设置为目标连通域,并将其他连通域滤除;The client acquires a mapped image composed of data in the image coordinate system, and after extracting connected components from the mapped image, sets the connected domain with the most integer point cloud coordinates corresponding to the image coordinates as the target connected Domain, and filter out other connected domains;
获取所述目标连通域中所包括的坐标编号,根据所述坐标编号将所述整型点云坐标恢复成对应的初始点云坐标,并映射至所述点云坐标系中,完成点云滤波。Acquire the coordinate numbers included in the target connected domain, restore the integer point cloud coordinates to the corresponding initial point cloud coordinates according to the coordinate numbers, and map them to the point cloud coordinate system to complete point cloud filtering .
进一步,所述初始点云中的散乱点由k最近邻算法进行过滤。Further, the scattered points in the initial point cloud are filtered by the k nearest neighbor algorithm.
进一步,所述图像坐标系根据所述点云坐标系的原点、x轴和y轴建立而成。Further, the image coordinate system is established according to the origin, x-axis and y-axis of the point cloud coordinate system.
进一步,所述整型点云坐标中的坐标值为所述初始点云坐标的坐标值四舍五入取整后所得出的值。Further, the coordinate value in the integer point cloud coordinate is a value obtained by rounding the coordinate value of the initial point cloud coordinate.
进一步,所述对所述映射图像提取连通分量前,还包括:对所述映射图像进行闭合运算以弥合断裂的区域。Further, before extracting the connected components from the mapped image, the method further includes: performing a closing operation on the mapped image to bridge the broken area.
第二方面,本发明提供了一种用于执行基于图像处理的点云滤波方法的装置,包括CPU单元,所述CPU单元用于执行以下步骤:In a second aspect, the present invention provides a device for performing a point cloud filtering method based on image processing, including a CPU unit configured to perform the following steps:
客户端获取初始点云,并将所述初始点云的散乱点进行过滤;The client obtains the initial point cloud, and filters the scattered points of the initial point cloud;
所述客户端获取初始点云在点云坐标系中对应的初始点云坐标,对所述初始点云坐标进行编号,得出与所述初始点云坐标唯一对应的坐标编号;The client obtains the initial point cloud coordinates corresponding to the initial point cloud in the point cloud coordinate system, and numbers the initial point cloud coordinates to obtain a coordinate number uniquely corresponding to the initial point cloud coordinates;
所述客户端将所述初始点云坐标转换成数据类型为整型的整型点云坐标,建立图像坐标系,并将所述整型点云坐标映射到所述图像坐标系中;The client converts the initial point cloud coordinates into integer point cloud coordinates whose data type is integer, establishes an image coordinate system, and maps the integer point cloud coordinates to the image coordinate system;
所述客户端获取由所述图像坐标系中的数据构成的映射图像,对所述映射图像提取连通分量后,将所述图像坐标对应所述整型点云坐标最多的连通域设置为目标连通域,并将其他连通域滤除;The client acquires a mapped image composed of data in the image coordinate system, and after extracting connected components from the mapped image, sets the connected domain with the most integer point cloud coordinates corresponding to the image coordinates as the target connected Domain, and filter out other connected domains;
获取所述目标连通域中所包括的坐标编号,根据所述坐标编号将所述整型点云坐标恢复成对应的初始点云坐标,并映射至所述点云坐标系中,完成点云滤波。Acquire the coordinate numbers included in the target connected domain, restore the integer point cloud coordinates to the corresponding initial point cloud coordinates according to the coordinate numbers, and map them to the point cloud coordinate system to complete point cloud filtering .
进一步,所述CPU单元还用于执行以下步骤:对所述映射图像进行闭合运算以弥合断裂的区域。Further, the CPU unit is further configured to perform the following steps: performing a closing operation on the mapped image to bridge the fractured area.
第三方面,本发明提供了一种用于执行基于图像处理的点云滤波方法的设备,包括至少一个控制处理器和用于与至少一个控制处理器通信连接的存储器;存储器存储有可被至少一个控制处理器执行的指令,指令被至少一个控制处理器执行,以使至少一个控制处理器能够 执行如上所述的基于图像处理的点云滤波方法。In a third aspect, the present invention provides a device for performing a point cloud filtering method based on image processing, including at least one control processor and a memory for communicating with the at least one control processor; the memory stores at least An instruction executed by a control processor, the instruction is executed by at least one control processor, so that the at least one control processor can execute the above-mentioned point cloud filtering method based on image processing.
第四方面,本发明提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机可执行指令,计算机可执行指令用于使计算机执行如上所述的基于图像处理的点云滤波方法。In a fourth aspect, the present invention provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to make a computer execute the above-mentioned image processing-based point cloud filtering method.
第五方面,本发明还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使计算机执行如上所述的基于图像处理的点云滤波方法。In a fifth aspect, the present invention also provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer , Let the computer execute the point cloud filtering method based on image processing as described above.
本发明实施例中提供的一个或多个技术方案,至少具有如下有益效果:本发明提供了一种基于图像处理的点云滤波方法、装置和存储介质,对所获取的初始点云进行散乱点过滤,避免散乱点对后续处理造成影响;将过滤后的初始点云所对应的初始点云坐标唯一编号后,由于要将点云坐标映射到图像坐标系中,而初始点云坐标的值通常为浮点型,因此将对所述初始点云坐标的数据类型转换为整型,使得映射更加准确;同时,对映射图像提取连通分量后,保留连通域中图像坐标对应整型点云坐标最多的连通域,即保留了这个连通域中图像坐标对应的初始点云坐标的唯一编号,此时滤除的其他连通域中对应的数据为噪声数据,通过唯一编号恢复的点云为过滤后的目标点云,无需逐个坐标比对,计算量小,实现了快速滤除点云噪声。The one or more technical solutions provided in the embodiments of the present invention have at least the following beneficial effects: the present invention provides a point cloud filtering method, device and storage medium based on image processing, which scatters the obtained initial point cloud Filter to avoid the impact of scattered points on subsequent processing; after the initial point cloud coordinates corresponding to the filtered initial point cloud are uniquely numbered, the point cloud coordinates are mapped to the image coordinate system, and the initial point cloud coordinates are usually It is a floating point type, so the data type of the initial point cloud coordinates is converted to an integer type to make the mapping more accurate; at the same time, after the connected components of the mapped image are extracted, the image coordinates in the connected domain are the most corresponding integer point cloud coordinates. The connected domain of, which retains the unique number of the initial point cloud coordinates corresponding to the image coordinates in this connected domain. At this time, the corresponding data in other connected domains filtered out is noise data, and the point cloud restored by the unique number is the filtered The target point cloud does not need to be compared one by one, the calculation amount is small, and the point cloud noise is quickly filtered out.
下面结合附图和实例对本发明作进一步说明。The present invention will be further explained below with reference to the drawings and examples.
图1是本发明实施例的方法流程图;Fig. 1 is a flowchart of a method according to an embodiment of the present invention;
图2是本发明实施例的初始点云示例图;Fig. 2 is an example diagram of an initial point cloud according to an embodiment of the present invention;
图3是本发明实施例的初始点云过滤散乱点后的效果示例图;3 is an example diagram of the effect of filtering scattered points in the initial point cloud according to an embodiment of the present invention;
图4是本发明实施例的映射图像的效果示例图;FIG. 4 is an example diagram of the effect of a mapped image according to an embodiment of the present invention;
图5是本发明实施例的映射图像进行闭合运算后的效果示例图;FIG. 5 is an example diagram of the effect of a closed operation on a mapped image according to an embodiment of the present invention;
图6是本发明实施例的获取目标连通域的效果示例图;FIG. 6 is an example diagram of the effect of acquiring target connected domains according to an embodiment of the present invention;
图7是本发明实施例完成点云滤波的效果示例图;FIG. 7 is a diagram showing an example of the effect of point cloud filtering in an embodiment of the present invention;
图8是本发明实施例用于执行基于图像处理的点云滤波方法的装置示意图。Fig. 8 is a schematic diagram of an apparatus for executing a point cloud filtering method based on image processing according to an embodiment of the present invention.
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the following further describes the present invention in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention.
需要说明的是,如果不冲突,本发明实施例中的各个特征可以相互结合,均在本发明的保护范围之内。另外,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。It should be noted that if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, and all fall within the protection scope of the present invention. In addition, although functional modules are divided in the schematic diagram of the device, and the logical sequence is shown in the flowchart, in some cases, it may be different from the module division in the device, or the sequence shown in the flowchart may be executed. Or the steps described.
需要说明的是,本发明的数据可由市面上常见的采集设备采集所得,本发明并不涉及对采集设备的改进,仅对采集设备所获取的数据进行处理。It should be noted that the data of the present invention can be collected by common collection equipment on the market. The present invention does not involve the improvement of the collection equipment, but only processes the data acquired by the collection equipment.
参考图1-图7,本发明的第一实施例提供了一种基于图像处理的点云滤波方法,包括以下步骤:Referring to Fig. 1 to Fig. 7, the first embodiment of the present invention provides a point cloud filtering method based on image processing, including the following steps:
步骤S100,客户端获取初始点云,并将所述初始点云的散乱点进行过滤;Step S100, the client obtains the initial point cloud, and filters scattered points of the initial point cloud;
步骤S200,所述客户端获取初始点云在点云坐标系中对应的初始点云坐标,对所述初始点云坐标进行编号,得出与所述初始点云坐标唯一对应的坐标编号;Step S200: The client obtains the initial point cloud coordinates corresponding to the initial point cloud in the point cloud coordinate system, and numbers the initial point cloud coordinates to obtain a coordinate number uniquely corresponding to the initial point cloud coordinates;
步骤S300,所述客户端将所述初始点云坐标转换成数据类型为整型的整型点云坐标,建立图像坐标系,并将所述整型点云坐标映射到所述图像坐标系中;Step S300: The client converts the initial point cloud coordinates into integer point cloud coordinates whose data type is integer, establishes an image coordinate system, and maps the integer point cloud coordinates to the image coordinate system ;
步骤S400,所述客户端获取由所述图像坐标系中的数据构成的映射图像,对所述映射图像提取连通分量后,将所述图像坐标对应所述整型点云坐标最多的连通域设置为目标连通域,并将其他连通域滤除;Step S400: The client acquires a mapped image composed of data in the image coordinate system, and after extracting connected components from the mapped image, sets the image coordinates corresponding to the connected domain with the most integer point cloud coordinates Is the target connected domain, and filter out other connected domains;
步骤S500,获取所述目标连通域中所包括的坐标编号,根据所述坐标编号将所述整型点云坐标恢复成对应的初始点云坐标,并映射至所述点云坐标系中,完成点云滤波。Step S500: Obtain the coordinate numbers included in the target connected domain, restore the integer point cloud coordinates to the corresponding initial point cloud coordinates according to the coordinate numbers, and map them to the point cloud coordinate system to complete Point cloud filtering.
其中,需要说明的是,通过三维设备获取的点云存在较多的散乱点,例如图2中所示的点状物,引起散乱点的因素较多,若不滤除容易对目标点云造成较大的干扰,因此本实施例优选在获取初始点云后优先进行散乱点滤除,能够排除散乱点的干扰,滤除后得出的示例图 如图3所示。Among them, it should be noted that there are many scattered points in the point cloud obtained by a three-dimensional device. For example, the dots shown in Figure 2 cause many scattered points. If it is not filtered out, it is easy to cause the target point cloud. Large interference. Therefore, in this embodiment, it is preferable to filter out scattered points first after acquiring the initial point cloud, which can eliminate the interference of scattered points. An example diagram obtained after filtering is shown in FIG. 3.
其中,需要说明的是,初始点云坐标为三维坐标,即包括x轴,y轴和z轴,因此本实施例中的初始点云坐标可表示为(x,y,z),则步骤S200中对初始点云坐标编号后初始点云坐标为(x
i,y
i,z
i),其唯一的坐标编号为i,具体i的值由所述初始点云坐标的顺序确定,例如根据x轴的值的顺序排列时,x轴的值最小的坐标为x
1,依次类推,在此不再赘述。
Among them, it should be noted that the initial point cloud coordinates are three-dimensional coordinates, that is, including the x-axis, y-axis, and z-axis. Therefore, the initial point cloud coordinates in this embodiment can be expressed as (x, y, z), then step S200 After the initial point cloud coordinates are numbered, the initial point cloud coordinates are (x i , y i , z i ), and its unique coordinate number is i. The specific value of i is determined by the order of the initial point cloud coordinates, for example, according to x When the axis values are arranged in order, the coordinate with the smallest x-axis value is x 1 , and so on, so I won’t repeat them here.
其中,在本实施例中,采集设备出于精度的要求,通常所得的初始点云的数据类型为浮点型,若要进行映射,需要将浮点型数据转换成整型数据,本实施例中优选四舍五入的方法,能够较为简便地获得整型数据。Among them, in this embodiment, due to the accuracy requirements of the acquisition device, the data type of the initial point cloud usually obtained is floating point. If mapping is to be performed, the floating point data needs to be converted into integer data. This embodiment The rounding method is preferred to obtain integer data more easily.
其中,需要说明的是,在步骤S300完成映射后,将浮点型的点云坐标转化成整型坐标后,存在一个或者多个浮点型坐标对应一个整型坐标的情况,即将整型点云坐标映射到图像坐标时,会存在一个或者多个整型点云坐标对应一个图像坐标的情况,其效果图如图4所示。但整型点云坐标所对应的坐标编号是唯一的,图像坐标也对应着整型点云坐标及其所对应的坐标编号,因此可以区分出图像坐标对应的整型点云坐标是哪些点。Among them, it should be noted that after the mapping is completed in step S300 and the floating-point point cloud coordinates are converted into integer coordinates, there is a situation where one or more floating-point coordinates correspond to an integer coordinate, that is, an integer point When cloud coordinates are mapped to image coordinates, there will be one or more integer point cloud coordinates corresponding to one image coordinate, and the effect diagram is shown in Figure 4. However, the coordinate number corresponding to the integer point cloud coordinate is unique, and the image coordinate also corresponds to the integer point cloud coordinate and its corresponding coordinate number. Therefore, it is possible to distinguish the integer point cloud coordinates corresponding to the image coordinate.
其中,需要说明的是,本实施例优选在步骤S400中统计每个连通域中图像坐标对应的整型点云坐标的数量,保留连通域中图像坐标对应整型点云坐标数量最多的连通域,即保留了这个连通域中图像坐 标对应整型点云坐标所对应的坐标编号,滤除其它连通域,即滤除了其它连通域中图像坐标对应整型点云坐标所对应的坐标编号,其效果示例图如图6所示。Among them, it should be noted that in this embodiment, preferably, in step S400, the number of integer point cloud coordinates corresponding to the image coordinates in each connected domain is counted, and the connected domain with the largest number of integer point cloud coordinates corresponding to the image coordinates in the connected domain is reserved. , That is, the coordinate number corresponding to the integral point cloud coordinate of the image coordinate in this connected domain is retained, and other connected domains are filtered out, that is, the coordinate number corresponding to the integral point cloud coordinate of the image coordinate in other connected domains is filtered out, and The effect example is shown in Figure 6.
其中,需要说明的是,根据步骤S400中被保留下来的整型点云坐标对应的编号恢复至对应的初始点云坐标,即将连通域中坐标编号不一致的整型点云坐标滤除,从而实现过滤掉噪声点云,只保留目标点云。因为每个初始点云坐标都进行了编号,因此根据步骤S400中被保留下来的编号在初始点云找到其对应的初始点云坐标,实现了点云滤波,其效果示例图如图7所示。Among them, it should be noted that the number corresponding to the integer point cloud coordinates retained in step S400 is restored to the corresponding initial point cloud coordinates, that is, the integer point cloud coordinates with inconsistent coordinate numbers in the connected domain are filtered out, thereby achieving Filter out the noise point cloud, and only keep the target point cloud. Because each initial point cloud coordinate is numbered, the corresponding initial point cloud coordinate is found in the initial point cloud according to the reserved number in step S400, and point cloud filtering is realized. The effect example is shown in Figure 7. .
进一步,在本发明的另一个实施例中,所述初始点云中的散乱点由k最近邻算法进行过滤。Further, in another embodiment of the present invention, the scattered points in the initial point cloud are filtered by the k nearest neighbor algorithm.
其中,需要说明的是,散乱点的过滤可以通过任意算法完成,能够实现滤除散乱点的效果即可,本实施例优选采用k最近邻算法,能够实现高效准确滤除散乱点,具体采用的算法根据实际需求选取即可。Among them, it should be noted that the filtering of scattered points can be completed by any algorithm to achieve the effect of filtering scattered points. This embodiment preferably adopts the k nearest neighbor algorithm to achieve efficient and accurate filtering of scattered points. The algorithm can be selected according to actual needs.
进一步,在本发明的另一个实施例中,所述图像坐标系根据所述点云坐标系的原点、x轴和y轴建立而成。Further, in another embodiment of the present invention, the image coordinate system is established according to the origin, x-axis and y-axis of the point cloud coordinate system.
其中,需要说明的是,本实施例还优选图像坐标系的长H和宽W分别满足以下公式:It should be noted that, in this embodiment, it is also preferable that the length H and the width W of the image coordinate system respectively satisfy the following formulas:
H=max(y
k)-min(y
k);k=1,2,3…,n;
H=max(y k )-min(y k ); k=1, 2, 3..., n;
W=max(x
k)-min(x
k);k=1,2,3…,n。
W=max(x k )-min(x k ); k=1, 2, 3..., n.
其中,x
k为坐标编号为k的初始点云坐标减去坐标最小值后转 换成的整型点云坐标的横坐标值,y
k为坐标编号为k的初始点云坐标减去坐标最小值后转换成的整型点云坐标的纵坐标值。
Among them, x k is the abscissa value of the integer point cloud coordinate converted from the initial point cloud coordinate with the coordinate number k minus the minimum coordinate value, and y k is the initial point cloud coordinate with the coordinate number k minus the minimum coordinate value The ordinate value of the integer point cloud coordinate after conversion.
进一步,在本发明的另一个实施例中,所述整型点云坐标中的坐标值为所述初始点云坐标的坐标值四舍五入取整后所得出的值。Further, in another embodiment of the present invention, the coordinate value in the integer point cloud coordinate is a value obtained by rounding the coordinate value of the initial point cloud coordinate.
其中,需要说明的是,四舍五入为本实施例的优选,也可以采用向上取整或向下取整等方法,能够得出整型数据即可,具体方式根据实际需求调整即可。Among them, it should be noted that rounding is the preferred embodiment of this embodiment, and methods such as rounding up or rounding down can also be used to obtain integer data, and the specific method can be adjusted according to actual needs.
参考图5,进一步,在本发明的另一个实施例中,所述对所述映射图像提取连通分量前,还包括:对所述映射图像进行闭合运算以弥合断裂的区域。Referring to FIG. 5, further, in another embodiment of the present invention, before extracting connected components from the mapped image, the method further includes: performing a closing operation on the mapped image to bridge the fractured area.
其中,由于映射图像中包含的断裂区域较多,在本实施例中优选采用闭合运算对断裂的区域进行弥合,提高图像的准确性,其效果示意图如图5所示,需要说明的是,闭合运算为现有技术中的算法,本实施例并不涉及对闭合运算的算法改进,在此不再赘述。Among them, since there are many fracture areas in the mapped image, in this embodiment, the closed operation is preferably used to bridge the fractured areas to improve the accuracy of the image. The schematic diagram of the effect is shown in Figure 5, and it should be noted that the closed The operation is an algorithm in the prior art, and this embodiment does not involve the improvement of the closed operation algorithm, and will not be repeated here.
参照图8,本发明的第二实施例还提供了一种用于执行基于图像处理的点云滤波方法的装置,该装置为智能设备,例如智能手机、计算机和平板电脑等,本实施例以计算机为例加以说明。Referring to Figure 8, the second embodiment of the present invention also provides a device for performing a point cloud filtering method based on image processing. The device is a smart device, such as a smart phone, a computer, and a tablet. Take the computer as an example.
在该用于执行基于图像处理的点云滤波方法的计算机8000中,包括CPU单元8100,所述CPU单元8100用于执行以下步骤:The computer 8000 for performing a point cloud filtering method based on image processing includes a CPU unit 8100, and the CPU unit 8100 is configured to perform the following steps:
客户端获取初始点云,并将所述初始点云的散乱点进行过滤;The client obtains the initial point cloud, and filters the scattered points of the initial point cloud;
所述客户端获取初始点云在点云坐标系中对应的初始点云坐标, 对所述初始点云坐标进行编号,得出与所述初始点云坐标唯一对应的坐标编号;The client acquires the initial point cloud coordinates corresponding to the initial point cloud in the point cloud coordinate system, and numbers the initial point cloud coordinates to obtain a coordinate number uniquely corresponding to the initial point cloud coordinates;
所述客户端将所述初始点云坐标转换成数据类型为整型的整型点云坐标,建立图像坐标系,并将所述整型点云坐标映射到所述图像坐标系中;The client converts the initial point cloud coordinates into integer point cloud coordinates whose data type is integer, establishes an image coordinate system, and maps the integer point cloud coordinates to the image coordinate system;
所述客户端获取由所述图像坐标系中的数据构成的映射图像,对所述映射图像提取连通分量后,将所述图像坐标对应所述整型点云坐标最多的连通域设置为目标连通域,并将其他连通域滤除;The client acquires a mapped image composed of data in the image coordinate system, and after extracting connected components from the mapped image, sets the connected domain with the most integer point cloud coordinates corresponding to the image coordinates as the target connected Domain, and filter out other connected domains;
获取所述目标连通域中所包括的坐标编号,根据所述坐标编号将所述整型点云坐标恢复成对应的初始点云坐标,并映射至所述点云坐标系中,完成点云滤波。Acquire the coordinate numbers included in the target connected domain, restore the integer point cloud coordinates to the corresponding initial point cloud coordinates according to the coordinate numbers, and map them to the point cloud coordinate system to complete point cloud filtering .
进一步,本发明的另一个实施例中,所述CPU单元8100还用于执行以下步骤:对所述映射图像进行闭合运算以弥合断裂的区域。Further, in another embodiment of the present invention, the CPU unit 8100 is further configured to perform the following steps: performing a closing operation on the mapped image to bridge the fractured area.
计算机8000和CPU单元8100之间可以通过总线或者其他方式连接,计算机8000中还包括存储器,所述存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态性计算机可执行程序以及模块,如本发明实施例中的用于执行基于图像处理的点云滤波方法的设备对应的程序指令/模块。计算机8000通过运行存储在存储器中的非暂态软件程序、指令以及模块,从而控制CPU单元8100执行用于执行基于图像处理的点云滤波方法的各种功能应用以及数据处理,即实现上述方法实施例的基于图像处理的点云滤波方法。The computer 8000 and the CPU unit 8100 can be connected by a bus or other means. The computer 8000 also includes a memory. As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs and non-transitory Computer-executable programs and modules, such as program instructions/modules corresponding to the device for executing the point cloud filtering method based on image processing in the embodiment of the present invention. The computer 8000 runs the non-transitory software programs, instructions, and modules stored in the memory to control the CPU unit 8100 to execute various functional applications and data processing for performing the point cloud filtering method based on image processing, that is, to implement the above method Example point cloud filtering method based on image processing.
存储器可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据CPU单元8100的使用所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器可选包括相对于CPU单元8100远程设置的存储器,这些远程存储器可以通过网络连接至该计算机8000。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory may include a storage program area and a storage data area. The storage program area may store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the CPU unit 8100 and the like. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid state storage devices. In some embodiments, the memory may optionally include a memory remotely provided with respect to the CPU unit 8100, and these remote memories may be connected to the computer 8000 via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
所述一个或者多个模块存储在所述存储器中,当被所述CPU单元8100执行时,执行上述方法实施例中的基于图像处理的点云滤波方法。The one or more modules are stored in the memory, and when executed by the CPU unit 8100, the point cloud filtering method based on image processing in the foregoing method embodiment is executed.
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被CPU单元8100执行,实现上述所述的基于图像处理的点云滤波方法。The embodiment of the present invention also provides a computer-readable storage medium that stores computer-executable instructions that are executed by the CPU unit 8100 to implement the aforementioned image processing-based points. Cloud filtering method.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的装置可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络装置上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are merely illustrative, and the devices described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network devices. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
需要说明的是,由于本实施例中的用于执行基于图像处理的点云滤波方法的装置与上述的基于图像处理的点云滤波方法基于相同的发明构思,因此,方法实施例中的相应内容同样适用于本装置实施例, 此处不再详述。It should be noted that since the device for performing the point cloud filtering method based on image processing in this embodiment is based on the same inventive concept as the above-mentioned point cloud filtering method based on image processing, the corresponding content in the method embodiment The same applies to the embodiments of the device, and will not be described in detail here.
通过以上的实施方式的描述,本领域技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现。本领域技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(ReadOnly Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Through the description of the above implementation manners, those skilled in the art can clearly understand that each implementation manner can be implemented by means of software plus a general hardware platform. Those skilled in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by computer programs instructing relevant hardware. The programs can be stored in a computer readable storage medium. , May include the flow of the embodiment of the above method. Wherein, the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
以上是对本发明的较佳实施进行了具体说明,但本发明并不局限于上述实施方式,熟悉本领域的技术人员在不违背本发明精神的前提下还可作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a detailed description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. Equivalent modifications or replacements are all included in the scope defined by the claims of this application.
Claims (8)
- 一种基于图像处理的点云滤波方法,其特征在于,包括以下步骤:客户端获取初始点云,并将所述初始点云的散乱点进行过滤;A point cloud filtering method based on image processing, characterized by comprising the following steps: a client obtains an initial point cloud, and filters scattered points of the initial point cloud;所述客户端获取初始点云在点云坐标系中对应的初始点云坐标,对所述初始点云坐标进行编号,得出与所述初始点云坐标唯一对应的坐标编号;The client obtains the initial point cloud coordinates corresponding to the initial point cloud in the point cloud coordinate system, and numbers the initial point cloud coordinates to obtain a coordinate number uniquely corresponding to the initial point cloud coordinates;所述客户端将所述初始点云坐标转换成数据类型为整型的整型点云坐标,建立图像坐标系,并将所述整型点云坐标映射到所述图像坐标系中;The client converts the initial point cloud coordinates into integer point cloud coordinates whose data type is integer, establishes an image coordinate system, and maps the integer point cloud coordinates to the image coordinate system;所述客户端获取由所述图像坐标系中的数据构成的映射图像,对所述映射图像提取连通分量后,将所述图像坐标对应所述整型点云坐标最多的连通域设置为目标连通域,并将其他连通域滤除;The client acquires a mapped image composed of data in the image coordinate system, and after extracting connected components from the mapped image, sets the connected domain with the most integer point cloud coordinates corresponding to the image coordinates as the target connected Domain, and filter out other connected domains;获取所述目标连通域中所包括的坐标编号,根据所述坐标编号将所述整型点云坐标恢复成对应的初始点云坐标,并映射至所述点云坐标系中,完成点云滤波。Acquire the coordinate numbers included in the target connected domain, restore the integer point cloud coordinates to the corresponding initial point cloud coordinates according to the coordinate numbers, and map them to the point cloud coordinate system to complete point cloud filtering .
- 根据权利要求1所述的一种基于图像处理的点云滤波方法,其特征在于:所述初始点云中的散乱点由k最近邻算法进行过滤。The point cloud filtering method based on image processing according to claim 1, wherein the scattered points in the initial point cloud are filtered by the k nearest neighbor algorithm.
- 根据权利要求1所述的一种基于图像处理的点云滤波方法,其特征在于:所述图像坐标系根据所述点云坐标系的原点、x轴和y轴建立而成。A point cloud filtering method based on image processing according to claim 1, wherein the image coordinate system is established based on the origin, x-axis and y-axis of the point cloud coordinate system.
- 根据权利要求1所述的一种基于图像处理的点云滤波方法,其特征 在于:所述整型点云坐标中的坐标值为所述初始点云坐标的坐标值四舍五入取整后所得出的值。A point cloud filtering method based on image processing according to claim 1, characterized in that: the coordinate value in the integer point cloud coordinates is obtained by rounding the coordinate value of the initial point cloud coordinate value.
- 根据权利要求1所述的一种基于图像处理的点云滤波方法,其特征在于,所述对所述映射图像提取连通分量前,还包括:对所述映射图像进行闭合运算以弥合断裂的区域。A point cloud filtering method based on image processing according to claim 1, characterized in that, before extracting connected components from the mapped image, it further comprises: performing a closing operation on the mapped image to bridge the fractured area .
- 一种用于执行基于图像处理的点云滤波方法的装置,其特征在于,包括CPU单元,所述CPU单元用于执行以下步骤:A device for performing a point cloud filtering method based on image processing, characterized in that it comprises a CPU unit, and the CPU unit is configured to perform the following steps:客户端获取初始点云,并将所述初始点云的散乱点进行过滤;The client obtains the initial point cloud, and filters the scattered points of the initial point cloud;所述客户端获取初始点云在点云坐标系中对应的初始点云坐标,对所述初始点云坐标进行编号,得出与所述初始点云坐标唯一对应的坐标编号;The client obtains the initial point cloud coordinates corresponding to the initial point cloud in the point cloud coordinate system, and numbers the initial point cloud coordinates to obtain a coordinate number uniquely corresponding to the initial point cloud coordinates;所述客户端将所述初始点云坐标转换成数据类型为整型的整型点云坐标,建立图像坐标系,并将所述整型点云坐标映射到所述图像坐标系中;The client converts the initial point cloud coordinates into integer point cloud coordinates whose data type is integer, establishes an image coordinate system, and maps the integer point cloud coordinates to the image coordinate system;所述客户端获取由所述图像坐标系中的数据构成的映射图像,对所述映射图像提取连通分量后,将所述图像坐标对应所述整型点云坐标最多的连通域设置为目标连通域,并将其他连通域滤除;The client acquires a mapped image composed of data in the image coordinate system, and after extracting connected components from the mapped image, sets the connected domain with the most integer point cloud coordinates corresponding to the image coordinates as the target connected Domain, and filter out other connected domains;获取所述目标连通域中所包括的坐标编号,根据所述坐标编号将所述整型点云坐标恢复成对应的初始点云坐标,并映射至所述点云坐标系中,完成点云滤波。Acquire the coordinate numbers included in the target connected domain, restore the integer point cloud coordinates to the corresponding initial point cloud coordinates according to the coordinate numbers, and map them to the point cloud coordinate system to complete point cloud filtering .
- 根据权利要求6所述的一种用于执行基于图像处理的点云滤波方 法的装置,其特征在于,所述CPU单元还用于执行以下步骤:对所述映射图像进行闭合运算以弥合断裂的区域。The apparatus for performing a point cloud filtering method based on image processing according to claim 6, wherein the CPU unit is further configured to perform the following steps: closing the mapped image to bridge the broken area.
- 一种计算机可读存储介质,其特征在于:所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如权利要求1-5任一项所述的一种基于图像处理的点云滤波方法。A computer-readable storage medium, characterized in that: the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to make a computer execute any one of claims 1-5 A point cloud filtering method based on image processing.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910692496.6A CN110458772B (en) | 2019-07-30 | 2019-07-30 | Point cloud filtering method and device based on image processing and storage medium |
CN201910692496.6 | 2019-07-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021017471A1 true WO2021017471A1 (en) | 2021-02-04 |
Family
ID=68483925
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/078288 WO2021017471A1 (en) | 2019-07-30 | 2020-03-06 | Point cloud filtering method based on image processing, apparatus, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110458772B (en) |
WO (1) | WO2021017471A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114596196A (en) * | 2022-03-04 | 2022-06-07 | 北京百度网讯科技有限公司 | Method and device for filtering point cloud data, equipment and storage medium |
CN117408913A (en) * | 2023-12-11 | 2024-01-16 | 浙江托普云农科技股份有限公司 | Method, system and device for denoising point cloud of object to be measured |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110458772B (en) * | 2019-07-30 | 2022-11-15 | 五邑大学 | Point cloud filtering method and device based on image processing and storage medium |
CN112907164B (en) * | 2019-12-03 | 2024-08-20 | 北京京东乾石科技有限公司 | Object positioning method and device |
CN111275633B (en) * | 2020-01-13 | 2023-06-13 | 五邑大学 | Point cloud denoising method, system, device and storage medium based on image segmentation |
CN111275810B (en) * | 2020-01-17 | 2022-06-24 | 五邑大学 | K nearest neighbor point cloud filtering method and device based on image processing and storage medium |
CN111340728B (en) * | 2020-02-26 | 2023-03-21 | 五邑大学 | Point cloud denoising method and device based on 3D point cloud segmentation and storage medium |
WO2022233004A1 (en) * | 2021-05-06 | 2022-11-10 | Oppo广东移动通信有限公司 | Point cloud encoding method, point cloud decoding method, encoder, decoder and computer storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103996052A (en) * | 2014-05-12 | 2014-08-20 | 深圳市唯特视科技有限公司 | Three-dimensional face gender classification device and method based on three-dimensional point cloud |
US20140270476A1 (en) * | 2013-03-12 | 2014-09-18 | Harris Corporation | Method for 3d object identification and pose detection using phase congruency and fractal analysis |
CN107702663A (en) * | 2017-09-29 | 2018-02-16 | 五邑大学 | A kind of point cloud registration method based on the rotation platform with index point |
CN109255813A (en) * | 2018-09-06 | 2019-01-22 | 大连理工大学 | A kind of hand-held object pose real-time detection method towards man-machine collaboration |
CN110458772A (en) * | 2019-07-30 | 2019-11-15 | 五邑大学 | A kind of point cloud filtering method, device and storage medium based on image procossing |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7317456B1 (en) * | 2002-12-02 | 2008-01-08 | Ngrain (Canada) Corporation | Method and apparatus for transforming point cloud data to volumetric data |
CN101063967B (en) * | 2006-04-28 | 2010-11-10 | 鸿富锦精密工业(深圳)有限公司 | Point cloud automatically pruning system and method |
CN103853840B (en) * | 2014-03-18 | 2017-05-03 | 中国矿业大学(北京) | Filter method of nonuniform unorganized-point cloud data |
GB2528669B (en) * | 2014-07-25 | 2017-05-24 | Toshiba Res Europe Ltd | Image Analysis Method |
CN107194962B (en) * | 2017-04-01 | 2020-06-05 | 深圳市速腾聚创科技有限公司 | Point cloud and plane image fusion method and device |
US10528851B2 (en) * | 2017-11-27 | 2020-01-07 | TuSimple | System and method for drivable road surface representation generation using multimodal sensor data |
CN108734772A (en) * | 2018-05-18 | 2018-11-02 | 宁波古德软件技术有限公司 | High accuracy depth image acquisition methods based on Kinect fusion |
CN108986048B (en) * | 2018-07-18 | 2020-04-28 | 大连理工大学 | Three-dimensional point cloud rapid composite filtering processing method based on line laser scanning |
CN109472852B (en) * | 2018-10-29 | 2021-08-10 | 百度在线网络技术(北京)有限公司 | Point cloud image display method and device, equipment and storage medium |
-
2019
- 2019-07-30 CN CN201910692496.6A patent/CN110458772B/en active Active
-
2020
- 2020-03-06 WO PCT/CN2020/078288 patent/WO2021017471A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140270476A1 (en) * | 2013-03-12 | 2014-09-18 | Harris Corporation | Method for 3d object identification and pose detection using phase congruency and fractal analysis |
CN103996052A (en) * | 2014-05-12 | 2014-08-20 | 深圳市唯特视科技有限公司 | Three-dimensional face gender classification device and method based on three-dimensional point cloud |
CN107702663A (en) * | 2017-09-29 | 2018-02-16 | 五邑大学 | A kind of point cloud registration method based on the rotation platform with index point |
CN109255813A (en) * | 2018-09-06 | 2019-01-22 | 大连理工大学 | A kind of hand-held object pose real-time detection method towards man-machine collaboration |
CN110458772A (en) * | 2019-07-30 | 2019-11-15 | 五邑大学 | A kind of point cloud filtering method, device and storage medium based on image procossing |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114596196A (en) * | 2022-03-04 | 2022-06-07 | 北京百度网讯科技有限公司 | Method and device for filtering point cloud data, equipment and storage medium |
CN117408913A (en) * | 2023-12-11 | 2024-01-16 | 浙江托普云农科技股份有限公司 | Method, system and device for denoising point cloud of object to be measured |
CN117408913B (en) * | 2023-12-11 | 2024-02-23 | 浙江托普云农科技股份有限公司 | Method, system and device for denoising point cloud of object to be measured |
Also Published As
Publication number | Publication date |
---|---|
CN110458772B (en) | 2022-11-15 |
CN110458772A (en) | 2019-11-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021017471A1 (en) | Point cloud filtering method based on image processing, apparatus, and storage medium | |
TWI713366B (en) | Method and device for target sampling of images | |
WO2018120038A1 (en) | Method and device for target detection | |
EP3506156A1 (en) | Method and apparatus for detecting lane line, and medium | |
CN102999886B (en) | Image Edge Detector and scale grating grid precision detection system | |
WO2021142996A1 (en) | Point cloud denoising method, system, and device employing image segmentation, and storage medium | |
WO2021120410A1 (en) | Hough transform-based absolute phase noise removal method and apparatus, and storage medium | |
WO2021142995A1 (en) | Image processing-based k-nearest neighbor point cloud filtering method, apparatus, and storage medium | |
CN112348765A (en) | Data enhancement method and device, computer readable storage medium and terminal equipment | |
CN110660072B (en) | Method and device for identifying straight line edge, storage medium and electronic equipment | |
WO2017120796A1 (en) | Pavement distress detection method and apparatus, and electronic device | |
CN112991374B (en) | Canny algorithm-based edge enhancement method, canny algorithm-based edge enhancement device, canny algorithm-based edge enhancement equipment and storage medium | |
CN109410246B (en) | Visual tracking method and device based on correlation filtering | |
CN105791635B (en) | Video source modeling denoising method based on GPU and device | |
CN107967675A (en) | A kind of structuring point cloud denoising method based on adaptive projection Moving Least Squares | |
CN114993452A (en) | Structure micro-vibration measurement method and system based on broadband phase motion amplification | |
CN111209898B (en) | Method and device for removing optical fingerprint image background | |
CN111091107A (en) | Face region edge detection method and device and storage medium | |
CN111260564A (en) | Image processing method and device and computer storage medium | |
CN108550142A (en) | A kind of tooth hole inspection method and hole inspection and device | |
CN106108932B (en) | Full-automatic kidney region of interest extraction element and method | |
CN113762397B (en) | Method, equipment, medium and product for training detection model and updating high-precision map | |
CN112146834B (en) | Method and device for measuring structural vibration displacement | |
JP6874987B2 (en) | Feature shape extraction device, feature shape extraction method, and program | |
CN114626118A (en) | Building indoor model generation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20847072 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20847072 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20847072 Country of ref document: EP Kind code of ref document: A1 |