Imaging method based on optical coherence tomography and electronic device

By dividing the interferometric spectral data array of optical coherence tomography into subbands and extracting spectral features, color-coded images are generated, solving the problem that existing technologies struggle to reflect depth-related spectral differences and improving the accuracy and discriminative power of tissue identification.

CN123126715APending Publication Date: 2026-11-20SVISION IMAGING LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611627079.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-20
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing optical coherence tomography (OCT) techniques are unable to effectively reflect depth-related spectral differences, which affects tissue identification results.

Method used

By dividing the interferometric spectral data array of optical coherence tomography into sub-bands, extracting the spectral features of each scanning path, and generating color-coded images based on the spectral features, color constraint calibration is performed in conjunction with fundus color images.

Benefits of technology

It enhances the differentiation between different tissues, and the generated color-coded images can better reflect depth-related spectral features, thus improving the application value in clinical diagnosis and scientific research.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123126715A_ABST
    Figure CN123126715A_ABST
Patent Text Reader

Abstract

The application provides an imaging method based on optical coherence tomography and an electronic device, comprising: collecting an interference spectrum data array of a to-be-measured tissue; dividing a spectrum data sub-array corresponding to each scanning path in the interference spectrum data array into a plurality of sub-band arrays to obtain a plurality of sub-band arrays corresponding to each scanning path; determining a spectrum feature corresponding to each scanning path according to each sub-band array corresponding to each scanning path; determining color coding information of each spatial position point on each scanning path according to the spectrum feature corresponding to each scanning path, and generating a scanning image of the to-be-measured tissue according to the color coding information of each spatial position point on each scanning path. The method can split the full-bandwidth signal into a plurality of narrow-band signals through sub-band division, effectively retain the depth information of the wavelength dimension, provide a data basis for subsequent extraction of depth-related spectrum features, so that the generated color coding image can enhance the distinguishability between different tissues.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of medical imaging technology, and more specifically, to an imaging method and electronic device based on optical coherence tomography. Background Technology

[0002] Optical coherence tomography (OCT) is a high-resolution tomographic imaging technique based on the principle of low coherence interference, which can perform micron-level depth-resolution imaging of biological tissues.

[0003] Currently, the processing flow of swept-frequency OCT imaging involves rapidly tuning a narrow-linewidth laser source to scan the tissue under test, acquiring interference spectral signals in the wavenumber domain, obtaining the backscattering distribution in the tissue depth direction through Fourier transform, and generating a scanned image based on the backscattering distribution in the tissue depth direction.

[0004] The scanned images obtained by the above methods are difficult to reflect depth-related spectral differences, which affects the tissue identification results. Summary of the Invention

[0005] The purpose of this application is to address the shortcomings of the prior art by providing an imaging method and electronic device based on optical coherence tomography (OCT) to enhance the ability of the scanned images output by the OCT system to express depth-related spectral differences and improve the differentiation of different tissues.

