OCT imaging method, electronic equipment and computer program product
By collecting multiple B-scan images in the OCT imaging device and calculating relative displacement information, the target image pair is automatically determined to locate the best imaging position, which solves the problem in the existing technology that the OCT imaging device is difficult to automatically adjust to the best imaging position. , improving imaging quality and efficiency.
Patent Information
- Application Number
- CN202410824458.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-17
AI Technical Summary
It is difficult for existing OCT imaging equipment to automatically adjust to the optimal imaging position of biological tissues (such as fundus), resulting in poor imaging quality.
By collecting multiple B-scan images in the axial direction of the measured object, calculating the relative displacement information of the image pairs, determining the target image pair, and determining the best imaging position based on the target image pair, automatic positioning of the OCT imaging equipment is achieved.
The automatic positioning of OCT imaging equipment in the axial direction of biological tissue is realized, ensuring that the imaging image is located near the middle of the entire image, improving imaging quality and efficiency, and reducing data calculation complexity.
Smart Images

Figure CN118648871A
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to an OCT imaging method, electronic equipment and computer program product. Background Art
[0002] OCT (Optical Coherence Tomography) imaging technology is a fast, non-invasive, high-resolution imaging technology that uses the principle of weak coherent light interference to detect the back reflection or scattering signals of incident light at different depths of biological tissues. By scanning, the structural image of the biological tissue can be obtained. OCT imaging equipment usually needs to adjust the imaging position in the axial direction of the biological tissue (such as the fundus) so that the acquired structural image of the biological tissue is located near the middle of the entire image, which is the optimal imaging position. Therefore, how to automatically adjust the OCT imaging device to the optimal imaging position has become an urgent problem to be solved. Summary of the invention
[0003] Based on this, it is necessary to provide an OCT imaging method, electronic device and computer program product to address the above technical issues.
[0004] In a first aspect, the present application provides an OCT imaging method, the method comprising:
[0005] Controlling the OCT imaging device to acquire B-scan images at multiple positions along the axial direction of the object being measured;
[0006] Pairing the B-scan images according to a preset interval to obtain an image pair, calculating relative displacement information of the image pair, and determining a target image pair according to the relative displacement information;
[0007] Determine a target position along the axial direction of the measured object according to the target image pair;
[0008] The OCT imaging device is controlled to acquire images of the object under test at the target position.
[0009] In one embodiment, determining the target image pair according to the relative displacement information includes:
[0010] calculating image quality information of the image pair;
[0011] Determining an image pair to be analyzed according to the image quality information and a preset image quality threshold;
[0012] The target image pair is determined according to the relative displacement information of the image pair to be analyzed.
[0013] In one of the embodiments, the relative displacement information includes a relative displacement direction;
[0014] The step of determining the target image pair according to the relative displacement information comprises:
[0015] Determining a segment image according to the relative displacement direction; wherein each of the segment images has the same relative displacement direction;
[0016] A target segment image is determined according to all the segment images; wherein the target segment image is composed of a target image pair.
[0017] In one of the embodiments, determining the target segment image according to all the segment images includes:
[0018] Determining adjacent first segment images and second segment images among all the segment images; wherein a relative displacement direction of the first segment image is opposite to a relative displacement direction of the second segment image;
[0019] The first segment image or the second segment image is determined as the target segment image according to a first system parameter of the OCT imaging device.
[0020] In one of the embodiments, the first system parameters of the OCT imaging device include: a motor scanning mode, an image output mode;
[0021] The determining, according to the system parameters of the OCT imaging device, that the first segment image or the second segment image is the target segment image comprises:
[0022] Determining the imaging order of the real image segment image and the mirror image segment image according to the system parameters of the OCT imaging device;
[0023] The first segment image or the second segment image is determined as the target segment image based on the imaging sequence; wherein the target segment image is a real image segment image.
[0024] In one embodiment, the method further comprises:
[0025] If the segment images include a plurality of groups of adjacent real image segment images and mirror image segment images, obtaining image quality information of each of the real image segment images;
[0026] The real image segment image having the maximum value of the image quality information is used as the target segment image.
[0027] In one of the embodiments, determining the target segment image according to all the segment images includes:
[0028] Acquiring image quality information of each of the segment images;
[0029] The segment image corresponding to the maximum value of the image quality information is used as the target segment image.
[0030] In one embodiment,
[0031] Determining the target position along the axial direction of the measured object according to the target image pair includes:
[0032] Based on the second system parameters of the OCT imaging device, the imaging position of the object under test in the target segment image is fitted to determine the target position along the axial direction of the object under test according to the fitting result; wherein the second system parameters include the motor motion control parameters of the OCT imaging device.
[0033] In a second aspect, the present application provides an OCT imaging device, the device comprising:
[0034] An image acquisition module controls the OCT imaging device to acquire B-scan images at multiple positions along the axial direction of the object being measured;
[0035] An image pair processing module, used for pairing the B-scan images according to a preset interval to obtain an image pair, calculating relative displacement information of the image pair, and determining a target image pair according to the relative displacement information;
[0036] A target position determination module, used to determine the target position along the axial direction of the measured object according to the target image pair;
[0037] The acquisition control module is used to control the OCT imaging device to acquire images of the object under test at the target position.
[0038] In a third aspect, the present application further provides an electronic device, wherein the electronic device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method in any one of the embodiments of the first aspect are implemented.
[0039] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method in any one of the embodiments of the first aspect are implemented.
[0040] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the method in any one of the embodiments of the first aspect are implemented.
[0041] The above OCT imaging method collects B-scan images at multiple different positions in the axial direction of the object to be measured, and selects the target image pair by calculating the relative displacement information of the image pair, so that the target position of the object to be measured in the axial direction can be determined according to the position of the target image pair as the optimal imaging position, thereby achieving the purpose of automatically adjusting the structural image of the object to be measured collected by the OCT imaging device to the vicinity of the middle of the entire image. In addition, by calculating the relative displacement information of the image pair to select the target image pair, it is possible to accurately calculate the optimal fundus position without identifying whether there is a fundus structure in each frame of the image, thereby reducing the complexity of data calculation. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 is a schematic diagram of a flow chart of an OCT imaging method in one embodiment;
[0043] Figure 2 is a schematic diagram of a method for determining a target image pair in one embodiment;
[0044] Figure 3 is a schematic diagram of B-scans from the first frame to the third frame collected in one embodiment;
[0045] Figure 4 is a schematic diagram of B-scans from the 4th frame to the 6th frame collected in one embodiment;
[0046] Figure 5 is a schematic diagram of B-scans from the 7th frame to the 9th frame collected in one embodiment;
[0047] Figure 6 is a schematic diagram of B-scans from the 10th frame to the 12th frame collected in one embodiment;
[0048] Figure 7 is a schematic diagram of B-scans from the 13th frame to the 15th frame collected in one embodiment;
[0049] Figure 8 is a schematic diagram of B-scans from the 16th frame to the 18th frame collected in one embodiment;
[0050] Fig. 9 is a schematic diagram of a method for determining a target image pair in one embodiment;
[0051] Fig.10 is a structural block diagram of an OCT imaging device in one embodiment;
[0052] Fig.11 FIG. 4 is a structural diagram of an electronic device in an embodiment. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0054] In the related art, frequency domain and swept frequency OCT have become the main tools for analyzing the retina. Compared with time domain OCT, frequency domain and swept frequency OCT have the advantage of fast imaging speed. The data collected by frequency domain and swept frequency OCT is the superposition of interference fringes of different frequencies. After Fourier analysis, the structural information corresponding to the physical space of the object under test is obtained. The results of Fourier analysis have positive and negative spectra, which are separated by the zero delay line (corresponding to the position where the optical path of the sample arm and the reference arm is equal, that is, 0 Hz). The real image of the object under test, whether it is located on the positive spectrum side or the negative spectrum side, always forms a mirror image near the symmetrical position in the spectrum on the other side of the zero delay line. OCT imaging equipment usually chooses to present only the structural image corresponding to the spectrum on one side of the zero delay line, and needs to adjust the imaging position in the axial direction of the biological tissue (such as the fundus) so that the acquired structural image of the biological tissue is located near the middle of the entire image, and obtains the image acquired at the best imaging position, so as to show more structural information to the user.
[0055] In order to solve the technical defects existing in the related art, the present disclosure provides an OCT imaging method, which can automatically locate the optimal imaging position along the axial direction of biological tissue (such as fundus) during B-scan acquisition. Figure 1 As shown, the OCT imaging method includes steps S11 to S14, specifically:
[0056] Step S11, controlling the OCT imaging device to acquire B-scan images at multiple positions along the axial direction of the object to be measured.
[0057] Exemplarily, the above-mentioned object to be measured can be the user's eye. For example, a frequency domain OCT imaging device or a swept frequency OCT imaging device can be used to collect fundus images of the user. Among them, the frequency domain OCT adopts an SLD (super luminescent diode) light source, and obtains an interference spectrum through a spectrometer composed of a grating and an array detector. Different frequency signals correspond to eye structure signals at different depths, thereby realizing tomographic scanning of the eye structure. The swept frequency OCT adopts a swept frequency light source, and obtains an interference spectrum through an equivalent spectrometer composed of a single-point photodetector and a digital acquisition card. Different frequency signals correspond to eye structure signals at different depths, thereby realizing tomographic scanning of the eye structure.
[0058] For example, the OCT imaging device can be controlled to collect B-scan (tomographic images) of the user's fundus at different positions along the axial direction of the eye, and the collected reflection or scattering signal data of the incident light by the eye tissue can be processed by Fourier transform to obtain a B-scan image. In addition, a B-scan (tomographic image) image sequence can be configured, and the B-scan images collected at various positions along the axial direction of the eye are used as an image sequence.
[0059] In one embodiment, the acquisition frequency of the B-scan image can be pre-configured, and the OCT imaging device can be controlled to acquire the B-scan image along the axial direction of the object to be measured according to the preset image acquisition frequency. The acquisition frequency can be configured to acquire the B-scan image at a specified position in the axial direction; the specified position can be arranged in sequence along the axial direction of the object to be measured.
[0060] For each imaging position in the axial direction, a B-scan image can be collected. Alternatively, multiple B-scan images can be collected at each imaging position, and for the multiple B-scan images collected at the imaging position, the one with the highest image quality score can be selected as the B-scan image of the position. For example, the image quality can be the brightness and / or clarity of the image; for example, the image with an average brightness greater than a preset brightness threshold and a frame with the highest clarity can be selected as the B-scan image of the position. Alternatively, the multiple frames corresponding to the imaging position can be subjected to image fusion processing using an averaging algorithm to obtain a high-quality B-scan image as the B-scan image corresponding to the imaging position.
[0061] Step S12, pairing the B-scan images according to a preset interval to obtain an image pair, calculating relative displacement information of the image pair, and determining a target image pair according to the relative displacement information.
[0062] Exemplarily, after acquiring the B-scan image, two frames of images corresponding to adjacent imaging positions in the axial direction may be paired to form an image pair. Alternatively, the B-scan images in the image sequence may be selected at other intervals to generate an image pair. The preset interval may be determined based on the displacement of the image acquisition position along the axial direction of the object being measured; or, it may be determined based on the image acquisition frequency.
[0063] After constructing the image pairs, the relative displacement information of the two B-scan images in each image pair can be calculated respectively, and the image pairs whose relative displacement information meets the preset requirements are selected as the target image pairs.
[0064] In some exemplary embodiments, reference Figure 2As shown, in the above step S12, determining the target image pair according to the relative displacement information may specifically include:
[0065] Step S21, calculating the image quality information of the image pair;
[0066] Step S22, determining an image pair to be analyzed according to the image quality information and a preset image quality threshold;
[0067] Step S23: determining a target image pair according to the relative displacement information of the image pair to be analyzed.
[0068] The above-mentioned image quality information may be brightness information of the image; for example, the brightness information may be the average brightness of the image. For each image pair, the image quality information of the B-scan image in each image pair may be calculated first, and the image pairs in which the image quality information of each B-scan image is greater than a preset threshold are taken as the image pairs to be analyzed. In the present invention, if the image quality information of any image does not meet the corresponding preset threshold, it is determined that the image pair does not participate in the next step of analysis.
[0069] For example, the average brightness threshold of the B-scan image can be pre-configured. For the current image pair, the average brightness of each B-scan image is calculated; if the average brightness of the two B-scan images is greater than or equal to the preset average brightness threshold, it indicates that there may be fundus structures in the image, and the image pair is configured as the image pair to be analyzed. Alternatively, if the average brightness of the B-scan image is less than the preset average brightness threshold, it indicates that the image may not have a complete fundus structure and the image can be ignored.
[0070] For example, the brightness difference threshold of the two B-scan images in the image pair can also be pre-configured. For the current image pair, the average brightness of the two B-scan images is first calculated, and then the average brightness difference of the two B-scan images is calculated; if the average brightness difference of the two B-scan images is less than or equal to the preset brightness difference threshold, it means that there are fundus structures in both images, and then the image pair is configured as the image pair to be analyzed; for example, refer to Figure 4 Alternatively, if the average brightness difference between the two B-scan images is greater than a preset average brightness difference threshold, it means that there may be no fundus structure in one of the frames, and the image pair can be ignored; for example, Figure 3 The 2nd and 3rd B-scan images are shown in FIG.
[0071] By using image quality information to screen image pairs and determine image pairs to be analyzed, initial screening of image data can be achieved, thereby reducing data calculation pressure and improving data processing efficiency.
[0072] After determining the image pairs to be analyzed, the relative displacement information between the two B-scan images can be calculated for each image pair to be analyzed, wherein the relative displacement information can include the relative displacement direction and / or the relative displacement value.
[0073] Exemplarily, the template matching method can be used to calculate the image quality information and relative displacement information of the two B-scan images in the image pair. Specifically, a template can be selected in the first B-scan image in the image pair, and the template can be slid in the second B-scan frame in the image pair according to a preset step size to calculate the degree of matching between each image block in the second B-scan image and the template. The degree of matching can be represented by a mutual correlation coefficient, and at least one of the maximum correlation value and the average brightness value in the template can be used as the image quality information of the image pair. The image quality information of each image pair can be compared with a preset threshold. If the image quality information of each image pair is greater than or equal to the corresponding preset threshold, the image pair is configured as an image pair to be analyzed.
[0074] At the same time, the template matching algorithm can be used to output the relative displacement information of each pair of images to be analyzed. The relative displacement information can include the relative displacement amount between two B-scans in each pair of images to be analyzed calculated based on the template matching algorithm, and the relative displacement direction.
[0075] For example, for a B-scan image in an image pair, a template can be selected in the first B-scan frame in the image pair, and the template can be slid in the second B-scan frame in the image pair according to a preset step size, and the displacement of the second B-scan image relative to the first B-scan image is calculated as the relative displacement of the image pair and the relative displacement direction.
[0076] Alternatively, in some exemplary instances, before calculating the relative displacement of two B-scan images of an image pair using a template matching algorithm, the image sub-region with the highest average brightness in the first B-scan image can be first calculated, and the image sub-region can be used as a template to calculate the relative displacement with the other B-scan image.
[0077] In one embodiment, in the above step S23, determining the target image pair according to the relative displacement information may specifically include:
[0078] Step S231, determining a segment image according to the relative displacement direction; wherein each segment image has the same relative displacement direction;
[0079] Step S232, determining a target segment image according to all the segment images; wherein the target segment image includes a target image pair.
[0080] Exemplarily, the above-mentioned segment image may be composed of one or more B-scan images of the image pairs to be analyzed with the same displacement direction. Specifically, for the screened image pairs to be analyzed, the image pairs to be analyzed are grouped according to the relative displacement direction, and the image pairs to be analyzed with the same displacement direction are used to construct a segment image. For example, the image pairs to be analyzed with the relative displacement direction being downward along the image can be divided into a segment image; at the same time, the image pairs to be analyzed with the relative displacement direction being upward along the image can be divided into another segment image.
[0081] Furthermore, according to the relative displacement information of the image pair to be analyzed, the image sequence based on the axial imaging position can be arranged to obtain an image sequence based on the displacement information, and a segment image can be constructed according to the image sequence. For the constructed segment image, the segment image corresponding to the real image can be selected as the target segment image according to the system parameters of the OCT device.
[0082] For example, the segment images of the same segment have the same relative displacement direction, and the two adjacent B-scan images can have adjacent image acquisition positions, that is, the positions of the objects under test in the two B-scan images are adjacent. Figure 3-Figure 5 The B-scan images from the first frame to the ninth frame shown in the figure can be used as the first segment image. The relative displacement direction of the image pair to be analyzed contained in the first segment image is downward along the image. In addition, referring to Figure 6-Figure 8 The B-scan images from the 10th frame to the 17th frame shown can be used as the second segment image, and the relative displacement direction of the image pair to be analyzed contained in the second segment image is upward along the image.
[0083] In one embodiment, in the above-mentioned step S232, determining the target segment image based on all the segment images includes: determining adjacent first segment images and second segment images in all the segment images; wherein the relative displacement direction of the first segment image is opposite to the relative displacement direction of the second segment image; and determining the first segment image or the second segment image as the target segment image based on the first system parameter of the OCT imaging device.
[0084] Exemplarily, the first system parameters of the OCT imaging device include: a motor scanning mode, an image output mode;
[0085] The determining, according to the system parameters of the OCT imaging device, that the first segment image or the second segment image is the target segment image comprises: determining, according to the system parameters of the OCT imaging device, an imaging sequence of a real image segment image and a mirror image segment image; and determining, based on the imaging sequence, that the first segment image or the second segment image is the target segment image; wherein the target segment image is a real image segment image.
[0086] Specifically, the first system parameter may be a motor scanning mode and / or an image output mode of the OCT imaging device. Fig. 9 As shown, for an OCT imaging device, for a given motor scanning mode (e.g., scanning from the front to the back of the fundus, or vice versa), and a given B-scan image output method (e.g., first outputting the half spectrum on the left side of the zero delay line after Fourier transformation, or the half on the right side), the order of appearance of the real image segment image and the mirror image segment image is fixed. Based on this fixed corresponding relationship, the relative displacement direction corresponding to the real image can be used as the target relative displacement direction corresponding to the target segment image.
[0087] In order to improve the accuracy of the result, a segment image pair consisting of two adjacent segments with opposite relative displacement directions can be first found in the segment image.
[0088] Specifically, when the first segment image and the second segment image that are adjacent and have opposite relative displacement directions are acquired, it means that the segment image currently acquired includes the real image segment image and the mirror image segment image, and the first segment image and the second segment image can form a segment image pair. Based on the first system parameter, the order of imaging the real image segment and the mirror image segment can be determined, and the first segment image or the second segment image can be determined as the target segment image, that is, the real image segment image.
[0089] For example, refer to Figure 3-Figure 5 The B-scan images from the 1st frame to the 9th frame shown can be used as the first segment image; Figure 6-Figure 8 The B-scan images from the 10th frame to the 17th frame can be used as the second segment image. Fig. 9 As shown, based on the first system parameter of the current OCT device, it is determined that the real image appears first, and the first segment image can be used as the target segment image.
[0090] In one embodiment, the method further includes: if the segment image includes multiple groups of adjacent real image segment images and mirror image segment images, obtaining image quality information of each of the real image segment images; and using the real image segment image with the maximum value of the image quality information as the target segment image.
[0091] For example, when a user blinks, or the eyes move back and forth during image acquisition, or a complex scanning sequence is used to acquire images of the eyes, etc., the image acquisition time will be long, and multiple groups of adjacent real image segment images and mirror image segment images may appear in the acquired B-scan image. For example, when the currently acquired B-scan includes the first real image segment, the first mirror image segment, the second real image segment, and the second mirror image segment, the image quality information of each image calculated previously can be read, and the real image segment image with the highest image quality information can be selected as the target segment image, that is, only one real image segment image can be used for calculation, thereby improving data calculation efficiency. For example, based on the correlation value of the corresponding image pair to be analyzed, or, the real image segment image with the highest image clarity value can be selected as the target segment image.
[0092] In some exemplary embodiments, the method of determining a target segment image based on all the segment images further includes: acquiring image quality information of each of the segment images; and using the segment image corresponding to a maximum value of the image quality information as the target segment image.
[0093] Exemplarily, in order to improve the success rate and efficiency of automatic positioning, a single segment image with the highest image quality information can be found, and the relative displacement direction of the segment image is no longer considered. In other words, a single mirror segment image or a single real image segment image can be used as the target segment image. For example, if there are multiple non-adjacent real image segment images in the segment image, a real image segment image with the highest image quality information can be selected as the target segment image. Alternatively, if there is currently no real image segment image, and only one or more mirror segment images exist, a mirror segment image with the highest image quality information can be selected as the target segment image. For example, Figure 7 The mirror images from frames 11 to 15 in are used as the target segment images.
[0094] Step S13: determining a target position along the axial direction of the measured object according to the target image pair.
[0095] Exemplarily, determining the target position along the axial direction of the object under test based on the target image pair includes: fitting the imaging position of the object under test in the target segment image based on a second system parameter of the OCT imaging device, so as to determine the target position along the axial direction of the object under test based on the fitting result.
[0096] Exemplarily, the second system parameters include motor motion control parameters of the OCT imaging device. The motor control parameters may include parameters such as motor starting position, motor ending position, motor starting time, motor ending time, motor motion speed, etc. The target position may be an optimal position for OCT imaging; at this optimal imaging position, the eye image is a real image, and the fundus structure is displayed in the middle area of the image.
[0097] Specifically, based on the target segment image constructed by one or more target image pairs, the actual position of the fundus highlight area in each frame in the image can be determined according to the relative displacement information between two adjacent B-scan images; by linearly fitting the displacement change of the sub-area with the highest brightness in the image, the optimal imaging position of the fundus structure in the image can be determined, that is, the fundus structure is in the middle of the image. In addition, according to the corresponding relationship between the image and the motor control parameters, the corresponding optimal motor position can be deduced based on the optimal imaging position.
[0098] For example, based on the motor starting position, motor ending position, motor starting time, motor ending time, and motor movement speed in the above-mentioned motor motion control parameters, the motor position corresponding to each frame of the B-scan image can be calculated. After determining the optimal imaging position, the target position can be determined based on the correspondence between the motor movement position and the image. For example, when controlling the OCT imaging device to start image acquisition, the B-scan acquisition frequency, as well as the motor movement speed and direction can be pre-configured; when acquiring images, the starting motor position corresponding to the first frame of B-scan, the starting acquisition time, and the corresponding motor position and ending acquisition time of the last frame of B-scan can be marked. Among them, the starting time and ending time of the image acquisition can be used as the starting time and ending time of the motor motion stroke. According to the starting position, ending position, starting time, ending time of the motor, as well as the B-scan acquisition frequency, the timestamp corresponding to each frame of B-scan, and the corresponding relationship between the B-scan sequence number and the motor position, the optimal motor position can be calculated.
[0099] Alternatively, when controlling the OCT imaging device to start image acquisition, corresponding image marking information can be added to each B-scan frame, and the corresponding motor position information during the image acquisition can be marked. After determining the best image, the corresponding best motor position can be directly determined.
[0100] Step S14: controlling the OCT imaging device to acquire images of the object under test at the target position.
[0101] For example, after determining the target position corresponding to the best B-scan image, the motor can be driven to move to the target position, and the B-scan image of the user's fundus can be recaptured, so that the best B-scan image of the fundus in the middle of the image can be obtained. This achieves the purpose of automatically determining the fundus position in the optical axis direction.
[0102] In the OCT imaging method provided in the embodiment of the present application, the B-scan images acquired by the OCT imaging device at multiple positions along the axial direction of the object to be measured can be divided into image pairs according to preset intervals, the image quality information and relative displacement information of the image pairs can be calculated using a template matching algorithm, and the image pairs can be initially screened using the image quality information to obtain the object pairs to be analyzed; Fig. 9 As shown, when calculating the image pair using the template matching algorithm, the template matching score and / or the average signal strength in the template (such as the average brightness of the image) can be used as image quality information; if fundus structures exist in both adjacent frames of the image pair, for example Figure 4 The 5th and 6th frames are shown. Figure 7 For the 13th and 14th frames shown in the figure, the average signal strength (e.g., average brightness) of the templates between the two images in the image pair is basically the same; accordingly, the template matching score of the image pair is high. Alternatively, refer to Figure 3 In the first and second frames shown, the first frame is empty, and the second frame contains a part of the fundus. The average signal intensity in the template between the two images in the image pair is low; correspondingly, the template matching score of the image pair is low. By using the image quality information to filter the image pairs, the image pairs containing the fundus structure can be selected as the image pairs to be analyzed. According to the relative displacement direction of the image pairs to be analyzed, an image sequence based on the displacement information can be constructed as a segment image. Reference Fig. 9 As shown in FIG. 1 , for the constructed segment image, the segment image corresponding to the real image can be selected as the target segment image according to the system parameters of the OCT device. Figure 3-Figure 5The first to ninth frames of the images shown, when two adjacent frames of images are used as an image pair, the first and second frames of images can be used as the first image pair, the third and fourth frames of images can be used as the second image pair, and so on. Then, in the second image pair composed of the third and fourth frames of images, a real image of the fundus structure appears, and a relative displacement of the fundus structure in the image occurs, and the relative displacement direction of the fundus structure in the image is downward. Between the fifth and eighth frames of images, the relative displacement values of the fundus structure between two adjacent frames of images are basically the same. In the 10th to 17th frames of images, the fundus structure is a mirror image, and the relative displacement direction of the fundus structure in the image is upward; between the 11th to 14th frames, the relative displacement values of the fundus structure between two adjacent frames of images are basically the same. Among them, the 10th and 11th frames of images are real images and mirror images overlapped. For example, according to the system parameters of the OCT imaging device, the images of the 2nd to 9th frames can be used as the first segment image, and the images of the 12th to 17th frames can be used as the second segment image. According to the system parameters of the OCT imaging device, it can be determined that the first segment image is a real image segment image, which can be used as the target segment image. Alternatively, if only the second segment image exists, the virtual image segment image can be used as the target segment image. The target segment image is used to fit the best target position for imaging. After obtaining the target position, the motor can be driven to the optimal imaging position based on the correspondence between the motor position and the B-scan image to achieve automatic positioning. This solution calculates relative displacement through image matching, without the need to identify whether there is a fundus structure in each frame of the image, thereby simplifying the calculation process. In particular, when blinking causes the motor to scan the fundus and part of the B-scan does not capture the fundus, the best fundus position can also be accurately calculated.
[0103] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0104] Based on the same inventive concept, the embodiment of the present application also provides an OCT imaging device for implementing the above-mentioned OCT imaging method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more OCT imaging device embodiments provided below can refer to the above-mentioned limitations on the OCT imaging method, and will not be repeated here.
[0105] In one embodiment, Fig.10 As shown, an OCT imaging device 10 is provided, comprising:
[0106] An image acquisition module 101 is used to control the OCT imaging device to acquire B-scan images at multiple positions along the axial direction of the object being measured;
[0107] An image pair processing module 102, configured to pair the B-scan images according to a preset interval to obtain an image pair, calculate relative displacement information of the image pair, and determine a target image pair according to the relative displacement information;
[0108] A target position determination module 103, configured to determine a target position along an axial direction of the measured object based on the target image pair;
[0109] The acquisition control module 104 is used to control the OCT imaging device to acquire images of the object under test at the target position.
[0110] Each module in the above-mentioned OCT imaging device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0111] In one embodiment, an electronic device is provided, whose internal structure diagram can be as follows: Fig.11As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an OCT imaging method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0112] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0113] In one embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0114] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0115] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0116] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0117] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magneto resistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0118] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0119] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An OCT imaging method, It is characterized in that The method comprises: Controlling the OCT imaging device to acquire B-scan images at multiple positions along the axial direction of the object being measured; Pairing the B-scan images according to a preset interval to obtain an image pair, calculating relative displacement information of the image pair, and determining a target image pair according to the relative displacement information; Determine a target position along the axial direction of the measured object according to the target image pair; The OCT imaging device is controlled to acquire images of the object under test at the target position.
2. The method according to claim 1, It is characterized in that The step of determining the target image pair according to the relative displacement information comprises: calculating image quality information of the image pair; Determining an image pair to be analyzed according to the image quality information and a preset image quality threshold; The target image pair is determined according to the relative displacement information of the image pair to be analyzed.
3. The method according to claim 1 or 2, It is characterized in that The relative displacement information includes a relative displacement direction; The step of determining the target image pair according to the relative displacement information comprises: Determining a segment image according to the relative displacement direction; wherein each of the segment images has the same relative displacement direction; A target segment image is determined according to all the segment images; wherein the target segment image includes a target image pair.
4. The method according to claim 3, It is characterized in that The step of determining a target segment image according to all the segment images comprises: Determining adjacent first segment images and second segment images among all the segment images; wherein a relative displacement direction of the first segment image is opposite to a relative displacement direction of the second segment image; The first segment image or the second segment image is determined as the target segment image according to a first system parameter of the OCT imaging device.
5. The method according to claim 4, It is characterized in that The first system parameters of the OCT imaging device include: a motor scanning mode and an image output mode; The determining, according to the system parameters of the OCT imaging device, that the first segment image or the second segment image is the target segment image comprises: Determining the imaging order of the real image segment image and the mirror image segment image according to the system parameters of the OCT imaging device; The first segment image or the second segment image is determined as the target segment image based on the imaging sequence; wherein the target segment image is a real image segment image.
6. The method according to claim 5, It is characterized in that The method further comprises: If the segment images include a plurality of groups of adjacent real image segment images and mirror image segment images, obtaining image quality information of each of the real image segment images; The real image segment image having the maximum value of the image quality information is used as the target segment image.
7. The method according to claim 3, It is characterized in that The step of determining a target segment image according to all the segment images comprises: Acquiring image quality information of each of the segment images; The segment image corresponding to the maximum value of the image quality information is used as the target segment image.
8. The method according to claim 3, It is characterized in that Determining the target position along the axial direction of the measured object according to the target image pair includes: Based on the second system parameters of the OCT imaging device, the imaging position of the object under test in the target segment image is fitted to determine the target position along the axial direction of the object under test according to the fitting result; wherein the second system parameters include the motor motion control parameters of the OCT imaging device.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the OCT imaging method according to any one of claims 1 to 8 are implemented.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the OCT imaging method according to any one of claims 1 to 8 are implemented.
