A method for enhancing red discrimination of medical images

By converting the endoscopic image from RGB to CIELAB color space, performing red intensity estimation and edge extraction, and then converting back to RGB, the problem of insufficient red color levels in the endoscope is solved, and the contrast and edge clarity of the red area of ​​the image are significantly improved. degree, enhancing the accuracy of diagnosis and treatment.

CN118333924BActive Publication Date: 2024-10-11WEYO SURGICAL TECHNOLOGY LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410775242.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-11
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

In the diagnosis of gastrointestinal diseases and laparoscopic surgery, modern endoscopes do not clearly distinguish the red band spectrum, resulting in insufficient red color levels, which makes diagnosis and treatment difficult for doctors.

Method used

By converting the original image from RGB color space to CIELAB color space, red intensity estimation and edge information extraction are performed, and the image is enhanced through calculation, and finally the image is converted back to RGB color space and the result image is output.

Benefits of technology

It effectively improves the contrast and edge definition of the red area, enhances the display effect of mucosa and blood vessels, and improves the detection and diagnosis accuracy of tiny lesions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118333924B_ABST
    Figure CN118333924B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and in particular to a method for enhancing the red discrimination of medical images, comprising the following steps: acquiring an original image, obtaining L, a, and b values ​​of the original image, estimating the red intensity of the original image through a and b values, extracting edge information of the original image through L value, and enhancing the original image through calculation to obtain an enhanced result. , using the obtained , a and b values, convert the CIELAB color space of the original image to the RGB color space, and output the resulting image. Compared with the traditional method, this technical solution can effectively estimate the red intensity, enhance the mucosal structure and tissue characteristics, and highlight the microvessels in the superficial and submucosal layers of the mucosa in the endoscopic image, while making fewer changes to the non-red area, making the processed image more suitable for doctors to observe and make diagnoses.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a method for enhancing the red discrimination of medical images. Background Art

[0002] Modern endoscopes play a key role in the diagnosis of various gastrointestinal diseases, laparoscopic surgery and other scenarios. Good endoscopic image quality helps improve the level of diagnosis.

[0003] Currently, due to the unclear spectral distinction of the reflective spectra of mucosa, blood vessels and tissues in the red band, the endoscopic camera system does not show enough red color levels in key scenes such as inspection and surgery, which brings inconvenience to doctors during treatment and judgment. Summary of the invention

[0004] In order to overcome the above technical problems, the purpose of the present invention is to provide a method for enhancing the red discrimination of medical images to improve the red color level displayed by the endoscope in key scenes such as inspection and surgery.

[0005] The purpose of the present invention can be achieved through the following technical solutions:

[0006] A method for enhancing red discrimination of medical images comprises the following steps:

[0007] S1, obtain the original image, convert the RGB color space of the original image into the CIELAB color space, and obtain the L, a, and b values ​​of the original image;

[0008] S2, using the a and b values ​​obtained in step S1, estimate the red intensity of the original image;

[0009] S3, using the L value obtained in step S1 to extract edge information from the original image;

[0010] S4, using the L value, red intensity result and edge information result obtained in step S1, step S2 and step S3, the original image is enhanced by calculation to obtain an enhanced result ;

[0011] S5. Apply what you have learned , a, and b values, convert the CIELAB color space of the original image to RGB color space, and output the resulting image.

[0012] Furthermore, in step S1, the color depth of the original image to be processed includes at least 8-bit image and 10-bit image.

[0013] Furthermore, in step S1, the specific method for calculating the L, a, and b values ​​is:

[0014] S11, converting the RGB range of the original image to between 0 and 1 to obtain target R, G, B values;

[0015] S12. Convert the obtained target R, G, B values ​​to X, Y, Z values ​​by the following formula, and then convert the X, Y, Z values ​​to L, a, b three channel component values ​​in CIELAB color space, where the range of L, a, b three channel component values ​​is between 0-255:

[0016] , get the X, Y, and Z values;

[0017] ;

[0018] ;

[0019] ;

[0020] ;

[0021] In formula (4) and (5):

[0022] ;

[0023] Finally, the three channel component values ​​of L, a, and b are obtained.

[0024] Furthermore, after the X, Y, and Z values ​​are obtained by formula (1), the obtained X, Y, and Z values ​​are normalized according to the X, Y, and Z values ​​specified by the reference white point D65:

[0025] X normalized value = ;in =0.950456;

[0026] The value of Y after normalization = ;in =1;

[0027] The normalized value of Z = ;in =0.950456.

[0028] Furthermore, in step S2, the specific method for estimating the red intensity of the original image is:

[0029] S21. Perform the following calculation using the obtained a and b values:

[0030] ;

[0031] ;

[0032] ;

[0033] Among them, abs() means taking the absolute value, and γ is the weight adjustment coefficient;

[0034] S22. Normalize the obtained result to obtain the estimated red intensity:

[0035] ;

[0036] Among them, max() means taking the maximum value.

[0037] Furthermore, in step S3, the specific method for extracting edge information from the original image is:

[0038] ;

[0039] in, Represents the blurred image of the L channel.

[0040] Furthermore, the blurred image of the L channel is achieved by using a 9*9 Gaussian filter.

[0041] Furthermore, in step S4, the specific method of enhancing the original image by calculation is:

[0042] S41, firstly transform the L channel using the following nonlinear mapping function:

[0043] ;

[0044] Among them, e, f, g, and h are the adjustment parameters of the nonlinear mapping function, which can adjust the inflection point and stretching degree of the mapping curve;

[0045] S42, adjusting the intensity of image enhancement by the following formula:

[0046] ;

[0047] in, =5, =4.5;

[0048] S43, the enhancement result is obtained by the following formula ,in, The range is between 0 and 255;

[0049] .

[0050] Furthermore, e=5, f=1.7, g=8, h=1.4.

[0051] Furthermore, in step S5, when converting, the X, Y, and Z values ​​to be converted are first obtained by the following formula:

[0052] ;

[0053] ;

[0054] ;

[0055] in, ;

[0056] ;

[0057] ;

[0058] ;

[0059] ;

[0060] ;

[0061] Then fill the obtained X, Y, and Z values ​​to be converted into the following formula to obtain the values ​​of r, g, and b:

[0062] ;

[0063] Finally, the r, g, and b values ​​are restored to the R, G, and B ranges of the original image, and the resulting image is output.

[0064] Beneficial effects of the present invention: Compared with the traditional method, the present technical solution converts the RGB color space of the original image into the CIELAB color space to obtain the L, a, and b values ​​of the original image, and then sequentially estimates the red intensity and extracts the edge information of the original image, and enhances the original image by calculation to obtain the enhanced result. Finally, the CIELAB color space of the original image is converted into RGB color space, and the resulting image is output. The results show that this method estimates the red intensity of each pixel in the original image, enhances the contrast of the red area, improves the color distinction and clarity of the key parts at the edge, and strengthens the display of blood vessels and structures of the surface mucosa. It is of great significance in the discovery and diagnosis of tiny lesions, targeted biopsy, localization of lesion boundaries, and tissue localization during surgery. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] The present invention will be further described below in conjunction with the accompanying drawings.

[0066] Figure 1 It is a schematic diagram of the processing flow of the method for enhancing the red discrimination of medical images proposed by the present invention;

[0067] Figure 2 is an example of an image from a primitive endoscope;

[0068] Figure 3 yes Figure 2 The output image after the red intensity estimation of the image in ;

[0069] Figure 4 yes Figure 3 The output image after edge information extraction of the image in;

[0070] Figure 5 yes Figure 4 The output image after the image in is enhanced by computation;

[0071] Figure 6 yes Figure 5 The image in is the output image after being converted to LAB color space. DETAILED DESCRIPTION

[0072] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0073] like Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 As shown, a method for enhancing the red discrimination of medical images includes the following steps:

[0074] S1. Get the original image, convert the RGB color space of the original image into the CIELAB color space, and obtain the L, a, and b values ​​of the original image. CIELAB is a device-independent color space that contains three channels: brightness L, a range from red to green, and b range from yellow to blue. It can better describe the perceptual attributes of color. By converting the RGB color space into the CIELAB color space, the color information of the image can be more accurately represented and processed, which is conducive to color correction, color matching, image segmentation and other color-related image processing tasks.

[0075] The color depths of the original images processed by this method include 8-bit images and 10-bit images;

[0076] S11. When the original image to be processed is an 8-bit image, the RGB range of the original image needs to be converted to between 0 and 1. This can be achieved by dividing the R, G, and B values ​​to be input in the original image by 255, and finally the target R, G, and B values ​​are obtained;

[0077] S12. Convert the obtained target R, G, B values ​​to X, Y, Z values ​​by the following formula, and then convert the X, Y, Z values ​​to L, a, b three channel component values ​​in CIELAB color space, where the range of L, a, b three channel component values ​​is between 0-255:

[0078] ;

[0079] After obtaining the X, Y, and Z values ​​through formula (1), the obtained X, Y, and Z values ​​are normalized according to the X, Y, and Z values ​​specified by the reference white point D65:

[0080] X normalized value = ;in =0.950456;

[0081] The value of Y after normalization = ;in =1;

[0082] The normalized value of Z = ;in =0.950456.

[0083] According to the normalized X, Y, and Z values ​​obtained by formulas (7), (8), and (9), the values ​​of the three channel components L, a, and b can be obtained using the following formula:

[0084] ;

[0085] ;

[0086] ;

[0087] ;

[0088] In formula (4) and (5):

[0089] ;

[0090] Finally, the three channel component values ​​of L, a, and b are obtained.

[0091] S2, such as Figure 2 , Figure 3 As shown, the a and b values ​​obtained in step S1 are used to estimate the red intensity of the original image. The specific method is:

[0092] S21. Perform the following calculation using the obtained a and b values:

[0093] ;

[0094] ;

[0095] ;

[0096] Wherein, abs() represents the absolute value, γ is the weight adjustment coefficient, and in this embodiment, γ is 2;

[0097] S22. Normalize the obtained result to obtain the estimated red intensity:

[0098] ;

[0099] Among them, max() means taking the maximum value.

[0100] S3, such as Figure 2 , Figure 4 As shown, the L value obtained in step S1 is used to extract edge information of the original image.

[0101] The common edge information extraction method is to subtract the blurred image from the original grayscale image to obtain the high-frequency component in the grayscale image. In this method, the blurred image of the L channel is subtracted from the obtained L channel component value, that is:

[0102] ;

[0103] in, It represents the blurred image of the L channel. The blurring method of the blurred image of the L channel is not limited. In this embodiment, the blurred image of the L channel is realized by using a 9*9 Gaussian filter.

[0104] S4, such as Figure 2 , Figure 3 , Figure 4 , Figure 5 As shown, the L value, red intensity result and edge information result obtained by step S1, step S2 and step S3 are used to enhance the original image through calculation to obtain the enhanced result , through enhancement, we can improve the quality of the image, enhance the specific features of the image or improve the visualization of the image, making the image clearer, easier to analyze and more contrasty. The specific calculation method is:

[0105] S41, firstly transform the L channel using the following nonlinear mapping function:

[0106] ;

[0107] Wherein, e, f, g, and h are adjustment parameters of the nonlinear mapping function, which can adjust the inflection point and stretching degree of the mapping curve. In this embodiment, e=5, f=1.7, g=8, and h=1.4;

[0108] S42, adjusting the intensity of image enhancement by the following formula:

[0109] ;

[0110] in, =5, =4.5;

[0111] S43, the enhancement result is obtained by the following formula ,in, The range is between 0 and 255;

[0112] .

[0113] S5, such as Figure 6 As shown, using the obtained , a, and b values, convert the CIELAB color space of the original image to RGB color space, and output the resulting image:

[0114] When converting, first get the X, Y, and Z values ​​to be converted using the following formula:

[0115] ;

[0116] ;

[0117] ;

[0118] in, ;

[0119] ;

[0120] ;

[0121] ;

[0122] ;

[0123] ;

[0124] Then fill the obtained X, Y, and Z values ​​to be converted into the following formula to obtain the values ​​of r, g, and b:

[0125] ;

[0126] Finally, the r, g, and b values ​​are restored to the R, G, and B ranges of the original image, and the resulting image is output.

