A frequency domain correction method for turntable errors

By collecting and analyzing the image spectrum on the turntable and constructing an adaptive filter function, the problem of insufficient adaptability of traditional frequency domain analysis methods in processing turntable errors is solved, and more efficient image correction and processing effects are achieved.

CN118365535BActive Publication Date: 2024-09-03SHAANXI LONGYUE RUIXING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410781863.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-03
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

The traditional frequency domain analysis method lacks adaptability when dealing with turntable errors and is difficult to finely distinguish different error frequency components, resulting in poor correction effects and affecting the accuracy and stability of image processing tasks.

Method used

By installing the reference object, collect images from different angles of the turntable rotation axis, calculate the spectrum fluctuation index of the spectrogram, obtain the reference image and matching image, construct the adaptive bandwidth function value and filter function value, perform frequency domain correction, and adaptive filter to correct the period Sexual deviation or deformation.

Benefits of technology

It improves the clarity and accuracy of images, enhances the correction effect of turntable positioning errors, reduces the technical difficulty of image registration and stereoscopic reconstruction operations, and improves the accuracy and stability of image processing tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118365535B
    Figure CN118365535B
Patent Text Reader

Abstract

The present application relates to the field of image processing technology, and specifically to a frequency domain correction method for turntable errors, the method comprising: collecting front images of reference objects when the turntable shaft rotates at different angles, recorded as initial images; obtaining a reference image based on the difference between the spectrum graphs of the initial images; obtaining the image to be matched of each initial image, and obtaining the relevant frequency influence coefficient of the same frequency in all spectrum graphs based on the amplitude difference between the spectrum graph of the image and the reference image; constructing an adaptive bandwidth function value for each frequency and a filter function value for each frequency based on the relevant frequency influence coefficient; filtering the front image of the reference object taken when the turntable rotates based on the filter function value of each frequency and the time-frequency conversion algorithm. Thus, the frequency domain correction of the turntable error is realized, the clarity and accuracy of the image of the reference object on the turntable are improved, and the correction effect of the turntable positioning error in the image is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of image processing, and in particular to a frequency domain correction method for turntable errors. Background Art

[0002] With the rapid development of precision manufacturing and automation technology, turntables, as a key positioning device, play an important role in industrial production, scientific research and testing, aerospace and other fields. However, due to the multiple influences of mechanical structure, control system and environmental factors, the turntable often has repeated positioning errors after long-term operation. With the development of modern technology, image registration, stereo reconstruction and other technologies are often used for structural analysis and detection of turntables. However, such technologies have high requirements on image quality. If periodic image offset or deformation occurs in the captured image due to repeated positioning errors, it will have an adverse effect on subsequent image processing tasks. If you rely on traditional sensors or mechanical correction methods to correct the turntable positioning error before shooting, the cost is high and the operation is complicated.

[0003] Therefore, image processing technology can be used to directly correct the periodic image offset or deformation caused by errors in the image. However, traditional frequency domain analysis methods often lack adaptability when dealing with such errors. The distinction and filtering of different error frequency components are not refined enough, which easily leads to unnecessary interference to normal signals or failure to effectively filter out error components, making the correction effect need to be improved. Therefore, it is urgent to develop a turntable error frequency domain correction method that can analyze frequency domain features and realize adaptive filtering based on image information to improve the correction effect of periodic offset or deformation of the image, thereby improving the accuracy and stability of subsequent image processing tasks. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a frequency domain correction method for turntable errors to solve the existing problems.

[0005] A frequency domain correction method for a turntable error in the present application adopts the following technical solution:

[0006] An embodiment of the present application provides a frequency domain correction method for a turntable error, the method comprising the following steps:

[0007] (1) Install a reference object on the rotating shaft of the turntable and collect the front images of the reference object when the rotating shaft of the turntable rotates at different angles, which are recorded as initial images;

[0008] (2) Obtaining the mean square error between the spectrum graphs of any two initial images based on the difference between the spectrum graphs of the initial images; and obtaining the spectrum fluctuation index of the spectrum graph of each initial image based on the mean square error;

[0009] (3) Obtaining a reference image according to the spectrum fluctuation index and obtaining the image to be matched of each initial image; obtaining the frequency fluctuation influence coefficient of each pixel point in the spectrum graph of the matching image of each initial image except the reference image according to the mean square error and amplitude difference between the spectrum graph of the image to be matched and the reference image;

