Optical Center Extraction Method and System Based on Polarization-Improved Threshold Segmentation

Through the polarization-improved threshold segmentation method and filter combined with double-cubic interpolation method, the problem of low extraction accuracy of laser centerline on high-reflection surfaces is solved, and the positioning of the light center coordinates with higher accuracy is achieved, and the accuracy of laser area segmentation is improved.

CN120235932BActive Publication Date: 2025-08-01EAST CHINA JIAOTONG UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510705507.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-29
Publication Date
2025-08-01
Estimated Expiration
2045-05-29

AI Technical Summary

Technical Problem

When traditional light center extraction technology is on highly reflective surfaces, noise and complex reflections lead to reduced laser centerline extraction accuracy.

Method used

Using a method based on polarization-improved threshold segmentation, the laser image and polarization degree image collected by the polarization camera, calculate the polarization degree value and grayscale value, perform normalization processing, and determine the optimal segmentation threshold by maximizing the inter-class variance, and locate the first-order derivative zero point in combination with filter and bicubital interpolation method to extract the optical center point.

Benefits of technology

The distinction ability of laser areas of the high-reflection surface is improved, and the coordinate positioning of the light center is achieved with higher accuracy, avoiding the impact of light pollution caused by the high-reflection surface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120235932B_ABST
    Figure CN120235932B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method and system for extracting the optical center based on polarization-improved threshold segmentation, including: acquiring a laser image modulated by meridional polarization and a polarization degree image collected by a polarization camera; calculating the polarization degree value and the gray value according to the acquired polarization degree image and the laser image, magnifying the resolution of the polarization degree image to be equal to that of the laser image by using an interpolation method, and respectively performing normalization processing on the polarization degree value and the gray value to obtain the normalized polarization degree value and the gray value; classifying the corresponding pixel points of the laser image and the polarization degree image based on the magnitude relationship between the normalized gray value and the polarization degree value and the joint threshold, determining the optimal segmentation threshold by maximizing the between-class variance, and further extracting the gray image of the laser region; obtaining the first-order derivative of the gray image through a filter, and using bicubic interpolation to locate the zero point of the first-order derivative to obtain the coordinates of the optical center. The method of the present disclosure can achieve high-precision positioning of the optical center coordinates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer vision technology, and in particular, to a method and system for extracting the optical center based on polarization-improved threshold segmentation. Background Art

[0002] The line-structured light three-dimensional detection technology is an important research direction in the field of three-dimensional detection in recent years. This technology is particularly suitable for fields with strict requirements for accuracy and anti-interference, such as industrial precision part detection, optical free-form surface measurement, and robot navigation. The accuracy of the line-structured light three-dimensional detection technology depends on the accuracy of optical center extraction. However, when measuring a reflective metal surface, laser reflection will cause the loss of image texture information, making it difficult to extract the projected laser stripe. Therefore, in the presence of noise caused by laser reflection, accurately extracting the laser center line is the key to achieving accurate measurement of the entire system.

[0003] Traditional optical center extraction techniques. Traditional optical stripe center extraction algorithms mainly achieve sub-pixel positioning by analyzing the gray-scale distribution or geometric features of laser lines. These methods generally include: The gray-scale centroid method is based on the symmetry feature of the gray-scale distribution of the cross-section of the optical stripe. It scans the laser line image row by row, extracts the gray-scale values of each row of pixels, and then uses the gray-scale values as weights to calculate the weighted average of the pixel abscissas to obtain the gray-scale centroid coordinates of each row. By calculating and connecting all the centroid points row by row, the complete optical stripe center line is fitted; The direction template method enhances the linear feature of the optical stripe by designing a direction-sensitive filter (such as a Gabor filter or a Sobel direction operator). The algorithm presets a set of direction templates with different angles, performs multi-directional convolution filtering on the image, and selects the direction with the strongest response as the local direction of the optical stripe. Search for the extreme points (such as the maximum value or the zero point of the first derivative) of the gray-scale distribution along this direction as the sub-pixel-level center position, and finally connect the points along the extension direction of the optical stripe to form the center line; The Steger algorithm is based on the geometric structure characteristics of the optical stripe. It uses the second derivative of the image to construct the Hessian matrix, analyzes the curvature characteristics of the local area, and determines the normal direction of the optical stripe by solving the direction of the maximum eigenvalue of the Hessian matrix. Perform a second-order Taylor expansion of the gray-scale distribution along the normal direction, analytically solve the point where the first derivative is zero, and achieve sub-pixel-level center positioning. Finally, connect the discrete center points into a smooth curve through polynomial fitting or spline interpolation. However, when facing a highly reflective surface, it still faces problems such as noise, surface gloss, and complex reflection, which may lead to a reduction in the accuracy of laser line extraction. Summary of the Invention