[0127] This scheme converts the RGB color space of the original image into the CIELAB color space to obtain the L, a, and b values ​​of the original image, and then sequentially estimates the red intensity and extracts the edge information of the original image, and enhances the original image by calculation to obtain the enhanced result. Finally, the CIELAB color space of the original image is converted into RGB color space, and the resulting image is output. The results show that this method can effectively estimate the red intensity, enhance the mucosal structure and tissue characteristics, and highlight the microvessels in the superficial and submucosal layers of the mucosa in the endoscopic image. At the same time, the non-red area is less transformed, making the processed image more suitable for doctors to observe and make diagnoses.

[0128] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0129] The above contents are merely examples and explanations of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the invention or exceed the scope defined by the claims, they shall all fall within the protection scope of the present invention.

Claims

1. A method for enhancing the red discrimination of medical images. It is characterized in that The following steps are involved: S1, obtain the original image, convert the RGB color space of the original image into the CIELAB color space, and obtain the L, a, and b values ​​of the original image; In step S1, the specific method for calculating the L, a, and b values ​​is: S11, converting the RGB range of the original image to between 0 and 1 to obtain target R, G, B values; S12. Convert the obtained target R, G, B values ​​to X, Y, Z values ​​by the following formula, and then convert the X, Y, Z values ​​to L, a, b three channel component values ​​in CIELAB color space, where the range of L, a, b three channel component values ​​is between 0-255: a=500(f(X)-f(Y))+256#(4); b=200(f(Y)-f(Z))+256#(5); In formula (4) and (5): Finally, the three channel component values ​​of L, a, and b are obtained; After the X, Y, and Z values ​​are obtained by formula (1), the obtained X, Y, and Z values ​​are normalized according to the X, Y, and Z values ​​specified by the reference white point D65: Where X n =0.950456; where Y n =1; Where Z n =0.950456; S2, using the a and b values ​​obtained in step S1, estimate the red intensity of the original image; In step S2, the specific method for estimating the red intensity of the original image is: S21. Perform the following calculation using the obtained a and b values: redness=(weightA*weightB) γ #(12); Among them, abs() means taking the absolute value, and γ is the weight adjustment coefficient; S22. Normalize the obtained result to obtain the estimated red intensity: Among them, max() means taking the maximum value; S3, using the L value obtained in step S1 to extract edge information from the original image; In step S3, the specific method for extracting edge information from the original image is: edge=L-L blur #(14); Among them, L blur Represents the blurred image of the L channel; S4, using the L value, red intensity result and edge information result obtained in step S1, step S2 and step S3, the original image is enhanced by calculation to obtain the enhanced result L Q ; In step S4, the specific method of enhancing the original image by calculation is: S41, firstly transform the L channel using the following nonlinear mapping function: Among them, e, f, g, and h are the adjustment parameters of the nonlinear mapping function, which adjust the inflection point and stretching degree of the mapping curve; S42, adjusting the intensity of image enhancement by the following formula: DeltaL=(f(L)-L)*coeffL+edge*coeffE#(16); Among them, coeffL=5, coeffE=4.5; S43, the enhancement result L is obtained by the following formula Q , where L Q The range is between 0-255; L Q =L+DeltaL*weitht#(17); S5. Use the obtained L Q , a, and b values, convert the CIELAB color space of the original image to RGB color space, and output the resulting image.

2. According to the method for enhancing the red discrimination of medical images in claim 1, It is characterized in that In step S1, the color depth of the original image to be processed includes at least 8-bit image and 10-bit image.

3. According to the method for enhancing the red discrimination of medical images in claim 1, It is characterized in that The blurred image of the L channel is achieved by using a 9*9 Gaussian filter.

4. According to the method for enhancing the red discrimination of medical images in claim 1, It is characterized in that e=5, f=1.7, g=8, h=1.

4.

5. According to the method for enhancing the red discrimination of medical images described in claim 4, It is characterized in that In step S5, when converting, firstly, the X, Y, and Z values ​​to be converted are obtained by the following formula: X=0.950456*x r #(18); And=and r #(19); Z=1.088754*z r #(20); in, Then fill the obtained X, Y, and Z values ​​to be converted into the following formula to obtain the values ​​of r, g, and b: Finally, the r, g, and b values ​​are restored to the R, G, and B ranges of the original image, and the resulting image is output.