[0010] (4) Obtain the relevant frequency influence coefficient of the same frequency in all spectrum graphs according to the frequency fluctuation influence coefficient; construct the adaptive bandwidth function value of each frequency according to the relevant frequency influence coefficient, and construct the filter function value of each frequency;

[0011] (5) Perform frequency domain correction on the front image of the reference object captured when the turntable rotates according to the filter function value of each frequency and the time-frequency conversion algorithm.

[0012] In one embodiment, the process of acquiring the spectrum fluctuation index of the spectrum graph of each initial image is as follows:

[0013] Obtain a mean square error set of the average spectrum graph and the spectrum graphs of each initial image;

[0014] Calculate the mean of all elements in the mean square error set of each spectrum graph, recorded as the first mean; calculate the absolute value of the difference between each spectrum graph and the first mean of any other spectrum graph, recorded as the first absolute value of the difference; calculate the mean square error between each spectrum graph and the average spectrum graph, recorded as the first mean square error; the spectrum fluctuation index of each spectrum graph is positively correlated with the first absolute value of the difference and the first mean square error, respectively.

[0015] The process of obtaining the mean square error set of the average spectrum graph and the spectrum graph of each initial image is as follows:

[0016] Accumulate the spectrograms of all the initial images and calculate the average value to obtain an average spectrogram;

[0017] A set consisting of the mean square errors between the spectrum of any initial image and the spectrum of all other initial images is taken as the mean square error set of the spectrum of any initial image.

[0018] In one embodiment, the step of obtaining a reference image according to the spectrum fluctuation index and obtaining an image to be matched of each initial image is specifically as follows:

[0019] The initial image corresponding to the spectrum graph with the largest spectrum fluctuation index is used as the reference image;

[0020] For each initial image except the reference image, the position of the initial image on the rotating shaft is used as the starting point for re-rotation, and the images of each reference object obtained after the rotating shaft rotates one circle are obtained and recorded as the image to be matched of the initial image.

[0021] In one embodiment, the process of obtaining the frequency fluctuation influence coefficient of each pixel point in the spectrum diagram of the matching image of each initial image except the reference image is as follows:

[0022] Acquire matching images of each initial image except the reference image;

[0023] The square of the pixel value difference between any pixel point in the spectrum graph of the matching image of the initial image and the corresponding pixel point in the spectrum graph of the reference image is taken as the amplitude difference of any pixel point in the spectrum graph; the sum of the amplitude differences of all pixel points in the spectrum graph of the matching image of the initial image is calculated and recorded as the first sum; the frequency fluctuation influence coefficient of any pixel point in the spectrum graph of the matching image of the initial image is positively correlated with the first sum and the amplitude difference of any pixel point in the spectrum graph.

[0024] In one embodiment, the method for obtaining matching images of each initial image except the reference image is:

[0025] For each initial image except the benchmark image, the mean square error between the frequency spectrum of each to-be-matched image of the initial image and the frequency spectrum of the benchmark image is calculated, which is recorded as the benchmark deviation value; the to-be-matched image corresponding to the minimum value of all the benchmark deviation values ​​of the initial image is obtained as the matching image of the initial image.

[0026] In one embodiment, the relevant frequency influence coefficients of the same frequency in all the spectrum graphs are obtained as follows:

[0027] The average value of the frequency fluctuation influence coefficients of the same frequency in the matching image spectrograms of all the initial images is used as the relevant frequency influence coefficient of the same frequency.

[0028] In one embodiment, the method for constructing the adaptive bandwidth function value for each frequency is:

[0029] Determine the frequency whose correlation frequency influence coefficient is greater than the preset segmentation threshold as the effective correlation frequency, and determine the frequency less than or equal to the preset segmentation threshold as the non-correlated frequency; record the sequence obtained by arranging all frequencies as the frequency sequence; record the set of all connected effective correlation frequencies in the frequency sequence as the effective correlation frequency set, and obtain the frequency span of each effective correlation frequency set;