[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows: In a first aspect, embodiments of this application provide an imaging method based on optical coherence tomography, comprising: An interferometric spectral data array of the tissue under test is acquired, wherein the interferometric spectral data array includes spectral data subarrays corresponding to each scanning path of the tissue under test; The spectral data subarray corresponding to each scanning path in the interference spectral data array is divided into multiple sub-band arrays to obtain multiple sub-band arrays corresponding to each scanning path. Among them, a sub-band array corresponding to a scanning path includes the wavenumber and interference signal value corresponding to each wavenumber sampling point within a preset wavenumber range in the spectral data subarray of the scanning path. Based on the sub-band arrays corresponding to each scanning path, determine the spectral characteristics corresponding to each scanning path; Based on the spectral characteristics corresponding to each scanning path, the color coding information of each spatial location point on each scanning path is determined, and a scan image of the tissue to be tested is generated based on the color coding information of each spatial location point on each scanning path.

[0007] Optionally, dividing the spectral data subarray corresponding to each scanning path in the interference spectral data array into multiple sub-band arrays to obtain multiple sub-band arrays corresponding to each scanning path includes: Based on the multiple preset wavenumber ranges and the wavenumber of each wavenumber sampling point in the spectral data subarray corresponding to the scanning path, the interference signal values ​​of each wavenumber sampling point located in the same wavenumber range are divided into a sub-band array to obtain a sub-band array corresponding to the scanning path.

[0008] Optionally, determining the spectral features corresponding to each scanning path based on each sub-band array corresponding to each scanning path includes: Based on the sub-band arrays corresponding to the scanning path and the window functions corresponding to each sub-band array, determine the sub-band spectral data corresponding to each sub-band array; Fourier transform is performed on the sub-band spectral data corresponding to each sub-band array, and the reflection signal intensity of each spatial location point on the scanning path under each sub-band array is obtained according to the transformation result. The window function corresponding to each sub-band array is defined on the same wavenumber sampling grid, and the Fourier transform of each sub-band spectral data is performed with the same Fourier transform length, so that the reflection signal intensity of each spatial location point under different sub-band arrays corresponds to the same depth coordinate. The spectral characteristics of each scanning path are determined based on the reflected signal intensity of each spatial location point on each scanning path under each sub-band array.

[0009] Optionally, determining the spectral characteristics corresponding to each scanning path based on the reflection signal intensity of each spatial location point on each scanning path under each sub-band array includes: Based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array, the sub-band differential attenuation characteristics of each spatial location point are determined. Based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array and the center wavelength corresponding to each sub-band array, the spectral centroid of each spatial location point on the scanning path is determined, and based on the spectral centroid of each spatial location point on the scanning path and the depth information of each spatial location point, the spectral centroid offset characteristics of each spatial location point on the scanning path are determined. Based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array, the center wavelength corresponding to each sub-band array, and the spectral centroid of each spatial location point on the scanning path, the spectral distribution width characteristics of each spatial location point on the scanning path are determined.

[0010] Optionally, determining the spectral centroid of each spatial location point on the scanning path based on the reflected signal intensity of each sub-band array and the center wavelength corresponding to each sub-band array, and determining the spectral centroid offset characteristics of each spatial location point on the scanning path based on the spectral centroid corresponding to each spatial location point and the depth information of each spatial location point, includes: Based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array, the normalized weight of each spatial location point under each sub-band array is determined. Based on the normalized weights of each spatial location point under each sub-band array, the center wavelengths corresponding to each sub-band array are weighted and summed to obtain the spectral centroids of each spatial location point on the scanning path. The spectral centroid offset features of each spatial location point on the scanning path are obtained by performing partial derivative calculations based on the spectral centroid of each spatial location point and the depth information of each spatial location point.

[0011] Optionally, determining the spectral distribution width characteristics of each spatial location point on the scanning path based on the reflected signal intensity of each spatial location point under each sub-band array, the center wavelength corresponding to each sub-band array, and the spectral centroid of each spatial location point on the scanning path includes: Based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array, the normalized weight of each spatial location point under each sub-band array is determined. Based on the center wavelength of each sub-band array and the spectral centroid of each spatial location point, determine the deviation between the center wavelength of each sub-band array and the spectral centroid of each spatial location point. Based on the normalized weights of each spatial location point under each sub-band array, the squares of the deviations between the center wavelength of the sub-band array and the spectral centroids of each spatial location point are weighted and summed to obtain the spectral distribution width characteristics of each spatial location point on the scanning path.

[0012] Optionally, the spectral features include one or more of the following: subband differential attenuation features, spectral centroid, spectral centroid shift features, and spectral distribution width features; The step of determining the color coding information of each spatial location point on each scanning path based on the spectral characteristics corresponding to each scanning path, and generating a scanned image of the tissue to be tested based on the color coding information of each spatial location point on each scanning path, includes: Based on the spectral characteristics corresponding to each scanning path, the initial color coding information of each spatial location point on each scanning path is determined; the initial color coding information of the spatial location point includes: first initial color information, second initial color information, and third initial color information; Based on the fundus color photograph of the tissue to be tested, determine the reference color information of the target scanning points on each scanning path; Based on the reference color information of the target scan points on each scan path, the reference color information at the reference depth on each scan path is determined; the reference color information includes: first reference color information and second reference color information; Based on the reference color information at the reference depth on each scanning path and the initial color coding information of each spatial location point on each scanning path, determine the target color coding information of each spatial location point on each scanning path; Based on the target color coding information of each spatial location point on each scanning path, a scan image of the tissue to be tested is generated.

[0013] Optionally, determining the initial color coding information for each spatial location point on each scanning path based on the spectral characteristics corresponding to each scanning path includes: Based on the spectral centroid of each spatial location point on the scanning path, the first initial color information of each spatial location point on the scanning path is determined; Based on the spectral distribution width characteristics of each spatial location point on the scanning path, the second initial color information of each spatial location point on the scanning path is determined; Based on the grayscale values ​​of each spatial location point on the scanning path, the third initial color information of each spatial location point on the scanning path is determined; Based on the first initial color information, the second initial color information, and the third initial color information of each spatial location point on the scanning path, the initial color encoding information of each spatial location point on the scanning path is obtained.

[0014] Optionally, determining the initial color coding information for each spatial location point on each scanning path based on the spectral characteristics corresponding to each scanning path includes: The spectral features of each spatial location point on each scanning path are input into a pre-trained color coding prediction model, which then predicts and outputs the initial color coding information of each spatial location point on each scanning path. The spectral features of the spatial location point include one or more of the following: sub-band differential attenuation features of the spatial location point, spectral centroid of the spatial location point, spectral centroid offset features of the spatial location point, and spectral distribution width features of the spatial location point.

[0015] Optionally, determining the reference color information at the reference depth on each scanning path based on the reference color information of the target scanning points on each scanning path includes: Determine the reference layer of the tissue to be tested; Based on the depth information of each spatial location point on the scanning path, the depth information of the reference layer at the spatial location point on the scanning path is used as the reference depth on the scanning path; The first reference color information of the target scan point on the scan path is used as the first reference color information at the reference depth on the scan path; The second reference color information of the target scan point on the scan path is used as the second reference color information at the reference depth on the scan path.

[0016] Optionally, determining the target color encoding information for each spatial location point on each scanning path based on the reference color information at the reference depth on each scanning path and the initial color encoding information for each spatial location point on each scanning path includes: Based on the first initial color information of each spatial location point on the scanning path and the first initial color information of the spatial location point at the reference depth on the scanning path, the hue cycle distance function is used to determine the first color change information of each spatial location point relative to the reference depth. Based on the second initial color information of each spatial location point on the scanning path and the second initial color information of the spatial location point at the reference depth on the scanning path, the second color change information of each spatial location point relative to the reference depth is determined; Based on the first color change information of each spatial location point relative to the reference depth and the first reference color information of the reference depth, the first target color information of each spatial location point on the scanning path is determined; Based on the second color change information of each spatial location point relative to the reference depth and the second reference color information of the reference depth, the second target color information of each spatial location point on the scanning path is determined; Based on the first target color information, the second target color information, and the third initial color information of each spatial location point on the scanning path, the target color encoding information of each spatial location point on the scanning path is obtained.

[0017] Secondly, embodiments of this application also provide an imaging device based on optical coherence tomography, including: an acquisition module, a determination module, and a generation module; The acquisition module is used to acquire the interferometric spectral data array of the tissue under test, and the interferometric spectral data array includes spectral data subarrays corresponding to each scanning path of the tissue under test. The determining module is used to divide the spectral data subarray corresponding to each scanning path in the interference spectral data array into multiple sub-band arrays to obtain multiple sub-band arrays corresponding to each scanning path. Among them, a sub-band array corresponding to a scanning path includes the wavenumber and interference signal value of each wavenumber sampling point within a preset wavenumber range in the spectral data subarray of the scanning path. The determining module is used to determine the spectral features corresponding to each scanning path based on each sub-band array corresponding to each scanning path; The generation module is used to determine the color coding information of each spatial location point on each scanning path according to the spectral characteristics corresponding to each scanning path, and generate the scan image of the tissue to be tested according to the color coding information of each spatial location point on each scanning path.

[0018] Optionally, the determining module is specifically used to divide the interference signal values ​​of each wavenumber sampling point located in the same wavenumber range into a sub-band array according to the wavenumber of each wavenumber sampling point in the spectral data sub-array corresponding to the scanning path, based on the multiple preset wavenumber ranges and the wavenumber of each wavenumber sampling point in the spectral data sub-array corresponding to the scanning path, so as to obtain a sub-band array corresponding to the scanning path.

[0019] Optionally, the determining module is specifically used to determine the sub-band spectral data corresponding to each sub-band array based on each sub-band array corresponding to the scanning path and the window function corresponding to each sub-band array; Fourier transform is performed on the sub-band spectral data corresponding to each sub-band array, and the reflection signal intensity of each spatial location point on the scanning path under each sub-band array is obtained according to the transformation result. The window function corresponding to each sub-band array is defined on the same wavenumber sampling grid, and the Fourier transform of each sub-band spectral data is performed with the same Fourier transform length, so that the reflection signal intensity of each spatial location point under different sub-band arrays corresponds to the same depth coordinate. The spectral characteristics of each scanning path are determined based on the reflected signal intensity of each spatial location point on each scanning path under each sub-band array.

[0020] Optionally, the determining module is specifically used to determine the sub-band differential attenuation characteristics of each spatial location point based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array; Based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array and the center wavelength corresponding to each sub-band array, the spectral centroid of each spatial location point on the scanning path is determined, and based on the spectral centroid of each spatial location point on the scanning path and the depth information of each spatial location point, the spectral centroid offset characteristics of each spatial location point on the scanning path are determined. Based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array, the center wavelength corresponding to each sub-band array, and the spectral centroid of each spatial location point on the scanning path, the spectral distribution width characteristics of each spatial location point on the scanning path are determined.

[0021] Optionally, the determining module is specifically used to determine the normalized weight of each spatial location point under each sub-band array based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array; Based on the normalized weights of each spatial location point under each sub-band array, the center wavelengths corresponding to each sub-band array are weighted and summed to obtain the spectral centroids of each spatial location point on the scanning path. The spectral centroid offset features of each spatial location point on the scanning path are obtained by performing partial derivative calculations based on the spectral centroid of each spatial location point and the depth information of each spatial location point.

[0022] Optionally, the determining module is specifically used to determine the normalized weight of each spatial location point under each sub-band array based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array; Based on the center wavelength of each sub-band array and the spectral centroid of each spatial location point, determine the deviation between the center wavelength of each sub-band array and the spectral centroid of each spatial location point. Based on the normalized weights of each spatial location point under each sub-band array, the squares of the deviations between the center wavelength of the sub-band array and the spectral centroids of each spatial location point are weighted and summed to obtain the spectral distribution width characteristics of each spatial location point on the scanning path.

[0023] Optionally, the spectral features include one or more of the following: subband differential attenuation features, spectral centroid, spectral centroid shift features, and spectral distribution width features; The determining module is specifically used to: determine the initial color coding information of each spatial location point on each scanning path according to the spectral characteristics corresponding to each scanning path; the initial color coding information of the spatial location point includes: first initial color information, second initial color information and third initial color information; Based on the fundus color photograph of the tissue to be tested, determine the reference color information of the target scanning points on each scanning path; Based on the reference color information of the target scan points on each scan path, the reference color information at the reference depth on each scan path is determined; the reference color information includes: first reference color information and second reference color information; Based on the reference color information at the reference depth on each scanning path and the initial color coding information of each spatial location point on each scanning path, determine the target color coding information of each spatial location point on each scanning path; Based on the target color coding information of each spatial location point on each scanning path, a scan image of the tissue to be tested is generated.

[0024] Optionally, the determining module is specifically used to determine the first initial color information of each spatial location point on the scanning path based on the spectral centroid of each spatial location point on the scanning path; Based on the spectral distribution width characteristics of each spatial location point on the scanning path, the second initial color information of each spatial location point on the scanning path is determined; Based on the grayscale values ​​of each spatial location point on the scanning path, the third initial color information of each spatial location point on the scanning path is determined; Based on the first initial color information, the second initial color information, and the third initial color information of each spatial location point on the scanning path, the initial color encoding information of each spatial location point on the scanning path is obtained.

[0025] Optionally, the determining module is specifically used to input the spectral features of each spatial location point on each scanning path into a pre-trained color coding prediction model, and the color coding prediction model predicts and outputs the initial color coding information of each spatial location point on each scanning path; the spectral features of the spatial location point include one or more of the following: sub-band differential attenuation features of the spatial location point, spectral centroid of the spatial location point, spectral centroid shift features of the spatial location point, and spectral distribution width features of the spatial location point.

[0026] Optionally, the determining module is specifically used to determine the reference layer of the tissue under test; Based on the depth information of each spatial location point on the scanning path, the depth information of the reference layer at the spatial location point on the scanning path is used as the reference depth on the scanning path; The first reference color information of the target scan point on the scan path is used as the first reference color information at the reference depth on the scan path; The second reference color information of the target scan point on the scan path is used as the second reference color information at the reference depth on the scan path.

[0027] Optionally, the determining module is specifically used to determine the first color change information of each spatial location point relative to the reference depth based on the first initial color information of each spatial location point on the scanning path and the first initial color information of the spatial location point at the reference depth on the scanning path, using a hue cycle distance function. Based on the second initial color information of each spatial location point on the scanning path and the second initial color information of the spatial location point at the reference depth on the scanning path, the second color change information of each spatial location point relative to the reference depth is determined; Based on the first color change information of each spatial location point relative to the reference depth and the first reference color information of the reference depth, the first target color information of each spatial location point on the scanning path is determined; Based on the second color change information of each spatial location point relative to the reference depth and the second reference color information of the reference depth, the second target color information of each spatial location point on the scanning path is determined; Based on the first target color information, the second target color information, and the third initial color information of each spatial location point on the scanning path, the target color encoding information of each spatial location point on the scanning path is obtained.

[0028] Thirdly, embodiments of this application provide an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to implement the imaging method based on optical coherence tomography as provided in the first aspect.

[0029] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, performs the imaging method based on optical coherence tomography as provided in the first aspect.

[0030] The beneficial effects of this application are: This application provides an imaging method and electronic device based on optical coherence tomography (OCT). The method includes: acquiring an interferometric spectral data array of the tissue under test; dividing the spectral data subarray corresponding to each scanning path in the interferometric spectral data array into multiple sub-band arrays to obtain multiple sub-band arrays corresponding to each scanning path; determining the spectral features corresponding to each scanning path based on each sub-band array; determining the color coding information of each spatial location point on each scanning path based on the spectral features corresponding to each scanning path; and generating a scanned image of the tissue under test based on the color coding information of each spatial location point on each scanning path. This method divides the acquired full-bandwidth interferometric spectral data array of the tissue under test into sub-bands, thereby analyzing and extracting the spectral features corresponding to each scanning path based on the distribution of depth reflection intensity corresponding to different sub-band arrays, to estimate the spectral parameters at each depth position, and generating a color-coded image according to a preset color mapping rule. By dividing the signal into subbands, the full-bandwidth signal can be split into multiple narrowband signals. Depth reconstruction based on the subband array can effectively preserve the depth information in the wavelength dimension, providing a data foundation for the subsequent extraction of depth-related spectral features. This enables the generated color-coded image to enhance the differentiation between different tissues, providing application value for clinical diagnosis and scientific research.

[0031] Secondly, the color of the reference depth layer of the tissue under test is anchored by the color provided by the fundus color photograph. The color deviation of the spatial position points of other depth layers relative to the reference depth layer is determined by the change of OCT sub-band spectral features with depth. This realizes the hierarchical color coding driven by surface fundus color photograph anchoring and depth spectral features. While maintaining the physical rationality of color coding, the overall color tone of the generated scan image under the en-face view is consistent with the fundus color photograph commonly used in clinical practice, reducing the subsequent learning cost of the scan image. Attached Figure Description

[0032] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0033] Figure 1 A flowchart illustrating the imaging method based on optical coherence tomography provided in this application embodiment. Figure 1 ; Figure 2 A flowchart illustrating the imaging method based on optical coherence tomography provided in this application embodiment. Figure 2 ; Figure 3 A flowchart illustrating the imaging method based on optical coherence tomography provided in this application embodiment. Figure 3 ; Figure 4 A flowchart illustrating the imaging method based on optical coherence tomography provided in this application embodiment. Figure 4 ; Figure 5 A flowchart illustrating the imaging method based on optical coherence tomography provided in this application embodiment. Figure 5 ; Figure 6 A flowchart illustrating the imaging method based on optical coherence tomography provided in this application embodiment. Figure 6 ; Figure 7 A flowchart illustrating the imaging method based on optical coherence tomography provided in this application embodiment. Figure 7 ; Figure 8 A schematic diagram of an imaging device based on optical coherence tomography provided in an embodiment of this application; Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0034] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.

