Pressure-sensitive paint perspective distortion image correction method based on contour features
By utilizing the contour characteristics of the measured model and using technologies such as Gamma correction and polynomial fitting, the perspective distortion problem of pressure-sensitive paint images under oblique viewing angles is solved, and image distortion can be efficiently corrected without recording the camera position and model coordinates. Suitable for image correction of different viewing angles and distortion levels.
Patent Information
- Application Number
- CN202410664615.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-08-23
AI Technical Summary
In turbine machinery, traditional pressure measurement methods have problems such as low spatial resolution, limited measurement range, long test cycle, high cost and difficulty in signal transmission. Moreover, it is difficult to effectively correct perspective distortion of pressure-sensitive paint images under oblique viewing angles. Especially in the case of three-dimensional models.
By utilizing the self-contour characteristics of the measured model and using Gamma correction, morphological expansion, binarization processing, connected domain detection, polynomial function fitting and equal arc length methods, the perspective distortion correction of pressure-sensitive paint images under oblique viewing angles is achieved , obtain a distortion-free front view image.
It achieves efficient correction of image distortion without recording the camera position and model three-dimensional coordinates, improves correction efficiency and applicability, and is suitable for image correction of different viewing angles and distortion levels.
Smart Images

Figure CN118537271A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of test technology measurement based on digital images, and specifically designs a pressure-sensitive paint perspective distortion image correction method based on contour features in the pressure-sensitive paint pressure measurement test technology. Background Art
[0002] In the field of turbomachinery, the pressure distribution on the blade surface is a basic means to understand its aerodynamic performance. The traditional pressure measurement method is to arrange pressure measuring holes on the surface of the model to be tested, and achieve accurate point measurement through pressure sensors or electronic scanning valves. However, it has limitations in engineering applications, such as low spatial resolution, limited measurement range, long test cycle, high cost, and difficulty in signal transmission.
[0003] With the development of digital image processing capabilities, the pressure-sensitive paint (PSP) pressure measurement technology developed in the 1980s provides a promising way to solve the above limitations. This technology links the light intensity information obtained from the image with the surface pressure through the "photoluminescence" and "oxygen quenching" effects, and obtains the pressure information of the entire surface of the measured model through image processing technology. Compared with the traditional pressure hole pressure measurement technology, PSP technology has significant advantages such as high spatial resolution, good adaptability to the shape of the model, and the ability to capture detailed flow characteristics of complex flows.
[0004] However, in the measurement of the flow field inside the impeller machinery, due to the limitation of the optical path layout, in order to be able to shoot the entire model under test, a larger shooting angle is usually used, and the obtained two-dimensional pressure image is often obtained under an oblique perspective. Based on this, only a qualitative analysis of the pressure distribution on the surface of the model under test can be performed, which is more obvious in areas with large pressure gradient changes. For example, the rapid pressure change caused by the shock wave on the surface of the model under test can be observed, but it is difficult to determine the impact area of the shock wave under the oblique perspective image. Therefore, it is necessary to convert the image with perspective distortion under the oblique perspective into a distortion-free orthographic perspective image.
[0005] When the photographed object is approximately a two-dimensional plane, the traditional perspective correction method based on corner point extraction has a good correction effect. However, when the photographed object has three-dimensional stereoscopic properties, the effect of the traditional correction method is significantly reduced or fails. To strictly convert the image under the oblique perspective into a distortion-free front view image, it is necessary to record the relative position of the camera and the model under test and the three-dimensional coordinates of the model under test at all times. However, in the experimental test environment, it is not always feasible and effective to track the relative position of the camera and the model under test, and the three-dimensional coordinates of the model under test are not always known. In summary, it is necessary to develop a universal myopic pressure-sensitive paint image perspective distortion correction method to correct the perspective distortion of the pressure-sensitive paint image without recording the above-mentioned known conditions. Summary of the invention
[0006] In response to the problems existing in the above-mentioned background technology, the present invention proposes a rationally conceived method for correcting the perspective distortion image of pressure-sensitive paint, which utilizes the contour characteristics of the measured model to achieve its perspective distortion correction, fully utilizes the advantages of pressure-sensitive paint measurement technology, and has the advantages of simple operation and high precision.
[0007] In order to solve the above technical problems, the present invention provides a method for correcting a perspective distortion image of a pressure-sensitive paint based on contour features, which comprises the following steps:
[0008] (1) Using pressure-sensitive coating technology to obtain distorted two-dimensional images at oblique viewing angles;
[0009] (2) Enhance the image contrast through gamma correction and perform binarization, and then use morphological dilation to obtain the mask image of the image to be processed;
[0010] (3) Using the connected domain detection algorithm to obtain the two-dimensional contour point cloud of the image to be processed;
[0011] (4) Fitting the contour point cloud based on the polynomial function to obtain an analytical expression and segment the image;
[0012] (5) Using the equal arc length method to determine the coordinate point set before distortion correction, and define the corresponding coordinate point set after correction;
[0013] (6) The perspective distortion of the image is corrected using the coordinate point set and the correction model to obtain an undistorted image.
[0014] The method for correcting perspective distortion image of pressure-sensitive paint, wherein the source of perspective distortion image in step (1) is specifically in two ways:
[0015] Approach ①: Directly correct the perspective distortion of the two-dimensional grayscale distribution cloud map obtained in the experiment;
[0016] Approach ②: Post-process the experimental images to obtain the two-dimensional pressure distribution and then perform perspective distortion correction;
[0017] There are two basic pressure-sensitive paint image post-processing processes corresponding to the two approaches, such as Figure 1 shown.
[0018] There is no essential difference between the post-processing methods corresponding to the above two approaches. However, if the model under test has no obvious movement and the reference image and the blowing image have no obvious offset, approach ① is preferred for post-processing the pressure-sensitive paint image.
[0019] The method for correcting the perspective distortion image of the pressure-sensitive paint, wherein the specific process of obtaining the mask image in step (2) is as follows:
[0020] Use gamma correction to enhance the contrast and brightness of the image. This step is particularly important for darker images, otherwise it may not be possible to obtain accurate edge information, resulting in failure of perspective distortion correction. If the image being corrected has a high brightness and good background distinction, this step can be ignored.
[0021] The enhanced image is binarized, and the morphological dilation image processing technique is used to eliminate the "holes" or "holes" that may exist in the binary image to obtain a mask image.
[0022] The method for correcting the perspective distortion image of the pressure-sensitive paint, wherein the specific process of obtaining the two-dimensional contour point cloud of the image in step (3) is as follows:
[0023] Due to the existence of dark background, multiple interfering mask areas may appear in the mask image obtained in step (2), which need to be deleted;
[0024] Through the connected domain detection algorithm, each mask area, that is, the pixel area occupied by the connected domain, is obtained. The connected domain with the largest pixel area is found to be the required mask area, and the corresponding two-dimensional contour point cloud information is obtained.
[0025] The method for correcting the perspective distortion image of the pressure-sensitive paint, wherein the specific process of image segmentation in step (4) is as follows:
[0026] Use polynomial curves to segment the photographed objects;
[0027] Classifying the two-dimensional contour point cloud obtained in step (3) according to the contour of the model;
[0028] Polynomial functions are used to fit analytical expressions of the profiles of the tested models respectively;
[0029] When using function fitting, it is necessary to observe the growth trend of the fitting function, for example, whether the growth trend of the fitted function from the two ends of the contour to the image boundary is monotonic.
[0030] The pressure-sensitive paint perspective distortion image correction method, wherein the coordinate point set before / after the distortion correction in step (5) is selected using the equal arc length method, and the specific process is:
[0031] The coordinate point set 1 before distortion correction adopts the following steps:
[0032] Based on the analytical expression of the contour fitted in step (4), solve the corner points of all two adjacent contours;
[0033] For each contour fitting curve, integrate between two corner points to obtain the arc length of the contour. The calculation method is as follows:
[0034]
[0035] Among them, s i represents the arc length of the i-th contour, x i1 and x i2 represents the starting point of the integration (two corner points on the same contour), The analytical expression f representing the i-th contour i (x) derivative with respect to x;
[0036] Determine the number of auxiliary points n required for each contour i , then the arc length of two adjacent auxiliary points is s i / (n i -1), and then calculate the coordinates of each point of equal arc length using the following formula
[0037]
[0038] Among them, j represents the jth equal arc length point, and Represents the horizontal / vertical coordinate of the jth equally divided point on the i-th contour;
[0039] The coordinate point set 2 after distortion correction adopts the following steps:
[0040] Define the coordinates of the corner points on the rectified image corresponding to the above contour corner points;
[0041] Define the curve between two adjacent corner points of the corrected image, usually a straight line can be selected;
[0042] Point set 2 is constructed by taking points with the same arc length as the coordinate point set 1 before correction.
[0043] The method for correcting the perspective distortion image of the pressure-sensitive paint, wherein the specific process of step (6) is as follows:
[0044] The feature point pairs are formed by point set 1 and point set 2;
[0045] The feature point pairs are brought into the corresponding distortion correction model to calculate the correction parameters.
[0046] The correction parameters are applied to the pressure-sensitive image with perspective distortion to correct it and obtain a corrected image without distortion.
[0047] Furthermore, for the case where the degree of distortion is small, that is, the image is taken at a small tilt angle, the projection transformation model is generally selected, and its expression is in is the original distorted image, is the image after distortion correction, Represents the projection transformation matrix.
[0048] For cases with a larger degree of distortion, that is, images taken at a larger tilted viewing angle, it is recommended to use polynomial transformation or piecewise linear transformation based on Delaunay triangulation for correction.
[0049] It is worth noting that piecewise linear transformation can also correct the situation with smaller degree of distortion, but this will invisibly increase the amount of calculation.
[0050] By adopting the above technical solution, the present invention has the following beneficial effects:
[0051] The concept of the perspective distortion image correction of the pressure-sensitive paint of the present invention is reasonable. The image distortion problem caused by the tilted viewing angle is corrected by using the contour features of the measured model obtained through the experiment. An image with an approximately positive viewing angle can be obtained without the need to constantly record the camera position and the real three-dimensional space coordinates of the model, thereby achieving the purpose of distortion correction. The invention has high correction efficiency and applicability.
[0052] In the present invention, the method for correcting image distortion caused by tilted viewing angle has the advantages of high efficiency and good correction effect, and the operator can easily use it in related fields, such as the field of temperature-sensitive paint measurement. At the same time, the proposed method is universal. For images with different degrees of distortion caused by different viewing angles, it is only necessary to replace the distortion correction model in step (6). In addition, without considering the amount of calculation, a piecewise linear transformation can be used to meet the correction of image perspective distortion at all different degrees. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 It is a flow chart of a pressure-sensitive paint image post-processing method corresponding to perspective distortion correction in different ways provided by the present invention;
[0055] Figure 2 It is a flow chart of the method for correcting the perspective distortion image of pressure-sensitive paint based on contour features provided by the present invention.
[0056] Figure 3 This is an image corresponding to the perspective distortion correction performed by adopting the approach ② provided by the present invention;
[0057] Figure 4 The mask image involved in Example 1 is obtained by the method provided by the present invention;
[0058] Figure 5 The method provided by the present invention obtains the contour fitting curve and corner points involved in Example 1;
[0059] Figure 6 The point set used for distortion correction in Example 1 is obtained by the method provided by the present invention;
[0060] Figure 7 The corrected image of Example 1 is obtained by the method provided by the present invention. DETAILED DESCRIPTION
[0061] The present invention will be further described in detail below in conjunction with the accompanying drawings so that those skilled in the art can implement the invention with reference to the description. Obviously, the described embodiments are only part of the embodiments of the present invention, but not all of them.
[0062] The present invention is further explained below in conjunction with specific implementation modes.
[0063] See also Figure 2 , is a flow chart of a method for correcting a pressure-sensitive paint perspective distortion image based on contour features provided by an embodiment of the present disclosure. Figure 2 As shown, the method mainly comprises the following steps:
[0064] S101, using pressure-sensitive coating technology to obtain an image that needs perspective distortion correction at an oblique viewing angle;
[0065] In specific implementation, the corrected image can directly correct the perspective distortion of the two-dimensional grayscale distribution image (blowing image and reference image) obtained in the experiment, or can correct the perspective distortion of the two-dimensional pressure distribution image obtained after comparison processing. Different correction methods can be adopted for different situations. In this embodiment 1, the perspective distortion correction is performed on a blowing image obtained in the experiment, such as Figure 3 shown.
[0066] S102, enhancing the image contrast by gamma correction and performing binarization processing, and then using morphological expansion to obtain a mask image of the image to be processed;
[0067] Optionally, in step S102, obtaining a mask image of an image to be processed includes:
[0068] Use gamma correction to enhance the contrast and brightness of the image;
[0069] In the first embodiment, there are darker areas in the image. In order to accurately extract the contour of the image later, the gamma correction cannot be ignored, otherwise the accurate contour edge information cannot be obtained, resulting in the failure of perspective distortion correction.
[0070] Using an optimal threshold binarization algorithm to process the enhanced grayscale image to obtain a binary image;
[0071] The morphological dilation image processing technique is used to eliminate the "holes" or "holes" that may exist in the binary image and obtain a mask image.
[0072] S103, using a connected domain detection algorithm to obtain a two-dimensional contour point cloud of the image to be processed;
[0073] Optionally, in step S103, obtaining a two-dimensional contour point cloud of the model under test includes:
[0074] Due to the existence of the dark background, multiple interfering mask areas appear in the mask image obtained in step S102, and they need to be deleted;
[0075] Through the connected domain detection algorithm, each mask area, that is, the pixel area occupied by the connected domain, is obtained;
[0076] Find the connected domain with the largest pixel area, and set the gray value inside the connected domain to 1, and the gray value outside the connected domain to 0, which is the required mask area, such as Figure 4 As shown;
[0077] The connected domain detection is performed on the mask image after elimination to obtain the corresponding two-dimensional contour point cloud information.
[0078] S104, fitting the contour point cloud based on the polynomial function to obtain an analytical expression and segment the image;
[0079] Optionally, in step S104, segmenting the image using a polynomial curve includes:
[0080] Classifying the two-dimensional contour point cloud obtained in step S103 according to the contour of the model;
[0081] The polynomial functions are used to fit the analytical expressions of the profiles of the tested models, such as Figure 5 Indicated by the solid white line;
[0082] When using function fitting, it is necessary to observe the growth trend of the fitting function. The fitting curve should be monotonic, that is, whether the growth trend of the fitted curve from the two ends of the contour to the image boundary is monotonic.
[0083] S105, using an equal arc length method to determine a coordinate point set 1 before distortion correction, and defining a corresponding coordinate point set 2 after correction;
[0084] Optionally, in step S105, obtaining a coordinate point set 1 before distortion correction includes:
[0085] Based on the analytical expression of the contour fitted in step S105, the corner points of all two adjacent contours are solved, such as Figure 5 The black dots in the middle are the corner points of the contour;
[0086] For each contour fitting curve, integrate between two corner points to obtain the arc length of the contour. The calculation method is as follows:
[0087]
[0088] Among them, s i represents the arc length of the i-th contour, x i1 and x i2 represents the starting point of the integration (two corner points on the same contour), The analytical expression f representing the i-th contour i (x) derivative with respect to x;
[0089] Determine the number of auxiliary points n required for each contour i , then the arc length of two adjacent auxiliary points is s i / (n i -1), and then calculate the coordinates of each point of equal arc length using the following formula
[0090]
[0091] Among them, j represents the jth equal arc length point, and Represents the horizontal / vertical coordinate of the jth equally divided point on the i-th contour;
[0092] like Figure 6 As shown, the auxiliary points obtained in Example 1. The number of auxiliary points on the short side is 15, and the number of auxiliary points on the long side is 50;
[0093] Optionally, in step S105, obtaining the coordinate point set 2 before distortion correction includes:
[0094] Define the coordinates of the corner points on the rectified image (template image) corresponding to the above contour corner points;
[0095] Define the curve between two adjacent corner points of the rectified image. In this example, a straight line is selected.
[0096] Point set 2 is constructed by taking points with the same arc length as the coordinate point set 1 before correction.
[0097] The corresponding number of auxiliary points remains the same as that of point set 1.
[0098] In this embodiment, the model image under test is rectified into a rectangle with a length and a width of 800 pixels and 200 pixels respectively.
[0099] The corrected coordinates of the contour corner points are (0,0), (200,0), (0,800), and (200,800).
[0100] The number of auxiliary points and the template image in the above step S105 are both manually defined, and the operator should make corresponding adjustments according to the actual situation.
[0101] S106, using the coordinate point set pairs and a correction model to correct the perspective distortion of the image to obtain an undistorted image.
[0102] Optionally, the step S106 of correcting the distorted image includes:
[0103] A feature point set pair is formed by point set 1 and point set 2;
[0104] The feature point set is brought into the piecewise linear distortion correction model to calculate the correction parameters.
[0105] The correction parameters are brought into the piecewise linear transformation model and applied to the pressure-sensitive image with perspective distortion for correction, thereby obtaining a corrected image without distortion.
[0106] Figure 7 It can be seen that after the proposed pressure-sensitive paint perspective distortion image correction method based on contour features, a better correction effect is obtained, the image is converted into a positive perspective image, and the image distortion problem caused by the shooting perspective is eliminated.
[0107] The present invention utilizes the experimentally obtained contour features of the measured model to correct the image distortion problem caused by the tilted viewing angle. It can obtain an image with an approximately positive viewing angle without the need to constantly record the camera position and the real three-dimensional spatial coordinates of the model, thereby achieving the purpose of distortion correction and giving full play to the measurement advantages of pressure-sensitive paint technology.
[0108] Finally, it should be noted that the above is only a specific implementation method of the present disclosure and is only used to illustrate the technical solution of the present invention, but the protection scope of the present disclosure is not limited to this. Any technician familiar with the technical field can easily modify or replace it within the technical scope disclosed in the present disclosure, and it should be covered by the protection scope of the present disclosure.
Claims
1. A method for correcting perspective distortion images of pressure-sensitive paint based on contour features, characterized in that: include: (1) Using pressure-sensitive coating technology to obtain distorted two-dimensional images at oblique viewing angles; (2) Enhance the image contrast through gamma correction and perform binarization, and then use morphological dilation to obtain the mask image of the image to be processed; (3) Using the connected domain detection algorithm to obtain the two-dimensional contour point cloud of the image to be processed; (4) Fitting the contour point cloud based on the polynomial function to obtain an analytical expression and segment the image; (5) Using the equal arc length method to determine the coordinate point set before distortion correction, and define the corresponding coordinate point set after correction; (6) The perspective distortion of the image is corrected using the coordinate point set and the correction model to obtain an undistorted image.
2. The method according to claim 1, characterized in that: There are two specific sources of the perspective distortion image in step (1): Approach ①: Directly perform perspective distortion correction on the two-dimensional grayscale images (blowing images and reference images) obtained in the experiment; Approach ②: Perform ratio processing on the image obtained in the experiment to obtain the two-dimensional pressure distribution, and then perform perspective distortion correction; There are two basic pressure-sensitive paint image post-processing processes corresponding to the two approaches; There is no essential difference between the post-processing methods corresponding to the two approaches. However, if the model under test has no obvious movement and there is no obvious offset between the reference image and the blowing image, approach ① is preferred for post-processing the pressure-sensitive paint image.
3. The method according to claim 1, characterized in that: The specific process of obtaining the mask image in step (2) is as follows: Use gamma correction to enhance the contrast and brightness of the image. This step is particularly important for darker images, otherwise it may not be possible to obtain accurate edge information, resulting in failure of perspective distortion correction. If the image being corrected has a high brightness and good background distinction, this step can be ignored. The enhanced image is binarized, and the morphological dilation image processing technique is used to eliminate the "holes" or "holes" that may exist in the binary image to obtain a mask image.
4. The method according to claim 1, characterized in that: The specific process of obtaining the two-dimensional contour point cloud in step (3) is as follows: In the mask image obtained in step (2), there are multiple interfering mask areas, which need to be deleted; Through the connected domain detection algorithm, each mask area, that is, the pixel area occupied by the connected domain, is obtained; Find the connected domain with the largest pixel area, and set the gray value inside the connected domain to 1, and the gray value outside the connected domain to 0, which is the required mask area; The connected domain detection is performed on the mask image after elimination to obtain the corresponding two-dimensional contour point cloud information.
5. The method according to claim 1, characterized in that: The specific process of using the polynomial curve to segment the image in step (4) is as follows: Classify the two-dimensional contour point cloud obtained in step (3) according to the contour of the model; Polynomial functions are used to fit analytical expressions of the profiles of the tested models respectively; When using function fitting, it is necessary to observe the growth trend of the fitting function. The fitting curve should be monotonic, that is, whether the growth trend of the fitted curve from the two ends of the contour to the image boundary is monotonic.
6. The method according to claim 1, characterized in that: In the step (5), the solution of the coordinate point set before correction is selected by using the equal arc length method, and the specific process is as follows: Based on the analytical expression of the contour fitted in step (4), solve the corner points of all two adjacent contours; For each contour fitting curve, integrate between two corner points to obtain the arc length of the contour. The calculation method is as follows: Among them, s i represents the arc length of the i-th contour, x i1 and x i2 represents the starting point of the integration (two corner points on the same contour), The analytical expression f representing the i-th contour i (x) derivative with respect to x; Determine the number of auxiliary points n required for each contour i , then the arc length of two adjacent auxiliary points is s i / (n i -1), and then calculate the coordinates of each point of equal arc length using the following formula Among them, j represents the jth equal arc length point, and Represents the horizontal / vertical coordinate of the j-th equally divided point on the i-th contour.
7. The method according to claim 1, characterized in that: In the step (5), the solution for the corrected coordinate point set is selected by using the equal arc length method, and the specific process is as follows: Define the coordinates of the corner points on the rectified image (template image) corresponding to the above contour corner points; Define the curve between two adjacent corner points of the rectified image; The coordinate point set after correction is constructed by taking points with the same arc length as the coordinate point set before correction; The number of corresponding auxiliary points remains consistent with the coordinate point set before correction.
8. The method according to claim 1, characterized in that: The specific process of distortion correction in step (6) is as follows: The feature point set pairs are formed by correcting the coordinate point sets before and after correction; The feature point set is brought into the distortion correction model to calculate the correction parameters. The correction parameters are brought into the distortion correction model and applied to the pressure-sensitive image with perspective distortion for correction, thereby obtaining a distortion-free image after correction.
9. The method according to claim 8, characterized in that: The pressure-sensitive paint perspective distortion image correction method has some points that need to be noted, including: The number of feature point set pairs can be specified arbitrarily, depending on the experimental operator; Furthermore, for the case where the degree of distortion is small, that is, the image is taken at a small tilt angle, the projection transformation model is generally selected to use the contour corner points solved in step (4) to perform distortion correction. The expression of the projection transformation model is: in is the original distorted image, is the image after distortion correction, Represents the projection transformation matrix; For cases with a larger degree of distortion, that is, images taken at a larger tilt angle, it is recommended to use polynomial transformation or piecewise linear transformation based on Delaunay triangulation for correction. It is worth noting that piecewise linear transformation can correct cases with a smaller degree of distortion, but this will invisibly increase the amount of calculation.
Citation Information
Patent Citations
Numerical control grinding shape error self-adaptive compensation method for mutual abrasion of grinding wheel workpiece
CN109968204A
Rotary blurred image deblurring method in blade surface pressure measurement
CN116614707A
Cited By
Tunnel contour image correction and deformation calculation method and device and storage medium
CN121544629A