[0030] The maximum value of the frequency span of all valid related frequency sets is obtained, recorded as the first maximum value; the adaptive bandwidth function value of each non-correlated frequency is set to the first maximum value; the maximum value among all frequencies is obtained, recorded as the second maximum value; the ratio of the frequency value of each valid related frequency to the second maximum value is calculated, recorded as the first ratio; the difference between the natural number 1 and the first ratio is calculated, recorded as the second difference; and the product of the first maximum value and the second difference is calculated as the adaptive bandwidth function value of each valid related frequency.

[0031] In one embodiment, the method of constructing the filter function value for each frequency is:

[0032] The filter function value of each non-correlated frequency is set to 1; the difference between the maximum value and the minimum value of the adaptive bandwidth function value of all frequencies is calculated, which is recorded as the third difference; the difference between the adaptive bandwidth function value of each effective correlated frequency and the minimum value of the adaptive bandwidth function value of all frequencies is calculated, which is recorded as the fourth difference; the ratio of the third difference to the fourth difference is used as the filter function value of each effective correlated frequency.

[0033] In one embodiment, the method for performing frequency domain correction on the front image of the reference object captured when the turntable rotates is:

[0034] The spectrum diagram of the front image of the reference object photographed by rotating the turntable is convolved with the filter function value to obtain a filtered spectrum diagram, and the filtered spectrum diagram is restored to the spatial domain through an inverse transform algorithm to obtain a front image of the reference object after the turntable error is corrected in the frequency domain.

[0035] This application has at least the following beneficial effects:

[0036] The present application collects the front image of the reference object when the turntable shaft rotates at different angles, which is recorded as the initial image; constructs the spectrum fluctuation index of the spectrum diagram according to the difference between the spectrum diagrams of the initial image, determines the image taken when the repeated positioning error occurs, which is recorded as the reference image, analyzes the change of frequency in the spectrum diagram, and improves the accuracy of the acquired reference image; collects the images of each reference object rotated from different positions, and determines the images with repeated positioning errors when rotated from different positions according to the similarity between the spectrum diagrams and the reference image, constructs the relevant frequency influence coefficient of each frequency according to the amplitude change of frequency in the spectrum diagrams of these images with repeated positioning errors, and evaluates the correlation degree of each frequency with the repeated positioning error; adopts different filter function values ​​for different frequencies according to the relevant frequency influence coefficient, improves the filtering effect of frequencies with a higher correlation degree with the repeated positioning error, reduces the filtering degree of frequencies with a lower correlation degree with the repeated positioning error, and improves the retention effect of effective information of the image, thereby improving the filtering effect of the image with repeated positioning errors, improving the clarity and accuracy of the image of the reference object on the turntable, and improving the correction effect of the turntable positioning error in the image, which is conducive to reducing the technical difficulty of image registration, stereo reconstruction and other operations on the turntable. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 A flow chart of a frequency domain correction method for a turntable error provided in the present application;

[0039] Figure 2 A schematic diagram of the steps for obtaining the frequency fluctuation influence coefficient;

[0040] Figure 3 Schematic diagram of the steps for constructing the adaptive bandwidth function value for each frequency. DETAILED DESCRIPTION

[0041] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of the frequency domain correction method of a turntable error proposed in the present application, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0042] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.

[0043] The specific scheme of the frequency domain correction method for turntable error provided by the present application is described in detail below with reference to the accompanying drawings.

[0044] An embodiment of the present application provides a frequency domain correction method for turntable errors.

[0045] Specifically, the following frequency domain correction method for turntable error is provided. Figure 1 , the method comprises the following steps:

[0046] Step S1, a reference object is mounted on the rotating shaft of a turntable, and a front image of the reference object is collected when the rotating shaft of the turntable rotates at different angles, which is recorded as an initial image.

[0047] As an example, this step may include the following steps:

[0048] The reference object is placed with its front side facing upwards, and a camera is set above the reference object. The camera rotates synchronously with the rotating shaft of the turntable. The camera collects images of the reference object when the rotating shaft rotates at different angles, and obtains front images of the reference object, which are recorded as initial images. To avoid noise interference, all images are denoised by a median filter algorithm. It should be noted that the implementer may also use other filtering algorithms to denoise the images, and this embodiment does not impose specific restrictions. The sequence composed of all initial images is recorded as an image sequence.

