A three-dimensional restoration method based on re-blurred confocal differential axial effective area extraction
By shooting and processing the focal plane, pre-focus, and post-focus images, calculating the edge gradient ratio and defocus depth, and extracting the effective area for confocal differential measurement, the problem of the inability of the existing technology to restore the three-dimensional topography of the full field of view is solved. It achieves accurate restoration and universality of three-dimensional morphology.
Patent Information
- Application Number
- CN202210710316.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-22
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-06-22
AI Technical Summary
Existing confocal differential measurement technology cannot achieve three-dimensional topography restoration in the entire field of view, and lacks an effective extraction method.
The camera is used to capture the focal plane image, pre-focus image and post-focus image, perform blur processing and contour edge extraction, calculate the edge gradient ratio, calculate the defocus depth based on the lens imaging formula, extract the effective measurement area, and use confocal differential axial The response curve restores the three-dimensional topography within the field of view.
It realizes the extraction of the effective area of confocal differential measurement and provides a new method to accurately restore the three-dimensional topography of confocal differential measurement. It is universal and suitable for different confocal measurement systems.
Smart Images

Figure CN115096211B
Abstract
Description
Technical Field
[0001] The invention relates to the field of optical measurement, and in particular to a three-dimensional restoration method for re-blurred confocal differential axial effective area extraction. Background Art
[0002] Ultra-precision three-dimensional measurement technology is the core foundation and key technology of modern precision manufacturing and advanced processing and manufacturing technology. It is widely used in aerospace, defense industry, biomedicine, communication engineering and microelectronics. Modern manufacturing industry has put forward high-precision, large measurement range and fast requirements for surface morphology measurement. Optical measurement methods do not require the preparation of measurement samples in advance and do not need to contact the samples, so they will not cause damage to the surface of the measured samples; compared with the three-dimensional measurement methods of contact and scanning probe microscopes, optical measurement methods do not require physical probes, so they are more flexible in sample measurement preparation and measurement. The speed increase can be achieved through non-scanning measurement, which can realize real-time three-dimensional morphology measurement and even high-speed three-dimensional morphology measurement; optical measurement methods do not require the use of probes to physically contact or contact the sample surface as much as possible, so they will not cause permanent damage to the sample surface. Various optical three-dimensional surface measurement methods have been developed.
[0003] In confocal differential measurement, due to the limited axial measurement range, it is impossible to restore the three-dimensional morphology in the entire field of view. Therefore, extracting the effective axial measurement area in the field of view is very important for restoring the true three-dimensional morphology of the measured sample, but there is currently no very effective extraction method. Summary of the invention
[0004] The main purpose of the present invention is to overcome the above-mentioned defects in the prior art, and propose a three-dimensional restoration method for extracting the re-blurred confocal differential axial effective area, thereby realizing the extraction of the effective measurement area of the confocal differential measurement, and providing a new method for accurately restoring the three-dimensional morphology of the confocal differential measurement. The method can be applied to different confocal measurement systems and has a certain universality.
[0005] The present invention adopts the following technical solution:
[0006] A three-dimensional restoration method for re-blurred confocal differential axial effective area extraction, the implementation steps are as follows:
[0007] A camera is used to capture three images: a focus surface image P0 (x, y), a pre-focus image P1 (x, y), and a post-focus image P2 (x, y);
[0008] The focus surface image P0(x, y) is blurred to obtain a blurred image P3(x, y);
[0009] Extract the contour edge area P0'(x,y) in the focus image P0(x,y), and extract the corresponding area P3'(x,y) of the contour edge area in the re-blurred image P3(x,y);
[0010] Calculate the edge gradients of the contour edge area P0'(x,y) and the area corresponding to the contour edge area P3'(x,y) respectively, and obtain the edge grayscale gradient P0"(x,y) and the re-fuzzy edge grayscale gradient P3"(x,y);
[0011] Perform a ratio operation on the edge grayscale gradient P0" (x, y) and the re-fuzzy edge grayscale gradient P3" (x, y) to obtain the edge gradient ratio σ (x, y);
[0012] According to the edge gradient ratio σ(x,y) and the lens imaging formula Calculate the defocus depth, where k is a constant, D is the aperture of the optical system; s is the distance between the image plane and the optical system; d f is the object focal length; Δd is the defocus depth;
[0013] Extracting regions P1'(x,y) and P2'(x,y) where the defocus depth Δd of the focus surface image P0(x,y) is less than or equal to the defocus distance of the pre-focus image P1(x,y) and the post-focus image P2(x,y);
[0014] Based on the effective areas P1'(x, y) and P2'(x, y) extracted before and after focus, subtraction is performed, and the three-dimensional morphology of the effective measurement area in the field of view is restored using the confocal differential axial response curve.
[0015] Specifically, a camera is used to shoot three images, namely, a focus surface image P0 (x, y), a pre-focus image P1 (x, y), and a post-focus image P2 (x, y). The specific method includes but is not limited to:
[0016] Point scanning confocal, line scanning confocal or area array confocal;
[0017] Specifically, the focus surface image P0(x, y) is blurred to obtain a blurred image P3(x, y). The blurring method includes but is not limited to:
[0018] The point spread function of the imaging system performs a convolution operation on the focus plane image, and the convolution kernel includes but is not limited to a Gaussian kernel, a Cauchy kernel, or a Gaussian-Cauchy kernel.
[0019] Specifically, the contour edge region P0'(x, y) in the focus image P0(x, y) is extracted, and the contour edge region corresponding region P3'(x, y) in the re-blurred image P3(x, y) is extracted. The contour edge region extraction method includes but is not limited to:
[0020] Sobel extraction method, Roberts extraction method, Canny extraction method, Laplacian extraction method and morphological edge extraction method.
[0021] Specifically, the edge gradients of the contour edge area P0'(x, y) and the area corresponding to the contour edge area P3'(x, y) are calculated respectively to obtain the edge gray gradient P0" (x, y) and the re-fuzzy edge gray gradient P3" (x, y). The edge gradient extraction method includes but is not limited to:
[0022] The image edge gradient changes are calculated by using the Sobel or Robert edge gradient operator or the threshold edge extraction method, or the image edge gradient changes are calculated directly by using the edge gradient operator or the threshold edge extraction method.
[0023] Specifically, the confocal differential axial response curve is used to restore the three-dimensional morphology of the effective measurement area in the field of view. The confocal differential axial response curve restoration method is:
[0024] In confocal imaging, the axial light intensity satisfies the formula: Where u is the object axial defocus, I(u) is the axial light intensity value; the axial differential measurement is to obtain two axial light intensity response curves that are equidistant before and after the positive focal plane and make a difference: u F is the offset before and after focus; in actual differential 3D measurement, the grayscale difference and differential curve I are obtained by subtracting the two images before and after focus. T The linear region in restores the depth information of the focus plane image.
[0025] It can be seen from the above description of the present invention that, compared with the prior art, the present invention has the following beneficial effects:
[0026] The present invention provides a three-dimensional restoration method for re-blurred confocal differential axial effective area extraction, realizes the extraction of the effective measurement area of confocal differential measurement, provides a new method for accurately restoring the three-dimensional morphology of confocal differential measurement, and can be applied to different confocal measurement systems, with a certain universality. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A flowchart of a three-dimensional restoration method for re-blurred confocal differential axial effective area extraction provided by an embodiment of the present invention;
[0028] Figure 2 A graph showing the relationship between light intensity and sample axial defocus provided by an embodiment of the present invention;
[0029] Figure 3 This is a simulation diagram of the axial differential measurement curve provided in an embodiment of the present invention.
[0030] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. DETAILED DESCRIPTION
[0031] The present invention provides a three-dimensional restoration method for re-blurred confocal differential axial effective area extraction, realizes the extraction of the effective measurement area of confocal differential measurement, provides a new method for accurately restoring the three-dimensional morphology of confocal differential measurement, and can be applied to different confocal measurement systems, with a certain universality.
[0032] like Figure 1 , is a flow chart of a three-dimensional restoration method for re-blurring confocal differential axial effective area extraction provided by an embodiment of the present invention, specifically:
[0033] A three-dimensional restoration method for re-blurred confocal differential axial effective area extraction, the implementation steps are as follows:
[0034] S101: Use a camera to capture three images: a focus surface image P0 (x, y), a pre-focus image P1 (x, y), and a post-focus image P2 (x, y);
[0035] Specifically, a camera is used to shoot three images, namely, a focus surface image P0 (x, y), a pre-focus image P1 (x, y), and a post-focus image P2 (x, y). The specific method includes but is not limited to:
[0036] Point scanning confocal, line scanning confocal or area array confocal;
[0037] S102: performing blur processing on the focus surface image P0 (x, y) to obtain a blurred image P3 (x, y);
[0038] Specifically, the focus surface image P0(x, y) is blurred to obtain a blurred image P3(x, y). The blurring method includes but is not limited to:
[0039] The point spread function of the imaging system performs a convolution operation on the focus plane image, and the convolution kernel includes but is not limited to a Gaussian kernel, a Cauchy kernel, or a Gaussian-Cauchy kernel.
[0040] S103: extracting the contour edge region P0'(x,y) in the focus image P0(x,y), and extracting the contour edge region corresponding region P3'(x,y) in the re-blurred image P3(x,y);
[0041] Specifically, the contour edge region P0'(x, y) in the focus image P0(x, y) is extracted, and the contour edge region corresponding region P3'(x, y) in the re-blurred image P3(x, y) is extracted. The contour edge region extraction method includes but is not limited to:
[0042] Sobel extraction method, Roberts extraction method, Canny extraction method, Laplacian extraction method and morphological edge extraction method.
[0043] S104: Calculate the edge gradients of the contour edge region P0'(x, y) and the region corresponding to the contour edge region P3'(x, y) respectively, and obtain the edge grayscale gradient P0"(x, y) and the re-fuzzy edge grayscale gradient P3"(x, y);
[0044] Specifically, the edge gradients of the contour edge area P0'(x, y) and the area corresponding to the contour edge area P3'(x, y) are calculated respectively to obtain the edge gray gradient P0" (x, y) and the re-fuzzy edge gray gradient P3" (x, y). The edge gradient extraction method includes but is not limited to:
[0045] The image edge gradient changes are calculated by using the Sobel or Robert edge gradient operator or the threshold edge extraction method, or the image edge gradient changes are calculated directly by using the edge gradient operator or the threshold edge extraction method.
[0046] S105: performing a ratio operation on the edge grayscale gradient P0" (x, y) and the re-fuzzified edge grayscale gradient P3" (x, y) to obtain an edge gradient ratio σ (x, y);
[0047] S106: According to the edge gradient ratio σ(x,y) and the lens imaging formula Calculate the defocus depth, where k is a constant, D is the aperture of the optical system; s is the distance between the image plane and the optical system; d f is the object focal length; Δd is the defocus depth;
[0048]
[0049] The calculation method of the ratio is:
[0050] The focus image of the ideal imaging system is a clear image P(x,y). The focus image P0(x,y) collected by the real system can be regarded as the absolute clear image P(x,y) subjected to a convolution operation h(x,y,σ) with an unknown but extremely small standard deviation, while the blurred image P3(x,y) is the image P0(x,y) subjected to a convolution operation with a known and large standard deviation h(x,y,σ1). That is, the blurred image P3(x,y) can be regarded as the clear image P(x,y) subjected to two convolution operations P3(x,y) = P0(x,y)*h(x,y,σ)*h(x,y,σ1).
[0051] The fuzzy ratio σ(x,y) of P0(x,y) and P3(x,y) can be expressed as:
[0052]
[0053] final
[0054] Here σ1 is known, and σ is related to Assuming that σ is the same variable, we can get a functional relationship between Δd and σ(x, y). By calibrating the curve in advance, we can calculate Δd from σ(x, y) to realize the defocus depth calculation of the focal plane image.
[0055] S107: extracting regions P1'(x,y) and P2'(x,y) of the focus image P0(x,y) where the depth d is less than or equal to the out-of-focus distances of the pre-focus image P1(x,y) and the post-focus image P2(x,y);
[0056] S108: Perform subtraction based on the effective areas P1'(x, y) and P2'(x, y) extracted before and after focus, respectively, and use the confocal differential axial response curve to restore the three-dimensional morphology of the effective measurement area in the field of view.
[0057] Specifically, the confocal differential axial response curve is used to restore the three-dimensional morphology of the effective measurement area in the field of view. The confocal differential axial response curve restoration method is:
[0058] In confocal imaging, the axial light intensity satisfies the formula: Where u is the object axial defocus, I(u) is the axial light intensity value; the axial differential measurement is to obtain two axial light intensity response curves that are equidistant before and after the positive focal plane and make a difference: uF is the offset before and after focus. In actual differential 3D measurement, the grayscale difference and differential curve I are obtained by subtracting the two images before and after focus. T The linear region in restores the depth information of the focus plane image.
[0059] like Figure 2 A graph showing the relationship between light intensity and sample axial defocus provided by an embodiment of the present invention; Figure 3 This is a simulation diagram of the axial differential measurement curve provided in an embodiment of the present invention.
[0060] The present invention provides a three-dimensional restoration method for re-blurred confocal differential axial effective area extraction, realizes the extraction of the effective measurement area of confocal differential measurement, provides a new method for accurately restoring the three-dimensional morphology of confocal differential measurement, and can be applied to different confocal measurement systems, with a certain universality.
[0061] The above is only a specific implementation of the present invention, but the design concept of the present invention is not limited thereto. Any non-substantial changes to the present invention using this concept shall be deemed as an infringement of the protection scope of the present invention.
Claims
1. A three-dimensional restoration method for re-blurred confocal differential axial effective area extraction, characterized in that: The implementation steps are as follows: A camera is used to capture three images: a focus surface image P0 (x, y), a pre-focus image P1 (x, y), and a post-focus image P2 (x, y); The focus surface image P0(x, y) is blurred to obtain a blurred image P3(x, y); Extract the contour edge area P0'(x,y) in the focus image P0(x,y), and extract the corresponding area P3'(x,y) of the contour edge area in the re-blurred image P3(x,y); Calculate the edge gradients of the contour edge area P0'(x,y) and the area corresponding to the contour edge area P3'(x,y) respectively, and obtain the edge grayscale gradient P0"(x,y) and the re-fuzzy edge grayscale gradient P3"(x,y); Perform a ratio operation on the edge grayscale gradient P0" (x, y) and the re-fuzzy edge grayscale gradient P3" (x, y) to obtain the edge gradient ratio σ (x, y); According to the edge gradient ratio σ(x,y) and the lens imaging formula Calculate the defocus depth, where k is a constant, D is the aperture of the optical system; s is the distance between the image plane and the optical system; d f is the object focal length; Δd is the defocus depth; Extracting regions P1'(x,y) and P2'(x,y) where the defocus depth Δd of the focus surface image P0(x,y) is less than or equal to the defocus distance of the pre-focus image P1(x,y) and the post-focus image P2(x,y); According to the effective areas P1'(x, y) and P2'(x, y) extracted before and after focus, subtraction is performed, and the three-dimensional morphology of the effective measurement area in the field of view is restored using the confocal differential axial response curve; The three-dimensional morphology of the effective measurement area in the field of view is restored by using the confocal differential axial response curve, and the confocal differential axial response curve restoration method is: In confocal imaging, the axial light intensity satisfies the formula: Where u is the object axial defocus, I(u) is the axial light intensity value; the axial differential measurement is to obtain two axial light intensity response curves that are equidistant before and after the positive focal plane and make a difference: u F is the defocus distance before and after focus; in actual differential 3D measurement, the grayscale difference and differential curve I are obtained by subtracting the two images before and after focus. T The linear region in restores the depth information of the focus plane image.
2. The three-dimensional restoration method of re-blurred confocal differential axial effective area extraction according to claim 1, characterized in that: A camera is used to capture three images, namely, a focus surface image P0 (x, y), a pre-focus image P1 (x, y), and a post-focus image P2 (x, y). The specific method includes but is not limited to: Point scanning confocal, line scanning confocal or area array confocal.
3. The three-dimensional restoration method of re-blurred confocal differential axial effective area extraction according to claim 1, characterized in that: The focus surface image P0(x, y) is blurred to obtain a blurred image P3(x, y). The blurring method includes but is not limited to: The point spread function of the imaging system performs a convolution operation on the focus plane image, and the convolution kernel includes but is not limited to a Gaussian kernel, a Cauchy kernel, or a Gaussian-Cauchy kernel.
4. The three-dimensional restoration method of re-blurred confocal differential axial effective area extraction according to claim 1, characterized in that: Extract the contour edge area P0'(x,y) in the focus image P0(x,y), and extract the corresponding area P3'(x,y) of the contour edge area in the blurred image P3(x,y). The contour edge area extraction method includes but is not limited to: Sobel extraction method, Roberts extraction method, Canny extraction method, Laplacian extraction method and morphological edge extraction method.
5. The three-dimensional restoration method of re-blurred confocal differential axial effective area extraction according to claim 1, characterized in that: Calculate the edge gradients of the contour edge area P0'(x, y) and the area corresponding to the contour edge area P3'(x, y) respectively to obtain the edge gray gradient P0" (x, y) and the re-fuzzy edge gray gradient P3" (x, y). The edge gradient extraction method includes but is not limited to: The image edge gradient changes are calculated by using the Sobel or Robert edge gradient operator or the threshold edge extraction method, or the image edge gradient changes are calculated directly by using the edge gradient operator or the threshold edge extraction method.
