Disclosure of Invention
The invention provides an image registration method, device and equipment for ODT data based on a coarse calibration system, which are used for solving the defect that the demand of ODT data registration cannot be processed in the prior art, and ensuring high accuracy and high processing efficiency so as to realize the image registration and fusion of the ODT data.
The invention provides an image registration method for ODT data based on a coarse calibration system, which comprises the following steps:
Acquiring three-dimensional refractive index data of an ODT image to be registered, and extracting single-layer two-dimensional data matched with a wide-field fluorescent image from the three-dimensional refractive index data, wherein the ODT image to be registered and the wide-field fluorescent image are acquired by the same sample at the same time, and the ODT image to be registered and the wide-field fluorescent image have overlapping areas;
respectively extracting characteristic points of the single-layer two-dimensional data and the wide-field fluorescent image to obtain an ODT characteristic point set and a wide-field fluorescent characteristic point set;
Matching the ODT characteristic point set and the wide-field fluorescence characteristic point set based on an adaptive iterative algorithm improved by a clustering algorithm, and iterating to generate an affine transformation matrix;
Taking the affine transformation matrix as an initial solution, constructing a differential optimizer, and inputting the affine transformation matrix into the differential optimizer for optimization to obtain a perspective transformation matrix;
And determining an image registration result of the three-dimensional refractive index data and the wide-field fluorescent image based on the perspective transformation matrix.
According to the image registration method for ODT data based on the coarse calibration system, the fitness function of the differential optimizer comprises any one of mean square error and structural similarity.
According to the image registration method for ODT data based on the coarse calibration system provided by the invention, the characteristic point extraction is respectively carried out on the single-layer two-dimensional data and the wide-field fluorescent image to obtain an ODT characteristic point set and a wide-field fluorescent characteristic point set, and the image registration method comprises the following steps:
and respectively extracting characteristic points from the single-layer two-dimensional data and the wide-field fluorescent image by using a scale space extremum detection algorithm to obtain the ODT characteristic point set and the wide-field fluorescent characteristic point set.
According to the image registration method for ODT data based on a coarse calibration system, the acquisition steps of the single-layer two-dimensional data and the wide-field fluorescent image comprise the following steps:
acquiring original single-layer two-dimensional data and an original wide-field fluorescent image;
sequentially performing image binarization, image color reversal and edge feature extraction on the original single-layer two-dimensional data, and filling holes in edge information to obtain the single-layer two-dimensional data;
and respectively carrying out image binarization and image smoothing on the original wide-field fluorescent image to obtain the wide-field fluorescent image.
According to the image registration method for ODT data based on the coarse calibration system, which is provided by the invention, the adaptive iterative algorithm improved based on the clustering algorithm is used for matching the ODT characteristic point set and the wide-field fluorescence characteristic point set and generating an affine transformation matrix in an iterative manner, and the method further comprises the following steps:
And reversely screening the ODT characteristic point set and the wide-field fluorescence characteristic point set which meet the error requirement in the iteration process.
According to the image registration method for ODT data based on the coarse calibration system, which is provided by the invention, the ODT characteristic point set and the wide-field fluorescence characteristic point set which meet the error requirement are reversely screened in the iterative process, and the image registration method comprises the following steps:
Step s1, determining an initial affine transformation matrix based on the ODT characteristic point set and the wide-field fluorescence characteristic point set, and determining a transformation ODT image based on the initial affine transformation matrix and the ODT image to be registered;
Step s2, calculating Manhattan distance of the corresponding point set after transformation based on the transformation ODT image and the wide-field fluorescent image, taking the Manhattan distance as an evaluation index, and screening out the ODT characteristic point set and the wide-field fluorescent characteristic point set with errors larger than a set threshold based on the evaluation index;
and repeating the iterative step s1 and the iterative step s2 to obtain the ODT characteristic point set, the wide-field fluorescence characteristic point set and the affine transformation matrix which meet the error requirement.
The invention also provides an image registration system for ODT data based on the coarse calibration system, which comprises the following modules:
The device comprises an acquisition unit, a detection unit and a detection unit, wherein the acquisition unit is used for acquiring three-dimensional refractive index data of an ODT image to be registered and extracting single-layer two-dimensional data matched with a wide-field fluorescent image from the three-dimensional refractive index data, the ODT image to be registered and the wide-field fluorescent image are acquired by the same sample at the same time, and the ODT image to be registered and the wide-field fluorescent image have an overlapping area;
The characteristic point extraction unit is used for extracting characteristic points of the single-layer two-dimensional data and the wide-field fluorescent image respectively to obtain an ODT characteristic point set and a wide-field fluorescent characteristic point set;
the matching unit is used for matching the ODT characteristic point set and the wide-field fluorescence characteristic point set based on an adaptive iterative algorithm and generating an affine transformation matrix in an iterative mode;
the perspective transformation matrix solving unit is used for taking the affine transformation matrix as an initial solution, constructing a differential optimizer, inputting the affine transformation matrix into the differential optimizer for optimization, and obtaining a perspective transformation matrix;
and the determining unit is used for determining an image registration result of the three-dimensional refractive index data and the wide-field fluorescent image based on the perspective transformation matrix.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the image registration method for ODT data based on the coarse calibration system as described in any one of the above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the coarse calibration system-based image registration method for ODT data as described in any of the above.
The present invention also provides a computer program product comprising a computer program which, when executed by a processor, implements the coarse calibration system based image registration method for ODT data as described in any of the above.
The image registration method, the device and the equipment based on the coarse calibration system for the ODT data, provided by the invention, on one hand, realize image registration specifically for the ODT three-dimensional refractive index data and the multi-channel wide-field fluorescence data, further realize image fusion of a label-free nonspecific imaging mode and a specific imaging mode under the same sample at the same time, capture the integral structure and the morphological change of the sample, highlight interaction and process of specific biomolecules or chemical components, and provide new visual angles and clues for scientific research, and on the other hand, provide an image registration method with lower time cost, higher precision and faster time efficiency for a microscopic imaging system with larger coarse calibration or error.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a schematic flow chart of an image registration method for ODT data based on a coarse calibration system according to the present invention, and as shown in fig. 1, the method includes steps 110, 120, 130, 140 and 150.
Step 110, acquiring three-dimensional refractive index data of an ODT image to be registered, and extracting single-layer two-dimensional data matched with a wide-field fluorescent image from the three-dimensional refractive index data, wherein the ODT image to be registered and the wide-field fluorescent image are acquired by the same sample at the same time, and the ODT image to be registered and the wide-field fluorescent image have an overlapping area.
Specifically, the ODT image to be registered and the wide-field fluorescent image are obtained by a multi-mode microscopic imaging system at the same time by the same sample, wherein the system state of the multi-mode microscopic imaging system is rough calibration, and the system errors comprise different angles of illumination light sources of two mode light sources, inclination of sample or displacement table levelness, insufficient reset precision of a mirror bracket turntable and the like.
The multimode microscopic imaging system comprises a laser, a displacement table, two cameras, a microscope stand, a scanning galvanometer, an electric diaphragm, a fluorescent lamp box and optical elements, wherein the microscope stand is arranged on the bottom surface, other hardware devices are arranged on the microscope stand, the system is used for imaging through a specific light path and matched with hardware, and ODT data are obtained by acquiring data from the cameras and calculating and imaging through a calculation module.
Accordingly, standard fluorescent stained microspheres are first prepared as registration samples because imaging of standard microspheres typically has more distinct and sharp-edged image features, and for the specificity of a wide-field fluorescent image, specific-band specific microspheres can be fully stimulated to emit light. And then acquiring ODT images and wide-field fluorescent images of the microspheres with different field sizes and overlapping areas at the same time through a multi-mode microscopic imaging system.
Fig. 2 is a schematic diagram of an ODT three-dimensional refractive index volume image of a fluorescent microsphere sample provided by the present invention, and fig. 3 is a schematic diagram of a wide-field fluorescent image of a fluorescent microsphere sample provided by the present invention, as shown in fig. 2 and 3. For the three-dimensional refractive index volume data of the ODT image to be registered, which is shown in fig. 2, and reflects the refractive index volume data of a sample in a certain z-axis interval, different layer characteristics of the image such as gray scale, gradient, edge information and large noise change, the specific layer truly corresponding to the focal plane of the wide-field fluorescence imaging data, namely the actual z-axis height, needs to be screened out through algorithm calculation.
For the ODT data of the screened specific layer, the data reflects the sample refractive index information instead of intensity or gray scale information due to its calculated imaging characteristics, and the accurate result is hardly generated when the feature point extraction is performed due to the calculated imaging specific noise and error. Fig. 4 is a schematic diagram of a pretreated ODT image provided by the present invention, as shown in fig. 4, a series of pretreatment methods can be performed on ODT data of a specific layer to make it exhibit and enhance image characteristics similar to those of wide-field fluorescent microspheres. For example, the refractive index of the screened original single-layer two-dimensional data is mapped to a gray space by a design algorithm, then image binarization, image color reversal and edge feature extraction are sequentially carried out, and then holes are filled in edge information, so that the single-layer two-dimensional data is obtained. And respectively carrying out image binarization and image smoothing on the original wide-field fluorescent image to obtain a wide-field fluorescent image.
Gray scale mapping of images, namely mapping floating point number range of original refractive index image values from about-2.000000 to 1.7000000 to integer values of 0 to 255, and properly cutting off the upper and lower limits of 3 to 5 percent of values according to the integral distribution of refractive index values to ensure that the mapped images show contrast which is easier to register
The binarization of the image, namely, the gray value of the pixel point on the image is set to 0 or 255, so that the whole image presents obvious visual effects of only black and white. Binarization is the simplest method of image segmentation, which converts a gray-scale image into a binary image.
Image inversion refers to inverting the color value of each pixel in an image. In the gray color space, this typically means subtracting the original value from the gray value of each pixel by 255.
Edge feature extraction refers to extracting pixels or regions with edge features from an image. The edges generally represent the boundaries of objects or discontinuously changing portions, and have important significance for tasks such as segmentation, identification, reconstruction and the like of images.
The purpose of filling the holes is typically to improve the visual effect of the image, to increase the accuracy of subsequent image analysis or recognition.
Image smoothing is effectively a low-pass filter that smoothes the image gray scale, reducing abrupt gradients, and thus improving image quality.
And 120, extracting characteristic points of the single-layer two-dimensional data and the wide-field fluorescent image respectively to obtain an ODT characteristic point set and a wide-field fluorescent characteristic point set.
Specifically, feature point extraction is respectively carried out on the single-layer two-dimensional data and the wide-field fluorescent image, and an ODT feature point set and a wide-field fluorescent feature point set are obtained.
The feature point extraction can be performed on the single-layer two-dimensional data and the wide-field fluorescent image respectively by using a scale space extremum detection algorithm, so that an ODT feature point set and a wide-field fluorescent feature point set are obtained.
In order to detect feature points on different scales, a scale space needs to be first constructed for the image by performing a gaussian blur operation on the image and repeating at different scales. Each blurred image represents a different scale version of the image so that the algorithm can detect features of different sizes. In the constructed scale space, extreme points are detected by comparison of neighboring pixels. Specifically, each pixel point is compared to its pixels at adjacent scales and adjacent spatial locations. If a point appears to be a local maximum (or minimum) in all comparisons, it is considered a potential feature point.
And 130, matching the ODT characteristic point set and the wide-field fluorescence characteristic point set based on an adaptive iterative algorithm improved by a clustering algorithm, and iterating to generate an affine transformation matrix.
Specifically, considering that the detected potential feature points may further contain some unreliable points, further screening is needed, and the ODT feature point set and the broad-field fluorescence feature point set can be matched and an affine transformation matrix is iteratively generated based on an adaptive iterative algorithm improved by a clustering algorithm.
And 140, taking the affine transformation matrix generated in the last time as an initial solution, constructing a differential optimizer, and inputting the affine transformation matrix into the differential optimizer for optimization to obtain a perspective transformation matrix.
Specifically, taking an affine transformation matrix as an initial solution, simplifying parameters and an estimation interval thereof, and adopting a differential optimization method to globally estimate the perspective transformation matrix so as to compensate perspective transformation possibly existing and ensure accuracy and rapid convergence of a registration result.
Namely, the affine transformation matrix is input into a differential optimizer for optimization, and a perspective transformation matrix is obtained.
Here, the fitness function of the differential optimizer includes any one of mean square error (Mean Squared Error, MSE), structural similarity (Structural Similarity, SSIM).
Here, the affine transformation matrix generated in the last iteration is taken as the initial solution for estimating the perspective transformation matrix next, and the affine transformation matrix is:
Wherein, the Is the coordinates of the original image, and the coordinate of the original image,,Is the transformed coordinates; In order to be able to rotate the disc in an amount, ,,Is the translation amount.
The perspective transformation matrix is:
Wherein, the Is the coordinates of the original image, and the coordinate of the original image,,Is the transformed coordinates; In order to be able to rotate the disc in an amount, Is the translation amount.
In order to ensure registration accuracy, since the coarse calibration system mainly has linear transformation such as rotation, translation, scaling and the like, but some nonlinear transformation caused by light paths, camera levelness or displacement platform levelness, namely perspective transformation, is not ignored, iterative calculation is carried out on 9 parameters of a perspective transformation matrix by directly designing a global optimizer, so that the steps firstly estimate 6 parameters of the affine transformation matrix by adopting a local rapid iteration method, and screening characteristic point pairs in an iteration process to further ensure point set high matching degree and registration accuracy, and taking a characteristic point set generated by the last iteration and the affine transformation matrix as inputs to globally estimate the perspective transformation matrix. The specific method for screening the characteristic point pairs is that the Manhattan distance is carried out on the transformed ODT point pairs and the wide-field fluorescent point pairs, an error feedback function is established by taking the Manhattan distance as a main evaluation index, and the point pairs with the error larger than a set threshold value are screened and removed.
Step 150, determining an image registration result of the three-dimensional refractive index data and the wide-field fluorescent image based on the perspective transformation matrix.
Specifically, after obtaining the perspective transformation matrix, an image registration result of the three-dimensional refractive index data and the wide-field fluorescent image may be determined based on the perspective transformation matrix.
Based on the obtained perspective transformation matrix, the perspective transformation matrix is applied to the actual sample data acquired subsequently, the image registration of optical diffraction tomography and wide-field fluorescence imaging is completed, the fusion display of two imaging mode data is realized based on the registration result, and fig. 5 is an ODT three-dimensional data and multi-channel wide-field fluorescence data fusion effect diagram of a cell sample, wherein the ODT image presents a super-resolution panoramic image of the cell sample, and the multi-channel wide-field fluorescence data specifically presents cell membranes and lipid droplets, as shown in fig. 5.
The method provided by the embodiment of the invention realizes image registration aiming at ODT three-dimensional refractive index data and multichannel wide-field fluorescence data, further realizes image fusion of label-free nonspecific imaging and specific imaging modes of the same sample at the same time, can capture the integral structure and morphological change of the sample, can highlight interaction and process of specific biomolecules or chemical components, provides new visual angles and clues for scientific research, and provides an image registration method with lower time cost, higher precision and faster time efficiency aiming at a microscopic imaging system with coarse calibration or larger error.
Based on the above embodiment, step 130 further includes:
And reversely screening the ODT characteristic point set and the wide-field fluorescence characteristic point set which meet the error requirement in the iteration process.
In particular, the detected potential feature points may also contain some unreliable points, so further screening is required, and rapid estimation of affine transformation matrix is performed by using adaptive iterative algorithm improved by clustering algorithm. And setting a threshold value of the number of ideal characteristic point pairs according to the information density of the calibration image, substituting the threshold value into an affine transformation matrix, and reversely screening out the characteristic point pairs meeting the conditions by setting an error evaluation index. Repeating the steps until the ideal characteristic point pair meets the set threshold value.
The method comprises the steps of reversely screening an ODT characteristic point set and a wide-field fluorescence characteristic point set which meet the error requirement in the iteration process, wherein the specific steps are as follows:
Step s1, determining an initial affine transformation matrix based on the ODT characteristic point set and the wide-field fluorescence characteristic point set, and determining a transformation ODT image based on the initial affine transformation matrix and the ODT image to be registered.
Step s2, calculating Manhattan distance of the corresponding point set after transformation based on the transformation ODT image and the wide-field fluorescent image, taking the Manhattan distance as an evaluation index, and screening out the ODT characteristic point set and the wide-field fluorescent characteristic point set with errors larger than a set threshold based on the evaluation index;
And repeating the iterative step s1 and the iterative step s2 to obtain an ODT characteristic point set, a wide-field fluorescence characteristic point set and an affine transformation matrix which meet the error requirement.
That is, the ODT feature point set and the wide-field fluorescent feature point set are matched using a feature point matching algorithm. And calculating an initial affine transformation matrix according to the matched characteristic point pairs. And applying the initial affine transformation matrix to the ODT image to be registered to obtain a transformed ODT image. And finding corresponding characteristic point pairs between the transformed ODT image and the wide-field fluorescent image. The manhattan distance between the pairs of corresponding feature points is calculated. An error threshold is set, and characteristic point pairs with Manhattan distance larger than the set threshold are screened out, namely the characteristic point pairs are considered to introduce larger errors in the registration process.
And performing the next iteration by using the filtered characteristic point set, recalculating an affine transformation matrix by using the updated characteristic point set, and applying the new affine transformation matrix to the ODT image to obtain a new transformation ODT image. And calculating a new Manhattan distance, and screening the characteristic point set again. The iteration is terminated when the average or maximum value of the manhattan distance is less than a set error requirement. The ODT characteristic point set, the wide-field fluorescence characteristic point set and the affine transformation matrix obtained at the moment are the final results.
Based on any of the above embodiments, fig. 6 is a second flowchart of an image registration method for ODT data based on a coarse calibration system according to the present invention, as shown in fig. 6, the method includes:
Step S1, standard fluorescent staining microspheres are selected as registration samples.
Step S2, acquiring an ODT image and a wide-field fluorescent image through a multi-mode microscopic imaging system, wherein the ODT image comprises a visual field area and a focal plane layer of the wide-field fluorescent image.
And S3, screening out the specific layer two-dimensional data corresponding to the focal plane of the wide-field fluorescence imaging data from the ODT three-dimensional image through an algorithm.
And S4, preprocessing such as gray mapping, binarization, edge detection, hole filling and the like is carried out on the screened specific layer ODT data, so that the specific layer ODT data represent and enhance the image characteristics similar to the wide-field fluorescence.
And S5, extracting characteristic points of the preprocessed ODT data and the preprocessed wide-field fluorescence imaging data by using a scale space extremum detection algorithm.
And S6, estimating an affine transformation matrix for the characteristic point pairs by using an adaptive iterative algorithm improved by a clustering algorithm.
And S7, setting a threshold value of the number of ideal characteristic point pairs according to the information density of the calibration image, substituting the threshold value into an affine transformation matrix, and reversely screening out the characteristic point pairs meeting the conditions by setting an error evaluation index.
And S8, repeating the steps S6-S7 until the ideal characteristic point pair meets a preset threshold.
Step S9, setting initial values of the perspective transformation matrix based on the affine transformation matrix finally obtained in the step S8.
Step S10, designing a global optimizer, and globally estimating a perspective transformation matrix by adopting a differential optimization method.
Step S11, a global estimated perspective transformation matrix is applied to obtain the transformation of the ODT image to the registered image.
And S12, selecting different channels to fuse the ODT image and the wide-field fluorescent image.
The image registration system for ODT data based on the coarse calibration system provided by the invention is described below, and the image registration system for ODT data based on the coarse calibration system described below and the image registration method for ODT data based on the coarse calibration system described above can be referred to correspondingly with each other.
Based on any of the above embodiments, the present invention provides an image registration system for ODT data based on a coarse calibration system, and fig. 7 is a schematic structural diagram of the image registration system for ODT data based on a coarse calibration system provided by the present invention, as shown in fig. 7, the system includes:
An obtaining unit 710, configured to obtain three-dimensional refractive index data of an ODT image to be registered, and extract single-layer two-dimensional data matching a wide-field fluorescent image from the three-dimensional refractive index data, where the ODT image to be registered and the wide-field fluorescent image are obtained by the same sample at the same time, and the ODT image to be registered and the wide-field fluorescent image have an overlapping area;
The feature point extracting unit 720 is configured to extract feature points of the single-layer two-dimensional data and the wide-field fluorescent image respectively, so as to obtain an ODT feature point set and a wide-field fluorescent feature point set;
A matching unit 730, configured to match the ODT feature point set and the broad-field fluorescent feature point set based on an adaptive iterative algorithm, and iterate to generate an affine transformation matrix;
The perspective transformation matrix solving unit 740 is configured to take the affine transformation matrix as an initial solution, construct a differential optimizer, and input the affine transformation matrix into the differential optimizer for optimization to obtain a perspective transformation matrix;
A determining unit 750 for determining an image registration result of the three-dimensional refractive index data and the wide-field fluorescent image based on the perspective transformation matrix.
The system judges according to the registration requirement, if the registration result is formed, the registration matrix recorded in the computer storage medium is only required to be directly applied to the data, the calibration flows of preprocessing, feature extraction, matching, screening and the like are not required to be carried out, and if the registration result is not formed, the registration method is executed.
The method also comprises the steps of selecting and requiring a sample, wherein the sample needs standard fluorescent dye microspheres to ensure that the imaging quality meets the requirement.
The system provided by the embodiment of the invention realizes image registration aiming at ODT three-dimensional refractive index data and multichannel wide-field fluorescence data, further realizes image fusion of label-free nonspecific imaging and specific imaging modes of the same sample at the same time, can capture the integral structure and morphological change of the sample, can highlight interaction and process of specific biomolecules or chemical components, provides new visual angles and clues for scientific research, and provides an image registration method with lower time cost, higher precision and faster time efficiency aiming at a microscopic imaging system with coarse calibration or larger error.
Based on any of the above embodiments, the fitness function of the differential optimizer includes any one of a mean square error and a structural similarity.
Based on any of the above embodiments, the feature point extraction unit 720 is specifically configured to:
and respectively extracting characteristic points from the single-layer two-dimensional data and the wide-field fluorescent image by using a scale space extremum detection algorithm to obtain the ODT characteristic point set and the wide-field fluorescent characteristic point set.
Based on any one of the above embodiments, the system further includes a data acquisition unit, where the data acquisition unit is specifically configured to:
acquiring original single-layer two-dimensional data and an original wide-field fluorescent image;
sequentially performing image binarization, image color reversal and edge feature extraction on the original single-layer two-dimensional data, and filling holes in edge information to obtain the single-layer two-dimensional data;
and respectively carrying out image binarization and image smoothing on the original wide-field fluorescent image to obtain the wide-field fluorescent image.
Based on any of the above embodiments, the apparatus further comprises a reverse screening unit, specifically configured to:
And the inverse screen unit is used for inverse screening the ODT characteristic point set and the wide-field fluorescence characteristic point set which meet the error requirement in the iterative process.
Based on any of the above embodiments, the reverse sifter unit is specifically configured to:
Step s1, determining an initial affine transformation matrix based on the ODT characteristic point set and the wide-field fluorescence characteristic point set, and determining a transformation ODT image based on the initial affine transformation matrix and the ODT image to be registered;
Step s2, calculating Manhattan distance of the corresponding point set after transformation based on the transformation ODT image and the wide-field fluorescent image, taking the Manhattan distance as an evaluation index, and screening out the ODT characteristic point set and the wide-field fluorescent characteristic point set with errors larger than a set threshold based on the evaluation index;
and repeating the iterative step s1 and the iterative step s2 to obtain the ODT characteristic point set, the wide-field fluorescence characteristic point set and the affine transformation matrix which meet the error requirement.
Fig. 8 is a schematic structural diagram of an electronic device according to the present invention, as shown in fig. 8, the electronic device may include a processor 810, a communication interface (Communications Interface) 820, a memory 830, and a communication bus 840, where the processor 810, the communication interface 820, and the memory 830 complete communication with each other through the communication bus 840. The processor 810 can call logic instructions in the memory 830 to execute an image registration method for ODT data based on a coarse calibration system, wherein the method comprises the steps of obtaining three-dimensional refractive index data of an ODT image to be registered, extracting single-layer two-dimensional data matched with a wide-field fluorescent image from the three-dimensional refractive index data, obtaining the ODT image to be registered and the wide-field fluorescent image which are obtained by the same sample at the same time, and have overlapping areas, extracting characteristic points of the single-layer two-dimensional data and the wide-field fluorescent image respectively to obtain an ODT characteristic point set and a wide-field fluorescent characteristic point set, carrying out matching and iterative generation of an affine transformation matrix based on an adaptive iterative algorithm improved by a clustering algorithm, taking the affine transformation matrix as an initial solution, constructing a differential optimizer, inputting the affine transformation into the differential optimizer to be optimized, and obtaining a transformation matrix, and determining a perspective transformation matrix of the ODT characteristic point set and the wide-field fluorescent image registration result based on the transformation matrix.
Further, the logic instructions in the memory 830 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
On the other hand, the invention also provides a computer program product, which comprises a computer program, wherein the computer program can be stored on a non-transitory computer readable storage medium, when the computer program is executed by a processor, the computer can execute the image registration method based on the ODT data provided by the above methods, and the image registration method based on the coarse calibration system comprises the steps of acquiring three-dimensional refractive index data of an ODT image to be registered, extracting single-layer two-dimensional data matched with a wide-field fluorescent image from the three-dimensional refractive index data, acquiring the same sample of the ODT image to be registered and the wide-field fluorescent image at the same time, and extracting characteristic points of the ODT image to be registered and the wide-field fluorescent image to obtain an ODT characteristic point set and a wide-field fluorescent characteristic point set, carrying out matching on the ODT characteristic point set and the wide-field fluorescent characteristic point set based on an adaptive iterative algorithm improved based on a clustering algorithm, carrying out iterative generation of an affine transformation matrix, taking the initial affine transformation matrix and the differential transformation matrix as an optimal transformation matrix, and carrying out optimization transformation to the optimal transformation result of the optimal transformation matrix to the three-dimensional transformation matrix, and obtaining the optimal transformation result based on the optimal transformation matrix.
In still another aspect, the present invention further provides a non-transitory computer readable storage medium, on which a computer program is stored, the computer program being implemented when executed by a processor to perform the method for image registration of ODT data based on a coarse calibration system provided by the above methods, the method comprising obtaining three-dimensional refractive index data of an ODT image to be registered, and extracting single-layer two-dimensional data matched with a wide-field fluorescent image from the three-dimensional refractive index data, the ODT image to be registered and the wide-field fluorescent image being obtained at the same time and having overlapping areas, respectively performing feature point extraction on the single-layer two-dimensional data and the wide-field fluorescent image to obtain an ODT feature point set and a wide-field fluorescent feature point set, performing matching and iterative generation of an affine transformation matrix based on an improved adaptive iterative algorithm of a clustering algorithm, taking the affine transformation matrix as an initial solution, and constructing a differential optimizer, inputting the affine transformation matrix into the differential optimizer, and performing optimization of the perspective transformation based on the differential transformation matrix, and obtaining a three-dimensional perspective transformation result of the perspective transformation matrix.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
It should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention, and not for limiting the same, and although the present invention has been described in detail with reference to the above-mentioned embodiments, it should be understood by those skilled in the art that the technical solution described in the above-mentioned embodiments may be modified or some technical features may be equivalently replaced, and these modifications or substitutions do not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of the embodiments of the present invention.