[0035] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0036] Optical coherence tomography (OCT) is a high-resolution tomographic imaging technique based on the principle of low-coherence interference, capable of imaging biological tissues at the micrometer level of depth. Swept-Source Optical Coherence Tomography (SS-OCT) uses a rapidly tuned narrow-linewidth laser source to acquire interference spectral signals in the wavenumber domain, and then obtains the backscattering distribution along the tissue depth direction through Fourier transform.

[0037] Currently, the images output by OCT systems in clinical practice are usually grayscale images, intensity pseudocolor images, or artificially colored images based on structural layering. None of these output images can reflect the depth-related spectral characteristics of the tissue.

[0038] On the other hand, existing fundus color imaging can obtain two-dimensional color information of tissue surfaces, but lacks depth resolution. Some existing color OCT protocols typically employ the following methods: 1. Map the colors of a 2D color photograph onto the OCT surface; 2. Project the RGB values ​​of the color photo along the depth direction; 3. Assign a fixed pseudo-color based on the tissue layering; 4. Use a predefined lookup table to color the grayscale OCT.

[0039] The above solution has the following drawbacks: (1) Wavelength information in the original OCT interference spectrum was not utilized. Traditional OCT processing typically only retains the intensity values ​​after the full-bandwidth Fourier transform, while ignoring the depth difference information between different wavelength components; (2) Color information lacks depth correspondence Two-dimensional RGB values ​​are formed by integrating along the entire optical path, which cannot correspond to different depth layers. (3) It cannot reflect the differences in wavelength-dependent scattering and absorption of tissues. Different tissues have different scattering and absorption spectral characteristics, and traditional color mapping methods cannot reflect these differences. (4) Lack of physical constraints Most existing color OCT methods are post-processing display methods and have not established a correspondence between tissue optical parameters and color coding.

[0040] Based on this, the imaging method based on optical coherence tomography (OCT) provided in this solution decomposes the raw interferometric spectral data of swept-frequency OCT into subbands to obtain tissue depth reflectance information corresponding to different wavelength subbands. By analyzing the depth attenuation differences between different subbands, the depth-related spectral features of the tissue are extracted. Based on these spectral features, the spectral parameters at each depth location are estimated, and a color-coded image is generated according to a preset color mapping rule. Furthermore, the color-coded image generated based on the color mapping table can be constrained and calibrated by combining fundus photography, ensuring that the color of the tissue surface reference layer is constrained by the fundus photography to maintain clinical visual consistency. The offset of the depth layer color relative to the surface reference layer is entirely determined by the spectral characteristics of the tissue itself. This approach utilizes the clinical color reference value of fundus photography while solving the problem of insufficient depth information in the photography.

[0041] It should be noted that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.

[0042] Figure 1 A flowchart illustrating the imaging method based on optical coherence tomography provided in this application embodiment. Figure 1 The execution subject of this method is a computer device, such as... Figure 1 As shown, the method includes: S101, Acquire the interferometric spectral data array of the tissue to be tested.

[0043] The interferometric spectral data array includes spectral data subarrays corresponding to each scanning path of the tissue under test.

[0044] The tissue to be tested can be biological tissue, such as tissue containing hemoglobin or melanin, fibrous tissue, etc. A sweep frequency OCT system can be used to perform a transverse scan of the tissue to be tested, that is, to move the probe beam of the sweep frequency OCT point by point on the transverse plane of the tissue to be tested, thereby collecting spectral data subarrays at different transverse positions.

[0045] In this study, a transverse scan position corresponds to a scan path along the depth direction. Therefore, the interferometric spectral data array of the tissue under test can be composed of the spectral data subarrays of the scan path corresponding to each transverse position during the transverse scan. The spectral data subarray corresponding to a scan path can be composed of the original interferometric spectral signals of each wavenumber sampling point on this scan path. The original interferometric spectral signals of the wavenumber sampling points can include the wavenumber and interference signal values ​​corresponding to the wavenumber sampling points.

[0046] In some embodiments, the center wavelength, sweep bandwidth, number of sampling points, and scanning rate on the scanning path of the swept frequency OCT system can be selected according to the requirements of the tissue to be tested, imaging depth, axial resolution, and imaging speed, as long as the obtained interference spectrum data array of the tissue to be tested can be divided into at least two wavelength sub-bands and depth reconstruction can be completed separately.

[0047] S102. Divide the spectral data subarray corresponding to each scanning path in the interference spectral data array into multiple sub-band arrays to obtain multiple sub-band arrays corresponding to each scanning path.

[0048] In this embodiment, the spectral data subarray corresponding to each scanning path in the interference spectral data array can be divided into a corresponding number of sub-band arrays. The number of sub-band divisions can be greater than or equal to 2. In practical applications, the number of sub-band divisions can be 3 to 8.

[0049] Through the above sub-band division process, multiple sub-band arrays corresponding to each scanning path can be obtained. Each sub-band array corresponding to a scanning path includes the interference signal values ​​of each wavenumber sampling point within a preset wavenumber range in the spectral data sub-array of that scanning path. In this embodiment, the wavenumber k and wavelength λ are defined to satisfy k = 2π / λ; therefore, the preset wavenumber range corresponds to a certain wavelength range.

[0050] In traditional full-bandwidth OCT reconstruction, the depth responses of different wavelength components are superimposed and averaged, and the depth difference information in the wavelength dimension is not extracted separately. In this embodiment, by performing sub-band division, the full-bandwidth signal can be split into multiple narrowband signals. Depth reconstruction is performed based on the split sub-band array, which can effectively preserve the depth information in the wavelength dimension and provide a data foundation for subsequent extraction of depth-related spectral features.

[0051] S103. Determine the spectral characteristics corresponding to each scanning path based on the sub-band arrays corresponding to each scanning path.

[0052] Based on the sub-band arrays corresponding to the scanning path, the depth reflection intensity corresponding to different sub-band arrays can be analyzed. Based on the distribution of depth reflection intensity corresponding to different sub-band arrays, the spectral features corresponding to the scanning path can be analyzed and extracted.