[0004] To solve the problems that traditional methods cause the loss of image texture information due to noise caused by laser reflection, resulting in a reduction in the accuracy of laser center line extraction, etc., the present disclosure proposes a method for extracting the optical center based on polarization-improved threshold segmentation to solve the above problems.

[0005] According to one aspect of the present disclosure, there is provided a method for extracting the optical center based on polarization-improved threshold segmentation, including:

[0006] S10. Obtain the laser image and the polarization degree image modulated by meridional polarization collected by a polarization camera;

[0007] S20. Calculate the polarization degree value and the gray value according to the obtained polarization degree image and the laser image, use the interpolation method to magnify the resolution of the polarization degree image to be equal to that of the laser image, and perform normalization processing on the polarization degree value and the gray value respectively to obtain the normalized polarization degree value and the gray value;

[0008] S30. Classify the corresponding pixel points of the laser image and the polarization degree image based on the magnitude relationship between the normalized gray value and the polarization degree value and the joint threshold, determine the optimal segmentation threshold by maximizing the between-class variance, and further extract the gray image of the laser region;

[0009] S40. Obtain the first derivative of the gray image through a filter, use the bicubic interpolation method to locate the zero point of the first derivative, and obtain the coordinates of the optical center point.

[0010] Preferably, the polarization degree value is calculated according to the obtained polarization degree image, which is expressed as:

[0011] ,

[0012] wherein, S0 represents the total light intensity, S1 represents the variance of the light intensity of horizontal polarization relative to vertical polarization, S2 represents the variance of the light intensity of 45° polarization relative to 135° polarization, S3 represents the change in the light intensity of the right-handed circular polarization flux relative to the left-handed circular polarization flux, and Dolp is the polarization degree value describing the light in the polarized light state.

[0013] Preferably, the polarization degree value and the gray value are respectively normalized to obtain the normalized polarization degree value and the gray value, which are expressed as:

[0014] ,

[0015] ,

[0016] wherein, and are the original gray image and the polarization degree image respectively, and are the maximum value and the minimum value of the image polarization degree respectively, and are the maximum value and the minimum value of the image gray value respectively, is the normalized polarization degree value, is the normalized gray value.

[0017] Preferably, based on the magnitude relationship between the normalized gray value and the polarization degree value and the joint threshold, the corresponding pixel points of the laser image and the polarization degree image are classified, including: setting the joint threshold , where represents the threshold of the laser image, represents the threshold of the corresponding polarization degree image. For each pixel point, according to the magnitude relationship between its normalized gray value and polarization degree value and the joint threshold, the pixel point is divided into four categories:

[0018] When the gray value of the pixel point is greater than , and the polarization degree value at the corresponding pixel point in the polarization degree image is greater than , the pixel point is of category k1; when the gray value of the pixel is greater than , and the polarization degree value at the corresponding pixel point in the polarization degree image is less than or equal to , the pixel point is of category k2; when the gray value of the pixel is less than or equal to , and the polarization degree value at the corresponding pixel point in the polarization degree image is greater than , the pixel point is of category k3; when the gray value of the pixel is less than or equal to , and the polarization degree value at the corresponding pixel point in the polarization degree image is less than or equal to , the pixel point is of category k4.