[0049] Preferably, as an embodiment of the present application, when the rotating shaft rotates at different angles, the image of the reference object can be The reference object image captured by the camera when the shaft rotates one circle is obtained, which is recorded as the initial image, that is, 24 initial images are captured in total in this embodiment. The image sequence can be a sequence composed of all the initial images arranged in the order of shooting.

[0050] Step S2, obtaining the mean square error between the spectrum graphs of any two initial images according to the difference between the spectrum graphs of the initial images; and obtaining the spectrum fluctuation index of the spectrum graph of each initial image according to the mean square error.

[0051] As an example, this step may include the following steps:

[0052] When the rotating shaft has repeated positioning errors, the image captured by the camera will have ghosting, offset or deformation, affecting the clarity and accuracy of the image. Therefore, it is necessary to eliminate the influence of repeated positioning errors in the image.

[0053] (1) Obtain the spectrogram of each initial image, calculate the mean square error between the spectrograms of any two initial images, and construct a set of mean square errors of the average spectrogram and the spectrograms of each initial image, specifically:

[0054] Each initial image is converted into the frequency domain by a time-frequency conversion algorithm to obtain a spectrum diagram of each initial image. It should be noted that there are many existing time-frequency conversion algorithms. This embodiment uses a two-dimensional discrete Fourier transform to obtain a spectrum diagram. The implementer may also use Fourier transform, fast Fourier transform, wavelet transform and other algorithms to obtain a spectrum diagram. This embodiment does not make any specific restrictions.

[0055] For the spectrograms of any two initial images, the square of the difference between the amplitudes of the same frequency in the two spectrograms is calculated, and the average of all the squares of the difference between the two spectrograms is taken as the mean square error between the spectrograms of any two initial images.

[0056] The spectrograms of all the initial images are spectrally accumulated and averaged to obtain an average spectrogram.

[0057] A set consisting of the mean square errors between the spectrum of any initial image and the spectrum of all other initial images is taken as the mean square error set of the spectrum of any initial image.

[0058] (2) The spectrum fluctuation index of the spectrum of each initial image is obtained according to the mean square error set of the spectrum and the difference between the spectrum and the average spectrum. Specifically, it is:

[0059] When the turntable has a repetitive positioning error when the shaft rotates to a certain angle due to assembly defects or other reasons, this repetitive positioning error is periodic, and this periodic repetitive positioning error will cause the image content to repeatedly shift at the same interval, and this shift is manifested as an enhancement of a specific frequency component in the frequency domain. If there is no repetitive positioning error, each image in the image sequence is acquired strictly according to the predetermined angle, then the spatial arrangement of each image content should be strictly consistent, and after Fourier transform, the frequency spectrum corresponding to each image should be highly similar.

[0060] Calculate the mean of all elements in the mean square error set of each spectrum graph, recorded as the first mean; calculate the absolute value of the difference between each spectrum graph and the first mean of any other spectrum graph, recorded as the first absolute value of the difference; calculate the mean square error between each spectrum graph and the average spectrum graph, recorded as the first mean square error; the spectrum fluctuation index of each spectrum graph is positively correlated with the first absolute value of the difference and the first mean square error, respectively.

[0061] Preferably, as an embodiment of the present application, the average of the absolute values ​​of the first differences between each spectrum graph and all other spectrum graphs is calculated and recorded as the first average value; the spectrum fluctuation index of each spectrum graph can be the sum of the first average value and the first mean square error.

[0062] Step S3, obtaining a reference image according to the spectrum fluctuation index, and obtaining the image to be matched of each initial image; obtaining the frequency fluctuation influence coefficient of each pixel point in the spectrum diagram of the matching image of each initial image except the reference image according to the mean square error and amplitude difference between the spectrum diagram of the image to be matched and the reference image.

[0063] As an example, this step may include the following steps:

[0064] When judging the similarity between each spectrum graph and the other spectrum graphs, if some frequencies in the spectrum graph increase abnormally, the similarity between the spectrum graph and the other spectrum graphs will decrease, thereby increasing the mean square error between the spectrum graph and the other spectrum graphs, and the mean square error between the spectrum graph and the average spectrum graph will also increase, and then the spectrum fluctuation index of the spectrum graph will increase, indicating that the possibility of repeated positioning errors in the initial image corresponding to the spectrum graph is greater.