[0053] Each scanning path is processed independently, and the spectral features corresponding to each scanning path are obtained in the end.

[0054] S104. Based on the spectral characteristics corresponding to each scanning path, determine the color coding information of each spatial location point on each scanning path, and generate a scanned image of the tissue to be tested based on the color coding information of each spatial location point on each scanning path.

[0055] Based on the spectral characteristics corresponding to each scanning path, color-coded information can be generated for different spatial locations along each scanning path, with each spatial location corresponding to a different depth. Based on the color-coded information of each spatial location along each scanning path, a scanned image of the tissue under test can be generated; the resulting scanned image is a depth-coded image.

[0056] It is worth noting that the color-coded information generated based on this scheme represents the relative spectral response characteristics of the tissue under test at different depths, and is still a depth pseudo-color, not the true color of the tissue under visible light illumination. Since the scanned images generated by this scheme can visualize the differences in spectral characteristics between different wavelengths in color form, it can enhance the differentiation between different tissues, and has value in clinical diagnosis, scientific research, and engineering applications.

[0057] In summary, the imaging method based on optical coherence tomography provided in this embodiment includes: acquiring an interferometric spectral data array of the tissue under test; dividing the spectral data subarray corresponding to each scanning path in the interferometric spectral data array into multiple sub-band arrays to obtain multiple sub-band arrays corresponding to each scanning path; determining the spectral features corresponding to each scanning path based on each sub-band array corresponding to each scanning path; determining the color coding information of each spatial location point on each scanning path based on the spectral features corresponding to each scanning path; and generating a scanned image of the tissue under test based on the color coding information of each spatial location point on each scanning path. This method divides the acquired full-bandwidth interferometric spectral data array of the tissue under test into sub-bands, thereby analyzing and extracting the spectral features corresponding to each scanning path based on the distribution of depth reflection intensity corresponding to different sub-band arrays, to estimate the spectral parameters at each depth position, and generating a color-coded image according to a preset color mapping rule. By dividing the signal into subbands, the full-bandwidth signal can be split into multiple narrowband signals. Depth reconstruction based on the subband array can effectively preserve the depth information in the wavelength dimension, providing a data foundation for the subsequent extraction of depth-related spectral features. This enables the generated color-coded image to enhance the differentiation between different tissues, providing application value for clinical diagnosis and scientific research.

[0058] In some embodiments, before subband division, the interferometric spectral data array acquired in step S101 can be preprocessed. This preprocessing includes, but is not limited to, background signal removal, dispersion compensation, and noise suppression. When the acquired interferometric spectral data array is not sampled at equal wavenumber intervals, k-domain linearization resampling is also included. After preprocessing, an interferometric spectral data array is obtained for subsequent subband division and spectral feature extraction.

[0059] Optionally, in step S102, the spectral data subarray corresponding to each scanning path in the interference spectral data array is divided into multiple sub-band arrays to obtain multiple sub-band arrays corresponding to each scanning path, including: according to multiple preset wavenumber ranges and the wavenumber of each wavenumber sampling point in the spectral data subarray corresponding to the scanning path, the interference signal values ​​of each wavenumber sampling point located in the same wavenumber range are divided into a sub-band array to obtain a sub-band array corresponding to the scanning path.

[0060] A spectral data subarray corresponding to a scanning path contains wavenumber and interference signal values ​​corresponding to multiple wavenumber sampling points. Assuming the preset wavenumber range includes k1~k2, k2~k3, and k3~k4, the interference signal values ​​of wavenumber sampling points with wavenumbers in the range of k1~k2 can be divided into one sub-band array, the interference signal values ​​of wavenumber sampling points with wavenumbers in the range of k2~k3 can be divided into another sub-band array, and the interference signal values ​​of wavenumber sampling points with wavenumbers in the range of k3~k4 can be divided into yet another sub-band array, resulting in three sub-band arrays.

[0061] Of course, in practical applications, the number and range of wavenumber ranges can be flexibly set according to requirements.

[0062] Figure 2 A flowchart illustrating the imaging method based on optical coherence tomography provided in this application embodiment. Figure 2 Optionally, in step S103, the spectral characteristics corresponding to each scanning path are determined based on the sub-band arrays corresponding to each scanning path, including: S201. Determine the sub-band spectral data corresponding to each sub-band array based on the sub-band arrays corresponding to the scanning path and the window functions corresponding to each sub-band array.

[0063] This embodiment illustrates the processing of any scanning path. For each sub-band array, a corresponding sub-band window function can be set, and the sub-band spectral data for each sub-band array can be calculated using the following formula:

[0064] in, Subband array , Subband array The corresponding subband window function, Subband array The corresponding subband spectral data, note the subscripts. Indicates the index of the sub-band array.

[0065] The subband window function is used to limit the spectral range corresponding to the subband and the weights of different wavenumber positions.

[0066] S202. Perform Fourier transform on the sub-band spectral data corresponding to each sub-band array, and obtain the reflection signal intensity of each spatial location point on the scanning path under each sub-band array based on the transformation result.

[0067] Perform a Fourier transform on the sub-band spectral data corresponding to each calculated sub-band array:

[0068] Based on the Fourier transform results, the reflected signal intensity at each spatial location point along the scanning path under each sub-band array is calculated using the following formula:

[0069] in, Subband array The complex depth signal obtained by Fourier transforming the corresponding sub-band spectral data This represents the square of its amplitude. Indicates spatial location points on the scan path In subband array The intensity of the reflected signal, also known as the power intensity, is the signal strength under these conditions.

[0070] The above process is performed on each sub-band array along a scanning path to obtain the reflected signal intensity of each spatial location point on the scanning path under each sub-band array.

[0071] Optionally, the window function corresponding to each sub-band array is defined on the same wavenumber sampling grid, and the sub-band spectral data corresponding to each sub-band array is subjected to Fourier transform using the same Fourier transform length, so that the reflected signal intensity of each spatial location point under different sub-band arrays corresponds to the same depth coordinates, thereby ensuring that the subsequent calculation of spectral features can be correctly calculated at the same depth position, and ensuring that the depth color coding has a consistent physical correspondence in a pixel-by-pixel sense, avoiding depth misalignment and interpolation errors.

[0072] The window function can be a Gaussian window, Hanning window, Hamming window, or other window functions with spectral selectivity. The spectral ranges of adjacent sub-band arrays can partially overlap; the specific degree of overlap can be determined based on the effective spectral bandwidth, the number of sub-bands, and the required depth resolution.

[0073] S203. Determine the spectral characteristics of each scanning path based on the reflected signal intensity of each spatial location point on each scanning path under each sub-band array.

[0074] Based on the reflected signal intensity of each spatial location point on each scanning path under each sub-band array, one or more spectral features can be calculated to obtain the spectral features corresponding to each scanning path.

[0075] Figure 3 A flowchart illustrating the imaging method based on optical coherence tomography provided in this application embodiment. Figure 3 Optionally, in step S203, the spectral characteristics corresponding to each scanning path are determined based on the reflection signal intensity of each spatial location point on each scanning path under each sub-band array, including: S301. Determine the sub-band differential attenuation characteristics of each spatial location point based on the reflected signal intensity of each sub-band array at each spatial location point on the scanning path.

[0076] Continuing with the explanation using a single scan path, we can determine the spatial location points along that scan path within the sub-band array. and sub-band array The sub-band differential attenuation characteristics of each spatial location point on the scanning path are calculated using the following formula based on the reflected signal intensity:

[0077] in, Indicates spatial location points on the scan path In subband array The intensity of the reflected signal below, Indicates spatial location points on the scan path In subband array The intensity of the reflected signal below, A positive number set to prevent numerical anomalies when taking the logarithm or dividing low-power signals. Indicates spatial location points on the scan path In subband array and sub-band array The subband differential attenuation characteristics between them.

[0078] In one embodiment, the sub-band array and sub-band array The shortest and longest wavelength sub-bands in each sub-band array corresponding to the scanning path can be selected separately. The larger the wavelength spacing between the two sub-bands, the stronger the spectral contrast and the more sensitive it is to wavelength-dependent scattering / absorption differences.

[0079] In another embodiment, subband array and sub-band array Adjacent subbands within each subband array corresponding to the scanning path can be selected individually. Because adjacent subbands have similar wavelengths, the subband differential attenuation reflects the relative depth attenuation difference between adjacent bands, making it more sensitive to narrowband absorption peaks. In this calculation method, one attenuation peak is calculated for every two adjacent subbands. Assuming the number of sub-band arrays is Then the final result is -1 The subband differential attenuation characteristics are obtained. At this point, the subband differential attenuation characteristics can be... -1 The resulting subband differential attenuation sequence.

[0080] It is also possible to calculate one between each pair of subband arrays. Then for all The sub-band differential attenuation characteristics are obtained by averaging or weighted averaging. This method can effectively utilize information from all sub-bands.

[0081] In practical applications, a specific wavelength sub-band array can be selected from all sub-band arrays for calculation, depending on the type of tissue to be tested or the application scenario.