[0019] Preferably, the optimal segmentation threshold is determined by maximizing the between-class variance, including: calculating the between-class variance of each category according to the classification results of the corresponding pixel points of the laser image and the polarization degree image . If the current between-class variance is greater than the historical maximum value, then update the joint threshold to obtain the optimal segmentation threshold .

[0020] Preferably, the first derivative of the gray image is obtained through a filter, expressed as:

[0021] ,

[0022] In the formula, is the gray image, H is the expression of the filter, ([[]] x , y ) is the coordinate of any target point, and D([[]] x ) is the first derivative image.

[0023] Preferably, the bicubic interpolation method is used to locate the zero point of the first derivative, including: using the bicubic interpolation method to fit the derivative values near the zero point of the first derivative, constructing a two-dimensional cubic polynomial function to smoothly reconstruct the gradient distribution within the zero point region, and finding the zero intersection point at the sub-pixel scale.

[0024] According to one aspect of the present disclosure, there is provided an optical center extraction system based on polarization-improved threshold segmentation, including:

[0025] A laser image and polarization degree image acquisition module that acquires a laser image and a polarization degree image modulated by meridional polarization collected by a polarization camera;

[0026] A polarization degree value and gray value normalization processing module that calculates the polarization degree value and the gray value according to the acquired polarization degree image and laser image, uses the interpolation method to magnify the resolution of the polarization degree image to be equal to that of the laser image, and respectively performs normalization processing on the polarization degree value and the gray value to obtain the normalized polarization degree value and gray value;

[0027] A gray image extraction module that classifies the corresponding pixel points of the laser image and the polarization degree image based on the magnitude relationship between the normalized gray value and the polarization degree value and the joint threshold, determines the optimal segmentation threshold by maximizing the between-class variance, and further extracts the gray image of the laser region.

[0028] An optical center point coordinate acquisition module that obtains the first derivative of the gray image through a filter, uses the bicubic interpolation method to locate the zero point of the first derivative, and obtains the optical center point coordinates.

[0029] According to one aspect of the present disclosure, there is provided an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to: execute the above-mentioned optical center extraction method based on polarization-improved threshold segmentation.

[0030] According to one aspect of the present disclosure, there is provided a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above-mentioned optical center extraction method based on polarization-improved threshold segmentation is implemented.

[0031] Compared with the prior art, the beneficial effects of the present disclosure are:

[0032] 1) By introducing the polarization degree as a factor affecting threshold calculation, the present disclosure classifies the corresponding pixel points of the laser image and the polarization degree image, and expands the maximum between-class variance method based on these categories, and can quantify the consistency of the vibration direction of the light wave electric field in the high-reflection region, so as to achieve stronger discrimination ability of the algorithm in laser segmentation.

[0033] 2) In the present disclosure, a filter is used to approximately obtain its first derivative and combine it with a bicubic interpolation model to locate the zero point of the first derivative, enabling the approximation of the first derivative and gradient fitting to fully utilize surrounding pixels, thereby achieving high-precision positioning of the optical center coordinates.

[0034] 3) The present disclosure can significantly improve the laser discrimination ability of highly reflective objects, segment a more accurate laser region, and can also fully utilize the surrounding pixel information in the positioning of the optical center coordinates to avoid the influence of light pollution caused by highly reflective surfaces.

[0035] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, rather than limiting the present disclosure.

[0036] Other features and aspects of the present disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Description of the Drawings

[0037] The accompanying drawings herein are incorporated into the specification and form a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and, together with the specification, are used to explain the technical solutions of the present disclosure.

[0038] Figure 1 Flowchart showing the optical center extraction method based on polarization-improved threshold segmentation;

[0039] Figure 2 Block diagram showing the structure of the optical center extraction system based on polarization-improved threshold segmentation in an embodiment of the present disclosure. Detailed Embodiments

[0040] The following will detail various exemplary embodiments, features, and aspects of the present disclosure with reference to the accompanying drawings. The same reference numerals in the drawings denote elements with the same or similar functions. Although various aspects of the embodiments are shown in the drawings, the drawings do not have to be drawn to scale unless otherwise specified.

