Rapid wavefront reconstruction method
Technical Field
The invention relates to a rapid wavefront reconstruction method, in particular to a rapid wavefront reconstruction method suitable for slope type wavefront sensors such as Hartmann wavefront sensors, shearing interferometers and the like.
Background
Wave aberration measurement has wide application in the fields of optical processing and manufacturing, laser systems, astronomical observation and the like. The principles and instruments for wave aberration measurement are numerous, and one type of slope type wavefront sensor, such as Hartmann wavefront sensor and shearing interferometer, has wide application in the relevant field, in reconstructing the wavefront by sampling the slope of the wave aberration.
The wavefront reconstruction method of the slope type wavefront sensor has various methods, such as a region method, a mode method, a spline method, a Fourier method and the like, wherein the region method and the spline method are common methods, and the method can reconstruct wavefront data with local characteristics and has higher spatial resolution reconstruction precision. The method comprises the steps of establishing a grid model, establishing a relation between a slope and a wavefront reconstruction point to obtain a least square constraint, and solving the constraint through an iterative algorithm to obtain a reconstructed wavefront. Along with the improvement of the complexity of the measured object, the resolution of wavefront reconstruction is correspondingly improved, the number of slope sampling points is increased, and the iteration number required by convergence is increased. The calculated amount required for reconstructing the primary wavefront is about the number of sampling points multiplied by the number of iterations, and when the number of sampling points and the number of iterations become large, the calculated amount for reconstruction is greatly increased. Therefore, a fast reconstruction algorithm for a wavefront is important for a high resolution slope type wavefront sensor that uses a region method for restoration.
Disclosure of Invention
The invention is based on the background, and a novel rapid wave front reconstruction method is invented, which uses a multi-scale method to reconstruct from a large scale to a small scale in turn, and the iteration times can be effectively reduced by taking the reconstruction result of the large scale as an initial value during the reconstruction of the small scale, so that the calculation speed and the calculation precision are improved.
The invention aims to solve the technical problem that in the prior art, when a slope type wavefront sensor carries out regional method or spline method reconstruction on slope data, the reconstruction speed is low due to the fact that the iteration times are large.
The technical scheme adopted for solving the technical problems is that the rapid wavefront reconstruction method comprises the following steps:
Step 1) acquiring slope matrices P x and P y with resolution L×M from a wavefront sensor;
Step 2) downsampling P x and P y by N layers to generate N-layer slope matrix AndWhere i=1, 2,3, N, the Nth layer is the layer with the largest scale;
step 3) let i=n using default initial values, use wavefront restoration algorithm 1, consist of AndReconstructing to obtain a wavefront W N;
step 4) updating the i value by using i-1, i;
step 5) if i is more than or equal to 1, performing step 6), otherwise, jumping to step 7);
step 6) upsampling W i-1 to obtain To be used forFor initial value, the wavefront restoration algorithm 1 is used, consisting ofAndReconstructing to obtain a wavefront W i, and jumping to the step 4);
step 7) upsampling W 1 to obtain To be used forFor initial values, the wavefront W is reconstructed from P x and P y using the wavefront restoration algorithm 2.
Compared with the prior art, the invention has the following advantages:
1. the rapid wavefront reconstruction method disclosed by the invention is suitable for the high-resolution slope type wavefront sensor for reconstructing the wavefront by adopting an iteration method such as a regional method or a spline method, and can effectively reduce the iteration times and improve the reconstruction speed.
2. When the rapid wavefront reconstruction method disclosed by the invention is implemented, the large-scale calculation result can be discarded as an initial value for the next layer of small scale, and the rapid wavefront reconstruction method is suitable for pipeline processing by using hardware.
Drawings
FIG. 1 is a flow chart of a fast wavefront reconstruction method in the present invention;
FIG. 2 shows 128×128 slope matrices P x and P y obtained during the practice of the present invention;
FIG. 3 is a layer 1 slope matrix and obtained after downsampling P x and P y AndThe resolution is 64×64;
FIG. 4 is a pair of AndLayer 2 slope matrix sum obtained after downsamplingAndResolution is 32×32;
FIG. 5 is a pair of AndLayer 3 slope matrix sum obtained after downsamplingAndResolution is 16×16;
FIG. 6 is a pair of AndLayer 4 slope matrix sum obtained after downsamplingAndResolution is 16×16;
FIG. 7 is a block diagram of a region method using a Fried model, by AndReconstructing to obtain a wavefront W i, where i=1, 2,3,4;
FIG. 8 is an up-sampling of W 1 A kind of electronic device with a display deviceFor initial values, the wavefront W was reconstructed from P x and P y using the area method of Southwell model.
Detailed Description
The invention will be described in detail with reference to the drawings and detailed description.
The embodiment adopts a Hartmann wavefront sensor with a microprism array structure, describes a rapid wavefront reconstruction method, and the operation flow is shown in figure 1, and the specific steps are as follows:
1) This embodiment obtains slope matrices P x and P y with a resolution of 128 x 128 from the imaging element of the hartmann wavefront sensor as shown in fig. 2, i.e., l=128, m=128;
2) Downsampling P x and P y by 4 layers to generate a 4-layer slope matrix AndWhere i=1, 2,3,4, layer 4 is the layer with the largest scale, i.e. n=4, slope matrix of layers 1 to 4AndAs shown in fig. 3 to 6, respectively;
3) Let i=4 using default initial value (all 0), region method using Fried model, by AndReconstructing to obtain a wavefront W 4, as shown in FIG. 7;
4) Updating the i value i-1 by using i-1;
5) If i is more than or equal to 1, performing step 6), otherwise, jumping to step 7);
6) Upsampling W i-1 to obtain To be used forFor initial value, the regional method using Fried model is defined byAndReconstructing to obtain a wavefront W i, jumping to the step 4), and reconstructing to obtain W 1、W2、W3 as shown in FIG. 7;
7) Upsampling W 1 to obtain To be used forFor initial values, the wavefront W was reconstructed from P x and P y using the area method of Southwell model,And W is shown in fig. 8.
Directly using Southwell algorithm, performing wavefront reconstruction by P x and P y, stopping when the relative accuracy of iteration reaches 1×10 -7, and requiring 450 iterations, wherein in this embodiment, the number of iterations of layer 4 is 1, the number of iterations of layer 3 is 1, the number of iterations of layer 2 is 1, the number of iterations of layer 1 is 38, and using W 1 after interpolationAs an initial value, southwell is used for reconstruction, and the iteration number is 281. The invention greatly reduces the times required by iteration, accelerates the iteration process and improves the speed of wave front reconstruction.
It will be readily appreciated by those skilled in the art that the foregoing description is merely a preferred embodiment of the invention and is not intended to limit the invention, but any modifications, equivalents, improvements or alternatives falling within the spirit and principles of the invention are intended to be included within the scope of the invention.