[0065] (1) Since the initial image corresponding to the spectrum graph with a larger spectrum fluctuation index is more likely to be the image taken when a repeated positioning error occurs, the initial image corresponding to the spectrum graph with the largest spectrum fluctuation index is obtained and used as the reference image.

[0066] For each initial image except the reference image, the position of the initial image on the rotating shaft is used as the starting point for re-rotation, and the images of each reference object obtained after the rotating shaft rotates one circle are obtained and recorded as the image to be matched of the initial image.

[0067] (2) According to the mean square error between the frequency spectrum of the image to be matched and the reference image, the matching images of the initial images except the reference image are obtained, which are as follows:

[0068] For each initial image except the reference image, all the images to be matched of the initial image are converted into the frequency domain by the time-frequency conversion algorithm to obtain the frequency spectra of each image to be matched of the initial image. It should be noted that the time-frequency conversion algorithm can be selected by the implementer. In this embodiment, the frequency spectra are obtained by using a two-dimensional discrete Fourier transform. The mean square error between the frequency spectra of each image to be matched of the initial image and the frequency spectra of the reference image is calculated and recorded as the reference deviation value; the image to be matched corresponding to the minimum value of all the reference deviation values ​​of the initial image is obtained as the matching image of the initial image.

[0069] (3) The frequency fluctuation influence coefficient of each pixel point in the spectrum diagram of the matching image of each initial image is obtained according to the difference between the reference image and the matching image, which is specifically:

[0070] For each initial image except the reference image, the square of the difference in pixel value between any pixel point in the frequency spectrum of the matching image of the initial image and the corresponding pixel point in the frequency spectrum of the reference image is taken as the amplitude difference of any pixel point in the frequency spectrum; the sum of the amplitude differences of all pixel points in the frequency spectrum of the matching image of the initial image is calculated, recorded as the first sum; the frequency fluctuation influence coefficient of any pixel point in the frequency spectrum of the matching image of the initial image is positively correlated with the first sum and the amplitude difference of any pixel point in the frequency spectrum, respectively.

[0071] Preferably, as an embodiment of the present application, the frequency fluctuation influence coefficient of any pixel point in the spectrum diagram of the matching image of the initial image may be the product of the amplitude difference of any pixel point in the spectrum diagram and the first sum value.

[0072] If there is no repeated positioning error during the rotation of the turntable shaft, the reference image and the matching image are approximately the same, so that the amplitude of each point in the matching image spectrum is approximately the same as the amplitude of the corresponding point in the reference image, so that the frequency fluctuation influence coefficient of each point in the matching image spectrum is approximately 0.

[0073] If there is a repeated positioning error, the reference image is the image when the repeated positioning error occurs in the process of obtaining the initial image, and the matching image is most likely the image when the repeated positioning error occurs in the process of obtaining the image to be matched of the initial image; since the main reason for the difference in the spectrum graph is that the amplitude of the frequency related to the repeated positioning error will increase abnormally, the greater the difference between the amplitude of each point in the matching image and the amplitude of the corresponding point in the reference image, the more likely the frequency of the point is to be a frequency correlated with the repeated positioning error, and the greater the frequency fluctuation influence coefficient of the frequency of the point, the more the frequency increases abnormally, and the higher the correlation between the frequency and the repeated positioning error.

[0074] The same processing is performed on all the initial images in the image sequence except the reference image, and the frequency fluctuation influence coefficient of each point in the spectrum diagram of all the initial images except the reference image is calculated.

[0075] Step S4, obtaining the relevant frequency influence coefficient of the same frequency in all the spectrum diagrams according to the frequency fluctuation influence coefficient; constructing the adaptive bandwidth function value of each frequency and the filter function value of each frequency according to the relevant frequency influence coefficient.

[0076] As an example, this step may include the following steps:

[0077] (1) Obtain the relevant frequency influence coefficient of each frequency, specifically:

[0078] Each pixel in the spectrum graph represents a frequency, and the pixel value of each pixel represents the amplitude of each frequency. The frequency fluctuation influence coefficient of any pixel in the spectrum graph is the frequency fluctuation influence coefficient of any frequency in the spectrum graph. The average value of the frequency fluctuation influence coefficients of the same frequency in the matching image spectrum graphs of all initial images is calculated and recorded as the relevant frequency influence coefficient of the same frequency.