[0041] The special term "exemplary" herein means "serving as an example, embodiment, or illustrative". Any embodiment described as "exemplary" herein does not have to be construed as superior to or better than other embodiments.

[0042] The term "and / or" in this document merely describes the association relationship of associated objects and indicates that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" in this document means any one of multiple or any combination of at least two of multiple. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set composed of A, B, and C.

[0043] In addition, to better illustrate the present disclosure, numerous specific details are given in the following detailed implementation manners. Those skilled in the art should understand that the present disclosure can also be implemented without certain specific details. In some instances, methods, means, elements, and circuits well-known to those skilled in the art are not described in detail to highlight the gist of the present disclosure.

[0044] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0045] Embodiment 1

[0046] Based on the above idea, the present invention proposes an optical center extraction method based on polarization-improved threshold segmentation. Figure 1 The flowchart of an optical center extraction method based on polarization-improved threshold segmentation is shown. The method includes:

[0047] S10. Obtain the laser image and polarization degree image modulated by meridional polarization collected by a polarization camera;

[0048] S20. Calculate the polarization degree value and grayscale value according to the obtained polarization degree image and laser image, use the interpolation method to enlarge the resolution of the polarization degree image to be equal to that of the laser image, and perform normalization processing on the polarization degree value and grayscale value respectively to obtain the normalized polarization degree value and grayscale value;

[0049] S30. Based on the size relationship between the normalized grayscale value and polarization degree value and the joint threshold, classify the corresponding pixel points of the laser image and the polarization degree image, determine the optimal segmentation threshold by maximizing the between-class variance, and further extract the grayscale image of the laser region;

[0050] S40. Obtain the first-order derivative of the grayscale image through a filter, use the bicubic interpolation method to locate the zero point of the first-order derivative, and obtain the optical center point coordinates.

[0051] The embodiment of the present disclosure provides an optical center extraction method based on polarization-improved threshold segmentation, which specifically includes the following steps:

[0052] S10. Obtain the laser image and polarization degree image modulated by meridional polarization collected by a polarization camera.

[0053] In this embodiment, the laser image collected by the polarization camera is modulated into linearly polarized light through a polarization lens, and the polarization state images at 4 angles of the split focal plane of the polarization camera are obtained.

[0054] S20. Calculate the degree of polarization value and the gray value based on the acquired degree of polarization image and the laser image. Use the interpolation method to magnify the resolution of the degree of polarization image to be equal to that of the laser image, and perform normalization processing on the degree of polarization value and the gray value respectively to obtain the normalized degree of polarization value and the normalized gray value.

[0055] In this embodiment, the degree of polarization value of the image is calculated based on the acquired degree of polarization image by using the Stokes vector, which is expressed as:

[0056] ,

[0057] In the formula, S0 represents the total light intensity, S1 represents the variance of the light intensity of horizontal polarization relative to vertical polarization, S2 represents the variance of the light intensity of 45° polarization relative to 135° polarization, S3 represents the change in the light intensity of the right-handed circular polarization flux relative to the left-handed circular polarization flux, and Dolp is the degree of polarization value describing the light in the polarized light state. .

[0058] Furthermore, use the interpolation method to magnify the resolution of the degree of polarization image to be equal to that of the laser image, and perform normalization processing on the degree of polarization value and the gray value respectively to obtain the normalized degree of polarization value and the normalized gray value, which are expressed as:

[0059] ,

[0060] ,

[0061] In the formula, and are the original gray image and the degree of polarization image respectively, and are the maximum value and the minimum value of the image degree of polarization respectively, and are the maximum value and the minimum value of the image gray value respectively, is the normalized degree of polarization value, is the normalized gray value, both of which are in [0, 1].

[0062] S30. Based on the magnitude relationship between the normalized gray value and the degree of polarization value and the joint threshold, classify the corresponding pixel points of the laser image and the degree of polarization image, determine the optimal segmentation threshold by maximizing the between-class variance, and further extract the gray image of the laser region.