[0082] S302. Based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array and the center wavelength corresponding to each sub-band array, determine the spectral centroid of each spatial location point on the scanning path, and based on the spectral centroid of each spatial location point on the scanning path and the depth information of each spatial location point, determine the spectral centroid offset characteristics of each spatial location point on the scanning path.

[0083] The normalized weights of each spatial location point under each sub-band array can be calculated using the following formula, based on the reflected signal intensity of each spatial location point along the scanning path under each sub-band array:

[0084] in, Indicates spatial location points on the scan path In subband array The intensity of the reflected signal below, This represents the total number of sub-band arrays corresponding to the scan path, and the denominator refers to the spatial location points on the scan path. The sum of the reflected signal intensities under each sub-band array along this scanning path, Indicates spatial location points on the scan path In subband array Normalized weights.

[0085] This step allows us to calculate the normalized weights of each spatial location point in the scan path under each sub-band array: , , … .

[0086] Based on the normalized weights of each spatial location point in each sub-band array, the following calculation formula is used. By weighted summing of the center wavelengths corresponding to each sub-band array, the spectral centroids of each spatial location point on the scanning path are obtained:

[0087] in, Subband array The corresponding center wavelength, Indicates spatial location points on the scan path The corresponding spectral centroid is used to characterize the center position of the reflected signal intensity distribution of a spatial location point under different sub-band arrays.

[0088] Based on the spectral centroid and depth information of each spatial location point along the scanning path, the following formula is used for partial derivative calculation to obtain the spectral centroid offset characteristics of each spatial location point along the scanning path:

[0089] in, This represents the z-coordinate of a point on the scan path, which is also the depth coordinate. This represents the spectral centroid offset characteristics of spatial locations along the scan path.

[0090] Among them, the spectral centroid and spectral centroid offset features are used to characterize the intensity distribution of local spectral reflectance signals and their variation with depth, which can reflect the differences in the relative optical response of tissues to different wavelength components.

[0091] S303. Based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array, the center wavelength corresponding to each sub-band array, and the spectral centroid of each spatial location point on the scanning path, determine the spectral distribution width characteristics of each spatial location point on the scanning path.

[0092] Based on the spectral centroids of each spatial location point on the scanning path calculated in step S302 and the center wavelengths corresponding to each sub-band array, the deviation between the center wavelength of each sub-band array and the spectral centroid of each spatial location point can be calculated: ,in Subband array Center wavelength and spatial location The deviation between the spectral centroids, and each sub-band array needs to be aligned with the spatial location point. The deviation in the calculation of the centroid of the spectrum.

[0093] Combining the normalized weights of each spatial location point calculated in step S302 under each sub-band array, and the deviation between the center wavelength of each sub-band array and the spectral centroid of each spatial location point calculated above, the spectral distribution width characteristics of each spatial location point on the scanning path can be obtained by weighted summation using the following formula:

[0094] in, Indicates spatial location points on the scan path Spectral distribution width characteristics, Subband array Center wavelength and spatial location The square of the deviation between the centroids of the spectrum is given, and the physical meaning of the other parameters is given in the previous example.

[0095] in, A larger value indicates a more dispersed distribution of the reflected signal intensity across different wavelength subbands. The smaller the value, the more concentrated the reflected signal intensity is within a narrower wavelength range.

[0096] Figure 4 A flowchart illustrating the imaging method based on optical coherence tomography provided in this application embodiment. Figure 4 Optionally, in step S104, based on the spectral characteristics corresponding to each scanning path, the color coding information of each spatial location point on each scanning path is determined, and a scanned image of the tissue to be tested is generated based on the color coding information of each spatial location point on each scanning path, including: S401. Based on the spectral characteristics corresponding to each scanning path, determine the initial color coding information of each spatial location point on each scanning path.

[0097] Based on the above calculations, the spectral features corresponding to each scanning path include, but are not limited to: sub-band differential attenuation features at each spatial location, spectral centroid at each spatial location, spectral centroid shift features at each spatial location, and spectral distribution width features at each spatial location.

[0098] The initial color coding information of each spatial location point on a scanning path can be calculated using one or more of the various spectral features obtained above, and is not limited to using all spectral features.

[0099] The initial color coding information for spatial location points includes: first initial color information, second initial color information, and third initial color information.

[0100] The physical meanings of the first, second, and third initial color information can be determined based on the selected color space type.

[0101] For example, when selecting the Hue-Saturation-Value (HSV) color space, the initial color coding information of the spatial location point is represented as HSV, where H can correspond to the first initial color information, S to the second initial color information, and V to the third initial color information; when selecting the Red-Green-Blue (RGB) color space, the initial color coding information of the spatial location point is represented as RGB, where R can correspond to the first initial color information, G to the second initial color information, and B to the third initial color information.

[0102] S402. Based on the fundus color photograph of the tissue to be tested, determine the reference color information of the target scanning points on each scanning path.

[0103] To ensure that the overall tone of the final output scanned image is consistent with clinically used fundus photographs, this embodiment acquires fundus photographs of the tissue to be tested. Using these fundus photographs, an image registration method is employed to spatially register the fundus photographs with the en-face plane of the OCT data, ensuring that the position in the fundus photograph aligns with the lateral position in the OCT data. Establish the correspondence. The en-face plane refers to a slice or projection of OCT data onto a horizontal plane.

[0104] Location in fundus color photography and horizontal position in OCT data After establishing the correspondence, each pixel in the fundus color image Corresponding to the same horizontal position in OCT data Based on the information of each pixel in the fundus color image, the information of each pixel is converted to the color space used when generating the initial color encoding information of the spatial location points, and the reference color information of the target scanning points on each scanning path is determined based on the converted information of each pixel in the fundus color image.

[0105] The target scanning point can be the lateral position point on the surface of the tissue to be tested corresponding to the scanning path; that is, it is the point on which the fundus is photographed. The color information at that location is used as the horizontal position point in the OCT data. The reference color information. It is called the target scan point on the scan path because each target scan point corresponds to a scan path, which is a scan line extending along the target scan point in the depth direction.

[0106] S403. Based on the reference color information of the target scanning points on each scanning path, determine the reference color information at the reference depth on each scanning path.

[0107] Reference depth can be understood as the depth of a reference layer along the scan path. The reference layer can be set according to requirements. Typically, it can be set to the surface of the tissue being measured, or a layer at a depth close to the surface along the depth direction. The reference depth determined for each scan path can be kept consistent.

[0108] The reference color information of the target scanning point on the scanning path can be used as the reference color information at the reference depth on the scanning path, thereby achieving the effect of constraining the hue and saturation of the target color coding information at the reference depth on the scanning path based on the reference color provided by the fundus color image.

[0109] The reference color information at the reference depth may include: first reference color information and second reference color information. The reference color provided by the fundus image is only used to constrain the first target color information and the second target color information at the reference depth. Therefore, the obtained reference color information at the reference depth only includes the first reference color information and the second reference color information.

[0110] Taking HSV as the initial color coding information at the reference depth as an example, the reference color information at the reference depth obtained from the fundus photograph can include: and This is because hue (H) and saturation (S) are used to reflect the true color, while V represents brightness / intensity. The color V provided by fundus photography is unreliable due to the influence of lighting conditions and exposure, and the color V provided by fundus photography cannot reflect the spectral characteristics of the tissue being tested.

[0111] The reason for constraining H and S is to ensure that the overall tone of the final output scan image is consistent with clinically familiar fundus color images, thereby reducing the learning cost of subsequent scan images.

[0112] S404. Based on the reference color information at the reference depth on each scanning path and the initial color coding information of each spatial location point on each scanning path, determine the target color coding information of each spatial location point on each scanning path.

[0113] The target color coding information of spatial location points at depths other than the reference depth, relative to the reference color information at the reference depth, can be determined by the first and second initial color information in the initial color coding information generated based on the spectral features of these spatial location points.

[0114] Specifically, the initial color coding information of each spatial location point on the scanning path can be adjusted based on the reference color information at the reference depth on the scanning path to obtain the target color coding information of each spatial location point on the scanning path.

[0115] Similarly, taking HSV as the initial color coding information of spatial location points as an example, when adjusting the initial color coding information of these spatial location points, only H and S in the initial color coding information of the spatial location points are adjusted, while V can remain unchanged.

[0116] S405. Generate scan images of the tissue to be tested based on the target color coding information of each spatial location point on each scan path.

[0117] Since the target color coding information of each spatial location point in the entire tissue under test, including the lateral location points on the surface, is known, the color of each spatial location point in the tissue under test can be drawn directly based on the target color coding information, thereby obtaining the scanned image of the tissue under test.

[0118] Figure 5 A flowchart illustrating the imaging method based on optical coherence tomography provided in this application embodiment. Figure 5 Optionally, in step S401, based on the spectral characteristics corresponding to each scanning path, the initial color coding information of each spatial location point on each scanning path is determined, including: S501. Determine the first initial color information of each spatial location point on the scanning path based on the spectral centroid of each spatial location point on the scanning path.

