Image processing device, image processing method, and program
The image processing device and method address the variability in subjective opacity assessments by correcting illumination unevenness and binarizing transillumination images, enabling accurate and consistent opacity determination of the crystalline lens.
Patent Information
- Application Number
- JP2023069351
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-20
- Publication Date
- 2024-10-31
- Estimated Expiration
- 2043-04-20
AI Technical Summary
Conventional methods for determining crystalline lens opacity rely on subjective evaluation, leading to variability in assessment based on the evaluator's experience.
An image processing device and method that includes acquiring a transillumination image, correcting for illumination unevenness, binarizing pixel values, and performing flat correction to enhance the clarity and accuracy of opacity determination.
Facilitates objective and consistent determination of crystalline lens opacity by reducing illumination unevenness and enhancing image clarity, thereby improving the reliability of opacity assessment.
Smart Images

Figure 2024155015000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an image processing device, an image processing method, and a program for processing a transillumination image of a crystalline lens. [Background technology]
[0002] Cataract testing includes a test for determining the presence or absence and the degree of opacity of the crystalline lens based on a transillumination image of the crystalline lens. [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] Kita Mai, "Age-based indications for cataract surgery", Journal of the Japanese Society for Cataract Research, 2017, Vol. 29, p. 56-61 Summary of the Invention [Problem to be solved by the invention]
[0004] Conventionally, the determination of crystalline lens opacity is performed by subjective evaluation by a doctor or the like, which results in a problem of differences in evaluation (opacity determination) depending on the experience of the evaluator.
[0005] The present disclosure has been made in consideration of the above problems, and has an objective of providing an image processing device, an image processing method, or a program that can obtain an image for determining crystalline lens opacity that makes it easier to determine crystalline lens opacity. [Means for solving the problem]
[0006] The image processing device of the present disclosure includes: An acquisition unit for acquiring a transillumination image of a crystalline lens; a correction unit that performs correction to reduce illumination unevenness in the transillumination image; a binarization processing unit that binarizes pixel values of the corrected transillumination image to obtain a binary image for determining crystalline lens opacity; Equipped with.
[0007] The image processing method of the present disclosure includes: acquiring a transillumination image of the crystalline lens; a correction step of performing a correction to reduce illumination unevenness in the transillumination image; a binarization process step of binarizing pixel values of the corrected transillumination image to obtain a binary image for determining crystalline lens opacity; Equipped with.
[0008] The program of the present disclosure is acquiring a transillumination image of the crystalline lens; a correction step of performing a correction to reduce illumination unevenness in the transillumination image; a binarization process step of binarizing pixel values of the corrected transillumination image to obtain a binary image for determining crystalline lens opacity; to be executed by the computer.
[0009] According to the image processing device, image processing method, or program disclosed herein, the illumination unevenness in the trans-illumination image is reduced and the pixel values of the trans-illumination image are binarized, thereby making it possible to obtain an image for determining crystalline lens opacity that makes it easier to determine crystalline lens opacity. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a configuration diagram of an image processing system. [Diagram 2] 13 is a flowchart of a lens opacity determination process executed by a CPU of the image processing device. [Diagram 3] 3 is a flowchart of a process subsequent to the process of FIG. 2. [Figure 4] 1 is an example of an original transillumination image of a crystalline lens. [Diagram 5] This is the image after applying a median filter to the image in FIG. [Figure 6] This is a binarized image in which the lens area is shown in white and the other areas are shown in black. [Figure 7] 7 is a lens mask image after cropping out the excess black regions from the image in FIG. 6. [Figure 8]10 is an example of a trans-illumination image of a crystalline lens region extracted in step S3 of FIG. 2, which is a trans-illumination image before flat correction. [Figure 9] FIG. 13 is a diagram showing changes in luminance with respect to the X coordinate in each image before and after flat correction processing. [Figure 10] 3 is a detailed flowchart of the flat correction process in step S4 of FIG. 2. [Figure 11] FIG. 13 is a diagram for explaining a method for creating an average filter, showing pixel values of an original image and the squares of an average filter, with values being set for some of the squares. [Figure 12] FIG. 12 is a diagram for explaining a method for creating an average filter, showing pixel values of an original image and the squares of an average filter, and showing how values are set in some of the squares following FIG. 11. [Figure 13] FIG. 13 is a diagram illustrating dividing pixel values of an original image by a mean filter. [Figure 14] 13 is a diagram illustrating multiplication of a value obtained by dividing a pixel value of an original image by an average filter and an average luminance of the original image. FIG. [Figure 15] 13 is an example of a crystalline lens transillumination image after flattening processing. [Figure 16] 11 is a diagram illustrating an example of a trans-illumination image after flat correction processing and a binarized image of the trans-illumination image. FIG. [Figure 17] This image is obtained by performing an exclusive OR operation on the image on the right in FIG. 16 and the mask image in FIG. [Figure 18] FIG. 1 is a diagram showing the central and peripheral regions of the pupil (crystalline lens). [Figure 19] 1 is a mask image of the central pupil region. [Figure 20] FIG. 13 is a diagram showing opacity in the central region of the pupil. [Figure 21] FIG. 13 is a diagram for explaining the algorithm for detecting cortical opacities, showing the center of a target opacity region and an approximate straight line in a binarized image of lens opacity. [Figure 22] 4 is a flowchart showing detailed processing of the cortical opacity extraction processing in step S11 of FIG. 3. [Figure 23] This is a mask image of the area surrounding the pupil (crystalline lens). [Figure 24] FIG. 13 is a diagram illustrating an example of an opacified region corresponding to cortical opacity. [Diagram 25] FIG. 13 is a diagram illustrating an example of an opacified region that does not correspond to a cortical opacity. [Figure 26] 4 is a flowchart showing detailed processing of the cortical evaluation processing in step S12 of FIG. 3. [Figure 27] 1 is an example of an image of extracted cortical opacity. [Figure 28] FIG. 13 is a diagram showing how the angle of cortical opacity is calculated. [Figure 29] 4 is a detailed flowchart of the posterior subcapsular opacity extraction process in step S13 of FIG. 3. [Diagram 30] FIG. 13 is a diagram showing an example of an opacity image obtained in step S5, illustrating how the distance between the center of each opacity region and the center of the crystalline lens is calculated. [Diagram 31] 4 is an example of a transillumination image of a posterior subcapsular opacity extracted in step 13 of FIG. 3. [Diagram 32] 1 shows an example of an original image of a transillumination image of a crystalline lens, a binarized image without flat correction processing, and a binarized image with flat correction processing. [Diagram 33] 1 shows an example of an original image of a transillumination image of a crystalline lens, a binarized image without flat correction processing, and a binarized image with flat correction processing. [Diagram 34] 1 shows an example of an original image of a transillumination image of a crystalline lens, a binarized image without flat correction processing, and a binarized image with flat correction processing. [Diagram 35] 1 shows an example of an original image of a transillumination image of a crystalline lens, a binarized image without flat correction processing, and a binarized image with flat correction processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, an embodiment of the present disclosure will be described with reference to the drawings. Fig. 1 shows an image processing system 1 (hereinafter, may be simply referred to as a system) of this embodiment. System 1 is a system (lens opacity determination system) that determines opacity of a lens based on a transillumination image of the lens in order to examine for cataracts or to determine a method of cataract surgery for an eye diagnosed with cataracts.
[0012] The system 1 includes an image capturing device 2, a display unit 3, and an image processing device 4. The image capturing device 2 is, for example, a slit lamp microscope, and is a device that captures a transillumination image of an eyeball including a crystalline lens that is a target for opacity judgment. The image capturing device 2 irradiates the eyeball with light, and illuminates the crystalline lens with the reflected light formed by the irradiated light being reflected by the retina (fundus) of the eyeball, and captures a front image of the eyeball (crystalline lens) in that illuminated state.
[0013] The photographing device 2 outputs, for example, a grayscale trans-illumination image. The number of gradations in this trans-illumination image is, for example, 256 gradations. In a 256-gradation grayscale image, each pixel value is given a value between "0" and "255." A pixel value of "0" indicates black, a pixel value of "255" indicates white, and pixel values of "1" to "254" indicate grays with different shades (light and dark). The higher the pixel value, the closer the gray is to white. Also, the higher the pixel value, the higher the brightness. The trans-illumination image photographed by the photographing device 2 is sent to an image processing device 4.
[0014] The display unit 3 displays the transillumination image captured by the imaging device 2, the image processed by the image processing device 4, etc. The display unit 3 is, for example, a liquid crystal display, but may be a display of another type, such as a plasma display or an organic EL display.
[0015] The image processing device 4 is a part that is responsible for the overall control of the system 1. The image processing device 4 has the same configuration as a normal computer, that is, it is composed of a CPU 5, RAM, ROM, and the like.
[0016] The image processing device 4 includes a storage unit 6. The storage unit 6 is a non-volatile storage unit, and is a non-transitory tangible storage medium that non-temporarily stores computer-readable programs and data. The non-transitory tangible storage medium is realized by a semiconductor memory or a magnetic disk. The storage unit 6 may be configured as an internal storage unit built into the image processing device 4, or may be configured as an external storage unit external to the image processing device 4. The storage unit 6 stores various data such as a program 7 for processing executed by the CPU 5.
[0017] The process executed by the CPU 5 of the image processing device 4 based on the program 7 will be described in detail below. Figs. 2 and 3 are flow charts showing an example of the process. The process shown in Figs. 2 and 3 is a process for determining opacity of the crystalline lens. When the process shown in Fig. 2 is started, the CPU 5 acquires a transillumination image captured by the photographing device 2 (S1). Fig. 4 shows an example of the transillumination image acquired in step S1. The transillumination image acquired in step S1 (the image shown in Fig. 4) includes a circular pupil region (crystalline lens region) 101 and its surrounding region (iris region) 102. The CPU 5 executing step S1 corresponds to the acquisition section of the present disclosure. Step S1 corresponds to the acquisition step of the present disclosure.
[0018] Next, a mask image for extracting the crystalline lens region is created based on the transillumination image acquired in step S1 (S2). Specifically, first, a process is performed to clarify the crystalline lens region (pupil region) in the transillumination image. Here, for example, a median filter is applied to the original image acquired in step S1. The median filter is a process of sorting the magnitude of the surrounding pixel values in order and replacing the median (center value) with the pixel of interest. Figure 5 shows the image after applying the median filter to the image in Figure 4. As shown in Figure 5, the boundary between the crystalline lens region 101 and the other region 102 is clear.
[0019] Next, a binarization process is performed in which each pixel value of the image after the median filter is converted to either white (maximum pixel value (brightness value) = 255) or black (minimum pixel value (brightness value) = 0) with a threshold value as the boundary. Specifically, each pixel value is converted to a white pixel value if it is equal to or greater than the threshold, and to a black pixel value if it is less than the threshold. The threshold value is set so that the lens region has a white pixel value and other regions have a black pixel value. In this case, even if there is an opacified region in the lens region, the threshold value is set so that the opacified region also has a white pixel value. Figure 6 shows the image after binarization process (binarized image) for the image in Figure 5.
[0020] Next, the excess black regions in the binarized image of Fig. 6 are cut out. Fig. 7 shows the image after the excess black regions have been cut out from the image of Fig. 6. The image of Fig. 7 is a mask image in which the pixel value of the region corresponding to the crystalline lens region is the maximum pixel value (="255"), and the pixel values of the other regions are the minimum pixel value (="0"). In other words, the image of Fig. 7 is a mask image in which the region corresponding to the crystalline lens region is open and the other regions are hidden. This completes the processing of step S2.
[0021] Returning to FIG. 2, next, the mask image created in step S2 is applied to the original image (transillumination image) acquired in step S1 to extract the crystalline lens region in the original image (S3). In this way, by using the mask image of the crystalline lens, an accurate crystalline lens region can be extracted. FIG. 8 illustrates an example of the transillumination image of the crystalline lens region extracted in step S3. Moreover, the distribution 110 in FIG. 9 shows the luminance change along the X-axis of the image in FIG. 8. The horizontal axis of FIG. 9 is the coordinate on the X-axis (X coordinate), and the vertical axis is the luminance value (pixel value). The image in FIG. 8 includes an image 115 showing the spot light of the illumination by the photographing device 2. This image 115 is located near the center of the crystalline lens region. As shown in FIG. 9, the center of the distribution 110 shows the maximum luminance corresponding to the image 115 in FIG. 8. The luminance of the distribution 110 gradually decreases from the center showing the maximum luminance toward the outside. Thus, the original image photographed by the photographing device 2 has uneven illumination.
[0022] Therefore, next, a correction is performed to reduce the illumination unevenness (unevenness in the light irradiated by the photographing device 2) in the image of the crystalline lens region extracted in step S3 (S4). In step S4, a flat correction process is performed to reduce (make closer to flat) the gradient of the luminance change between regions of the image (the gradient of the luminance that changes from the central position showing the luminance maximum toward the outside) caused by the light irradiated to the eyeball by the photographing device 2. As the flat correction process, for example, the process of the flowchart in FIG. 10 is performed.
[0023] In the process of FIG. 10, first, an average filter is created based on the original image (transillumination image) of the crystalline lens region extracted in step S3 (S20). FIG. 11 and FIG. 12 are diagrams for explaining a method of creating an average filter. FIG. 11 and FIG. 12 show examples of pixel values of the original image, with the dark hatched portion indicating the pixel of interest and the light hatched portion indicating the pixels surrounding the pixel of interest. The average value of each pixel of the pixel of interest and its surrounding pixels is calculated, and the average value is set as the value of the average filter at the position corresponding to the pixel of interest. In the example of FIG. 11, the average value of the pixel of interest value "58" and its surrounding pixel values is "53", so the value of the average filter corresponding to the pixel of interest value "58" is "53". In the example of FIG. 12, the average value of the pixel of interest value "21" and its surrounding pixel values is "55", so the value of the average filter corresponding to the pixel of interest value "21" is "55". By performing the above process for each pixel, the average filter shown in FIG. 13 is obtained.
[0024] Next, each pixel value of the image extracted in step S3 is divided by the average filter obtained in step S20 (S21). From the left, Fig. 13 shows the pixel value of the original image, the average filter, and the divided value obtained by dividing the pixel value of the original image by the average filter.
[0025] Next, each divided value (each pixel value after division by the average filter) obtained in step S21 is multiplied by the average luminance (average value of each pixel value of the original image) of the entire original image of the crystalline lens region obtained in step S3 (S22). FIG. 14 shows, from the left, the divided value (pixel value after division) obtained in step S21, the average luminance of the original image, and the corrected pixel value obtained by multiplying them. As shown by the pixel values of the original image in FIG. 13 and the corrected pixel values in FIG. 14, the luminance (pixel value) of an area where the luminance change between the target pixel and its surrounding pixels is small is corrected to converge to a value near the average luminance of the entire image. In contrast, the luminance of an area where the luminance change between the target pixel and its surrounding pixels is large (for example, the areas where the pixel values in the original image in FIG. 13 are "21" and "69") is corrected to a luminance close to the value of the original image.
[0026] Fig. 15 shows an image after the flat correction process of step S4 (the process of Fig. 10) has been performed on the image of Fig. 8. Distribution 111 in Fig. 9 shows the luminance change along the X-axis of the image of Fig. 15. In distribution 111, the gradient of the luminance change from the center to the outside is smaller than that of distribution 110 before flat correction. Furthermore, luminance information (high frequency information) of the part of distribution 110 before flat correction where the luminance change is large also appears in distribution 111 after flat correction. This makes it possible to prevent the opacified region of the crystalline lens from disappearing or becoming unclear due to flat correction.
[0027] Note that the CPU 5 executing step S4 corresponds to the correction unit of the present disclosure. Step S4 corresponds to the correction step. The CPU 5 executing step S20 corresponds to the filter creation unit. Step S20 corresponds to the filter creation step. The CPU 5 executing step S21 corresponds to the division unit. Step S21 corresponds to the division step. The CPU 5 executing step S22 corresponds to the multiplication unit. Step S22 corresponds to the multiplication step.
[0028] Returning to FIG. 2, next, a process is performed to extract the opacified region of the crystalline lens by binarization from the image after the flat correction process in step S4 (S5). The opacified region of the crystalline lens has a lower luminance than the region without opacity. Therefore, in step S5, the opacified region is separated from the other regions based on the difference in luminance between the opacified region and the region without opacity. Specifically, first, a binarization process is performed to convert each pixel value of the image after the flat correction process to either white (maximum pixel value (luminance value) = 255) or black (minimum pixel value (luminance value) = 0) with a threshold value as the boundary. In the binarization process, each pixel value is converted to a white pixel value if it is equal to or greater than the threshold value, and converted to a black pixel value if it is less than the threshold value. For example, an adaptive binarization method may be used as the binarization process. In the adaptive binarization, a threshold value for dividing white and black is set for each pixel, and the threshold value is set according to the luminance of the pixel of interest and the pixels around it. The image on the left of FIG. 16 shows the image before the binarization process. The image on the right in FIG. 16 shows a binary image obtained by subjecting the image on the left in FIG. 16 to a binarization process.
[0029] In step S5, a process is further performed to convert the white region (high luminance region) in the obtained binarized image into a black region (low luminance region), and the black region (low luminance region) into a white region (high luminance region). That is, a pixel value "0" is converted into "255", and a pixel value "255" is converted into "0". For example, by performing an exclusive OR process between each pixel value of the mask image obtained in step S2 and each pixel value of the binarized image, the opaque region can be converted into a high luminance region and the other regions into a low luminance region. FIG. 17 shows an image obtained by performing an exclusive OR process between the right image in FIG. 16 and the mask image in FIG. 7. The CPU 5 that executes step S5 corresponds to the binarization processing unit of the present disclosure. Step S5 corresponds to a binarization processing step.
[0030] Here, the central region and peripheral region of a transillumination image will be described with reference to FIG. 18. An inner circle 120 in FIG. 18 indicates the outer periphery of the central region of the pupil (in other words, the crystalline lens region in the pupil) in the transillumination image. That is, the region within the circle 120 indicates the central region of the pupil (crystalline lens). An outer circle 121 indicates the outer periphery of the pupil. The region between the outer circle 121 and the inner circle 120 indicates the peripheral region of the pupil (crystalline lens). The peripheral region of the pupil is different in visibility depending on the size of the pupil (the size of the circle 121). On the other hand, the central region of the pupil is always captured as part of the field of vision, and is therefore susceptible to the influence of cataracts. Therefore, in steps S6 and S7 of FIG. 2, the central region of the pupil (crystalline lens) and the other region (peripheral region) are identified.
[0031] Specifically, in step S6, the central coordinates of the crystalline lens (pupil) are identified. Here, the central coordinates of the crystalline lens are identified based on the moment features of the mask image obtained in step S2. The moment features are expressed by the following formula 1. Here, x in formula 1 indicates the x coordinate of a pixel in the mask image. y in formula 1 indicates the y coordinate of a pixel in the mask image. f(x, y) is a function that becomes "0" when the pixel value of the coordinates (x, y) is "0", and becomes "1" when the pixel value is "255".
number
[0032] The central coordinates (Mx, My) of the crystalline lens are expressed by the following formula 2. The central coordinates (Mx, My) are the center of the white region of the crystalline lens mask image (the position where the moment is balanced). (Mx, My) = (M 10 / M 00 , M 01 / M 00 )...(Formula 2)
[0033] M in Equation 2 00 is the moment feature M ij This is the value where i = 0, j = 0 in the image, and indicates the total number of pixels (i.e., the area) in the region (lens region) with a pixel value of "255" in the mask image of the crystalline lens. M10 is the moment feature M ij This is the value for i=1, j=0 in M 01 is the moment feature M ij These are the values where i=0 and j=1.
[0034] Next, the central region of the pupil is identified (S7). Here, a circle 120 (see FIG. 18) indicating the boundary between the central region and the peripheral region of the pupil is identified. The circle 120 is expressed by the following formula 3. (x-Mx) 2 +(y-My) 2 =r 2 ...(Formula 3)
[0035] In Equation 3, x is the left-right (horizontal) coordinate of a pixel on circle 120. y is the up-down (vertical) coordinate of a pixel on circle 120. Mx is the x-coordinate of the center of the lens obtained in step S6. My is the y-coordinate of the center of the lens obtained in step S6. r is the radius of circle 120. The radius r is calculated taking into account the WHO classification, for example, as described below.
[0036] There are several types of cataracts, including cortical, nuclear, and posterior subcapsular. The WHO classification is one way of assessing these types of cataracts. The WHO classification stipulates that the degree (grade) of cortical cataract is determined by the percentage of opacity in the entire circumference of the pupil margin. The WHO classification also stipulates that the degree (grade) of posterior subcapsular cataract is determined by the vertical diameter of the opacity extending 3 mm from the center of the pupil. Furthermore, the WHO classification guidelines for the examination environment stipulate that a pupillary dilation of 6.5 mm or more is required to determine lens opacity.
[0037] 18 is 3.0 mm and the diameter (mydriatic diameter) D of the outer circle 121 is 6.5 mm, the radius r in Equation 3 is calculated. Note that if the mydriatic diameter D can be accurately measured, the measured value may be used as the mydriatic diameter D instead of 6.5 mm.
[0038] Specifically, the length l per pixel is calculated by the following formula 4. In formula 4, D is the pupillary diameter, which is 6.5 mm in this example. N is the number of pixels of the pupillary diameter D. l=D / N (Formula 4)
[0039] Then, the radius r of the pupil central region is calculated using the following equation 5. My in equation 5 is the y coordinate of the center of the crystalline lens obtained in step S6. Here, My is expressed as the number of pixels [px] (px indicates pixels) from the upper or lower end of the pupil. w is the width of the pupil peripheral region (see FIG. 18), and can be calculated using the following equation 6. Here, D=6.5 mm, r=1.5 mm (=3 mm / 2), and w=1.75 mm. l is the length per pixel obtained using equation 4. r=My-w / l (Eq. 5) w=D / 2-r (Formula 6)
[0040] In this way, the pupil central region shown in Equation 3 is identified. Note that the area other than the pupil central region in the white area of the mask image obtained in step S2 becomes the peripheral region of the pupil (crystalline lens). Returning to FIG. 2, next, a mask image of the pupil central region identified in step S7 is created (S8). Specifically, the area of coordinates (x, y) that satisfies the following Equation 7 is determined to be the pupil central region, and a mask image is created in which the pupil central region has a pixel value of "255" (white) and the other areas (pupil peripheral regions) have a pixel value of "0" (black). Mx and My in Equation 7 can be obtained from Equation 2 above. The radius r can be obtained from Equation 5 above. (x-Mx) 2 +(y-My) 2 ≦r 2 ...(Formula 7)
[0041] Fig. 19 shows an example of a mask image obtained in step S8. The image in Fig. 19 is a mask image in which the central pupil area is opened and the other areas are hidden.
[0042] After step S8, the process proceeds to the process in Fig. 3, where the opacified region in the pupil central region is extracted (S9). Specifically, for example, a logical product is calculated between the binarized image of the opacified region of the entire pupil obtained in step S5 (the image in Fig. 17) and the mask image obtained in step S8 (the image in Fig. 19). Fig. 20 shows an image obtained by the logical product of the image in Fig. 17 and the image in Fig. 19. The image in Fig. 20 is a binarized image in which the opacified region in the pupil central region is represented in white (pixel value "255") and the other regions are represented in black (pixel value "0").
[0043] Next, the opacity rate of the crystalline lens is calculated (S10). Here, for example, the opacity rate of the crystalline lens of the entire pupil (hereinafter sometimes referred to as the overall opacity rate) is calculated based on the binarized image of the opacified region of the entire pupil obtained in step S5 (the image in FIG. 17) and the mask image of the entire pupil obtained in step S2 (the image in FIG. 7). Specifically, the overall opacity rate is calculated by the following equation 8. That is, the number of pixels with a pixel value of "255" in the image in FIG. 17 is divided by the number of pixels with a pixel value of "255" in the image in FIG. 7. Overall opacity rate [%] = number of white pixels in the binary opacity image of the entire pupil / number of white pixels in the mask image of the entire pupil (Equation 8)
[0044] Furthermore, in step S10, for example, the crystalline lens opacity rate in the pupil central region (hereinafter sometimes referred to as central region opacity rate) is calculated based on the binarized opacity image of the pupil central region obtained in step S9 (image in FIG. 20) and the mask image of the pupil central region obtained in step S8 (image in FIG. 19). Specifically, the central region opacity rate is calculated by the following formula 9. That is, the number of pixels with a pixel value of "255" in the image in FIG. 20 is divided by the number of pixels with a pixel value of "255" in the image in FIG. 19. Central region opacity rate [%] = number of white pixels in the binarized opacity image of the central region of the pupil / number of white pixels in the mask image of the central region of the pupil (Equation 9)
[0045] The CPU 5 that executes step S10 and steps S12 and S14 (described later) corresponds to the turbidity determination unit of the present disclosure. Steps S10, S12, and S14 correspond to the turbidity determination step of the present disclosure.
[0046] Next, the opacified region of the lens cortex (hereinafter, sometimes referred to as cortical opacity) is extracted (detected) from the binary image of opacity (image in FIG. 17) obtained in step S5 (S11). Here, cortical opacity has the following characteristics. -Spreads radially. -Emerges from the peripheral area of the lens.
[0047] Therefore, in step S11, cortical opacities are extracted based on the following algorithm. In FIG. 21, when a target opacified region 130 is represented by a straight line 131 using the least squares method, does the straight line 131 extend toward the center of the crystalline lens? In FIG. 21, is the center 132 of the opacified region 130 of interest located in the peripheral region of the crystalline lens?
[0048] In step S11, for example, the process shown in Fig. 22 is executed. When the process in Fig. 22 is started, first, an image for storing cortical opacity is created (prepared) (S30).
[0049] Next, each of the separate opacity regions constituting the opacity region extracted in step S5 is identified (S31). Specifically, the contour of each of the opacity regions extracted in step S5 is detected, and each region surrounded by the detected contour is identified individually. In step S31, assuming that n opacity regions have been identified, the following steps S32 to S36 are executed for each of the n opacity regions.
[0050] That is, one of the n opacity regions is focused on, and the coordinates of the center of the focused opacity region (hereinafter, sometimes referred to as the opacity center) are obtained (S32). For example, the coordinates of the position where the moment is balanced in the focused opacity region is obtained as the opacity center.
[0051] Next, an approximation line of the target opacity region is obtained by the least squares method (S33).
[0052] Next, it is determined whether the opacity center obtained in step S32 is located in the peripheral region of the crystalline lens (in other words, the pupil peripheral region) (S34). Specifically, for example, by calculating the exclusive OR of the mask image (image in FIG. 7) of the entire pupil (entire crystalline lens) obtained in step S2 and the mask image (mask image in FIG. 19) of the pupil central region (crystalline lens central region) obtained in step S8, a peripheral region mask image is obtained in which the crystalline lens peripheral region (pupil peripheral region) is set to a pixel value of "255" and the other regions are set to a pixel value of "0". FIG. 23 shows an example of the peripheral region mask image.
[0053] In step S34, it is determined whether the opacity center obtained in step S32 is located in a white region (peripheral region of the crystalline lens) in the peripheral region mask image. If the opacity center is not located in the peripheral region of the crystalline lens (S34: No), the opacity region of interest is determined not to be cortical opacity, and the process does not proceed to the next step, but the opacity region of interest is switched to another opacity region.
[0054] On the other hand, if the opacity center is located in the crystalline lens peripheral region (S34: Yes), it is determined whether the approximation line obtained in step S33 overlaps with the pupil central region specified in step S7 (S35). Here, for example, it is determined whether the approximation line obtained in step S33 overlaps with the white region (pupil central region) in the central region mask image (image of FIG. 19) obtained in step S8. For example, by calculating the logical product of the approximation line (a line with a pixel value of "255") and the central region mask image (pixel value of the pupil central region is "255"), it is possible to determine whether the approximation line overlaps with the pupil central region in the central region mask image. For example, it is determined that the approximation line 141 of the opacity region 140 shown in FIG. 24 overlaps with the central region mask image of FIG. 19. It is determined that the approximation line 143 of the opacity region 142 shown in FIG. 25 does not overlap with the central region mask image of FIG. 19.
[0055] If the approximation line does not cross the pupil center region (S35: No), the opacified region of interest is determined not to be cortical opacity, and the process does not proceed to the next step, but the opacified region of interest is switched to another opacified region.
[0056] If the approximation line crosses the pupil center region (S35: Yes), the opacified region of interest is determined to correspond to cortical opacity, and this opacified region is stored in the image created in step S30 (S36). After steps S32 to S36 are executed for the n opacified regions, the process of FIG. 22 ends and the process returns to FIG. 3. In step S11, a binarized image is obtained in which the cortical opacified regions are white regions (regions with pixel value "255") and the other regions are black regions (regions with pixel value "0"). FIG. 27 shows an example of the binarized image obtained in step S11.
[0057] Note that the CPU 5 executing steps S6 to S8, and S11 corresponds to the cortical opacity detection section of the present disclosure. Steps S6 to S8, and S11 correspond to the cortical opacity detection step. The CPU 5 executing steps S6 and S7 corresponds to the area identification section. Steps S6 and S7 correspond to the area identification step. The CPU 5 executing step S32 corresponds to the opacity center acquisition section. Step S32 corresponds to the opacity center acquisition step. The CPU 5 executing step S33 corresponds to the approximated straight line acquisition section. Step S33 corresponds to the approximated straight line acquisition step. The CPU 5 executing steps S34 and S35 corresponds to the cortical opacity determination section. Steps S34 and S35 correspond to the cortical opacity determination step.
[0058] Next, the cortical opacity extracted in step S11 is evaluated (S12). Here, the size of the cortical opacity, specifically the total angle of the cortical opacity in the circumferential direction, is determined. The CPU 5 that executes step S12 corresponds to the opacity size determination unit. Step S12 corresponds to the opacity size determination step. FIG. 26 shows the detailed processing of step S12. When proceeding to the processing of FIG. 26, first, as an initialization processing, 0° is stored in each of the measurement angle and opacity angle, which are variables used in the subsequent processing (S40).
[0059] Next, it is determined whether the current measurement angle is less than 360° (S41). If the measurement angle is less than 360° (S41: Yes), it is determined whether the measurement line, which is a straight line indicating the measurement angle, overlaps the area of cortical opacity extracted in step S11 (S42). Note that the measurement line is a straight line extending in the radial direction from the center of the crystalline lens identified in step S6, and is inclined by the measurement angle with respect to the X-axis direction (left-right direction of the image). FIG. 27 shows an example in which the measurement line 150 is set in the image of cortical opacity obtained in step S11.
[0060] If the measurement line overlaps with the area of cortical opacity (S42: Yes), the value of the variable opacity angle is increased by 0.1° (S43). Also, the value of the measurement angle is increased by 0.1° (S44). Then, the process returns to step S41.
[0061] In step S42, if the measurement line does not overlap the area of cortical opacity (S42: No), the opacity angle is not updated, and the value of the measurement angle is increased by 0.1° (S44). Then, the process returns to step S41.
[0062] If the measurement angle reaches 360° in step S41 (S41: No), the process of Fig. 26 ends. Thus, in the process of Fig. 26, a measurement line is set in the image of the cortical opacity (image of Fig. 27), and when the measurement line is rotated 360° in 0.1° increments in the direction of the arrow, the sum of the angles between the overlapping portions of the measurement line and the cortical opacity region is calculated as the opacity angle. Fig. 28 shows the process of calculating the opacity angle.
[0063] Returning to Fig. 3, next, an opacified region under the posterior capsule of the crystalline lens (hereinafter, sometimes referred to as posterior subcapsular opacity) is extracted (detected) from the binary image of opacity obtained in step S5 (S13). Fig. 30 illustrates an example of an opacified image obtained in step S5. In step S13, an opacified region 160 closest to the center C of the crystalline lens in the opacified image of Fig. 30 is extracted as posterior subcapsular opacity. Fig. 29 illustrates the detailed processing of step S13.
[0064] When the process of FIG. 29 begins, first, as an initialization process, the maximum value that can be expressed as a numerical value is stored in the minimum distance, which is a variable used in the subsequent processes (S50).
[0065] Next, the individual opacity regions separated from each other that make up the opacity region extracted in step S5 are identified (S51). Specifically, the contour of each opacity region extracted in step S5 is detected, and each region surrounded by the detected contour is identified individually. Note that since the individual opacity regions have already been identified in step S31 of FIG. 22, step S51 may be omitted. In step S51, n opacity regions are identified, and the following steps S52 to S55 are executed for each of the n opacity regions.
[0066] That is, one of the n opacity regions is focused on, and the coordinates P (Px, Py) of the center of the focused opacity region (hereinafter, sometimes referred to as opacity center coordinates) are obtained (S52). As the opacity center coordinates, for example, the coordinates of the position where the moments in the focused opacity region are balanced are obtained. Note that since the opacity center coordinates are obtained in step 32 of Fig. 22, in step S52, the opacity center coordinates obtained in step S32 may be obtained.
[0067] Next, the Euclidean distance d between the opacity center coordinate P (Px, Py) acquired in step S52 and the crystalline lens center coordinate C (Cx, Cy) is calculated by the following formula 10 (S53). The crystalline lens center coordinate C (Cx, Cy) may be the coordinate (Mx, My) obtained in step S6 (above formula 2). The calculated Euclidean distance d is stored in the measured distance, which is a variable.
number
[0068] Next, it is determined whether the measured distance obtained in step S53 is smaller than the minimum distance (S54). If the measured distance is smaller than the minimum distance (S54: Yes), the value of the variable minimum distance is updated to the measured distance (the measured distance is stored in the variable minimum distance), and the opacity region indicating the minimum distance is saved (updated) (S55).
[0069] In step S54, if the measured distance is equal to or greater than the minimum distance (S54: No), the turbid region of interest is switched to another turbid region, and the processes in and after step S52 are executed. After steps S52 to S55 are executed for all turbid regions, the process in FIG. 29 ends.
[0070] In this way, in the process of Fig. 29, the opacity region closest to the lens center C among the n opacity regions is extracted (detected) as a posterior subcapsular opacity. Note that the posterior subcapsular opacity extracted in step S13 (process of Fig. 29) may be an opacity region that overlaps with the pupil center region identified in step S7 and does not correspond to the cortical opacity extracted in step S11. Fig. 31 illustrates a transillumination image of the posterior subcapsular opacity extracted in step S13.
[0071] The CPU 5 executing step S13 corresponds to a posterior subcapsular opacity detection section of the present disclosure. Step S13 corresponds to a posterior subcapsular opacity detection step. The CPU 5 executing step S52 corresponds to an opacity center acquisition section. Step S52 corresponds to an opacity center acquisition step. The CPU 5 executing steps S53 to S55 corresponds to a posterior subcapsular opacity determination section. Steps S53 to S55 correspond to a posterior subcapsular opacity determination step.
[0072] Returning to FIG. 3, next, the posterior subcapsular opacity extracted in step 13 is evaluated (S14). Here, the size of the posterior subcapsular opacity, specifically the width of the posterior subcapsular opacity in the vertical direction (up and down direction of the image), is determined. In the example of FIG. 31, the vertical width B of the posterior subcapsular opacity is calculated. Width B is calculated, for example, as follows. That is, taking into account the WHO classification examination environment guidelines, pupil diameter A is set to 6.5 mm. The length of one pixel is calculated using the following formula 11. Width B can be calculated by substituting the length of one pixel calculated using formula 11 into the following formula 12. Length of 1 pixel [mm / px] = 6.5 / number of pixels of pupil diameter A (Equation 11) B [mm] = number of pixels of width B × length of one pixel (Equation 12)
[0073] The CPU 5 that executes step S14 corresponds to the opacity size determining section. Step S14 corresponds to the opacity size determining step.
[0074] After step S14, the process of Fig. 3 is terminated. The CPU 5 may cause the display unit 3 to display various information obtained in the processes of Fig. 2 and Fig. 3. For example, the CPU 5 may cause the display unit 3 to display an image of the opacification region extracted in step S5 of Fig. 2 or step S9 of Fig. 3 (the image of Fig. 17 or Fig. 20). The CPU 5 may also cause the display unit 3 to display the opacification rate obtained in step S10 of Fig. 3, the image of the cortical opacification extracted in step S11 (the image of Fig. 27), the total angle of the cortical opacification obtained in step S12, the image of the posterior subcapsular opacification extracted in step S13 (the image of Fig. 31), or the width of the posterior subcapsular opacification obtained in step S14.
[0075] The CPU 5 may determine which of the multiple classified cortical opacity grades corresponds to based on the total angle of the cortical opacity obtained in step S12, and may display the determination result on the display unit 3. In the WHO classification, the grade of the cortical opacity is determined based on the ratio of the cortical opacity to the entire circumference of the pupil edge. Specifically, if the ratio is less than 1 / 8, the grade is "C1", if it is less than 1 / 4, the grade is "C2", if it is less than 1 / 2, the grade is "C3", and if it is 1 / 2 or more, the grade is "C4". The CPU 5 may determine the grade of the WHO classification based on the total angle of the cortical opacity. Furthermore, in the WHO classification, if there is cortical opacity within 3 mm from the center of the pupil, it is determined as Central+ (cen+). Therefore, the CPU 5 may determine whether the cortical opacity extracted in step S11 overlaps with the pupil center region specified in step S7, and if it overlaps, it may be determined as cen+.
[0076] Furthermore, the CPU 5 may determine which of the multiple classified grades of posterior subcapsular opacity the posterior subcapsular opacity falls under based on the width of the posterior subcapsular opacity obtained in step S14, and may display the determination result on the display unit 3. In the WHO classification, when the width of the posterior subcapsular opacity within 3 mm of the pupil center is less than 1 mm, it is graded "P1", when it is 1 mm or more but less than 2 mm, it is graded "P2", when it is 2 mm or more but less than 3 mm, it is graded "P3", and when it is 3 mm or more, it is graded "P4". The CPU 5 may determine the grade of the WHO classification based on the width of the posterior subcapsular opacity.
[0077] The CPU 5 that executes steps S6 to S14 corresponds to the determination section of the present disclosure. Steps S6 to S14 correspond to the determination step.
[0078] As described above, in this embodiment, the flat correction process and the binarization process are performed on the transillumination image of the crystalline lens, so that an image for determining crystalline lens opacity that is easy to determine can be obtained. This makes it possible to suppress erroneous determination of crystalline lens opacity.
[0079] 32 to 35 show images obtained from different subjects, with FIG. 32 showing a healthy subject and FIGS. 33 to 35 showing images of a cataract patient. The left diagrams of FIGS. 32 to 35 show original transillumination images of the crystalline lens. The center diagrams of FIGS. 32 to 35 show images obtained when the original images are binarized without the flat correction process of step S4. The right diagrams of FIGS. 32 to 35 show images obtained when the corrected transillumination images are binarized after the flat correction process of step S4.
[0080] As shown in Figures 32 to 35, by performing flat correction processing, it is possible to prevent darkly illuminated areas from appearing as black areas in the binary image, and to obtain an image that makes it easier to determine the position, shape, size, etc. of opacities.
[0081] Table 1 below shows the opacity determination results obtained by processing the images of Figs. 2 and 3 for each of Figs. 32 to 35. (1) in Table 1 shows the opacity determination result for the image of Fig. 32. (2) shows the opacity determination result for the image of Fig. 33. (3) shows the opacity determination result for the image of Fig. 34. (4) shows the opacity determination result for the image of Fig. 35. The cortical grade indicates the WHO classification grade determined based on the cortical angle. The posterior capsule grade indicates the WHO classification grade determined based on the width of the posterior capsule. As shown in Table 1, the results showed that the subject in (1) did not have cataract, the subject in (2) had cortical cataract, and the subject in (4) had posterior subcapsular cataract. The results showed that the subject in (3) had crystalline lens opacity.
[0082] [Table 1]
[0083] In this manner, in the present embodiment, the type of crystalline lens opacity (cortical opacity or posterior subcapsular opacity) can be automatically determined, and the size (degree) of the opacity can be automatically determined. By automatically determining the crystalline lens opacity, an objective opacity determination result can be obtained.
[0084] The present disclosure is not limited to the above embodiment and may be modified in various ways. For example, in the above embodiment, an example is shown in which the type of opacity is determined to be cortical opacity or posterior subcapsular opacity, but other types of opacity may be determined based on a binarized image after flat correction processing. In addition, in the above embodiment, the WHO classification is exemplified as the grade of opacity, but the grade of opacity may be determined based on other classifications.
[0085] In the above embodiment, an example was shown in which opacity was automatically determined based on a binary image after flat correction processing, but opacity may be subjectively determined by a doctor or the like based on the binary image. [Explanation of symbols]
[0086] 1. Image Processing System 2. Imaging Device 3 Display section 4. Image Processing Device 5 CPU 6 Memory section 7. Program
Claims
1. An acquisition unit for acquiring a transillumination image of a crystalline lens; a correction unit that performs correction to reduce illumination unevenness in the transillumination image; a binarization processing unit that binarizes pixel values of the corrected transillumination image to obtain a binary image for determining crystalline lens opacity; An image processing device comprising:
2. The image processing device according to claim 1 , further comprising a determination unit for determining opacity of the crystalline lens based on the binarized image.
3. The correction unit is a filter creation unit that creates an average filter from the transillumination image; a division unit that divides each pixel value of the trans-illumination image by the average filter; a multiplication unit that multiplies each pixel value of the trans-illumination image after division by an average luminance of the trans-illumination image; The image processing device according to claim 1 .
4. The image processing device according to claim 2 , wherein the determination unit includes a cortical opacity detection unit that detects a cortical opacity region, which is an opacity region of the lens cortex, based on the binarized image.
5. The cortical opacity detection unit includes: A region specifying unit that specifies a central region of the pupil and the other peripheral regions; an opacity center acquisition unit that acquires an opacity center, which is the center of each opacity region represented in the binarized image; an approximate straight line acquisition unit that acquires an approximate straight line of each opacity region represented in the binarized image; a cortical opacity determination unit that determines, as the cortical opacity region, the opacity center of which is located in the peripheral region and the approximation line of which overlaps with the central region; The image processing device according to claim 4 .
6. The image processing device according to claim 4 , wherein the determination unit includes an opacity size determination unit that determines a size of the cortical opacity region detected by the cortical opacity detection unit.
7. The image processing device according to claim 2 , wherein the determination unit includes a posterior subcapsular opacity detection unit that detects a posterior subcapsular opacity region that is an opacity region under the posterior capsule of the crystalline lens based on the binarized image.
8. The posterior subcapsular opacity detection unit is an opacity center acquisition unit that acquires an opacity center, which is the center of each opacity region represented in the binarized image; a posterior subcapsular opacity determination unit that determines, among the opacity regions represented in the binarized image, the opacity region having the shortest distance between the opacity center and the center of the crystalline lens as the posterior subcapsular opacity region; The image processing device according to claim 7 .
9. The image processing device according to claim 7 , wherein the determination unit includes an opacity size determination unit that determines a size of the posterior subcapsular opacity region detected by the posterior subcapsular opacity detection unit.
10. The image processing device according to claim 2 , wherein the determining unit includes an opacity determining unit that determines a degree of opacity of the crystalline lens based on the binarized image.
11. acquiring a transillumination image of the crystalline lens; a correction step of performing a correction to reduce illumination unevenness in the transillumination image; a binarization process step of binarizing pixel values of the corrected transillumination image to obtain a binary image for determining crystalline lens opacity; An image processing method comprising:
12. acquiring a transillumination image of the crystalline lens; a correction step of performing a correction to reduce illumination unevenness in the transillumination image; a binarization process step of binarizing pixel values of the corrected transillumination image to obtain a binary image for determining crystalline lens opacity; A program that causes a computer to execute the following.
Citation Information
Patent Citations
Ophthalmic measuring apparatus
JP1994142044A
Cataract test equipment and cataract determination program
JP2015216939A
Information processing device, information processing method and information processing program
JP2021189979A
Image processing method, image processing device, and image processing program
WO2021074960A1