[0063] In this embodiment, classify the pixel points of the laser image in combination with the degree of polarization image. Based on the magnitude relationship between the normalized gray value and the degree of polarization value and the joint threshold, classify the corresponding pixel points of the laser image and the degree of polarization image, including: setting the joint threshold , where represents the threshold of the laser image, represents the threshold of the corresponding degree of polarization image. For each pixel, according to the relationship between its normalized gray value and degree of polarization value and the joint threshold, the pixel is divided into four categories:

[0064] When the gray value of the pixel is greater than , and the degree of polarization value at the corresponding pixel in the degree of polarization image is greater than , the pixel is of category k1; when the gray value of the pixel is greater than , and the degree of polarization value at the corresponding pixel in the degree of polarization image is less than or equal to , the pixel is of category k2; when the gray value of the pixel is less than or equal to , and the degree of polarization value at the corresponding pixel in the degree of polarization image is greater than , the pixel is of category k3; when the gray value of the pixel is less than or equal to , and the degree of polarization value at the corresponding pixel in the degree of polarization image is less than or equal to , the pixel is of category k4.

[0065] In this embodiment, the between-class variance of each class is calculated, and the optimal segmentation threshold is obtained by maximizing the between-class variance that measures different features of different classes. Among them, determining the optimal segmentation threshold by maximizing the between-class variance includes: calculating the between-class variance of each class according to the classification results of the corresponding pixels of the laser image and the degree of polarization image , expressed as:

[0066] ,

[0067] In the formula, k represents the class, represents the probability that the pixels of class k appear, and respectively represent the average gray value and degree of polarization among the pixels of class k, and respectively represent the average gray value and degree of polarization in the entire image. The calculation formulas of these parameters are shown in Table 1 below.

[0068] Table 1:

[0069]

[0070] The obtaining of the optimal segmentation threshold by maximizing the between-class variance that measures different features of different classes includes: if the current between-class variance is greater than the historical maximum value, then update the joint threshold to obtain the optimal segmentation threshold , expressed as:

[0071] ,

[0072] S40. Obtain the first derivative of the grayscale image through a filter, and use bicubic interpolation to locate the zero points of the first derivative to obtain the coordinates of the light center point.

[0073] In this embodiment, for the grayscale image of the laser region, the first derivative is approximately obtained by using a fir filter and the zero points of the first derivative are located in combination with the bicubic interpolation model, including:

[0074] Apply the fir filter H to each pixel in the grayscale image to obtain the first derivative , expressed as:

[0075] ,

[0076] In the formula, is the grayscale image, H is the expression of the filter, ( x , y ) is the coordinate of any target point, and D( x ) is the first derivative image.

[0077] Furthermore, using bicubic interpolation to locate the zero points of the first derivative includes: using bicubic interpolation to fit the derivative values near the zero points of the first derivative, smoothing and reconstructing the gradient distribution within the zero point region by constructing a two-dimensional cubic polynomial function, and finding the zero intersection point at the sub-pixel scale, expressed as:

[0078] ,

[0079] ,

[0080] In the formula, is the interpolation coefficient, determined by the derivative values in the field, is the upper left corner coordinate of the interpolation region, is the coordinate of any target point, represents the coefficients of the interpolation polynomial, determined by the interpolation process.

[0081] The embodiment of the present disclosure proposes an optical center extraction algorithm based on polarization-improved threshold segmentation. By adding a polarization information to act on the threshold segmentation of the laser image and combining with a high-precision zero point positioning model, the segmentation threshold has stronger discrimination ability for polarized lasers, which can effectively improve the measurement accuracy.

[0082] Embodiment 2

[0083] As another aspect of the embodiment of the present disclosure, an optical center extraction system 100 based on polarization-improved threshold segmentation is further provided, asFigure 2 As shown in the figure, it includes:

[0084] A laser image and polarization degree image acquisition module 1, which acquires a laser image and a polarization degree image modulated by meridional polarization collected by a polarization camera;