[0079] (2) Distinguish effective correlated frequencies and non-correlated frequencies according to the correlated frequency influence coefficient of each frequency; arrange all frequencies to construct a frequency sequence.

[0080] Preferably, as an embodiment, the effective correlation frequency and the non-correlated frequency can be distinguished by: setting a segmentation threshold. It should be noted that the segmentation threshold can be set by the implementer. In this embodiment, the lower quartile of the correlation frequency influence coefficient of all frequencies is taken as the segmentation threshold, and the frequency with a correlation frequency influence coefficient greater than the segmentation threshold is determined as the effective correlation frequency, and the frequency less than or equal to the segmentation threshold is determined as the non-correlated frequency;

[0081] The frequency sequence can be constructed by converting the two-dimensional spectrum graph into a one-dimensional spectrum graph, arranging all frequencies in the one-dimensional spectrum graph in order, and recording the composed sequence as a frequency sequence.

[0082] As another embodiment, the frequency sequence may be constructed by arranging all frequencies in the spectrum graph in ascending order, and the composed sequence is recorded as the frequency sequence.

[0083] (3) Record the set of all connected valid correlation frequencies in the frequency sequence as the valid correlation frequency set, and obtain the frequency span of each valid correlation frequency set.

[0084] As an example, suppose the order of all frequencies in the frequency sequence is ,in is the effective correlation frequency, where Connected, If connected, The collection composed of The sets composed of are recorded as effective correlation frequency sets; then the frequency spans of these two effective correlation frequency sets are and As the frequency-related frequency influence coefficient increases, the abnormal increase of the corresponding frequency increases, and the correlation between the frequency and the repeated positioning error increases. At this time, when filtering the frequency, a smaller bandwidth should be used to ensure that the impact of the frequency can be minimized.

[0085] (4) According to the frequency domain span, the adaptive bandwidth function value of each effective related frequency and non-related frequency is constructed respectively, and the filter function value of each frequency is constructed, specifically:

[0086] Obtain the maximum value of the frequency span of all valid related frequency sets, recorded as the first maximum value; set the adaptive bandwidth function value of each non-correlated frequency to the first maximum value; obtain the maximum value among all frequencies, recorded as the second maximum value; calculate the ratio of the frequency value of each valid related frequency to the second maximum value, recorded as the first ratio; calculate the difference between the natural number 1 and the first ratio, recorded as the second difference; set the adaptive bandwidth function value of each valid related frequency to the product of the first maximum value and the second difference.

[0087] The filter function value of each non-correlated frequency is set to 1; the difference between the maximum value and the minimum value of the adaptive bandwidth function value of all frequencies is calculated, which is recorded as the third difference; the difference between the adaptive bandwidth function value of each effective correlated frequency and the minimum value of the adaptive bandwidth function value of all frequencies is calculated, which is recorded as the fourth difference; the filter function value of each effective correlated frequency is set to the ratio of the third difference to the fourth difference.

[0088] The larger the frequency-related frequency influence coefficient is, the higher the correlation between the frequency and the repeated positioning error is. In order to minimize the impact of the frequency, a smaller bandwidth will be used to construct the filter function value. The smaller the final filter function value is, the better the filtering effect is for the frequency with a higher correlation with the repeated positioning error. When the frequency-related frequency influence coefficient is less than or equal to the segmentation threshold, it is considered that the frequency has a low correlation with the repeated positioning error, that is, it is a normal frequency, so a larger bandwidth is used to construct the filter function value, and the final filter function value is larger, thereby ensuring that the normal frequency can be retained to the greatest extent.

[0089] Step S5, performing frequency domain correction on the front image of the reference object captured when the turntable rotates according to the filter function value of each frequency and the time-frequency conversion algorithm.

[0090] As an example, this step may include the following steps:

[0091] The front image of the reference object taken by the rotation of the turntable is used as input, and a two-dimensional discrete Fourier transform is used to obtain a spectrum diagram. The spectrum diagram is then convolved with the filter function value obtained in the above step S4 to filter out the frequency components related to the repeated positioning error. The filtered spectrum diagram is subjected to a two-dimensional discrete Fourier inverse transform and restored to the spatial domain to obtain the reference object image after the turntable error is corrected in the frequency domain.