[0119] S502. Determine the second initial color information of each spatial location point on the scanning path based on the spectral distribution width characteristics of each spatial location point on the scanning path.

[0120] S503. Determine the third initial color information of each spatial location point on the scanning path based on the grayscale value of each spatial location point on the scanning path.

[0121] In this embodiment, the HSV color space is used to generate the initial color coding information for each spatial location point. First, based on a preset feature value range, the spectral centroid and spectral distribution width features of each spatial location point on the scan path, calculated above, are normalized to 0~1. Simultaneously, the OCT structure intensity of each spatial location point is also normalized to 0~1. The OCT structure intensity is taken as the grayscale value of the pixel at the spatial location point in the OCT data.

[0122] Assuming the normalized spectral centroid, spectral width characteristics, and OCT structure intensity are expressed as follows: , and Then the first initial color information H of the spatial location point Second initial color information Third initial color information .

[0123] S504. Based on the first initial color information, the second initial color information, and the third initial color information of each spatial location point on the scanning path, obtain the initial color encoding information of each spatial location point on the scanning path.

[0124] Based on the above calculations, the initial color coding information of the spatial location point is HSV.

[0125] It is worth noting that, based on the color encoding method described above, when the spectral centroid is biased towards the shortwave direction, the hue of the spatial location point tends towards blue; when the spectral centroid is located in the middle band, the hue tends towards green; and when the spectral centroid is biased towards the longwave direction, the hue tends towards red. The more concentrated the intensity distribution of the spectral reflectance signal, the higher the color saturation; the stronger the OCT structure signal, the higher the color brightness.

[0126] In some other embodiments, the sub-band differential attenuation feature or spectral centroid offset feature of a spatial location point can be used instead of the spectral centroid to determine the hue, or to adjust the hue and saturation of a color.

[0127] Optionally, in step S401, the initial color coding information of each spatial location point on each scanning path is determined according to the spectral features corresponding to each scanning path, including: inputting the spectral features of each spatial location point on each scanning path into a pre-trained color coding prediction model, and having the color coding prediction model predict and output the initial color coding information of each spatial location point on each scanning path; the spectral features of the spatial location point include one or more of the following: sub-band differential attenuation features of the spatial location point, spectral centroid of the spatial location point, spectral centroid shift features of the spatial location point, and spectral distribution width features of the spatial location point.

[0128] In another implementation, initial color coding information for each spatial location point along the scanning path can be generated using model prediction. One or more spectral features of the calculated spatial location points can be input into a pre-trained color coding prediction model, which then predicts the initial color coding information for the spatial location points.

[0129] It is worth noting that the spectral features used during the training of the color coding prediction model are the same as those input into the color coding prediction model when applied to prediction. When the color coding prediction model is trained using four spectral features: sub-band differential attenuation feature of spatial location point, spectral centroid of spatial location point, spectral centroid shift feature of spatial location point, and spectral distribution width feature of spatial location point, then in this step of prediction, all four features of the spatial location point need to be input into the model for prediction.

[0130] In some embodiments, when the OCT structure strength of a spatial location point is lower than a preset signal quality requirement, the spatial location point can be displayed as grayscale, transparent, or a preset invalid color to avoid unstable colors caused by noise.

[0131] Figure 6 A flowchart illustrating the imaging method based on optical coherence tomography provided in this application embodiment. Figure 6 Optionally, in step S403, the reference color information at the reference depth on each scanning path is determined based on the reference color information of the target scanning points on each scanning path, including: S601. Determine the reference layer of the tissue to be tested.

[0132] Fundus color imaging reflects the two-dimensional color information of fundus tissue. The reference layer can be selected according to the OCT structure and used for color display constraints. Usually, a certain depth layer on or near the surface of the tissue to be tested can be determined as the reference layer.

[0133] If the reference layer is selected too deep, the surface color of the tissue being tested will not correspond to that of the fundus photograph, and the subsequent depth color shift will be biased, resulting in a large difference in the overall tone of the final scanned image from the fundus photograph, which increases the clinical learning cost.

[0134] S602. Based on the depth information of each spatial location point on the scanning path, the depth information of the reference layer at the spatial location point on the scanning path is used as the reference depth on the scanning path.

[0135] The depth of the reference layer can be determined by the depth of the reference layer, specifically by the depth information of the spatial location point on the reference layer.

[0136] S603. Use the first reference color information of the target scanning point on the scanning path as the first reference color information at the reference depth on the scanning path.

[0137] S604. Use the second reference color information of the target scanning point on the scanning path as the second reference color information at the reference depth on the scanning path.

[0138] The first reference color information of the target scan point on the previously determined scan path is taken as the first reference color information at the reference depth on the scan path, denoted as . The second reference color information of the target scan point on the scan path is taken as the second reference color information at the reference depth on the scan path, and is denoted as... This allows the reference hue and saturation provided by the fundus photograph to constrain the color of the reference layer, thus anchoring the reference layer with the color provided by the fundus photograph.

[0139] Figure 7 A flowchart illustrating the imaging method based on optical coherence tomography provided in this application embodiment. Figure 7 Optionally, in step S404, the target color encoding information for each spatial location point on each scanning path is determined based on the reference color information at the reference depth on each scanning path and the initial color encoding information for each spatial location point on each scanning path, including: S701. Based on the first initial color information of each spatial location point on the scanning path and the first initial color information of the spatial location point at the reference depth on the scanning path, the hue cycle distance function is used to determine the first color change information of each spatial location point relative to the reference depth.

[0140] Optionally, the color change of spatial location points at other depths relative to the reference depth is calculated based on the initial color coding information of the spatial location points at the reference depth on the scanning path.

[0141] The calculation of the first color change information of the spatial location point relative to the reference depth is as follows:

[0142] in, Represents a spatial location point The first initial color information, This represents the initial color information of the spatial location point at the reference depth. This indicates the horizontal position. Reference depth of the reference layer at that location, Represents a spatial location point The first color change information relative to the reference depth. This is the hue cycle distance function.

[0143] S702. Based on the second initial color information of each spatial location point on the scanning path and the second initial color information of the spatial location point at the reference depth on the scanning path, determine the second color change information of each spatial location point relative to the reference depth.

[0144] The calculation of the second color change information of the spatial location point relative to the reference depth is as follows:

[0145] in, Represents a spatial location point The second initial color information, This represents the second initial color information of the spatial location point at the reference depth. Represents a spatial location point Second color change information relative to the reference depth.

[0146] Since the first and second initial color information of spatial location points are determined based on spectral features, the first and second color change information calculated here is determined by the variation of sub-band spectral features with depth, not by arbitrary settings or direct deduction from fundus photography. Fundus photography does not participate in the calculation of deep color changes; it only provides anchor points for the reference layer. The color offset of spatial location points at other depth layers relative to the reference layer is entirely determined by the variation of OCT sub-band spectral features with depth. This ensures that the color setting of each spatial location point at each depth layer can be traced back to specific spectral physical quantities, rather than being an arbitrarily set pseudo-color. The color of the spatial location points has real physical meaning, making subsequent diagnosis more reliable.

[0147] S703. Based on the first color change information of each spatial location point relative to the reference depth and the first reference color information of the reference depth, determine the first target color information of each spatial location point on the scanning path.

[0148] The calculation of the first target color information at the spatial location point is as follows:

[0149] in, The first reference color information indicating the reference depth. This indicates that the hue has been adjusted to a valid range of hue values. This is a spatial location point. The first color change information relative to the reference depth. Spatial location point The first target color information.

[0150] S704. Based on the second color change information of each spatial location point relative to the reference depth and the second reference color information of the reference depth, determine the second target color information of each spatial location point on the scanning path.

[0151] The calculation of the second target color information at the spatial location point is as follows:

[0152] in, The second reference color information represents the reference depth. This means limiting the saturation to the range of 0 to 1. This is a spatial location point. Second color change information relative to the reference depth Spatial location point The second target color information.

[0153] S705. Based on the first target color information, the second target color information, and the third initial color information of each spatial location point on the scanning path, obtain the target color encoding information of each spatial location point on the scanning path.

[0154] The third target color information of the spatial location point is directly taken from the third initial color information of the spatial location point. Thus, the target color encoding information of each spatial location point on the scanning path can be obtained. The target color encoding information is composed of the first target color information, the second target color information and the third initial color information.

[0155] It is worth noting that for spatial location points located at the reference depth, the values ​​calculated using the above method... and Therefore, the first and second target color information of this spatial location point are provided by the fundus color photograph.

[0156] By introducing the surface hue of the tissue to be tested from fundus color photography as the surface anchor point for color mapping, the color of each spatial location point in the depth direction is still driven by the change of OCT sub-band spectral features with depth. This achieves layered color coding with surface fundus color photography anchoring and depth spectral features driving. While maintaining the physical rationality of color coding, the overall hue of the generated scan image from the en-face view is consistent with the fundus color photography commonly used in clinical practice, reducing the subsequent learning cost of the scan image.

[0157] In some embodiments, since the target color encoding information is calculated in the HSV color space, the scanned image can be displayed using HSV color values. In practical applications, the obtained HSV color values ​​can also be converted to other color values ​​such as RGB for displaying the scanned image; no specific limitations are imposed here.

[0158] In summary, the imaging method based on optical coherence tomography provided in this embodiment includes: acquiring an interferometric spectral data array of the tissue under test; dividing the spectral data subarray corresponding to each scanning path in the interferometric spectral data array into multiple sub-band arrays to obtain multiple sub-band arrays corresponding to each scanning path; determining the spectral features corresponding to each scanning path based on each sub-band array corresponding to each scanning path; determining the color coding information of each spatial location point on each scanning path based on the spectral features corresponding to each scanning path; and generating a scanned image of the tissue under test based on the color coding information of each spatial location point on each scanning path. This method divides the acquired full-bandwidth interferometric spectral data array of the tissue under test into sub-bands, thereby analyzing and extracting the spectral features corresponding to each scanning path based on the distribution of depth reflection intensity corresponding to different sub-band arrays, to estimate the spectral parameters at each depth position, and generating a color-coded image according to a preset color mapping rule. By dividing the signal into subbands, the full-bandwidth signal can be split into multiple narrowband signals. Depth reconstruction based on the subband array can effectively preserve the depth information in the wavelength dimension, providing a data foundation for the subsequent extraction of depth-related spectral features. This enables the generated color-coded image to enhance the differentiation between different tissues, providing application value for clinical diagnosis and scientific research.

[0159] Secondly, the color of the reference depth layer of the tissue under test is anchored by the color provided by the fundus color photograph. The color deviation of the spatial position points of other depth layers relative to the reference depth layer is determined by the change of OCT sub-band spectral features with depth. This realizes the hierarchical color coding driven by surface fundus color photograph anchoring and depth spectral features. While maintaining the physical rationality of color coding, the overall color tone of the generated scan image under the en-face view is consistent with the fundus color photograph commonly used in clinical practice, reducing the subsequent learning cost of the scan image.

[0160] The following describes the apparatus, equipment, and storage medium used to implement the imaging method based on optical coherence tomography provided in this application. The specific implementation process and technical effects are described above and will not be repeated below.

[0161] Figure 8 This is a schematic diagram of an imaging device based on optical coherence tomography (OCT) provided for an embodiment of this application. The functions implemented by this OCT-based imaging device correspond to the steps performed by the method described above. This device can be understood as the aforementioned computer equipment, or a server, or a server's processor, or it can be understood as a component that implements the functions of this application under the control of a server, independent of the aforementioned server or processor. Figure 8 As shown, the device may include: a data acquisition module 100, a determination module 200, and a generation module 300; The acquisition module 100 is used to acquire the interference spectral data array of the tissue under test. The interference spectral data array includes spectral data subarrays corresponding to each scanning path of the tissue under test. The determination module 200 is used to divide the spectral data subarray corresponding to each scanning path in the interference spectral data array into multiple sub-band arrays to obtain multiple sub-band arrays corresponding to each scanning path. Among them, a sub-band array corresponding to a scanning path includes the wavenumber and interference signal value of each wavenumber sampling point within a preset wavenumber range in the spectral data subarray of the scanning path. The determination module 200 is used to determine the spectral characteristics corresponding to each scanning path based on each sub-band array corresponding to each scanning path; The generation module 300 is used to determine the color coding information of each spatial location point on each scanning path according to the spectral characteristics corresponding to each scanning path, and generate a scan image of the tissue to be tested according to the color coding information of each spatial location point on each scanning path.

[0162] Optionally, the determining module 200 is specifically used to divide the interference signal values ​​of each wavenumber sampling point in the same wavenumber range into a sub-band array according to the wavenumber of each wavenumber sampling point in the spectral data sub-array corresponding to the scanning path, thereby obtaining a sub-band array corresponding to the scanning path.

[0163] Optionally, the determining module 200 is specifically used to determine the sub-band spectral data corresponding to each sub-band array based on each sub-band array corresponding to the scanning path and the window function corresponding to each sub-band array. Fourier transform is performed on the sub-band spectral data corresponding to each sub-band array, and the reflection signal intensity of each spatial location point on the scanning path under each sub-band array is obtained according to the transformation result. The window function corresponding to each sub-band array is defined on the same wavenumber sampling grid, and the Fourier transform of each sub-band spectral data is performed with the same Fourier transform length, so that the reflection signal intensity of each spatial location point under different sub-band arrays corresponds to the same depth coordinate. The spectral characteristics of each scanning path are determined based on the reflected signal intensity of each spatial location point on each scanning path under each sub-band array.

[0164] Optionally, the determining module 200 is specifically used to determine the sub-band differential attenuation characteristics of each spatial location point based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array; Based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array and the center wavelength corresponding to each sub-band array, the spectral centroid of each spatial location point on the scanning path is determined. Based on the spectral centroid of each spatial location point on the scanning path and the depth information of each spatial location point, the spectral centroid offset characteristics of each spatial location point on the scanning path are determined. Based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array, the center wavelength corresponding to each sub-band array, and the spectral centroid of each spatial location point on the scanning path, the spectral distribution width characteristics of each spatial location point on the scanning path are determined.

[0165] Optionally, the determining module 200 is specifically used to determine the normalized weight of each spatial location point under each sub-band array based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array. Based on the normalized weights of each spatial location point under each sub-band array, the center wavelengths corresponding to each sub-band array are weighted and summed to obtain the spectral centroids of each spatial location point on the scanning path. The spectral centroid offset characteristics of each spatial location point on the scanning path are obtained by performing partial derivative calculations based on the spectral centroid of each spatial location point and the depth information of each spatial location point.

[0166] Optionally, the determining module 200 is specifically used to determine the normalized weight of each spatial location point under each sub-band array based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array. Based on the center wavelength of each sub-band array and the spectral centroid of each spatial location point, determine the deviation between the center wavelength of each sub-band array and the spectral centroid of each spatial location point. Based on the normalized weights of each spatial location point under each sub-band array, the squares of the deviations between the center wavelength of the sub-band array and the spectral centroids of each spatial location point are weighted and summed to obtain the spectral distribution width characteristics of each spatial location point on the scanning path.

[0167] Optionally, the spectral features include one or more of the following: subband differential attenuation features, spectral centroid, spectral centroid shift features, and spectral distribution width features; The determination module 200 is specifically used to: determine the initial color coding information of each spatial location point on each scanning path based on the spectral characteristics corresponding to each scanning path; the initial color coding information of the spatial location point includes: first initial color information, second initial color information and third initial color information; Based on the fundus color images of the tissue to be tested, determine the reference color information of the target scanning points on each scanning path; Based on the reference color information of the target scan points on each scan path, the reference color information at the reference depth on each scan path is determined; the reference color information includes: first reference color information and second reference color information; Based on the reference color information at the reference depth on each scanning path and the initial color coding information of each spatial location point on each scanning path, determine the target color coding information of each spatial location point on each scanning path; Based on the target color coding information of each spatial location point on each scanning path, a scan image of the tissue to be tested is generated.

[0168] Optionally, the determining module 200 is specifically used to determine the first initial color information of each spatial location point on the scanning path based on the spectral centroid of each spatial location point on the scanning path; Based on the spectral distribution width characteristics of each spatial location point on the scanning path, the second initial color information of each spatial location point on the scanning path is determined; Based on the grayscale values ​​of each spatial location point on the scanning path, determine the third initial color information of each spatial location point on the scanning path; Based on the first initial color information, the second initial color information, and the third initial color information of each spatial location point on the scanning path, the initial color encoding information of each spatial location point on the scanning path is obtained.

[0169] Optionally, the determining module 200 is specifically used to input the spectral features of each spatial location point on each scanning path into a pre-trained color coding prediction model, and the color coding prediction model predicts and outputs the initial color coding information of each spatial location point on each scanning path; the spectral features of the spatial location point include one or more of the following: sub-band differential attenuation features of the spatial location point, spectral centroid of the spatial location point, spectral centroid offset features of the spatial location point, and spectral distribution width features of the spatial location point.

[0170] Optionally, module 200 is specifically used to determine the reference layer of the tissue under test; Based on the depth information of each spatial location point on the scanning path, the depth information of the reference layer at the spatial location point on the scanning path is used as the reference depth on the scanning path. Use the first reference color information of the target scan point on the scan path as the first reference color information at the reference depth on the scan path. The second reference color information of the target scan point on the scan path is used as the second reference color information at the reference depth on the scan path.

[0171] Optionally, the determining module 200 is specifically used to determine the first color change information of each spatial location point relative to the reference depth based on the first initial color information of each spatial location point on the scanning path and the first initial color information of the spatial location point at the reference depth on the scanning path, using a hue cycle distance function. Based on the second initial color information of each spatial location point on the scanning path and the second initial color information of the spatial location point at the reference depth on the scanning path, determine the second color change information of each spatial location point relative to the reference depth. Based on the first color change information of each spatial location point relative to the reference depth and the first reference color information of the reference depth, determine the first target color information of each spatial location point on the scanning path; Based on the second color change information of each spatial location point relative to the reference depth and the second reference color information of the reference depth, determine the second target color information of each spatial location point on the scanning path; Based on the first target color information, the second target color information, and the third initial color information of each spatial location point on the scanning path, the target color encoding information of each spatial location point on the scanning path is obtained.

[0172] The above-described device is used to execute the method provided in the foregoing embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.

[0173] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more digital signal processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).

[0174] The modules described above can be connected or communicate with each other via wired or wireless connections. Wired connections may include metal cables, optical fibers, hybrid cables, or any combination thereof. Wireless connections may include connections via LAN, WAN, Bluetooth, ZigBee, or NFC, or any combination thereof. Two or more units can be combined into a single module, and any module can be divided into two or more units. Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the method embodiments, and will not be repeated here.

[0175] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The device may be a computing device with data processing capabilities.

[0176] The device includes a processor 801, a storage medium 802, and a bus 803. The storage medium 802 stores program instructions that can be executed by the processor 801. When the electronic device is running, the processor 801 communicates with the storage medium 802 through the bus 803. The processor 801 executes the program instructions to implement the imaging method based on optical coherence tomography as described in the embodiment.

[0177] The storage medium 802 stores program code, which, when executed by the processor 801, causes the processor 801 to perform various steps in the imaging method based on optical coherence tomography according to various exemplary embodiments of this application as described in the "Exemplary Methods" section above.

[0178] The processor 801 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0179] Storage medium 802, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The storage medium can include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type storage medium, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic storage medium, magnetic disk, optical disk, etc. The storage medium is any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, storage medium 802 can also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.

[0180] Optionally, this application also provides a program product, such as a computer-readable storage medium, including a program that, when executed by a processor, performs the above-described method embodiments.

[0181] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0182] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0183] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units.

[0184] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

Claims

1. An imaging method based on optical coherence tomography, characterized in that, include: An interferometric spectral data array of the tissue under test is acquired, wherein the interferometric spectral data array includes spectral data subarrays corresponding to each scanning path of the tissue under test; The spectral data subarray corresponding to each scanning path in the interference spectral data array is divided into multiple sub-band arrays to obtain multiple sub-band arrays corresponding to each scanning path. Among them, a sub-band array corresponding to a scanning path includes the wavenumber and interference signal value corresponding to each wavenumber sampling point within a preset wavenumber range in the spectral data subarray of the scanning path. Based on the sub-band arrays corresponding to each scanning path, determine the spectral characteristics corresponding to each scanning path; Based on the spectral characteristics corresponding to each scanning path, the color coding information of each spatial location point on each scanning path is determined, and a scan image of the tissue to be tested is generated based on the color coding information of each spatial location point on each scanning path.

2. The method according to claim 1, characterized in that, The step of dividing the spectral data subarray corresponding to each scanning path in the interference spectral data array into multiple sub-band arrays to obtain multiple sub-band arrays corresponding to each scanning path includes: Based on the multiple preset wavenumber ranges and the wavenumber of each wavenumber sampling point in the spectral data subarray corresponding to the scanning path, the interference signal values ​​of each wavenumber sampling point located in the same wavenumber range are divided into a sub-band array to obtain a sub-band array corresponding to the scanning path.

3. The method according to claim 1, characterized in that, The step of determining the spectral features corresponding to each scanning path based on each sub-band array corresponding to each scanning path includes: Based on the sub-band arrays corresponding to the scanning path and the window functions corresponding to each sub-band array, determine the sub-band spectral data corresponding to each sub-band array; Fourier transform is performed on the sub-band spectral data corresponding to each sub-band array, and the reflection signal intensity of each spatial location point on the scanning path under each sub-band array is obtained according to the transformation result. The window function corresponding to each sub-band array is defined on the same wavenumber sampling grid, and the Fourier transform of each sub-band spectral data is performed with the same Fourier transform length, so that the reflection signal intensity of each spatial location point under different sub-band arrays corresponds to the same depth coordinate. The spectral characteristics of each scanning path are determined based on the reflected signal intensity of each spatial location point on each scanning path under each sub-band array.

4. The method according to claim 3, characterized in that, The step of determining the spectral characteristics corresponding to each scanning path based on the reflection signal intensity of each spatial location point on each scanning path under each sub-band array includes: Based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array, the sub-band differential attenuation characteristics of each spatial location point are determined. Based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array and the center wavelength corresponding to each sub-band array, the spectral centroid of each spatial location point on the scanning path is determined, and based on the spectral centroid of each spatial location point on the scanning path and the depth information of each spatial location point, the spectral centroid offset characteristics of each spatial location point on the scanning path are determined. Based on the reflected signal intensity of each spatial location point on the scanning path under each sub-band array, the center wavelength corresponding to each sub-band array, and the spectral centroid of each spatial location point on the scanning path, the spectral distribution width characteristics of each spatial location point on the scanning path are determined.

5. The method according to claim 1, characterized in that, The spectral features include one or more of the following: subband differential attenuation features, spectral centroid, spectral centroid shift features, and spectral distribution width features; The step of determining the color coding information of each spatial location point on each scanning path based on the spectral characteristics corresponding to each scanning path, and generating a scanned image of the tissue to be tested based on the color coding information of each spatial location point on each scanning path, includes: Based on the spectral characteristics corresponding to each scanning path, the initial color coding information of each spatial location point on each scanning path is determined; the initial color coding information of the spatial location point includes: first initial color information, second initial color information, and third initial color information; Based on the fundus color photograph of the tissue to be tested, determine the reference color information of the target scanning points on each scanning path; Based on the reference color information of the target scan points on each scan path, the reference color information at the reference depth on each scan path is determined; the reference color information includes: first reference color information and second reference color information; Based on the reference color information at the reference depth on each scanning path and the initial color coding information of each spatial location point on each scanning path, determine the target color coding information of each spatial location point on each scanning path; Based on the target color coding information of each spatial location point on each scanning path, a scan image of the tissue to be tested is generated.

6. The method according to claim 5, characterized in that, The step of determining the initial color coding information of each spatial location point on each scanning path based on the spectral characteristics corresponding to each scanning path includes: Based on the spectral centroid of each spatial location point on the scanning path, the first initial color information of each spatial location point on the scanning path is determined; Based on the spectral distribution width characteristics of each spatial location point on the scanning path, the second initial color information of each spatial location point on the scanning path is determined; Based on the grayscale values ​​of each spatial location point on the scanning path, the third initial color information of each spatial location point on the scanning path is determined; Based on the first initial color information, the second initial color information, and the third initial color information of each spatial location point on the scanning path, the initial color encoding information of each spatial location point on the scanning path is obtained.

7. The method according to claim 5, characterized in that, The step of determining the initial color coding information of each spatial location point on each scanning path based on the spectral characteristics corresponding to each scanning path includes: The spectral features of each spatial location point on each scanning path are input into a pre-trained color coding prediction model, which then predicts and outputs the initial color coding information of each spatial location point on each scanning path. The spectral features of the spatial location point include one or more of the following: sub-band differential attenuation features of the spatial location point, spectral centroid of the spatial location point, spectral centroid offset features of the spatial location point, and spectral distribution width features of the spatial location point.

8. The method according to claim 5, characterized in that, The step of determining the reference color information at the reference depth on each scanning path based on the reference color information of the target scanning points on each scanning path includes: Determine the reference layer of the tissue to be tested; Based on the depth information of each spatial location point on the scanning path, the depth information of the reference layer at the spatial location point on the scanning path is used as the reference depth on the scanning path; The first reference color information of the target scan point on the scan path is used as the first reference color information at the reference depth on the scan path; The second reference color information of the target scan point on the scan path is used as the second reference color information at the reference depth on the scan path.

9. The method according to claim 5, characterized in that, The step of determining the target color encoding information for each spatial location point on each scanning path based on the reference color information at the reference depth on each scanning path and the initial color encoding information for each spatial location point on each scanning path includes: Based on the first initial color information of each spatial location point on the scanning path and the first initial color information of the spatial location point at the reference depth on the scanning path, the hue cycle distance function is used to determine the first color change information of each spatial location point relative to the reference depth. Based on the second initial color information of each spatial location point on the scanning path and the second initial color information of the spatial location point at the reference depth on the scanning path, the second color change information of each spatial location point relative to the reference depth is determined; Based on the first color change information of each spatial location point relative to the reference depth and the first reference color information of the reference depth, the first target color information of each spatial location point on the scanning path is determined; Based on the second color change information of each spatial location point relative to the reference depth and the second reference color information of the reference depth, the second target color information of each spatial location point on the scanning path is determined; Based on the first target color information, the second target color information, and the third initial color information of each spatial location point on the scanning path, the target color encoding information of each spatial location point on the scanning path is obtained.

10. An electronic device, characterized in that, include: The device includes a processor, a storage medium, and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to implement the method as described in any one of claims 1 to 9.