[0085] A polarization degree value and gray value normalization processing module 2, which calculates the polarization degree value and the gray value according to the acquired polarization degree image and laser image, uses an interpolation method to enlarge the resolution of the polarization degree image to be equal to that of the laser image, and respectively performs normalization processing on the polarization degree value and the gray value to obtain the normalized polarization degree value and gray value;

[0086] A gray image extraction module 3, which classifies the corresponding pixel points of the laser image and the polarization degree image based on the size relationship between the normalized gray value and the polarization degree value and the joint threshold, determines the optimal segmentation threshold by maximizing the between-class variance, and further extracts the gray image of the laser region;

[0087] A light center point coordinate acquisition module 4, which obtains the first derivative of the gray image through a filter, uses bicubic interpolation to locate the zero point of the first derivative, and obtains the light center point coordinate.

[0088] Without conflict, the above modules in the system of the embodiments of the present disclosure can implement any implementation manner of the above method.

[0089] Based on the description of the above embodiments, the embodiments of the present disclosure can achieve the following technical effects:

[0090] 1) By introducing the polarization degree as a factor affecting threshold calculation, the present disclosure classifies the corresponding pixel points of the laser image and the polarization degree image, and extends the maximum between-class variance method based on these classes, which can quantify the consistency of the vibration direction of the optical wave electric field in the high-reflection region, thereby enabling the algorithm to have stronger discrimination ability in laser segmentation.

[0091] 2) The present disclosure approximately obtains its first derivative using a filter and combines a bicubic interpolation model to locate the zero point of the first derivative, so that the approximation of the first derivative and gradient fitting can make full use of surrounding pixels, thereby achieving high-precision light center coordinate positioning.

[0092] 3) The present disclosure can significantly improve the laser discrimination ability of high-reflection objects, segment a more accurate laser region, and can also make full use of surrounding pixel information in light center coordinate positioning to avoid the influence of light pollution caused by high-reflection surfaces.

[0093] An embodiment of the present disclosure also provides an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein, the processor is configured to perform the above-mentioned light center extraction method based on polarization-improved threshold segmentation. The electronic device can be provided as a terminal, a server or other forms of devices.

[0094] An embodiment of the present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above-mentioned light center extraction method based on polarization-improved threshold segmentation is implemented. The computer-readable storage medium can be a non-volatile computer-readable storage medium.

[0095] Those skilled in the art can understand that in the above-mentioned light center extraction method and system based on polarization-improved threshold segmentation in the specific implementation manner, the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process. The specific execution order of each step should be determined according to its function and possible internal logic.

[0096] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions and operations of systems, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of an instruction, and the module, the program segment, or the part of the instruction contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions marked in the block may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0097] The above has described the embodiments of the present disclosure. The above description is exemplary and not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations are obvious to those of ordinary skill in the art in the technical field without departing from the scope and spirit of the described embodiments. The selection of the terms used herein is intended to best explain the principles of the embodiments, the practical application, or the technical improvement of the technology in the market, or to enable other ordinary technical personnel in the technical field to understand the embodiments disclosed herein.

Claims

1. An optical center extraction method based on polarization-improved threshold segmentation, characterized in that It includes the following steps: S10. Obtain the laser image with meridional polarization modulation and the polarization degree image collected by a polarization camera; S20. Calculate the polarization degree value and the gray value according to the obtained polarization degree image and laser image. Use the interpolation method to enlarge the resolution of the polarization degree image to be equal to that of the laser image, and normalize the polarization degree value and the gray value respectively to obtain the normalized polarization degree value and gray value; S30. Based on the magnitude relationship between the normalized gray value and polarization degree value and the joint threshold, classify the corresponding pixel points of the laser image and the polarization degree image, determine the optimal segmentation threshold by maximizing the between-class variance, and further extract the gray image of the laser region; S40. Obtain the first derivative of the gray image through a filter, and use the bicubic interpolation method to locate the zero point of the first derivative to obtain the coordinates of the light center point.

2. The method according to claim 1, wherein The polarization degree value is calculated according to the obtained polarization degree image, which is expressed as: , In the formula, S0 represents the total light intensity, S1 represents the variance of the light intensity of horizontal polarization relative to vertical polarization, S2 represents the variance of the light intensity of 45° polarization relative to 135° polarization, S3 represents the change in the light intensity of the right-handed circular polarization flux relative to the left-handed circular polarization flux, and Dolp is the polarization degree value describing the light in the polarized light state.

3. The method according to claim 1, characterized in that The polarization degree value and the gray value are normalized respectively to obtain the normalized polarization degree value and gray value, which is expressed as: , , In the formula, and are the original grayscale image and the polarization degree image respectively, and are the maximum and minimum values of the image polarization degree respectively, and are the maximum and minimum values of the image grayscale value respectively, is the normalized polarization degree value, is the normalized grayscale value.

4. The method according to claim 1, wherein Based on the magnitude relationship between the normalized grayscale value and the polarization degree value and the joint threshold, the corresponding pixel points of the laser image and the polarization degree image are classified, including: setting the joint threshold , where represents the threshold of the laser image,[ represents the threshold of the corresponding polarization degree image. For each pixel point, according to the magnitude relationship between its normalized grayscale value and polarization degree value and the joint threshold, the pixel point is divided into four categories: When the gray value of the pixel is greater than , and the polarization degree value at the corresponding pixel in the polarization degree image is greater than , this pixel is of category k1; when the gray value of this pixel is greater than , and the polarization degree value at the corresponding pixel in the polarization degree image is less than or equal to , this pixel is of category k2; when the gray value of this pixel is less than or equal to , and the polarization degree value at the corresponding pixel in the polarization degree image is greater than , this pixel is of category k3; when the gray value of this pixel is less than or equal to , and the polarization degree value at the corresponding pixel in the polarization degree image is less than or equal to , this pixel is of category k4.

5. The method according to claim 4, characterized in that, Determine the optimal segmentation threshold by maximizing the between-class variance, including: calculating the between-class variance of each category according to the classification results of the corresponding pixel points of the laser image and the polarization degree image , if the current between-class variance is greater than the historical maximum value, update the combined threshold to obtain the optimal segmentation threshold .

6. The method according to claim 1, characterized in that, The first derivative of the gray image is obtained through a filter, which is expressed as: , In the formula, is a grayscale image, H is the expression of the filter, ( x , y ) is the coordinate of any target point, D( x ) is the first derivative image.

7. The method according to any one of claims 1 or 6, characterized in that, Using the bicubic interpolation method to locate the zero point of the first derivative includes: using the bicubic interpolation method to fit the derivative values near the zero point of the first derivative, constructing a two-dimensional cubic polynomial function to smoothly reconstruct the gradient distribution in the zero point region, and finding the zero intersection point at the sub-pixel scale.

8. An optical center extraction system based on polarization-improved threshold segmentation, characterized in that It includes: A laser image and polarization degree image acquisition module, which acquires the laser image with meridional polarization modulation and the polarization degree image collected by a polarization camera; A polarization degree value and gray value normalization processing module, which calculates the polarization degree value and the gray value according to the obtained polarization degree image and laser image, uses the interpolation method to enlarge the resolution of the polarization degree image to be equal to that of the laser image, and normalizes the polarization degree value and the gray value respectively to obtain the normalized polarization degree value and gray value; A gray image extraction module, which classifies the corresponding pixel points of the laser image and the polarization degree image based on the magnitude relationship between the normalized gray value and polarization degree value and the joint threshold, determines the optimal segmentation threshold by maximizing the between-class variance, and further extracts the gray image of the laser region; A light center point coordinate acquisition module, which obtains the first derivative of the gray image through a filter, uses the bicubic interpolation method to locate the zero point of the first derivative, and obtains the coordinates of the light center point.

9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the light center extraction method based on polarization-improved threshold segmentation according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the light center extraction method based on polarization-improved threshold segmentation according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Calibration method of linear structured light vision sensor for simultaneous polarization beam splitting and imaging

    CN115248187A

  • High reflective surface line laser light stripe center extraction method

    CN116433763A