[0092] It should be noted that the two-dimensional discrete Fourier transform and the two-dimensional discrete Fourier inverse transform are both well-known technologies, and the implementer may also use other time-frequency conversion algorithms and inverse conversion algorithms to perform frequency domain and time domain conversions, such as Fourier transform, fast Fourier transform, wavelet transform algorithm, etc., which are not specifically limited in this embodiment. The convolution operation is a well-known technology, and the specific process will not be repeated.

[0093] The schematic diagram of the steps of the method for obtaining the frequency fluctuation influence coefficient is as follows: Figure 2 As shown; the schematic diagram of the steps of the method for constructing the adaptive bandwidth function value of each frequency is as follows Figure 3 shown.

[0094] In summary, the embodiment of the present application collects the front image of the reference object when the turntable shaft rotates at different angles, which is recorded as the initial image; constructs the spectrum fluctuation index of the spectrum graph according to the difference between the spectrum graphs of the initial image, determines the image taken when the repeated positioning error occurs, which is recorded as the reference image, analyzes the change of frequency in the spectrum graph, and improves the accuracy of the acquired reference image; collects the images of each reference object rotated from different positions, and determines the images with repeated positioning errors when rotated from different positions according to the similarity between the spectrum graphs and the reference image, and constructs the relevant frequency influence coefficient of each frequency according to the amplitude change of the frequency in the spectrum graphs of these images with repeated positioning errors, and evaluates the correlation between each frequency and the repeated positioning error; according to the relevant frequency influence coefficient, different filter function values ​​are used for different frequencies, which improves the filtering effect of frequencies with a higher correlation with the repeated positioning error, reduces the filtering degree of frequencies with a lower correlation with the repeated positioning error, and improves the retention effect of the effective information of the image, thereby improving the filtering effect of the image with repeated positioning errors, improving the clarity and accuracy of the image of the reference object on the turntable, and improving the correction effect of the turntable positioning error in the image, which is conducive to reducing the technical difficulty of image registration, stereo reconstruction and other operations on the turntable.

[0095] It should be noted that the above sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0096] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0097] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Modifications to the technical solutions recorded in the aforementioned embodiments, or equivalent replacement of some of the technical features therein, do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A frequency domain correction method for turntable error, characterized in that: The method comprises the following steps: (1) Install a reference object on the rotating shaft of the turntable and collect the front images of the reference object when the rotating shaft of the turntable rotates at different angles, which are recorded as initial images; (2) Obtaining the mean square error between the spectrograms of any two initial images; and obtaining the spectrum fluctuation index of the spectrum of each initial image according to the mean square error; (3) Obtaining a reference image according to the spectrum fluctuation index and obtaining the image to be matched of each initial image; obtaining the frequency fluctuation influence coefficient of each pixel point in the spectrum graph of the matching image of each initial image except the reference image according to the mean square error and amplitude difference between the spectrum graph of the image to be matched and the reference image; (4) Obtain the relevant frequency influence coefficient of the same frequency in all spectrum graphs according to the frequency fluctuation influence coefficient; construct the adaptive bandwidth function value of each frequency according to the relevant frequency influence coefficient, and construct the filter function value of each frequency; (5) Performing frequency domain correction on the front image of the reference object captured when the turntable rotates according to the filter function value of each frequency and the time-frequency conversion algorithm; The method for constructing the adaptive bandwidth function value of each frequency is: Determine the frequency whose correlation frequency influence coefficient is greater than the preset segmentation threshold as the effective correlation frequency, and determine the frequency less than or equal to the preset segmentation threshold as the non-correlated frequency; record the sequence obtained by arranging all frequencies as the frequency sequence; record the set of all connected effective correlation frequencies in the frequency sequence as the effective correlation frequency set, and obtain the frequency span of each effective correlation frequency set; Obtain the maximum value of the frequency span of all valid related frequency sets, recorded as the first maximum value; set the adaptive bandwidth function value of each non-correlated frequency to the first maximum value; obtain the maximum value of all frequencies, recorded as the second maximum value; calculate the ratio of the frequency value of each valid related frequency to the second maximum value, recorded as the first ratio; calculate the difference between the natural number 1 and the first ratio, recorded as the second difference; calculate and use the product of the first maximum value and the second difference as the adaptive bandwidth function value of each valid related frequency; The method for constructing the filter function value of each frequency is: The filter function value of each non-correlated frequency is set to 1; the difference between the maximum value and the minimum value of the adaptive bandwidth function value of all frequencies is calculated, recorded as the third difference; the difference between the adaptive bandwidth function value of each effective correlation frequency and the minimum value of the adaptive bandwidth function value of all frequencies is calculated, recorded as the fourth difference; the ratio of the third difference to the fourth difference is used as the filter function value of each effective correlation frequency; The method for performing frequency domain correction on the front image of the reference object captured when the turntable rotates is: The spectrum diagram of the front image of the reference object photographed by rotating the turntable is convolved with the filter function value to obtain a filtered spectrum diagram, and the filtered spectrum diagram is restored to the spatial domain through an inverse transform algorithm to obtain a front image of the reference object after the turntable error is corrected in the frequency domain.

