CN112950690B - Multi-scale decomposition method based on wavelet - Google Patents
Multi-scale decomposition method based on wavelet Download PDFInfo
- Publication number
- CN112950690B CN112950690B CN202110174579.3A CN202110174579A CN112950690B CN 112950690 B CN112950690 B CN 112950690B CN 202110174579 A CN202110174579 A CN 202110174579A CN 112950690 B CN112950690 B CN 112950690B
- Authority
- CN
- China
- Prior art keywords
- wavelet
- scale
- image
- function
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/50—Depth or shape recovery
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20016—Hierarchical, coarse-to-fine, multiscale or multiresolution image processing; Pyramid transform
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20024—Filtering details
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20048—Transform domain processing
- G06T2207/20064—Wavelet transform [DWT]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及结构光测量和显微测量技术领域,尤其是一种基于小波的多尺度分解方法。The invention relates to the technical field of structured light measurement and microscopic measurement, and in particular to a multi-scale decomposition method based on wavelet.
背景技术Background technique
跨尺度测量在机械制造、航空航天、刀具制备、地学测量等领域有着广阔的应用需求。随着现代化精密制造技术的不断进步,所制造的产品往往有着跨尺度的形貌特征。因此,对测量技术也提出了要求:确保大尺度整体轮廓测量准确的同时,保证小尺度局部感兴趣的区域具有更高的精度以及更丰富的细节。然而,由于单一测量方式的限制,不能兼顾这两方面的需求。大视场的方法测得数据往往分辨率较低,局部细节表现能力有限;而高分辨率的微观测量方法,则由于测量范围的限制,无法表征整体三维轮廓形貌。在这种情况下,结合不同尺度的两套测量配置或者两种测量方法对目标进行三维形貌测量是一种可行的思路。使用跨尺度测量的方法,在一定程度上扩展了测量的频域带宽,使得其具备较大测量范围的同时,保证了局部细节特征的精确性。由于测得的不同尺度数据其坐标系并不统一,为保证跨尺度数据的完整性以及在空间中相对位置的准确性,则需要通过拼接的方式对其进行配准,由此跨尺度数据的拼接是其中最为关键的技术之一。不同于单一尺度下的三维数据配准拼接,跨尺度数据在对应重叠部分的信息含量、分辨率、细节丰富程度的差异,往往会导致拼接的误差甚至失败。因此,研究多尺度的数据处理方法,尺度参数的表征技术,对跨尺度数据的拼接有着重要的意义,必将获得更多的重视与投入。Cross-scale measurement has broad application needs in the fields of mechanical manufacturing, aerospace, tool preparation, and geospatial measurement. With the continuous advancement of modern precision manufacturing technology, the manufactured products often have cross-scale morphological features. Therefore, requirements are also put forward for measurement technology: while ensuring the accuracy of large-scale overall contour measurement, ensure that the small-scale local area of interest has higher accuracy and richer details. However, due to the limitations of a single measurement method, these two requirements cannot be taken into account. The data measured by the large field of view method often has low resolution and limited ability to express local details; while the high-resolution microscopic measurement method cannot characterize the overall three-dimensional contour morphology due to the limitation of the measurement range. In this case, it is a feasible idea to combine two sets of measurement configurations or two measurement methods of different scales to measure the three-dimensional morphology of the target. The use of cross-scale measurement methods has expanded the frequency domain bandwidth of the measurement to a certain extent, so that it has a larger measurement range while ensuring the accuracy of local detail features. Since the coordinate systems of the measured data of different scales are not unified, in order to ensure the integrity of the cross-scale data and the accuracy of the relative position in space, it is necessary to align them by splicing. Therefore, the splicing of cross-scale data is one of the most critical technologies. Different from the registration and stitching of 3D data at a single scale, the differences in information content, resolution, and detail richness of the corresponding overlapping parts of cross-scale data often lead to stitching errors or even failures. Therefore, the study of multi-scale data processing methods and scale parameter characterization technology is of great significance to the stitching of cross-scale data, and will surely receive more attention and investment.
发明内容Summary of the invention
本发明所要解决的技术问题在于,提供一种基于小波的多尺度分解方法,利用小波分解实现降低显微测量数据的频率,减小显微测量数据的频率与结构光测量数据的频率的差异,通过金字塔降采样和升采样插值的方式减少数据量,减小显微测量数据量与结构光测量数据量的差异。The technical problem to be solved by the present invention is to provide a wavelet-based multi-scale decomposition method, which utilizes wavelet decomposition to reduce the frequency of microscopic measurement data, reduce the difference between the frequency of microscopic measurement data and the frequency of structured light measurement data, reduce the amount of data by pyramid downsampling and upsampling interpolation, and reduce the difference between the amount of microscopic measurement data and the amount of structured light measurement data.
为解决上述技术问题,本发明提供一种基于小波的多尺度分解方法,包括如下步骤:In order to solve the above technical problems, the present invention provides a wavelet-based multi-scale decomposition method, comprising the following steps:
(1)将点云数据存储为2.5D,即将点云数据的Z坐标以像素值的形式进行存储,通过处理二维图像的方式进行处理点云数据;(1) The point cloud data is stored as 2.5D, that is, the Z coordinate of the point cloud data is stored in the form of pixel values, and the point cloud data is processed by processing two-dimensional images;
(2)通过小波的方式进行滤波,将高频与低频进行分离;(2) Filtering by wavelet method to separate high frequency from low frequency;
(3)将2.5D的图像向尺度函数与小波函数上进行投影;(3) Project the 2.5D image onto the scaling function and the wavelet function;
(4)进行低通滤波,由步骤(3)已经用小波表示出频率图像,取出两部分都在尺度函数上的投影,即图像的低频数据;(4) Perform low-pass filtering. The frequency image has been expressed by wavelet in step (3). The projections of both parts on the scale function are taken out, i.e., the low-frequency data of the image.
(5)经过步骤(4)的滤波,保留了低频,通过保留的低频信号向反变换核上进行投影,进行图像重建;(5) After filtering in step (4), the low frequency is retained, and the image is reconstructed by projecting the retained low frequency signal onto the inverse transform kernel;
(6)通过金字塔的方法进行降采样和升采样的方式来减小差异;(6) Reducing the difference by downsampling and upsampling through the pyramid method;
(7)重复步骤(3)-(6),直到显微测量数据的分辨率降低到所规定的要求。(7) Repeat steps (3) to (6) until the resolution of the microscopic measurement data is reduced to the specified requirements.
优选的,步骤(2)中,根据以下几个规则进行小波的选择:1、正交性:有利于数据重构的精确性,避免重构数据的失真;2、支撑宽度:从一个有限值衰减到0的长度,支撑长度过长会提高计算时间复杂度,支撑宽度越小,则局部化特性越好;3、对称性:良好的对称性有利于避免畸变;4、正则性:描述函数光滑程度,正则性越高,小波越光滑,数据压缩效果越好;5、消失矩:消失矩有利于较少非零小波系数,使尽量少的小波系数为零。Preferably, in step (2), the wavelet is selected according to the following rules: 1. Orthogonality: It is conducive to the accuracy of data reconstruction and avoids distortion of reconstructed data; 2. Support width: The length that decays from a finite value to 0. Too long a support length will increase the complexity of calculation time. The smaller the support width, the better the localization characteristics; 3. Symmetry: Good symmetry is conducive to avoiding distortion; 4. Regularity: It describes the smoothness of the function. The higher the regularity, the smoother the wavelet and the better the data compression effect; 5. Vanishing moment: The vanishing moment is conducive to having fewer non-zero wavelet coefficients, making as few wavelet coefficients as possible zero.
优选的,步骤(3)中,将2.5D的图像向尺度函数与小波函数上进行投影具体为:通过尺度函数与小波函数来表示图像,将图像用小波表示也分为两步,对两个维度分别进行表示,即分两次一维的进行分解,一维分解如下式:Preferably, in step (3), the 2.5D image is projected onto the scaling function and the wavelet function. Specifically, the image is represented by the scaling function and the wavelet function. The image is represented by the wavelet function in two steps, and the two dimensions are represented respectively, that is, the one-dimensional decomposition is performed twice. The one-dimensional decomposition is as follows:
其中,f(x)为待处理的函数,N为小波变换的级数,j0为任意开始尺度,k为小波变换的平移长度,为小波变换的小波函数,/>为小波变换的尺度函数,为尺度系数,Wψ(j,k)为小波系数。Where f(x) is the function to be processed, N is the number of wavelet transform series, j 0 is an arbitrary starting scale, k is the translation length of the wavelet transform, is the wavelet function of wavelet transform, /> is the scaling function of the wavelet transform, is the scale coefficient, and W ψ (j,k) is the wavelet coefficient.
优选的,步骤(6)中,通过金字塔的方法进行降采样和升采样的方式来减小差异,首先对已经滤波后的数据进行降采样,即保留图像的偶数行和偶数列,此时数据量已经减少为未降采样时的四分之一;再进行升采样插值,在降采样过后的图像的偶数行和偶数列进行插入图像的深度值0,此时数据的分辨率降低。Preferably, in step (6), the difference is reduced by downsampling and upsampling by a pyramid method. First, the filtered data is downsampled, that is, the even rows and even columns of the image are retained. At this time, the amount of data has been reduced to one-fourth of the amount before downsampling. Then upsampling interpolation is performed, and the depth value 0 of the image is inserted into the even rows and even columns of the downsampled image. At this time, the resolution of the data is reduced.
本发明的有益效果为:利用小波分解实现降低显微测量数据的频率,减小显微测量数据的频率与结构光测量数据的频率的差异;通过金字塔降采样和升采样插值的方式减少数据量,减小显微测量数据量与结构光测量数据量的差异。The beneficial effects of the present invention are as follows: using wavelet decomposition to reduce the frequency of microscopic measurement data, thereby reducing the difference between the frequency of microscopic measurement data and the frequency of structured light measurement data; reducing the amount of data by pyramid downsampling and upsampling interpolation, thereby reducing the difference between the amount of microscopic measurement data and the amount of structured light measurement data.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明的方法流程示意图。FIG1 is a schematic flow chart of the method of the present invention.
图2为本发明显微测量点云数据示意图。FIG. 2 is a schematic diagram of microscopic measurement point cloud data of the present invention.
图3为本发明进行分解3次的点云示意图。FIG. 3 is a schematic diagram of a point cloud decomposed three times according to the present invention.
图4为本发明进行分解6次的点云示意图。FIG. 4 is a schematic diagram of a point cloud decomposed 6 times according to the present invention.
具体实施方式Detailed ways
如图1所示,一种基于小波的多尺度分解方法,包括如下步骤:As shown in FIG1 , a wavelet-based multi-scale decomposition method includes the following steps:
(1)将点云数据存储为2.5D,即将点云数据的Z坐标以像素值的形式进行存储,通过处理二维图像的方式进行处理点云数据;(1) The point cloud data is stored as 2.5D, that is, the Z coordinate of the point cloud data is stored in the form of pixel values, and the point cloud data is processed by processing two-dimensional images;
(2)通过小波的方式进行滤波,将高频与低频进行分离;(2) Filtering by wavelet method to separate high frequency from low frequency;
(3)将2.5D的图像向尺度函数与小波函数上进行投影;(3) Project the 2.5D image onto the scaling function and the wavelet function;
(4)进行低通滤波,由步骤(3)已经用小波表示出频率图像,取出两部分都在尺度函数上的投影,即图像的低频数据;(4) Perform low-pass filtering. The frequency image has been expressed by wavelet in step (3). The projections of both parts on the scale function are taken out, i.e., the low-frequency data of the image.
(5)经过步骤(4)的滤波,保留了低频,通过保留的低频信号向反变换核上进行投影,进行图像重建;(5) After filtering in step (4), the low frequency is retained, and the image is reconstructed by projecting the retained low frequency signal onto the inverse transform kernel;
(6)通过金字塔的方法进行降采样和升采样的方式来减小差异;(6) Reducing the difference by downsampling and upsampling through the pyramid method;
(7)重复步骤(3)-(6),直到显微测量数据的分辨率降低到所规定的要求。(7) Repeat steps (3) to (6) until the resolution of the microscopic measurement data is reduced to the specified requirements.
首先将2.5D的点云数据以图像的数据进行存储,即数据的存储形式为二维图像中像素坐标系下的坐标和像素值。通过模拟二位图像中的滤波方式来平滑显微测量数据中的Z坐标值,即把Z坐标值当成二位图像中像素值处理。根据数据处理的要求选择合适的小波基,DB4小波基,将图像投影到尺度函数与小波函数上,即用尺度函数与小波函数来表示图像,进行滤波,保留低频的信号,即保留轮廓,去除细节。通过小波的反变换核,将滤波过后的低频信号进行图像重建。通过金字塔的方式进行降采样,降采样后数据量减少,同时图像的尺寸也减小;再通过插值的方式,恢复图像的尺寸,插入的值都是0,因为插入的值都是零,在点云数据里不显示,从而减少了数据量,降低了分辨率。First, the 2.5D point cloud data is stored as image data, that is, the data is stored in the form of coordinates and pixel values in the pixel coordinate system of the two-dimensional image. The Z coordinate value in the microscopic measurement data is smoothed by simulating the filtering method in the two-dimensional image, that is, the Z coordinate value is treated as the pixel value in the two-dimensional image. According to the requirements of data processing, a suitable wavelet basis, DB4 wavelet basis, is selected, and the image is projected onto the scale function and wavelet function, that is, the scale function and wavelet function are used to represent the image, and filtering is performed to retain the low-frequency signal, that is, to retain the contour and remove the details. The low-frequency signal after filtering is reconstructed by the inverse transform kernel of the wavelet. Downsampling is performed by pyramid method, and the amount of data is reduced after downsampling, and the size of the image is also reduced; then the size of the image is restored by interpolation, and the inserted values are all 0, because the inserted values are all zero, they are not displayed in the point cloud data, thereby reducing the amount of data and the resolution.
重复以上步骤,将分辨率与数据量不断的降低,直到能够进行正确的跨尺度拼接,分解后的点云数据如图2所示。Repeat the above steps to continuously reduce the resolution and data volume until correct cross-scale stitching can be performed. The decomposed point cloud data is shown in Figure 2.
经以上步骤处理完的数据与文本的形式存储,将文本导入Geomagic软件中显示如图3所示,进行分解3次的点云、图4分解6次的点云。The data processed by the above steps are stored in the form of text, and the text is imported into Geomagic software to display the point cloud decomposed 3 times as shown in Figure 3 and the point cloud decomposed 6 times as shown in Figure 4.
本发明利用小波分解实现降低显微测量数据的频率,减小显微测量数据的频率与结构光测量数据的频率的差异;通过金字塔降采样和升采样插值的方式减少数据量,减小显微测量数据量与结构光测量数据量的差异。The present invention utilizes wavelet decomposition to reduce the frequency of microscopic measurement data, thereby reducing the difference between the frequency of microscopic measurement data and the frequency of structured light measurement data; and reduces the amount of data by pyramid downsampling and upsampling interpolation, thereby reducing the difference between the amount of microscopic measurement data and the amount of structured light measurement data.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110174579.3A CN112950690B (en) | 2021-02-07 | 2021-02-07 | Multi-scale decomposition method based on wavelet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110174579.3A CN112950690B (en) | 2021-02-07 | 2021-02-07 | Multi-scale decomposition method based on wavelet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112950690A CN112950690A (en) | 2021-06-11 |
CN112950690B true CN112950690B (en) | 2024-04-12 |
Family
ID=76244388
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110174579.3A Active CN112950690B (en) | 2021-02-07 | 2021-02-07 | Multi-scale decomposition method based on wavelet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112950690B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116402681B (en) * | 2023-03-30 | 2024-11-22 | 中国科学院生物物理研究所 | A self-supervised structured light microscopy reconstruction method and system based on pixel rearrangement |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5848193A (en) * | 1997-04-07 | 1998-12-08 | The United States Of America As Represented By The Secretary Of The Navy | Wavelet projection transform features applied to real time pattern recognition |
CN105303535A (en) * | 2015-11-15 | 2016-02-03 | 中国人民解放军空军航空大学 | Global subdivision pyramid model based on wavelet transformation |
CN111063027A (en) * | 2019-12-27 | 2020-04-24 | 河北工程大学 | Three-dimensional reconstruction data conduction system of digital holographic microscopic imaging equipment |
-
2021
- 2021-02-07 CN CN202110174579.3A patent/CN112950690B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5848193A (en) * | 1997-04-07 | 1998-12-08 | The United States Of America As Represented By The Secretary Of The Navy | Wavelet projection transform features applied to real time pattern recognition |
CN105303535A (en) * | 2015-11-15 | 2016-02-03 | 中国人民解放军空军航空大学 | Global subdivision pyramid model based on wavelet transformation |
CN111063027A (en) * | 2019-12-27 | 2020-04-24 | 河北工程大学 | Three-dimensional reconstruction data conduction system of digital holographic microscopic imaging equipment |
Also Published As
Publication number | Publication date |
---|---|
CN112950690A (en) | 2021-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Chaudhuri | Super-resolution imaging | |
CN106485764A (en) | The quick exact reconstruction methods of MRI image | |
KR101028628B1 (en) | An image texture filtering method, a recording medium recording a program for performing the same, and an apparatus for performing the same | |
CN112270332A (en) | Three-dimensional target detection method and system based on sub-stream sparse convolution | |
CN115565034A (en) | Infrared small target detection method based on double-current enhanced network | |
CN105225207B (en) | A kind of compressed sensing imaging and image rebuilding method based on observing matrix | |
CN112950690B (en) | Multi-scale decomposition method based on wavelet | |
CN109389553B (en) | Meteorological facsimile picture contour interpolation method based on T spline | |
CN107967675A (en) | A kind of structuring point cloud denoising method based on adaptive projection Moving Least Squares | |
CN117893435A (en) | Stripe noise removal method for very large three-dimensional biological images based on CUDA acceleration | |
CN103236041B (en) | A kind of image super-resolution rebuilding method based on contourlet transformation | |
CN106971392B (en) | A kind of method for detecting change of remote sensing image and device of combination DT-CWT and MRF | |
CN105118057A (en) | Image sharpness evaluation method based on quaternion wavelet transform amplitudes and phase positions | |
CN112991249B (en) | Remote sensing image fusion method based on depth separable CNN model | |
CN118628398A (en) | Dense point cloud denoising method, system and device based on visible shell | |
CN113592973A (en) | A magnetic resonance image reconstruction method and device based on multi-frequency complex convolution | |
CN114119916A (en) | Multi-view stereoscopic vision reconstruction method based on deep learning | |
US20020012472A1 (en) | Method for visualization of time sequences of 3D optical fluorescence microscopy images | |
CN118247153A (en) | A super-resolution method for continuous remote sensing images based on multi-feature fusion network | |
CN109697695B (en) | Visible light image guided ultra-low resolution thermal infrared image interpolation algorithm | |
CN111583323A (en) | Single-frame structured light field three-dimensional imaging method and system | |
CN118115659A (en) | Multi-view three-dimensional reconstruction method, device, electronic equipment and storage medium | |
CN117456185A (en) | Remote sensing image segmentation method based on adaptive pattern matching and nested modeling | |
CN110895790A (en) | Scene image super-resolution method based on posterior degradation information estimation | |
JP2004264919A (en) | Image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |