Method and device for acquiring keratosclera image
By acquiring and fusing OCT images under different eyelid states, the problem of incompleteness in the collection of Asian corneoscleral images is solved, the accuracy of the corneoscleral topography is improved, and the integrity of the scleral area is ensured.
Patent Information
- Application Number
- CN202410729946.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-01
AI Technical Summary
When acquiring corneoscleral images using existing technology, especially Asian eyes with smaller palpebral fissures, the accuracy of the corneoscleral topography above and below the eyeball decreases, making it difficult to obtain complete corneoscleral imaging.
Registration is performed by acquiring the first base image and the first reference image of the same eyeball spanning radially opposite sides of the eyeball, and OCT images taken when the upper eyelid is not lifted and the lower eyelid is not pulled down, and when the upper eyelid is lifted and the lower eyelid is pulled down respectively. and fusion to obtain a fused image, thereby completing the incomplete scleral area and extracting the outer surface curve of the fused cornea and sclera.
It improves the accuracy of corneoscleral topography, ensures the integrity of the sclera on the upper and lower eyelid sides, and enhances the collection quality of corneoscleral images.
Smart Images

Figure CN118735940A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a method and device for acquiring corneal sclera images. Background Art
[0002] Among the related technologies, accurate acquisition of scleral topography has important guiding significance for personalized fitting of clinical scleral lenses. Optical coherence tomography (OCT) can be used to scan the anterior segment of the eye, and the scleral topography that is closest to the actual state can be fitted through image analysis and three-dimensional reconstruction.
[0003] However, due to the small palpebral fissure of human eyes (especially Asian eyes), a wide range of sclera cannot be exposed during image acquisition. Therefore, it is difficult to obtain complete corneal and scleral imaging during image acquisition, especially the accuracy of the corneal and scleral topography above and below the eyeball is reduced. Summary of the invention
[0004] The purpose of the present application is to provide a method and device for acquiring corneal sclera images, which can complete the incomplete sclera in the corneal sclera images collected by OCT equipment, thereby improving the accuracy of the constructed corneal sclera topography.
[0005] According to a first aspect of an embodiment of the present application, a method for acquiring a corneal sclera image is provided, comprising:
[0006] Acquire a first benchmark image and a first reference image across radially opposite sides of the eyeball for the same eyeball, wherein the first benchmark image is an OCT image taken when the upper eyelid is not lifted and the lower eyelid is not pulled down, and the first reference image includes a first sub-reference image and a second sub-reference image, wherein the first sub-reference image is an OCT image taken when the upper eyelid is lifted, and the second sub-reference image is an OCT image taken when the lower eyelid is pulled down;
[0007] registering the first benchmark OCT image with the first reference OCT image;
[0008] fusing the first benchmark OCT image after registration with the first reference OCT image to obtain a fused image; the fused image includes a fused corneal image and a fused scleral image, the fused corneal image includes a fused corneal segment, and the fused scleral image includes a fused scleral segment;
[0009] The outer surface curve of the fused cornea and sclera is extracted from the fused image; the fused cornea and sclera include the fused cornea segment and the fused sclera segment.
[0010] According to a second aspect of an embodiment of the present application, there is provided an image processing apparatus, including:
[0011] a first acquisition module, configured to acquire a first benchmark image and a first reference image across radially opposite sides of the same eyeball, wherein the first benchmark image is an OCT image taken when the upper eyelid is not lifted and the lower eyelid is not pulled down, and the first reference image includes a first sub-reference image and a second sub-reference image, wherein the first sub-reference image is an OCT image taken when the upper eyelid is lifted, and the second sub-reference image is an OCT image taken when the lower eyelid is pulled down;
[0012] a registration module, configured to register the first benchmark OCT image with the first reference OCT image;
[0013] a fusion module configured to fuse the first benchmark OCT image and the first reference OCT image after registration to obtain a fused image; the fused image includes a fused corneal image and a fused scleral image, the fused corneal image includes a fused corneal segment, and the fused scleral image includes a fused scleral segment;
[0014] The extraction module is configured to extract the outer surface curve of the fused cornea and sclera from the fused image; the fused cornea and sclera include the fused cornea fragment and the fused sclera fragment.
[0015] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store a computer program executable by the processor; and the processor is used to execute the computer program in the memory to implement the above method.
[0016] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the executable computer program in the storage medium is executed by a processor, the above method can be implemented.
[0017] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, including a computer program, which can implement the above method when executed by a processor.
[0018] Compared with the prior art, the beneficial effect of the present application lies in: by acquiring a first baseline image and a first reference image for the same eyeball across radially opposite sides of the eyeball, wherein the first baseline image is an OCT image taken when the upper eyelid is not lifted and the lower eyelid is not pulled down, and the first reference image includes a first sub-reference image and a second sub-reference image, the first sub-reference image is an OCT image taken when the upper eyelid is lifted, and the second sub-reference image is an OCT image taken when the lower eyelid is pulled down, then, the first baseline OCT image and the first reference OCT image are aligned, and the aligned first baseline OCT image and the first reference OCT image are fused to obtain a fused image, the fused image includes a fused corneal image and a fused scleral image, the fused corneal image includes a fused corneal fragment, and the fused scleral image includes a fused scleral fragment, and finally, the outer surface curve of the fused cornea and sclera is extracted from the fused image, and the fused cornea and sclera include a fused corneal fragment and a fused sclera fragment. Since the first sub-reference image is an OCT image taken when the upper eyelid is lifted, the sclera on the upper eyelid side in the first sub-reference image is complete, and the second sub-reference image is an OCT image taken when the lower eyelid is pulled down, the sclera on the lower eyelid side in the second sub-reference image is complete, no matter whether the sclera on the upper eyelid side or the sclera on the lower eyelid side in the first reference image is incomplete, after the first reference OCT image is fused with the first reference OCT image, the sclera on the upper eyelid side and the sclera on the lower eyelid side in the obtained fused image are both complete. Therefore, the technical solution in the present application can complete the incomplete sclera in the corneoscleral image collected by the OCT device, thereby improving the accuracy of the constructed corneoscleral topography. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 The figure is a flow chart of a method for acquiring a corneoscleral image according to an exemplary embodiment.
[0020] Figure 2 is a flowchart of a method for acquiring a corneal sclera image according to another exemplary embodiment.
[0021] Figure 3 to Figure 6 is a schematic diagram of a second reference image according to an exemplary embodiment.
[0022] Figure 7 to Figure 10 is a schematic diagram showing a third sub-reference image according to an exemplary embodiment.
[0023] Figure 11 to Figure 14 is a schematic diagram showing a fourth sub-reference image according to an exemplary embodiment.
[0024] Fig.15 is a flowchart of a method for acquiring a corneal sclera image according to another exemplary embodiment.
[0025] Fig.16 is a flowchart of a method for acquiring a corneal sclera image according to another exemplary embodiment.
[0026] Fig.17 is a flowchart of a method for acquiring a corneal sclera image according to another exemplary embodiment.
[0027] Fig.18 is a schematic diagram showing the deflection angle between the angular vertex of the chamber angle and the image according to another exemplary embodiment.
[0028] Fig.19 is a flowchart of a method for acquiring a corneal sclera image according to another exemplary embodiment.
[0029] Fig. 20 is a flowchart of a method for acquiring a corneal sclera image according to another exemplary embodiment.
[0030] Fig.21 The figure is a schematic diagram showing a chamber angle vertex and a fitting straight line according to an exemplary embodiment.
[0031] Fig. 22 is a schematic diagram showing a chamber angle vertex and a fitting straight line according to another exemplary embodiment.
[0032] Fig.23 is a schematic diagram showing a chamber angle vertex and a fitting straight line according to another exemplary embodiment.
[0033] Fig.24 is a schematic diagram showing image fusion according to an exemplary embodiment.
[0034] Fig.25 is a schematic diagram showing image fusion according to another exemplary embodiment.
[0035] Figure 26 to Figure 29 is a schematic diagram of an upper surface curve of the cornea and sclera according to an exemplary embodiment.
[0036] Fig.30 is a flowchart of a method for acquiring a corneal sclera image according to another exemplary embodiment.
[0037] Fig.31 is a flowchart of a method for acquiring a corneal sclera image according to another exemplary embodiment.
[0038] Figure 32 to Figure 35 is a schematic diagram showing a first reference OCT image partition according to an exemplary embodiment.
[0039] Fig.36 is a flowchart of a method for acquiring a corneal sclera image according to another exemplary embodiment.
[0040] Fig.37 is a flowchart of a method for acquiring a corneal sclera image according to another exemplary embodiment.
[0041] Fig.38 The figure is a block diagram of a device for acquiring a corneoscleral image according to an exemplary embodiment.
[0042] Fig.39 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0043] Unless otherwise defined, the technical terms or scientific terms used in this specification and claims shall have the usual meanings understood by persons with ordinary skills in the technical field to which the invention belongs. The specific embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be noted that in the specific description of these embodiments, in order to provide a concise description, it is impossible for this specification to provide a detailed description of all the features of the actual embodiments. Without departing from the spirit and scope of the present invention, those skilled in the art may modify and replace the embodiments of the present invention, and the resulting embodiments are also within the scope of protection of the present invention.
[0044] Figure 1 1 is a flowchart of a method for acquiring a corneal sclera image according to an exemplary embodiment. The method for acquiring a corneal sclera image can be applied to ophthalmic medical equipment, personal computers, personal digital assistants, wearable devices, tablet computers, smart phones and other computing devices. Figure 1 The method for acquiring the cornea-sclera image may include the following steps:
[0045] Step 101, obtaining a first baseline image and a first reference image across radially opposite sides of the eyeball for the same eyeball, the first baseline image being an OCT image taken when the upper eyelid is not lifted and the lower eyelid is not pulled down, the first reference image comprising a first sub-reference image and a second sub-reference image, the first sub-reference image being an OCT image taken when the upper eyelid is lifted, and the second sub-reference image being an OCT image taken when the lower eyelid is pulled down.
[0046] In this embodiment, the first baseline image and the first reference image are images obtained by performing image segmentation and binarization on the second baseline image and the second reference image acquired by the imaging device (OCT device), wherein the purpose of performing image segmentation on the second baseline image and the second reference image acquired by the OCT device is to extract the corneal image, the sclera image and the iris image.
[0047] In this embodiment, the imaging device may be a SDOCT (Spectral Optical Coherence Tomograph) device, but is not limited thereto.
[0048] In this embodiment, the first reference image includes a first reference cornea image, a first reference sclera image, and a first reference iris image. The first reference cornea image includes a reference cornea segment, the first reference sclera image includes two reference sclera segments, the two reference sclera segments are respectively located on both sides of the reference cornea segment, the two reference sclera segments include an upper eyelid side reference sclera segment and a lower eyelid side reference sclera segment, the upper eyelid side reference sclera segment is a defective sclera segment, or the lower eyelid side reference sclera segment is a defective sclera segment, or both the upper eyelid side reference sclera segment and the lower eyelid side reference sclera segment are defective sclera segments. The first reference iris image includes two reference iris segments, the two reference iris segments are located on the concave side of the reference cornea segment and the reference sclera segment, the two reference iris segments include an upper eyelid side reference iris segment and a lower eyelid side reference iris segment, the upper eyelid side reference iris segment is adjacent to the upper eyelid side reference sclera segment, and the lower eyelid side reference iris segment is adjacent to the lower eyelid side reference sclera segment.
[0049] In this embodiment, the first sub-reference image includes a first reference cornea image, a first reference sclera image, and a first reference iris image. The first reference cornea image includes a first reference cornea segment, the first reference sclera image includes two first reference sclera segments, the two first reference sclera segments are respectively located on both sides of the first reference cornea segment, the two first reference sclera segments include a first upper eyelid side reference sclera segment and a first lower eyelid side reference sclera segment, and the first upper eyelid side reference sclera segment is a complete sclera segment. The first reference iris image includes two first reference iris segments, the two first reference iris segments are located on the concave side of the first reference cornea segment and the first reference sclera segment, the two first reference iris segments include a first upper eyelid side reference iris segment and a first lower eyelid side reference iris segment, the first upper eyelid side reference iris segment is adjacent to the first upper eyelid side reference sclera segment, and the first lower eyelid side reference iris segment is adjacent to the first lower eyelid side reference sclera segment.
[0050] In this embodiment, the second sub-reference image includes a second reference cornea image, a second reference sclera image, and a second reference iris image. The second reference cornea image includes a second reference cornea segment, the second reference sclera image includes two second reference sclera segments, the two second reference sclera segments are respectively located on both sides of the second reference cornea segment, the two second reference sclera segments include a second upper eyelid side reference sclera segment and a second lower eyelid side reference sclera segment, and the second lower eyelid side reference sclera segment is a complete sclera segment. The second reference iris image includes two second reference iris segments, the two second reference iris segments are located on the concave side of the second reference cornea segment and the second reference sclera segment, the two second reference iris segments include a second upper eyelid side reference iris segment and a second lower eyelid side reference iris segment, the second upper eyelid side reference iris segment is adjacent to the second upper eyelid side reference sclera segment, and the second lower eyelid side reference iris segment is adjacent to the second lower eyelid side reference sclera segment.
[0051] Since the first benchmark image and the first reference image both include the cornea image, the sclera image, the iris image, the cornea segment, the sclera segment and the iris segment, in order to conveniently distinguish the cornea image, the sclera image, the iris image, the cornea segment, the sclera segment and the iris segment in the first benchmark image and the first reference image, the cornea image, the sclera image, the iris image, the cornea segment, the sclera segment and the iris segment in the first benchmark image and the first reference image are given specific names above. Of course, the cornea image, the sclera image, the iris image, the cornea segment, the sclera segment and the iris segment in the first benchmark image and the first reference image can still use the common names of cornea image, sclera image, iris image, cornea segment, sclera segment and iris segment. For the convenience of distinction, the cornea image, the sclera image, the iris image, the cornea segment, the sclera segment and the iris segment can also be preceded by an attributive, for example, "cornea image in the first benchmark image", "sclera image in the first reference image".
[0052] In this embodiment, if Figure 2 As shown, step 101 may include the following steps 201 to 203:
[0053] Step 201: An imaging device acquires at least two second benchmark images and a second reference image spanning radially opposite sides of the same eyeball; the second benchmark image and the second reference image each include a cornea image, a sclera image, and an iris image.
[0054] In this embodiment, the second reference image includes a third sub-reference image and a fourth sub-reference image, the third sub-reference image is an OCT image taken when the upper eyelid is lifted, and the fourth sub-reference image is an OCT image taken when the lower eyelid is pulled down.
[0055] In this embodiment, the second reference image, the third sub-reference image and the fourth sub-reference image respectively include a cornea image, a sclera image and an iris image, the cornea image includes a cornea segment, the sclera image includes two sclera segments, and the iris image includes two iris segments.
[0056] In this embodiment, the imaging device continuously rotates the shooting angle at equal intervals according to the specified rotation direction to obtain at least two second baseline images and a second reference image, so that the image acquisition efficiency is high and subsequent processing is convenient.
[0057] For example, the SDOCT device can be used to continuously rotate the shooting angle at equal intervals in a clockwise direction to obtain 12 second reference images. The 12 second reference images are as follows: Figure 3 to Figure 6 shown.
[0058] like Figure 3 to Figure 6 As shown, the second reference image includes a cornea segment 31, a sclera segment 32 and an iris segment 33. The elliptical frames C1 to C15 frame the sclera portion blocked by the eyelid. 01 to 12 are image numbers, including shooting order information. For ease of description and subsequent processing, it is stipulated that the orientation of each image is distinguished according to the upper, lower, left and right sides. The right side of each image is the upper eyelid side, and the left side is the lower eyelid side.
[0059] The cornea segment 31 and the sclera segment 32 are arc-shaped as a whole, and the iris segment 33 is located on the concave side of the cornea segment 31 and the sclera segment 32. The sclera segment 32 includes a left sclera segment 321 and a right sclera segment 322, and the left sclera segment 321 and the right sclera segment 322 are located on both sides of the cornea segment 31. The iris segment 33 includes a left iris segment 331 and a right iris segment 332, and the left iris segment 331 is adjacent to the left sclera segment 321, and the right iris segment 332 is adjacent to the right sclera segment 322.
[0060] It should be noted that in other embodiments, the imaging device may acquire 10, 18 or 36 second reference images for the same eyeball, but is not limited thereto. The SDOCT device may also rotate the shooting angle continuously and evenly in a counterclockwise direction.
[0061] Then, the upper eyelid is lifted up, and the SDOCT device is used to continuously rotate the shooting angle at equal intervals in a clockwise direction to obtain 12 third sub-reference images. The 12 third sub-reference images are as follows: Figure 7 to Figure 10 The sclera segment on the upper eyelid side in the third sub-reference image, that is, the right sclera segment 322, is complete.
[0062] Then, the lower eyelid is pulled down, and the SDOCT device is used to continuously rotate the shooting angle at equal intervals in a clockwise direction to obtain 12 fourth sub-reference images. The 12 fourth sub-reference images are as follows: Figure 11 to Figure 14 The sclera segment on the lower eyelid side in the fourth sub-reference image, that is, the left sclera segment 321, is complete.
[0063] Step 202: Input at least two second benchmark images and a second reference image into an image segmentation neural network model.
[0064] In this embodiment, the second benchmark image and the second reference image captured by the imaging device can be input into a trained image segmentation neural network model to perform image segmentation. The image segmentation neural network model can be a U-Net model, but is not limited thereto.
[0065] Step 203: The image segmentation neural network model outputs at least two first benchmark images and a first reference image; the first benchmark image and the first reference image are binarized OCT images.
[0066] In this embodiment, for each second reference image, the image segmentation neural network model outputs the corresponding first reference image, and for each second reference image, the image segmentation neural network model outputs the corresponding first reference image.
[0067] For each image in the first baseline image and the first reference image, including a binarized cornea segment 31, a sclera segment 32 and an iris segment 33, the image segmentation neural network model can output the respective image data of the binarized cornea segment 31, the sclera segment 32 and the iris segment 33 through three different channels.
[0068] In this embodiment, when the second baseline image and the second reference image are binarized, for the pixel value of each pixel, when the pixel value is greater than the specified pixel value, the pixel value is assigned to vmax, and when the pixel value is less than or equal to the specified pixel value, the pixel value is assigned to vmin. For example, vmax can be 255, vmin can be 0, and the specified pixel value can be 127, but is not limited to this.
[0069] Step 102: register the first benchmark OCT image with the first reference OCT image.
[0070] In this embodiment, the first baseline OCT image and the first reference OCT image may be registered based on the global image. In other embodiments, the first baseline OCT image and the first reference OCT image may be registered based on the local image.
[0071] In this embodiment, for each image in the first baseline OCT image and the first reference OCT image, the image includes a corneal image and a scleral image, the corneal image includes a corneal fragment, and the scleral image includes two scleral fragments; the cornea includes a corneal fragment and two scleral fragments, and the two scleral fragments are respectively located on both sides of the corneal fragment.
[0072] In this embodiment, the first baseline OCT image and the first reference OCT image with the same image number (shooting order) are registered, that is, the first baseline OCT image and the first reference OCT image shot at the same shooting position are registered.
[0073] In this embodiment, the outer surface vertex coordinates of the corneal segment can be used for registration, such as Fig.15 As shown, step 102 may include the following steps:
[0074] Step 1501, determining the coordinates of a first vertex of the outer surface curve of the cornea segment in the first baseline OCT image and the coordinates of a second vertex of the outer surface curve of the cornea segment in the first reference OCT image.
[0075] In this step, the coordinates of the first vertex of the outer surface curve of the corneal segment in the first reference OCT image are calculated, which are recorded as (baseX, baseY), where baseX is the abscissa and baseY is the ordinate.
[0076] The coordinates of the second vertex of the outer surface curve of the cornea segment in the first sub-reference image are calculated and recorded as (flt1X, flt1Y), where flt1X is the abscissa and flt1Y is the ordinate.
[0077] The coordinates of the second vertex of the outer surface curve of the cornea segment in the second sub-reference image are calculated and recorded as (flt2X, flt2Y), where flt2X is the abscissa and flt2Y is the ordinate.
[0078] Step 1502 : determining an offset of the first reference OCT image relative to the first benchmark OCT image according to the coordinates of the first vertex and the coordinates of the second vertex.
[0079] In this embodiment, the offset of the first sub-reference image relative to the first reference OCT image is calculated based on the coordinates of the first vertex of the outer surface curve of the corneal fragment in the first reference OCT image and the coordinates of the second vertex of the outer surface curve of the corneal fragment in the first sub-reference image. The horizontal offset of the first sub-reference image relative to the first reference OCT image is flt1X-baseX, and the vertical offset is flt1Y-baseY.
[0080] The offset of the second sub-reference image relative to the first reference OCT image is calculated based on the coordinates of the first vertex of the outer surface curve of the corneal fragment in the first reference OCT image and the coordinates of the second vertex of the outer surface curve of the corneal fragment in the second sub-reference image. The horizontal offset of the second sub-reference image relative to the first reference OCT image is flt2X-baseX, and the vertical offset is flt2Y-baseY.
[0081] Step 1503: transform the first reference OCT image according to the root offset to obtain a transformed first reference OCT image.
[0082] In this embodiment, the first sub-reference image is transformed according to the offset of the first sub-reference image relative to the first baseline OCT image to obtain a transformed first sub-reference image, and the second sub-reference image is transformed according to the offset of the second sub-reference image relative to the first baseline OCT image to obtain a transformed second sub-reference image.
[0083] In other embodiments, the registration can be performed by calculating the mutual information of the images, such as Fig.16 As shown, step 102 may include the following steps:
[0084] Step 1601, perform N geometric transformations on the first reference OCT image to obtain N transformed intermediate images, where N is a positive integer.
[0085] In this embodiment, the geometric transformation matrix of the N-times geometric transformation may include an all-zero matrix, and N may be an integer greater than 1. The geometric transformation matrix of the N-times geometric transformation may be preset.
[0086] In this embodiment, the first sub-reference image is geometrically transformed N times according to N preset geometric transformation matrices to obtain N transformed intermediate images, and the second sub-reference image is geometrically transformed N times according to N preset geometric transformation matrices to obtain N transformed intermediate images.
[0087] The method of registering the first sub-reference image with the first benchmark OCT image is the same as the method of registering the second sub-reference image with the first benchmark OCT image. To avoid redundancy, the following is explained by taking the registration of the first sub-reference image with the first benchmark OCT image as an example.
[0088] Step 1602: For each intermediate image, calculate the mutual information between the first reference OCT image and the intermediate image to obtain N mutual information.
[0089] In this embodiment, for each intermediate image, the mutual information between the first reference OCT image and the intermediate image is calculated using the following calculation formula.
[0090] I(B,F)=H(B)+H(F)-H(B,F) (1)
[0091] Wherein, B is the first reference OCT image, F is the intermediate image, I(B,F) is the mutual information between the first reference OCT image and the intermediate image, H(B) is the entropy of the first reference OCT image, H(F) is the entropy of the intermediate image, and H(B,F) is the joint entropy of the first reference OCT image and the intermediate image.
[0092] in,
[0093] H(B)=-∑ i p i *log(p i ) (2)
[0094] H(R)=-∑ j p j *log(p j ) (3)
[0095] H(B,R)=-∑ i,j p i,j *log(p i,j ) (4)
[0096] Where i represents the gray value of the pixel in the first reference OCT image, p i represents the probability that the pixel with gray value i in the first reference OCT image accounts for all the pixels; j represents the gray value of the pixel in the intermediate image, p j represents the probability that the pixel with gray value j accounts for all the pixels in the intermediate image; p i,j It represents the probability that the pixel at the same position has a gray value of i in the first reference OCT image and a gray value of j in the intermediate image.
[0097] When the mutual information I(B,F) is the largest, it means that the first reference OCT image and the intermediate image are the most similar. Therefore, the target geometric transformation matrix can be found in an iterative way to maximize the mutual information between the intermediate image obtained after the geometric transformation of the first sub-reference image and the first reference OCT image. The geometric transformation matrix T best That is the target geometric transformation matrix.
[0098] Step 1603: determine the mutual information with the largest mutual information value from the N mutual information as the target mutual information.
[0099] In this step, the first sub-reference image is registered with the first benchmark OCT image, and the mutual information with the largest mutual information value is determined from the N calculated mutual information as the target mutual information.
[0100] Step 1604: determine a first target geometric transformation matrix according to the target mutual information and the corresponding relationship between the mutual information and the geometric transformation matrix.
[0101] In this embodiment, for registering the first sub-reference image with the first benchmark OCT image, the first target geometric transformation matrix may be determined according to the target mutual information and the correspondence between the mutual information and the geometric transformation matrix, wherein the N mutual information correspond one to one with the N geometric transformation matrices.
[0102] In other embodiments, step 1603 and step 1604 may be combined into one step. For example, the following calculation formula may be used to determine the first target geometric transformation matrix.
[0103]
[0104] Among them, T best is the first target geometric transformation matrix, and T(F) is the intermediate image obtained by geometrically transforming the first sub-reference image.
[0105] Step 1605 , performing geometric transformation on the first reference OCT image according to the first target geometric transformation matrix to obtain a transformed first reference OCT image.
[0106] In this embodiment, in order to align the first sub-reference image with the first benchmark OCT image, the first reference OCT image may be geometrically transformed according to the first target geometric transformation matrix to obtain a transformed first reference OCT image.
[0107] In other embodiments, when step 1603 and step 1604 are not combined into one step, after step 1603, the target intermediate image can be determined according to the target mutual information and the correspondence between the mutual information and the intermediate image as the transformed first reference OCT image.
[0108] The above describes the method of image registration. Before step 102, Fig.17 As shown, the following steps may also be included:
[0109] Step 1701: for each image in the first baseline OCT image and the first reference OCT image, determine the image deflection angle.
[0110] In this embodiment, for each of the first reference OCT image, the first sub-reference image, and the second sub-reference image, the image deflection angle is determined. Since the methods for determining the deflection angles of the first reference OCT image, the first sub-reference image, and the second sub-reference image are the same, to avoid redundancy, the method for determining the deflection angle of the first reference OCT image is used as an example for description.
[0111] In this implementation, if Fig.18As shown, the deflection angle of the first reference OCT image is the deflection angle of the line L1 connecting the chamber angle vertices D1 and D2 relative to the horizontal line L0, which is equal to the deflection angle of the central axis L4 of the corneal segment 31 relative to the central axis L5 of the first reference OCT image. The deflection angle is used to rotate the corneal segment, sclera segment and iris segment in the first reference OCT image as a whole, so that the deflection angle of the central axis L4 of the corneal segment relative to the central axis L5 of the first reference OCT image is 0.
[0112] In this embodiment, if Fig.19 As shown, step 1701 may include the following steps:
[0113] Step 1901, for the sclera segment located on either side of the cornea segment, determine the boundary point between the sclera segment and the cornea segment to obtain the vertex of the chamber angle.
[0114] like Fig.18 As shown, the first angle vertex D1 is the boundary point between the left sclera segment 321 and the cornea segment 31, and the second angle vertex D2 is the boundary point between the right sclera segment 322 and the cornea segment 31. The deflection angle of the angle vertex line L1 connecting the first angle vertex D1 and the second angle vertex D2 relative to the horizontal line L0 is the deflection angle θ of the first reference OCT image, the rotation center O is the midpoint of the angle vertex line L1, and the first fitting straight line L2 is obtained by linear simulation of at least part of the data points of the left iris segment 331, and the second fitting straight line L3 is obtained by linear simulation of at least part of the data points of the right iris segment 332. The deflection angle of the central axis L4 of the cornea segment 31 relative to the central axis L5 of the first reference OCT image is also the deflection angle θ of the first reference OCT image.
[0115] In this embodiment, if Fig. 20 As shown, step 1901 may include the following:
[0116] Step 2001: Acquire at least some data points of an iris segment that is adjacent to a sclera segment.
[0117] Step 2002: Perform straight line fitting on at least part of the data points to obtain a fitted straight line.
[0118] Step 2003, obtaining data points of the lower surfaces of the cornea segment and the sclera segment.
[0119] Step 2004: curve fitting is performed on the data points of the lower surfaces of the cornea segment and the sclera segment to obtain the lower surface curves of the cornea segment and the sclera segment.
[0120] Step 2005: Obtain the intersection point of the lower surface curve and the fitting straight line as the vertex of the chamber angle.
[0121] In this embodiment, for the sclera segment located on either side of the corneal segment, all data points of the iris segment adjacent to the sclera segment are obtained, and straight line fitting is performed on all data points of the iris segment to obtain a fitting straight line. The straight line fitting method is the least square method, the gradient descent method, the stochastic gradient descent method or the regularized linear regression method. The following takes obtaining the vertex D1 of the first angle as an example for detailed description.
[0122] like Fig.21 As shown, all data points of the left iris segment 331 adjacent to the left sclera segment 321 are obtained, and straight line fitting is performed on all data points of the left iris segment 331 to obtain a first fitting straight line L2. Data points of the lower surface of the cornea segment 31 and the sclera segment 32 are obtained, and polynomial curve fitting is performed on the data points of the lower surface of the cornea segment 31 and the sclera segment 32 to obtain a lower surface curve L6 of the cornea segment and the sclera segment, and the intersection of the lower surface curve L6 and the first fitting straight line L2 is obtained to obtain the first chamber angle vertex D1. Among them, the angle α between the tangent line L7 of the lower surface curve L6 passing through the first chamber angle vertex D1 and the first fitting straight line L2 is the chamber angle. Among them, the curve fitting method is not limited to polynomial curve fitting.
[0123] In another embodiment, for the sclera segment located on either side of the cornea segment, all data points of the surface of the iris segment adjacent to the sclera segment facing the cornea segment are obtained, and straight line fitting is performed on all data points of the surface of the iris segment facing the cornea segment to obtain a fitting straight line. The following still takes the acquisition of the first chamber angle vertex D1 as an example for detailed description.
[0124] like Fig. 22 As shown, all data points of the surface of the left iris segment 331 adjacent to the left sclera segment 321 facing the cornea segment 31 are obtained, that is, all data points of the upper surface of the left iris segment 331 are obtained, and all data points of the upper surface of the left iris segment 331 are fitted to obtain a first fitting straight line L2. Data points of the lower surface of the cornea segment 31 and the sclera segment 32 are obtained, and polynomial curve fitting is performed on the data points of the lower surface of the cornea segment 31 and the sclera segment 32 to obtain a lower surface curve L6 of the cornea and the sclera, and the intersection of the lower surface curve L6 and the first fitting straight line L2 is obtained to obtain the first chamber angle vertex D1. Among them, the angle α between the tangent line L7 of the lower surface curve L6 passing through the first chamber angle vertex D1 and the first fitting straight line L2 is the chamber angle.
[0125] In another embodiment, for the sclera segment located on either side of the cornea segment, data points of a specified proportion of the surface of the iris segment adjacent to the sclera segment facing the cornea segment are obtained, and the data points of the specified proportion are located on the side of the surface of the iris segment facing the cornea segment close to the vertex of the angle. Linear fitting is performed on the data points of the specified proportion of the surface of the iris segment facing the cornea segment to obtain a fitting straight line. The following still takes the acquisition of the first vertex of the angle D1 as an example for detailed description.
[0126] like Fig.23 As shown, the data points of the specified proportion of the surface of the left iris segment 331 adjacent to the left sclera segment 321 facing the cornea segment 31 are obtained, that is, the data points of the specified proportion of the upper surface of the left iris segment 331 are obtained, wherein the range of the specified proportion is 0.3 to 0.9, for example, the specified proportion can be 0.3, 0.4, 0.6, 0.8 or 0.9. The data points of the specified proportion of the upper surface of the left iris segment 331 are fitted linearly to obtain the first fitting straight line L2. The data points of the lower surface of the cornea segment 31 and the sclera segment 32 are obtained, and the data points of the lower surface of the cornea segment 31 and the sclera segment 32 are fitted with a polynomial curve to obtain the lower surface curve L6 of the cornea segment and the sclera segment, and the intersection of the lower surface curve L6 and the first fitting straight line L2 is obtained to obtain the first chamber angle vertex D1. The angle α between the tangent line L7 of the lower surface curve L6 passing through the first chamber angle vertex D1 and the first fitting straight line L2 is the chamber angle.
[0127] Step 1902, connecting two angle vertices located on both sides of the corneal segment to obtain an angle vertex connection line; wherein one angle vertex is the boundary point between the left sclera segment and the corneal segment, and the other angle vertex is the boundary point between the right sclera segment and the corneal segment.
[0128] like Fig.18 As shown, the two chamber angle vertices D1 and D2 located on both sides of the corneal segment are connected to obtain the chamber angle vertex line L1.
[0129] Step 1903, calculating the deflection angle of the line connecting the vertices of the chamber angle relative to the horizontal line, and obtaining the deflection angle of the image.
[0130] In this step, if Fig.18 As shown, the deflection angle of the angular vertex line L1 relative to the horizontal line L0 is calculated to obtain the deflection angle θ of the above-mentioned image.
[0131] Step 1702, obtaining the outer surface curve of the cornea and sclera in the image; the image includes a cornea image and a sclera image, the cornea image includes a cornea segment, and the sclera image includes two sclera segments; the cornea and sclera include a cornea segment and two sclera segments, and the two sclera segments are respectively located on both sides of the cornea segment.
[0132] In this step, the data points of the inner and outer surfaces of the cornea and sclera can be obtained based on the corneal image and the sclera image, and polynomial fitting can be performed based on the inner surface data points of the cornea and sclera to obtain the inner surface curve of the cornea and sclera, and polynomial fitting can be performed based on the outer surface data points of the cornea and sclera to obtain the outer surface curve of the cornea and sclera.
[0133] Step 1703, rotate the image and the outer surface curve of the cornea and sclera according to the deflection angle to obtain the rotated image and the outer surface curve of the cornea and sclera; in the rotated image, the line connecting the two angle vertices is parallel to the horizontal line, and the angle vertices are the dividing points between the sclera segment and the cornea segment on the inner surface curve of the cornea and sclera.
[0134] In this step, the image and the outer surface curve of the cornea and sclera are rotated according to the deflection angle of the image to obtain the rotated image and the outer surface curve of the cornea and sclera. In the rotated image, the line L1 connecting the two angle vertices D1 and D2 is parallel to the horizontal line L0, wherein the angle vertices are the dividing points between the sclera segment and the cornea segment on the inner surface curve of the cornea and sclera.
[0135] Step 103, fusing the registered first baseline OCT image and the first reference OCT image to obtain a fused image; the fused image includes a fused corneal image and a fused scleral image, the fused corneal image includes a fused corneal segment, and the fused scleral image includes a fused scleral segment.
[0136] In this embodiment, the average grayscale value of the pixel at the same position in the first reference OCT image, the first sub-reference image, and the second sub-reference image can be taken as the grayscale value at the same position in the fused image. That is, for the same position, the grayscale value of the pixel in the fused image can be calculated by the following formula:
[0137] p(i,j)=(p b (i,j)+p tf1 (i,j)+p tf2 (i,j)) / 3 (6)
[0138] Among them, p(i,j) is the gray value of the fused image at the pixel position (i,j), p b (i, j) is the grayscale value of the first reference OCT image at the pixel position (i, j), p tf1 (i, j) is the grayscale value of the first sub-reference image at the pixel position (i, j), p tf2 (i, j) is the grayscale value of the second sub-reference image at the pixel position (i, j).
[0139] like Fig.24As shown, the first reference OCT image 242, the first sub-reference image 241 and the second sub-reference image 243 are fused to obtain a fused image 244, wherein the first reference OCT image 242 is an image taken normally when neither the upper eyelid nor the lower eyelid is lifted, the first sub-reference image 241 is an image taken when the upper eyelid is lifted, and the second sub-reference image 243 is an image taken when the lower eyelid is lifted, and the fused image 244 is an image obtained by fusion of the first reference OCT image 242, the first sub-reference image 241 and the second sub-reference image 243.
[0140] from Fig.24 As can be seen in FIG. 2 , before image fusion, the left sclera segment (sclera segment on the lower eyelid side) in the first sub-reference image 241 is incomplete, the right sclera segment (sclera segment on the upper eyelid side) in the second sub-reference image 243 is incomplete, and the left sclera segment (sclera segment on the lower eyelid side) and the right sclera segment (sclera segment on the upper eyelid side) in the first reference OCT image 242 are both incomplete. After image fusion, the sclera on the upper eyelid side and the sclera on the lower eyelid side in the fused image 244 are both complete.
[0141] In other embodiments, the maximum grayscale value of the pixel at the same position in the first reference OCT image, the first sub-reference image, and the second sub-reference image may be taken as the grayscale value at the same position in the fused image. That is, for the same position, the grayscale value of the pixel in the fused image may be calculated by the following formula:
[0142] p(i,j)=max(p b (i,j)+p tf1 (i,j)+p tf2 (i,j)) (7)
[0143] Among them, p(i,j) is the gray value of the fused image at the pixel position (i,j), p b (i, j) is the grayscale value of the first reference OCT image at the pixel position (i, j), p tf1 (i, j) is the grayscale value of the first sub-reference image at the pixel position (i, j), p tf2 (i, j) is the grayscale value of the second sub-reference image at the pixel position (i, j).
[0144] like Fig.25As shown, the first reference OCT image 242, the first sub-reference image 241 and the second sub-reference image 243 are fused to obtain a fused image 251, wherein the first reference OCT image 242 is a normal image taken when the upper eyelid and the lower eyelid are not lifted, the first sub-reference image 241 is an image taken when the upper eyelid is lifted, and the second sub-reference image 243 is an image taken when the lower eyelid is lifted, and the fused image 251 is an image obtained by fusion of the first reference OCT image 242, the first sub-reference image 241 and the second sub-reference image 243.
[0145] from Fig.25 As can be seen in FIG, before image fusion, the left sclera segment (sclera segment on the lower eyelid side) in the first sub-reference image 241 is incomplete, the right sclera segment (sclera segment on the upper eyelid side) in the second sub-reference image 243 is incomplete, and the left sclera segment (sclera segment on the lower eyelid side) and the right sclera segment (sclera segment on the upper eyelid side) in the first reference OCT image 242 are both incomplete. After image fusion, the sclera on the upper eyelid side and the sclera on the lower eyelid side in the fused image 251 are both complete.
[0146] In this embodiment, the fused sclera fragment includes a fused sclera fragment on the upper eyelid side and a fused sclera fragment on the lower eyelid side. The fused sclera fragment is obtained by fusion of the reference cornea fragment, the first reference cornea fragment and the second reference cornea fragment. The fused sclera fragment on the upper eyelid side is obtained by fusion of the upper eyelid side reference sclera fragment, the first upper eyelid side reference sclera fragment and the second upper eyelid side reference sclera fragment. The fused sclera fragment on the lower eyelid side is obtained by fusion of the lower eyelid side reference sclera fragment, the first lower eyelid side reference sclera fragment and the second lower eyelid side reference sclera fragment.
[0147] Step 104, extracting the outer surface curve of the fused cornea and sclera from the fused image; the fused cornea and sclera include a fused cornea segment and a fused sclera segment.
[0148] In this embodiment, after the fused image is obtained, the outer surface curve of the fused cornea and sclera is extracted from the fused image to construct the cornea and sclera topography.
[0149] like Figure 26 to Figure 29 As shown, in this embodiment, for the same image number, Figure 3 to Figure 6 The first reference OCT image shown, Figure 7 to Figure 10 The first sub-reference image shown is Figure 11 to Figure 14 The second sub-reference image shown in FIG. 1 is fused to obtain Figure 26 to Figure 29 For example, Figure 3 The first reference OCT image with image number 01 is shown, Figure 7 The picture number shown is the first sub-reference picture 01, Fig.11 The second sub-reference image with the image number 01 shown in the figure is fused to obtain the following Fig.26 The image number shown is the fused image 01.
[0150] like Figure 26 to Figure 29 As shown, in this embodiment, the outer surface curves 261-2612 of the fused cornea and sclera are extracted from the fused image and can be used to construct a cornea and sclera topography map.
[0151] In this embodiment, since the first sub-reference image is an OCT image taken when the upper eyelid is lifted, the sclera on the upper eyelid side in the first sub-reference image is complete, and the second sub-reference image is an OCT image taken when the lower eyelid is pulled down, the sclera on the lower eyelid side in the second sub-reference image is complete, no matter whether the sclera on the upper eyelid side or the sclera on the lower eyelid side in the first reference image is incomplete, after the first reference OCT image is fused with the first reference OCT image (including the first sub-reference image and the second sub-reference image), the sclera on the upper eyelid side and the sclera on the lower eyelid side in the obtained fused image are both complete. Therefore, the technical solution in this application can complete the incomplete sclera in the corneoscleral image collected by the OCT device, thereby improving the accuracy of the constructed corneoscleral topography.
[0152] In this embodiment, no matter whether the sclera fragment in any of the 12 acquired first reference OCT images is incomplete, the sclera fragments in all the first reference OCT images are completed. In other embodiments, the first reference OCT image with incomplete corneosclera can be selected from the 12 acquired first reference OCT images, and only the corneosclera in the first reference OCT image with incomplete corneosclera is completed.
[0153] This application fits the peripheral corneal limbus and scleral topography by stitching, aligning, and completing algorithms of multiple sets of OCT images under conditions of relatively complex clinical procedures and relatively highest accuracy.
[0154] Fig.30 FIG. 1 is a flow chart of a method for acquiring a corneal scleral image according to another exemplary embodiment. The difference between this embodiment and the above embodiment is that in this embodiment, only the scleral fragment in the first reference OCT image with a defective scleral fragment is completed, which can reduce the amount of data processing and improve the efficiency of scleral completion. Fig.30 The method for acquiring the cornea-sclera image may include the following steps:
[0155] Step 3001: Acquire a first baseline image and a first reference image for the same eyeball that are across radially opposite sides of the eyeball.
[0156] This step is similar to the above-mentioned step 101 and will not be described again here.
[0157] Step 3002: for each image in the first reference OCT image, determine whether the cornea and sclera are intact.
[0158] In this embodiment, if Fig.31 As shown, step 3002 may include the following steps:
[0159] Step 3101, for each image in the first reference OCT image, determine the positions of two chamber angle vertices.
[0160] This step is similar to the above-mentioned step 1901 and will not be repeated here.
[0161] Step 3102, dividing the outer surface curve of the cornea and sclera into a left segment, a middle segment, and a right segment according to the horizontal coordinates of the positions of the two chamber angle vertices.
[0162] In this step, the outer surface curve of the cornea and sclera is first obtained, and then the outer surface curve of the cornea and sclera is divided into a left segment, a middle segment and a right segment according to the horizontal coordinates of the positions of the two angle vertices. The method for obtaining the outer surface curve of the cornea and sclera is similar to the above step 1702, and will not be repeated here.
[0163] like Figures 32-35 As shown, each first reference OCT image can be divided into a left area, a middle area and a right area according to the coordinates of the two chamber angle vertices in the X-axis direction. Correspondingly, the outer surface curve of the cornea and sclera in each first reference OCT image (not shown) is divided into a left segment, a middle segment and a right segment. The X-axis direction can be from left to right. Fig.32 The first baseline OCT image shows an intact sclera. Figures 33-35 The first baseline OCT image shows a scleral defect. Fig.33 The scleral fragment on the right side is missing due to being blocked. Fig.34 The scleral fragment on the left side is incomplete due to being blocked. Fig.35 The left and right scleral fragments in the middle are incomplete due to being obscured.
[0164] Step 3103, determine whether the left segment, the middle segment, and the right segment are complete.
[0165] In this step, for each of the left segment, the middle segment and the right segment of the outer surface curve of the corneosclera, it can be determined whether the segment is complete based on the acquired outer surface curve of the corneosclera.
[0166] In other embodiments, data points of the outer surfaces of the left sclera fragment, the cornea fragment and the right sclera fragment can be obtained according to the left area left, the middle area middle and the right area right, and polynomial curve fitting can be performed respectively to obtain the upper surface curves of the left sclera fragment, the cornea fragment and the right sclera fragment and the corresponding polynomial coefficients. Then, for each fragment of the left sclera fragment, the cornea fragment and the right sclera fragment, whether the segment is complete is determined according to the upper surface curve of the fragment and the corresponding polynomial coefficient.
[0167] Step 3104: When any one of the left segment, the middle segment, and the right segment is incomplete, it is determined that the corneosclera is incomplete.
[0168] In this step, when any one of the left segment, the middle segment, and the right segment is incomplete, the corresponding corneosclera is determined to be incomplete. For example, when the left segment is incomplete, the corresponding corneosclera is determined to be incomplete; when the right segment is incomplete, the corresponding corneosclera is determined to be incomplete; when both the left segment and the right segment are incomplete, the corresponding corneosclera is determined to be incomplete; when the middle segment is incomplete, the corresponding corneosclera is determined to be incomplete.
[0169] Step 3003: When the cornea and sclera are incomplete, an incomplete mark is added to the image mark of the image.
[0170] In this embodiment, each image in the first baseline OCT image and the first reference OCT image has an image identifier, and the image identifier includes shooting order information.
[0171] In this step, when the cornea and sclera in the first reference OCT image are incomplete, an incomplete mark is added to the image mark in the first reference OCT image.
[0172] Step 3004: register the first benchmark OCT image with the first reference OCT image.
[0173] This step is similar to the above-mentioned step 102 and will not be described again here.
[0174] Step 3005: Select the first reference OCT image with incomplete cornea and sclera from the registered first reference OCT images according to the defect mark.
[0175] In this step, when the image identifier of the first reference OCT image includes a defect identifier, the first reference OCT image with an incomplete cornea and sclera may be selected from the registered first reference OCT image.
[0176] Step 3006: for each first reference OCT image with incomplete cornea and sclera, select a first reference OCT image with the same shooting order from the registered first reference OCT images according to the shooting order information.
[0177] In this step, for each first reference OCT image with incomplete cornea and sclera, a first reference OCT image with the same shooting order is selected from the first reference OCT images after registration according to the shooting order information. For example, if the shooting order of the first reference OCT image with incomplete cornea and sclera is 03, then the first reference OCT image with the shooting order of 03 is selected from the first reference OCT images after registration to be fused with the first reference OCT image with the shooting order of 03.
[0178] Step 3007: Fusing the first benchmark OCT image with incomplete cornea and sclera with the first reference OCT image with the same shooting order to obtain a fused image.
[0179] In this step, for each image in the first reference OCT image of the incomplete cornea and sclera, it is fused with the first reference OCT image with the same shooting order to obtain a fused image. For example, the shooting order of the first reference OCT image of the incomplete cornea and sclera is 03, and it is fused with the first reference OCT image with the shooting order of 03.
[0180] Step 3008: extract the outer surface curve of the fused cornea and sclera from the fused image.
[0181] This step is similar to the above-mentioned step 104 and will not be described again here.
[0182] In this embodiment, a first reference OCT image with incomplete corneosclera is first selected from the acquired first reference OCT images, and then only the corneosclera in the first reference OCT image with incomplete corneosclera is completed, so that the amount of data processing can be reduced and the efficiency can be improved.
[0183] In this embodiment, when any one of the left sclera fragment, cornea fragment, and right sclera fragment in the first reference OCT image is incomplete, the cornea is marked as incomplete, and then it is fused with the first reference OCT image with the same shooting order. In other embodiments, the incomplete fragments of the left sclera fragment, cornea fragment, and right sclera fragment in the first reference OCT image can be marked, and then only the fragment is completed, which can further reduce the amount of data processing and improve efficiency. Specifically, the implementation method is as follows:
[0184] For each image in the first reference OCT image, determine whether the left sclera segment, the corneal segment, and the right sclera segment in the corneosclera are complete. When any segment is incomplete, add a segment identifier to the image identifier of the image. The segment identifier in the image identifier of the first reference OCT image is used to indicate that the corresponding segment is incomplete. The image identifier of the first reference OCT image also includes shooting order information, and the image identifier of the first reference OCT image also includes shooting order information and segment identifiers. The segment identifier in the image identifier of the first reference OCT image is used to indicate that the corresponding segment is complete. For example, the image identifier of the first sub-reference image also includes shooting order information and a segment identifier of the right sclera segment. Then, according to the fragment identifier, the first reference OCT image with incomplete cornea and sclera is selected from the registered first reference OCT image. Then, for each first reference OCT image with incomplete cornea and sclera, according to the shooting order information and the fragment identifier, the first reference OCT image with the same shooting order and the same fragment identifier is selected from the registered first reference OCT image. Then, the first reference OCT image with incomplete cornea and sclera is fused with the first reference OCT image with the same shooting order and the same fragment identifier to obtain a fused image.
[0185] Another exemplary embodiment of the present application also provides a method for acquiring a corneal scleral image. Different from the above-mentioned embodiment, in this embodiment, the first baseline OCT image and the first reference OCT image are registered based on the local image. Fig.36 As shown, the above step 102 may include the following steps:
[0186] Step 3601, determining a first target area in a first reference OCT image, wherein the first target area includes a first designated image.
[0187] In this embodiment, when registering the first benchmark OCT image with the first reference OCT image, the first target area in the first benchmark OCT image is first screened out according to the first designated image. The first designated image includes a corneal segment, a scleral segment, or a corneosclera. For example, the first designated image includes the corneosclera, and the area where the corneosclera is located in the first benchmark OCT image is determined as the first target area through image recognition, or the minimum circumscribed rectangular area of the corneosclera in the first benchmark OCT image is determined as the first target area.
[0188] Step 3602, determine a candidate area in the first reference OCT image, the candidate area includes the second designated image, the second designated image and the first designated image each include a corneal fragment, a scleral fragment or a cornea-sclera; the area of the candidate area is larger than the area of the first target area.
[0189] In this embodiment, a candidate region in the first reference OCT image is determined based on the first designated image and the first target region, the candidate region includes the second designated image, and the second designated image includes a corneal segment, a scleral segment, or a corneosclera. The image features of the second designated image are the same as the image features of the first designated image, for example, the first designated image includes the corneosclera, and the second designated image also includes the corneosclera. The area of the candidate region is larger than the area of the first target region, so that a second target region matching the image features of the first target region can be selected from the candidate region.
[0190] Step 3603: Select a second target region that matches the image features of the first target region from the candidate regions using a specified method.
[0191] In this embodiment, a sliding window algorithm may be used to select a second target region matching the image features of the first target region from the candidate regions. In the iterative process of selecting the second target region matching the image features of the first target region from the candidate regions, traversal may be performed in the form of a sliding window.
[0192] In order to increase the accuracy and calculation speed of image registration, the iterative process not only considers the translation transformation (the translation range is [-100, +100] pixels in the horizontal direction and [-100, +100] pixels in the vertical direction, with a step size of 1 pixel), but also adds appropriate angle transformation (with the center of the registration image (candidate area) as the center, the rotation angle is [-5°, +5°], and the step size is 1°). If the range is exceeded, it can be considered that the difference between the two tomograms is too large.
[0193] In other embodiments, a gradient descent algorithm may be used to select a second target region that matches the image features of the first target region from the candidate regions. In the iterative process of selecting the second target region that matches the image features of the first target region from the candidate regions, the traversal may be performed in the form of gradient descent. The form of gradient descent is as follows:
[0194]
[0195] Among them, T is the transformation matrix, λ is the learning rate, and its value range is generally (0,1], is the derivative of the mutual information between the first target region and the candidate region with respect to T. The learning rate can be a fixed value in the interval (0,1] or a value that changes according to a certain rule.
[0196] Step 3604, aligning the first target area and the second target area to obtain a second target geometric transformation matrix.
[0197] In this step, the first target area and the second target area are registered to obtain a second target geometric transformation matrix, which is used to register the first benchmark OCT image and the first reference OCT image.
[0198] Step 3605: align the first benchmark OCT image with the first reference OCT image according to the second target geometric transformation matrix.
[0199] In this step, the first benchmark OCT image is registered with the first reference OCT image based on the second target geometric transformation matrix.
[0200] In this embodiment, a geometric transformation matrix for registering the first benchmark OCT image with the first reference OCT image is determined based on the local image, which can reduce the amount of data processing and improve efficiency.
[0201] Another exemplary embodiment of the present application also provides a method for acquiring a corneal sclera image. Fig.37 As shown, the method for acquiring the cornea-sclera image may include the following steps:
[0202] Step 3701, acquiring a second reference image.
[0203] In this step, the imaging device acquires at least two second reference images of the same eyeball that span radially opposite sides of the eyeball. This step is similar to the above step 201 and will not be described in detail here.
[0204] Step 3702, obtaining a second reference image.
[0205] In this step, the imaging device acquires at least two second reference images for the same eyeball that span radially opposite sides of the eyeball. This step is similar to the above step 201 and will not be described in detail here.
[0206] Step 3703, input the image segmentation neural network model.
[0207] In this step, the second benchmark image and the second reference image captured by the imaging device can be input into the trained image segmentation neural network model to perform image segmentation. This step is similar to the above step 202 and will not be described in detail here.
[0208] Step 3704, obtaining at least two first benchmark images and a first reference image.
[0209] In this step, the image segmentation neural network model outputs at least two first benchmark images and a first reference image, thereby obtaining at least two first benchmark images and a first reference image. This step is similar to the above-mentioned step 203 and will not be described in detail here.
[0210] Step 3705, obtaining a fitting straight line of the iris segment.
[0211] In this step, for each iris segment in each of the at least two first benchmark images and the first reference image, at least some data points of the iris segment are obtained, and straight line fitting is performed on at least some of the data points to obtain a fitting straight line.
[0212] This step is similar to the above-mentioned steps 2001 to 2002 and will not be repeated here.
[0213] Step 3706, obtaining data points of the cornea segment and the sclera segment.
[0214] In this step, data points of the cornea segment and the sclera segment are acquired for each of the at least two first benchmark images and the first reference image.
[0215] Step 3707, fitting the inner surface curve of the cornea and sclera.
[0216] In this step, for each of the at least two first benchmark images and the first reference image, the inner surface curve of the cornea and sclera is fitted according to the data points of the cornea segment and the sclera segment.
[0217] Step 3708, fitting the outer surface curve of the cornea and sclera.
[0218] In this step, for each of the at least two first benchmark images and the first reference image, an outer surface curve of the cornea and sclera is fitted according to data points of the cornea segment and the sclera segment.
[0219] Step 3709, obtaining the vertex of the angle of the chamber.
[0220] This step is similar to the above-mentioned step 2005 and will not be repeated here.
[0221] Step 3710, determine the deflection angle of the image.
[0222] This step is similar to the above-mentioned steps 1902 to 1903 and will not be repeated here.
[0223] Step 3711: rotate the first reference image according to the deflection angle to obtain the rotated first reference image.
[0224] This step is similar to the above-mentioned step 1703 and will not be repeated here.
[0225] Step 3712: Rotate the first reference image according to the deflection angle to obtain the rotated first reference image.
[0226] This step is similar to the above-mentioned step 1703 and will not be repeated here.
[0227] Step 3713, rotating the outer surface curve of the cornea and sclera according to the deflection angle, and obtaining the outer surface curve of the cornea and sclera after rotation.
[0228] This step is similar to the above-mentioned step 1703 and will not be repeated here.
[0229] Step 3714, image registration.
[0230] In this step, image registration is performed on the rotated first baseline OCT image and the first reference OCT image.
[0231] This step is similar to the above-mentioned step 102 and will not be described again here.
[0232] Step 3715, image fusion.
[0233] This step is similar to the above-mentioned step 103 and will not be described again here.
[0234] Step 3716, extract the outer surface curve of the cornea and sclera.
[0235] This step is similar to the above-mentioned step 104 and will not be described again here.
[0236] In this embodiment, since the first sub-reference image is an OCT image taken when the upper eyelid is lifted, the sclera on the upper eyelid side in the first sub-reference image is complete, and the second sub-reference image is an OCT image taken when the lower eyelid is pulled down, the sclera on the lower eyelid side in the second sub-reference image is complete, no matter whether the sclera on the upper eyelid side or the sclera on the lower eyelid side in the first reference image is incomplete, after the first reference OCT image is fused with the first reference OCT image (including the first sub-reference image and the second sub-reference image), the sclera on the upper eyelid side and the sclera on the lower eyelid side in the obtained fused image are both complete. Therefore, the technical solution in this application can complete the incomplete sclera in the corneoscleral image collected by the OCT device, thereby improving the accuracy of the constructed corneoscleral topography.
[0237] Fig.38 FIG. 1 is a block diagram of a device for acquiring a corneoscleral image according to an exemplary embodiment. Fig.38 As shown, in this embodiment, the device for acquiring the corneal sclera image includes:
[0238] A first acquisition module 381 is configured to acquire a first baseline image and a first reference image across radially opposite sides of the same eyeball, wherein the first baseline image is an OCT image taken when the upper eyelid is not lifted and the lower eyelid is not pulled down, and the first reference image includes a first sub-reference image and a second sub-reference image, wherein the first sub-reference image is an OCT image taken when the upper eyelid is lifted, and the second sub-reference image is an OCT image taken when the lower eyelid is pulled down;
[0239] a registration module 382 configured to register the first baseline OCT image with the first reference OCT image;
[0240] The fusion module 383 is configured to fuse the registered first baseline OCT image and the first reference OCT image to obtain a fused image; the fused image includes a fused corneal image and a fused scleral image, the fused corneal image includes a fused corneal segment, and the fused scleral image includes a fused scleral segment;
[0241] The extraction module 384 is configured to extract the outer surface curve of the fused cornea and sclera from the fused image; the fused cornea and sclera include a fused cornea segment and a fused sclera segment.
[0242] An embodiment of the present application also proposes an electronic device, including a processor and a memory; the memory is used to store a computer program executable by the processor; the processor is used to execute the computer program in the memory to implement the method for acquiring corneal scleral images of any of the above embodiments.
[0243] The embodiments of the present application further provide a computer-readable storage medium. When the executable computer program in the storage medium is executed by a processor, the method for acquiring the corneal scleral image of any of the above embodiments can be implemented.
[0244] An embodiment of the present application further proposes a computer program product, including a computer program. When the computer program is executed by a processor, the method for acquiring a corneal scleral image of any of the above embodiments can be implemented.
[0245] Regarding the device in the above embodiment, the specific manner in which the processor performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.
[0246] Fig.39 900 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 900 may be provided as a server. Fig.39 The device 900 includes a processing component 922, which further includes one or more processors, and a memory resource represented by a memory 932 for storing instructions, such as an application, that can be executed by the processing component 922. The application stored in the memory 932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 922 is configured to execute the instructions to perform the above-mentioned method for acquiring a corneoscleral image.
[0247] The device 900 may also include a power component 926 configured to perform power management of the device 900, a wired or wireless network interface 950 configured to connect the device 900 to a network, and an input / output (I / O) interface 958. The device 900 may operate based on an operating system stored in the memory 932, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™, or the like.
[0248] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 932 including instructions, which can be executed by the processing component 922 of the device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0249] In the present invention, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance. The term "plurality" refers to two or more than two, unless otherwise clearly defined.
[0250] The above description of the embodiments is to facilitate those of ordinary skill in the art to understand and apply the present application. It is obvious that those familiar with the art can easily make various modifications to these embodiments and apply the general principles described herein to other embodiments without having to pay creative labor. Therefore, the present application is not limited to the embodiments herein, and improvements and modifications made by those skilled in the art based on the contents disclosed in the present application without departing from the scope and spirit of the present application are within the scope of the present application.
Claims
1. A method for acquiring a corneal sclera image, It is characterized in that include: Acquire a first benchmark image and a first reference image across radially opposite sides of the eyeball for the same eyeball, wherein the first benchmark image is an OCT image taken when the upper eyelid is not lifted and the lower eyelid is not pulled down, and the first reference image includes a first sub-reference image and a second sub-reference image, wherein the first sub-reference image is an OCT image taken when the upper eyelid is lifted, and the second sub-reference image is an OCT image taken when the lower eyelid is pulled down; registering the first benchmark OCT image with the first reference OCT image; fusing the first benchmark OCT image after registration with the first reference OCT image to obtain a fused image; the fused image includes a fused corneal image and a fused scleral image, the fused corneal image includes a fused corneal segment, and the fused scleral image includes a fused scleral segment; extracting the outer surface curve of the fused cornea and sclera from the fused image; The fused cornea and sclera include the fused cornea segment and the fused sclera segment.
2. The method for acquiring a corneal sclera image according to claim 1, It is characterized in that The first reference image includes a first reference cornea image and a first reference sclera image; the first reference cornea image includes a reference cornea segment, and the first reference sclera image includes a reference sclera segment; The reference sclera fragment includes an upper eyelid side reference sclera fragment and a lower eyelid side reference sclera fragment, and at least one of the upper eyelid side reference sclera fragment and the lower eyelid side reference sclera fragment is a defective sclera fragment; the first sub-reference image includes a first reference corneal image and a first reference sclera image; the first reference corneal image includes a first reference corneal fragment, the first reference sclera image includes a first reference sclera fragment, the first reference sclera fragment includes a first upper eyelid side reference sclera fragment and a first lower eyelid side reference sclera fragment, and the first upper eyelid side reference sclera fragment is a complete sclera fragment; the second sub-reference image includes a second reference corneal image and a second reference sclera image; the second reference corneal image includes a second reference corneal fragment, the second reference sclera image includes a second reference sclera fragment, the second reference sclera fragment includes a second upper eyelid side reference sclera fragment and a second lower eyelid side reference sclera fragment, and the second lower eyelid side reference sclera fragment is a complete sclera fragment; The fused sclera fragment includes a fused sclera fragment on the upper eyelid side and a fused sclera fragment on the lower eyelid side. The fused sclera fragment is obtained by fusion of the benchmark cornea fragment, the first reference cornea fragment and the second reference cornea fragment. The upper eyelid side fused sclera fragment is obtained by fusion of the upper eyelid side benchmark sclera fragment, the first upper eyelid side reference sclera fragment and the second upper eyelid side reference sclera fragment. The lower eyelid side fused sclera fragment is obtained by fusion of the lower eyelid side benchmark sclera fragment, the first lower eyelid side reference sclera fragment and the second lower eyelid side reference sclera fragment.
3. The method for acquiring a corneal sclera image according to claim 1, It is characterized in that Before registering the first benchmark OCT image with the first reference OCT image, the method further includes: For each of the first baseline OCT image and the first reference OCT image, determining a deflection angle of the image; Acquire an outer surface curve of the cornea and sclera in the image; the image includes a cornea image and a sclera image, the cornea image includes a cornea segment, and the sclera image includes two sclera segments; the cornea and sclera include the cornea segment and two sclera segments, and the two sclera segments are respectively located on both sides of the cornea segment; The image and the outer surface curve of the cornea and sclera are rotated according to the deflection angle to obtain the rotated image and the outer surface curve of the cornea and sclera; in the rotated image, the line connecting the two angle vertices is parallel to the horizontal line, and the angle vertices are the dividing points between the sclera segment and the cornea segment on the inner surface curve of the cornea and sclera.
4. The method for acquiring a corneal sclera image according to claim 3, It is characterized in that Each of the first baseline OCT image and the first reference OCT image has an image identifier, and the image identifier includes shooting order information; Before fusing the registered first benchmark OCT image with the first reference OCT image to obtain a fused image, the method further includes: For each image in the first reference OCT image, determining whether the cornea and sclera are intact; When the cornea and sclera are incomplete, adding an incomplete mark to the image mark of the image; The step of fusing the registered first benchmark OCT image with the first reference OCT image to obtain a fused image includes: According to the defect mark, selecting a first reference OCT image with an incomplete cornea and sclera from the registered first reference OCT image; For each first reference OCT image with incomplete cornea and sclera, selecting a first reference OCT image with the same shooting order from the first reference OCT images after registration according to the shooting order information; The first benchmark OCT image with incomplete cornea and sclera is fused with the first reference OCT image with the same shooting order to obtain the fused image.
5. The method for acquiring a corneal sclera image according to claim 4, It is characterized in that The step of determining, for each image in the first reference OCT image, whether the cornea and sclera are intact comprises: For each of the first reference OCT images, determining positions of two chamber angle vertices; Dividing the outer surface curve of the cornea and sclera into a left section, a middle section and a right section according to the abscissas of the positions of the two chamber angle vertices; Determining whether the left section, the middle section, and the right section are complete; When any one of the left segment, the middle segment, and the right segment is incomplete, it is determined that the corneosclera is incomplete.
6. The method for acquiring a corneal sclera image according to claim 1, It is characterized in that For each of the first benchmark OCT image and the first reference OCT image, the image includes a cornea image and a sclera image, the cornea image includes a cornea segment, and the sclera image includes two sclera segments; the cornea includes the cornea segment and two sclera segments, and the two sclera segments are respectively located on both sides of the cornea segment; The registering the first benchmark OCT image with the first reference OCT image includes: determining the coordinates of a first vertex of the outer surface curve of the corneal segment in the first baseline OCT image and the coordinates of a second vertex of the outer surface curve of the corneal segment in the first reference OCT image; determining an offset of the first reference OCT image relative to the first benchmark OCT image according to the coordinates of the first vertex and the coordinates of the second vertex; The first reference OCT image is transformed according to the offset to obtain a transformed first reference OCT image.
7. The method for acquiring a corneal sclera image according to claim 1, It is characterized in that The registering the first benchmark OCT image with the first reference OCT image includes: Performing N geometric transformations on the first reference OCT image to obtain N transformed intermediate images, where N is a positive integer; For each intermediate image, calculating the mutual information between the first reference OCT image and the intermediate image to obtain N mutual information; Determine the mutual information with the largest mutual information value from the N mutual information as the target mutual information; Determining a first target geometric transformation matrix according to the target mutual information and the corresponding relationship between the mutual information and the geometric transformation matrix; The first reference OCT image is geometrically transformed according to the first target geometric transformation matrix to obtain a transformed first reference OCT image.
8. The method for acquiring a corneal sclera image according to claim 1, It is characterized in that The registering the first benchmark OCT image with the first reference OCT image includes: Determine a first target area in the first reference OCT image, wherein the first target area includes a first designated image; Determine a candidate region in the first reference OCT image, wherein the candidate region includes the second designated image, and the second designated image and the first designated image each include a corneal segment, a scleral segment, or a corneosclera; and the area of the candidate region is larger than the area of the first target region; Selecting a second target area that matches the image feature of the first target area from the candidate areas by a specified method; Registering the first target area with the second target area to obtain a second target geometric transformation matrix; The first benchmark OCT image is registered with the first reference OCT image according to the second target geometric transformation matrix.
9. The method for acquiring a corneal sclera image according to claim 8, It is characterized in that The specified method is to adopt a sliding window algorithm or a gradient descent algorithm.
10. A device for acquiring corneal and scleral images, It is characterized in that include: a first acquisition module, configured to acquire a first benchmark image and a first reference image across radially opposite sides of the same eyeball, wherein the first benchmark image is an OCT image taken when the upper eyelid is not lifted and the lower eyelid is not pulled down, and the first reference image includes a first sub-reference image and a second sub-reference image, wherein the first sub-reference image is an OCT image taken when the upper eyelid is lifted, and the second sub-reference image is an OCT image taken when the lower eyelid is pulled down; a registration module, configured to register the first benchmark OCT image with the first reference OCT image; a fusion module, configured to fuse the registered first benchmark OCT image with the first reference OCT image to obtain a fused image; The fused image includes a fused cornea image and a fused sclera image, the fused cornea image includes a fused cornea segment, and the fused sclera image includes a fused sclera segment; An extraction module, configured to extract an outer surface curve of the fused cornea and sclera from the fused image; The fused cornea and sclera include the fused cornea segment and the fused sclera segment.
Citation Information
Patent Citations
Individual assessment method and design method for adaptability of sclera lens based on guiding of OCT image modeling
CN111820862A
Image processing method and device, model training method and device and computer equipment
CN115410056A
Method and device for acquiring keratosclera image
CN116958118A
Sclera lens fitting method and equipment
CN118115669A
Iris authentication apparatus
US20070025598A1