2. A frequency domain correction method for turntable error according to claim 1, characterized in that: The process of obtaining the spectrum fluctuation index of the spectrum graph of each initial image is as follows: Obtain a mean square error set of the average spectrum graph and the spectrum graphs of each initial image; Calculate the mean of all elements in the mean square error set of each spectrum graph, recorded as the first mean; calculate the absolute value of the difference between each spectrum graph and the first mean of any other spectrum graph, recorded as the first absolute value of the difference; calculate the mean square error between each spectrum graph and the average spectrum graph, recorded as the first mean square error; the spectrum fluctuation index of each spectrum graph is positively correlated with the first absolute value of the difference and the first mean square error, respectively.

3. A frequency domain correction method for turntable error according to claim 2, characterized in that: The process of obtaining the mean square error set of the average spectrum graph and the spectrum graph of each initial image is as follows: Accumulate the spectrograms of all the initial images and calculate the average value to obtain an average spectrogram; A set consisting of the mean square errors between the spectrum of any initial image and the spectrum of all other initial images is taken as the mean square error set of the spectrum of any initial image.

4. The frequency domain correction method for turntable error according to claim 1, characterized in that: The method of obtaining a reference image according to the spectrum fluctuation index and obtaining an image to be matched of each initial image is specifically as follows: The initial image corresponding to the spectrum graph with the largest spectrum fluctuation index is used as the reference image; For each initial image except the reference image, the position of the initial image on the rotating shaft is used as the starting point for re-rotation, and the images of each reference object obtained after the rotating shaft rotates one circle are obtained and recorded as the image to be matched of the initial image.

5. The frequency domain correction method for turntable error according to claim 1, characterized in that: The process of obtaining the frequency fluctuation influence coefficient of each pixel point in the spectrum diagram of the matching image of each initial image except the reference image is as follows: Acquire matching images of each initial image except the reference image; The square of the pixel value difference between any pixel point in the spectrum graph of the matching image of the initial image and the corresponding pixel point in the spectrum graph of the reference image is used as the amplitude difference of any pixel point in the spectrum graph; The sum of the amplitude differences of all pixels in the spectrum diagram of the matching image of the initial image is calculated and recorded as a first sum; the frequency fluctuation influence coefficient of any pixel in the spectrum diagram of the matching image of the initial image is positively correlated with the first sum and the amplitude difference of any pixel in the spectrum diagram.

6. A frequency domain correction method for turntable error according to claim 5, characterized in that: The method for obtaining matching images of each initial image except the reference image is: For each initial image except the benchmark image, the mean square error between the frequency spectrum of each to-be-matched image of the initial image and the frequency spectrum of the benchmark image is calculated, which is recorded as the benchmark deviation value; the to-be-matched image corresponding to the minimum value of all the benchmark deviation values ​​of the initial image is obtained as the matching image of the initial image.

7. The frequency domain correction method for turntable error according to claim 1, characterized in that: The method for obtaining the relevant frequency influence coefficient of the same frequency in all the spectrum graphs is as follows: The average value of the frequency fluctuation influence coefficients of the same frequency in the matching image spectrograms of all the initial images is taken as the relevant frequency influence coefficient of the same frequency.