An endoscope imaging method, apparatus, and electronic device and storage medium
By employing binocular vision measurement and fluorescence correction technology, two image sensors are used to acquire white light and fluorescence images, solving the problem that fluorescence signal changes with depth affect the display of fluorescence images, and achieving clearer display of fluorescence areas. This technology is suitable for both rigid and flexible endoscopes.
Patent Information
- Application Number
- CN202410095474.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-23
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-01-23
AI Technical Summary
Changes in fluorescence signal with depth negatively impact the display of fluorescence images, affecting surgical observation and diagnosis.
By using two image sensors to acquire white light and fluorescence images of an object, the depth information of the fluorescence pixels is determined using a binocular vision measurement method, and correction is performed based on a reference depth and fluorescence reception intensity to reduce the influence of fluorescence signal variations with depth.
The corrected fluorescence image can better display the region of interest, especially the edges, which is beneficial for the diagnosis and treatment of the affected area, and reduces the system power consumption and data transmission bandwidth requirements.
Smart Images

Figure CN120360464B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of medical device technology, and more specifically, to an endoscopic imaging method, apparatus, electronic device, and storage medium. Background Technology
[0002] Fluorescence endoscopy utilizes the property of special fluorescent dyes emitting fluorescence signals under specific wavelengths of light to acquire fluorescence signals within the body. These signals are then processed, analyzed, and displayed using image processing techniques. A major advantage of fluorescence endoscopy is its ability to enhance the contrast between regions of interest (such as lesions) and normal tissue (the stained area). Typically, fluorescent dyes emit bright fluorescence signals upon excitation, creating a striking contrast with surrounding tissue. However, when using fluorescence endoscopy to acquire fluorescence signals in real time, the acquisition distance, or depth, varies depending on the surgical or observational needs. Even with a constant concentration of fluorescent dye in the area, the fluorescence signal will still change with distance, affecting the display quality of the fluorescence image and impacting surgical observation and diagnosis.
[0003] Therefore, how to reduce the negative impact of fluorescence signal variation with depth on the display effect of fluorescence images is a technical problem that needs to be solved by those skilled in the art. Summary of the Invention
[0004] The purpose of this application is to provide an endoscopic imaging method, apparatus, electronic device, and computer-readable storage medium that reduces the negative impact of the degree of fluorescence signal variation with depth on the display effect of fluorescence images.
[0005] To achieve the above objectives, this application provides an endoscopic imaging method, comprising:
[0006] A first white light image and a first fluorescence image of an object are acquired using a first image sensor, and a second white light image and a second fluorescence image of the object are acquired using a second image sensor.
[0007] Determine the depth information corresponding to the fluorescent pixels in the first fluorescence image and / or the second fluorescence image based on the first white light image and the second white light image;
[0008] Determine the reference depth and the reference fluorescence receiving intensity corresponding to the reference depth;
[0009] The change in fluorescence receiving intensity corresponding to the fluorescent pixel is determined based on the depth information corresponding to the fluorescent pixel, the reference depth, and the reference fluorescence receiving intensity.
[0010] The fluorescence receiving intensity of the fluorescent pixel is corrected based on the change in fluorescence receiving intensity to obtain a corrected first fluorescence image and / or a corrected second fluorescence image.
[0011] The step of determining the depth information corresponding to the fluorescent pixels in the first fluorescence image and the second fluorescence image based on the first white light image and the second white light image includes:
[0012] The depth information of the white light pixels is determined based on the first white light image and the second white light image, and is used as the depth information corresponding to the fluorescent pixels in the first fluorescence image and / or the second fluorescence image.
[0013] Before determining the depth information corresponding to the fluorescent pixels in the first fluorescence image and the second fluorescence image based on the first white light image and the second white light image, the method further includes:
[0014] The first fluorescence image and / or the second fluorescence image are interpolated to make their resolution the same as that of the first white light image and the second white light image.
[0015] The step of determining the depth information of white light pixels based on the first white light image and the second white light image includes:
[0016] Determine the first difference in the coordinates of the corresponding white light pixels of the same object point in the first white light image and the second white light image in the target direction; wherein, the target direction is the direction of the line connecting the optical center of the first camera and the optical center of the second camera, the first camera is the camera corresponding to the first image sensor, and the second camera is the camera corresponding to the second image sensor;
[0017] Determine the first product of the distance between the optical centers of the first camera and the second camera and the target focal length; wherein the target focal length is the focal length of the first camera and the second camera;
[0018] The first ratio of the first product to the first difference is determined as the depth information corresponding to the white light pixel point of the object point in the first white light image and the second white light image.
[0019] Wherein, determining the reference depth and determining the reference fluorescence receiving intensity corresponding to the reference depth includes:
[0020] Determine the minimum depth information and maximum depth information of the white light pixel, and determine a reference depth between the minimum depth information and the maximum depth information;
[0021] The reference fluorescence receiving intensity corresponding to the reference depth is determined based on the first fluorescence image or the second fluorescence image.
[0022] The step of determining the change in fluorescence receiving intensity corresponding to the fluorescent pixel based on the depth information corresponding to the fluorescent pixel, the reference depth, and the reference fluorescence receiving intensity includes:
[0023] A second ratio is determined between the square of the reference depth and the square of the depth information corresponding to the fluorescent pixel, and a third ratio is determined between the second ratio and a preset adjustment factor.
[0024] Determine the second product between the third ratio and the reference fluorescence receiving intensity, and determine the second difference between the reference fluorescence receiving intensity and the second product as the fluorescence receiving intensity change corresponding to the fluorescence pixel.
[0025] Accordingly, the step of correcting the fluorescence receiving intensity of the fluorescent pixels based on the change in fluorescence receiving intensity to obtain a corrected first fluorescence image and / or a corrected second fluorescence image includes:
[0026] The fluorescence receiving intensity of the fluorescent pixel is corrected to the sum of the fluorescence receiving intensity of the fluorescent pixel and the change in fluorescence receiving intensity, so as to obtain a corrected first fluorescence image and / or a corrected second fluorescence image.
[0027] The method further includes:
[0028] A first fused image is obtained by fusing the first white light image and the corrected first fluorescence image, and a second fused image is obtained by fusing the second white light image and the corrected second fluorescence image;
[0029] The target image is determined based on the first fused image and the second fused image, and the target image is output.
[0030] The step of determining the target image based on the first fused image and the second fused image includes:
[0031] The first fused image or the second fused image is determined as the target image.
[0032] The step of determining the target image based on the first fused image and the second fused image includes:
[0033] A stereoscopic image is generated as the target image based on the first fused image and the second fused image.
[0034] The process of acquiring a first white light image and a first fluorescence image of the object using a first image sensor, and then acquiring a second white light image and a second fluorescence image of the object using a second image sensor, further includes:
[0035] Perform a demosaic operation on the first white light image and the second white light image.
[0036] To achieve the above objectives, this application provides an endoscopic imaging device, comprising:
[0037] The acquisition unit is configured to acquire a first white light image and a first fluorescence image of an object through a first image sensor, and to acquire a second white light image and a second fluorescence image of the object through a second image sensor.
[0038] The first determining unit is configured to determine the depth information corresponding to the fluorescent pixels in the first fluorescence image and / or the second fluorescence image based on the first white light image and the second white light image.
[0039] The second determining unit is used to determine the reference depth and the reference fluorescence receiving intensity corresponding to the reference depth;
[0040] The third determining unit is used to determine the change in fluorescence receiving intensity corresponding to the fluorescent pixel based on the depth information corresponding to the fluorescent pixel, the reference depth, and the reference fluorescence receiving intensity.
[0041] The correction unit is used to correct the fluorescence receiving intensity of the fluorescence pixel according to the change in fluorescence receiving intensity, so as to obtain a corrected first fluorescence image and / or a corrected second fluorescence image.
[0042] To achieve the above objectives, this application provides an electronic device, comprising:
[0043] Memory, used to store computer programs;
[0044] A processor is used to execute the computer program to implement the steps of the endoscopic imaging method described above.
[0045] To achieve the above objectives, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the endoscopic imaging method described above.
[0046] As can be seen from the above scheme, the endoscopic imaging method provided in this application includes: acquiring a first white light image and a first fluorescence image of an object through a first image sensor, and acquiring a second white light image and a second fluorescence image of the object through a second image sensor; determining depth information corresponding to fluorescent pixels in the first fluorescence image and / or the second fluorescence image based on the first white light image and the second white light image; determining a reference depth and determining a reference fluorescence receiving intensity corresponding to the reference depth; determining a change in fluorescence receiving intensity corresponding to the fluorescent pixel based on the depth information corresponding to the fluorescent pixel, the reference depth, and the reference fluorescence receiving intensity; correcting the fluorescence receiving intensity of the fluorescent pixel based on the change in fluorescence receiving intensity to obtain a corrected first fluorescence image and / or a corrected second fluorescence image.
[0047] In this application, endoscopic imaging and fluorescence image correction can be achieved using only two image sensors, a first image sensor and a second image sensor. This reduces the bandwidth requirements for data transmission and the power consumption of the endoscopic imaging system, making it applicable to both rigid and flexible endoscopes. Furthermore, the endoscopic imaging method provided in this application corrects the fluorescence reception intensity based on the depth information corresponding to pixels in the fluorescence image. It enhances the fluorescence of pixels at greater depths (i.e., farther distances) and weakens the fluorescence of pixels at shallower depths (i.e., closer distances), thereby reducing the negative impact of fluorescence signal variations with depth on the display effect of the fluorescence image. The corrected fluorescence image (and other images generated therefrom, such as white light-fluorescence fusion images, stereoscopic white light-fluorescence fusion images, stereoscopic fluorescence images, etc.) can better display the fluorescence region, especially enhancing the edges of the region of interest, which is beneficial for the diagnosis and treatment of affected areas. This application also discloses an endoscopic imaging device, an electronic device, and a computer-readable storage medium, which can achieve the same technical effects.
[0048] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit this application. Attached Figure Description
[0049] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. The drawings are used to provide a further understanding of this disclosure and constitute a part of the specification. They are used together with the following detailed description to explain this disclosure, but do not constitute a limitation of this disclosure. In the drawings:
[0050] Figure 1This is a structural diagram of an endoscopic imaging system according to an exemplary embodiment;
[0051] Figure 2 This is a flowchart illustrating an endoscopic imaging method according to an exemplary embodiment;
[0052] Figure 3 This is a schematic diagram illustrating a method for calculating depth information according to an exemplary embodiment;
[0053] Figure 4 This is a schematic diagram illustrating the relationship between fluorescence signal intensity and depth according to an exemplary embodiment;
[0054] Figure 5 A flowchart illustrating another endoscopic imaging method according to an exemplary embodiment;
[0055] Figure 6 This is a structural diagram of an endoscopic imaging device according to an exemplary embodiment;
[0056] Figure 7 This is a structural diagram of an electronic device according to an exemplary embodiment. Detailed Implementation
[0057] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. Furthermore, in the embodiments of this application, "first," "second," etc., are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0058] To facilitate understanding of the endoscopic imaging method provided in this application, the endoscopic imaging system used in this application will first be introduced, such as... Figure 1 As shown, it includes a light source module, an imaging module, an image processing module, and a microprocessor module.
[0059] The light source module includes a light source, illumination optics, imaging fiber bundle, and illumination lens. The light source can be an LED (Light Emitting Diode) source, which is a multi-wavelength visible light source or a fluorescent excitation light source. The illumination optics collect the light from the illumination source and focus it onto the imaging fiber bundle; the end face of the imaging fiber bundle is located on the object plane of the illumination lens.
[0060] The imaging module includes two image sensors, corresponding driving circuits, signal lines, a camera interface, and an imaging lens. The two image sensors are for the left and right eyes, respectively, and can be RGBIR image sensors. RGB pixels are responsible for receiving white light, and IR pixels are responsible for receiving fluorescence; that is, the RGBIR image sensors are used to simultaneously acquire white light and fluorescence images. The image sensors are located on the image plane of the imaging lens, and the signal lines connect the driving circuits and the camera interface. The imaging module transmits the acquired image information to the image processing module.
[0061] The image processing module includes a series of algorithms from sensor image data to display output. The image processing module is used to obtain the depth information of the object from the image sensor using the principle of binocular measurement, perform fluorescence signal correction based on the depth information to reduce the degree of signal change with distance, and fuse the white light image and the fluorescence image. This can be done by fusing a single-channel white light image and fluorescence image, that is, fusing the white light image and fluorescence image corresponding to one image sensor, or by fusing a dual-channel white light image and fluorescence image, that is, fusing the images after fusing the white light images and fluorescence images corresponding to two image sensors again to form an image with a stereoscopic display effect.
[0062] The microprocessor module is used to control the camera, etc.
[0063] The applicant discovered that in related technologies, 3D fluorescence endoscopes have relatively complex structures, requiring two sets of image sensors for each eye, with each set corresponding to a white light sensor and a fluorescence sensor, totaling four sensors for endoscopic imaging. Too many sensors place high demands on data transmission bandwidth, result in high power consumption and difficult heat dissipation, and make the endoscopes too large, only compatible with optical endoscopes. The endoscopic imaging system provided in this application uses only two image sensors to achieve endoscopic imaging and can be applied to both rigid and flexible endoscopes.
[0064] This application discloses an endoscopic imaging method that reduces the negative impact of the degree of fluorescence signal variation with depth on the display effect of fluorescence images.
[0065] See Figure 2 A flowchart illustrating an endoscopic imaging method according to an exemplary embodiment, such as... Figure 2 As shown, it includes:
[0066] S101: Acquire a first white light image and a first fluorescence image of the object through a first image sensor, and acquire a second white light image and a second fluorescence image of the object through a second image sensor;
[0067] The execution entity in this embodiment is the image processing module of the aforementioned endoscopic imaging system. In a specific implementation, a first white light image and a first fluorescence image of the object are acquired by a first image sensor, and a second white light image and a second fluorescence image of the object are acquired by a second image sensor. In this embodiment, the first and second image sensors are image sensors corresponding to the left and right eyes, respectively. Both the first and second image sensors can be RGBIR image sensors, used to simultaneously acquire white light and fluorescence images. The first and second image sensors have the same resolution; that is, the first white light image acquired by the first image sensor and the second white light image acquired by the second image sensor have the same resolution, and the first fluorescence image acquired by the first image sensor and the second fluorescence image acquired by the second image sensor also have the same resolution.
[0068] In a preferred embodiment, after acquiring a first white light image and a first fluorescence image of the object through a first image sensor, and a second white light image and a second fluorescence image of the object through a second image sensor, the method further includes: performing a demosaic operation on the first white light image and the second white light image. It is understood that, since the RGBIR image sensor uses a Bayer template in the RGBIR form, a demosaic operation is required on the single-channel signal to obtain a three-channel RGB signal, with all three channels having the same resolution.
[0069] S102: Determine the depth information corresponding to the fluorescent pixels in the first fluorescence image and / or the second fluorescence image based on the first white light image and the second white light image;
[0070] If an output image is subsequently required based on the first fluorescence image, then in this step, the depth information corresponding to the fluorescent pixels in the first fluorescence image is determined based on the first white light image and the second white light image. If an output image is subsequently required based on the second fluorescence image, then in this step, the depth information corresponding to the fluorescent pixels in the second fluorescence image is determined based on the first white light image and the second white light image. If an output image is subsequently required based on both the first and second fluorescence images, then in this step, the depth information corresponding to the fluorescent pixels in both the first and second fluorescence images is determined simultaneously based on the first white light image and the second white light image.
[0071] As a possible implementation, determining the depth information corresponding to the fluorescent pixels in the first fluorescence image and the second fluorescence image based on the first white light image and the second white light image includes: determining the depth information of the white light pixels based on the first white light image and the second white light image, and using it as the depth information corresponding to the fluorescent pixels in the first fluorescence image and / or the second fluorescence image.
[0072] In practice, a binocular vision measurement method is used to determine the depth information corresponding to the fluorescent pixels in the fluorescence image. It is understood that since the white light image is clearer and has richer details than the fluorescence image, a binocular vision measurement method can be used to determine the depth of each white light pixel in the first and second white light images, and then these depths can be mapped one-to-one to the fluorescent pixels in the fluorescence image.
[0073] As a preferred embodiment, before determining the depth information corresponding to the fluorescent pixels in the first fluorescence image and the second fluorescence image based on the first white light image and the second white light image, the method further includes: interpolating the first fluorescence image and / or the second fluorescence image so that its resolution is the same as that of the first white light image and the second white light image.
[0074] Understandably, since the resolution of the native IR signal is different from that of the three-channel RGB signal, it is necessary to interpolate the native IR signal to the same resolution as the three-channel RGB signal. That is, the first fluorescence image and the second fluorescence image are interpolated to the same resolution as the first white light image and the second white light image, so that the depth information of the pixels in the white light image can be matched one-to-one with the pixels in the fluorescence image in subsequent steps.
[0075] As a feasible implementation, determining the depth information of white light pixels based on the first white light image and the second white light image includes: determining a first difference in the coordinates of the white light pixels corresponding to the same object point in the first white light image and the second white light image in a target direction; wherein, the target direction is the direction of the line connecting the optical centers of the first camera and the second camera, the first camera being the camera corresponding to the first image sensor, and the second camera being the camera corresponding to the second image sensor; determining a first product of the distance between the optical centers of the first camera and the second camera and a target focal length; wherein, the target focal length is the focal length of the first camera and the second camera; and determining a first ratio of the first product to the first difference as the depth information corresponding to the white light pixels of the object point in the first white light image and the second white light image.
[0076] In specific implementation, such as Figure 3 As shown, point P is the object point, and point O... l O is the optical center of the first camera (i.e., the left camera). r Let f be the optical center of the second camera (i.e., the right camera), f be the focal length of the first camera and the second camera, and x be the focal length of the second camera. l Let x be the coordinates of point P in the target direction corresponding to the white light pixel in the first white light image. rLet Δδ be the coordinates of the white pixel corresponding to point P in the second white light image in the target direction, where the target direction is the direction of the line connecting the optical centers of the first and second cameras. Δδ is the difference in coordinates of the white pixel corresponding to point P in the first and second white light images in the target direction, i.e., x. l -x r D represents the depth information of the white light pixel corresponding to point P in the first and second white light images. The formula for calculating the depth information D of point P is:
[0077]
[0078] Since the white light signal and the fluorescence signal originate from the same image sensor and have been processed to the same resolution, the depth information of the white light pixel corresponding to point P in the first white light image and the second white light image is also the depth information of the fluorescence pixel corresponding to point P in the first fluorescence image and the second fluorescence image.
[0079] S103: Determine the reference depth and determine the reference fluorescence receiving intensity corresponding to the reference depth;
[0080] In this step, a reference depth and its corresponding reference fluorescence receiving intensity are determined so that subsequent steps can correct the fluorescence receiving intensity based on the reference depth and the reference fluorescence receiving intensity.
[0081] As a feasible implementation, determining the reference depth and the corresponding reference fluorescence receiving intensity includes: determining the minimum and maximum depth information of the white light pixel, determining a reference depth between the minimum and maximum depth information, and determining the reference fluorescence receiving intensity corresponding to the reference depth based on the first fluorescence image or the second fluorescence image. In a specific implementation, the reference depth is determined between the minimum and maximum depth information of the white light pixel, and the corresponding reference fluorescence receiving intensity is determined in the first or second fluorescence image. For example, the average of the minimum and maximum depth information can be selected from the depth information of all white light pixels as the reference depth, or the reference depth can be determined through other calculation methods. The reference fluorescence receiving intensity is then determined based on the reference depth and can be used to correct the fluorescence image. Therefore, the setting scheme of the reference value can be adjusted according to the display effect requirements of the image. For example, if you want to enhance the edges of the fluorescence image, you can use the shallowest (nearest) value with the highest fluorescence receiving intensity as the reference value to enhance pixels with poor display effects in the fluorescence image.
[0082] S104: Determine the change in fluorescence receiving intensity corresponding to the fluorescent pixel based on the depth information corresponding to the fluorescent pixel, the reference depth, and the reference fluorescence receiving intensity;
[0083] S105: Correct the fluorescence receiving intensity of the fluorescent pixel according to the change in fluorescence receiving intensity to obtain a corrected first fluorescence image and / or a corrected second fluorescence image.
[0084] In practice, the fluorescence receiving intensity is corrected based on the depth information, reference depth, and reference fluorescence receiving intensity of the pixels in the fluorescence image. The fluorescence receiving intensity of fluorescent pixels with depth information greater than the reference depth is increased, while the fluorescence receiving intensity of fluorescent pixels with depth information less than the reference depth is decreased, so as to reduce the degree of fluorescence signal variation with depth, and thus obtain the corrected first fluorescence image and the corrected second fluorescence image.
[0085] As a feasible implementation, determining the fluorescence reception intensity change corresponding to the fluorescent pixel based on the depth information corresponding to the fluorescent pixel, the reference depth, and the reference fluorescence reception intensity includes: determining a second ratio between the square of the reference depth and the square of the depth information corresponding to the fluorescent pixel; determining a third ratio between the second ratio and a preset adjustment factor; determining a second product between the third ratio and the reference fluorescence reception intensity; and determining a second difference between the reference fluorescence reception intensity and the second product as the fluorescence reception intensity change corresponding to the fluorescent pixel. Correspondingly, correcting the fluorescence reception intensity of the fluorescent pixel based on the fluorescence reception intensity change to obtain a corrected first fluorescence image and / or a corrected second fluorescence image includes: correcting the fluorescence reception intensity of the fluorescent pixel to the sum of the fluorescence reception intensity of the fluorescent pixel and the fluorescence reception intensity change, to obtain a corrected first fluorescence image and / or a corrected second fluorescence image.
[0086] It should be noted that, according to the inverse square law of illuminance and distance, the illuminance on the detection surface is inversely proportional to the square of the distance between the light source and the detection surface; that is, the fluorescence signal intensity I is inversely proportional to the depth D. For example... Figure 4 As shown, the fluorescence receiving intensity corresponding to distance d1 is I1, and the fluorescence receiving intensity corresponding to distance d2 is I2. The following relationship can be derived:
[0087]
[0088] Where s is an adjustment factor, which can be 1. The derivation shows that when the distance is adjusted from d1 to d2, the change in fluorescence intensity is:
[0089]
[0090] To ensure that fluorescence intensity does not change with distance, the correction amount for fluorescence receiving intensity should equal the change in fluorescence receiving intensity. In practice, after enabling the fluorescence correction function, a reference depth is selected, and the reference fluorescence receiving intensity corresponding to that depth is determined. For example, d1 is selected as the reference depth, and I1 as the reference fluorescence receiving intensity. For a fluorescent pixel with depth information d2, its actual measured fluorescence receiving intensity is I2. The change in fluorescence receiving intensity, i.e., the fluorescence receiving intensity correction amount, is calculated according to the formula for calculating the change in fluorescence receiving intensity. The fluorescence receiving intensity of the fluorescent pixel is corrected as: I = I2 + ΔI, where I is the corrected fluorescence receiving intensity.
[0091] It should be noted that in this embodiment, either the corrected first fluorescence image or the corrected second fluorescence image can be directly output, and the output image is a two-dimensional fluorescence image. Alternatively, the corrected first fluorescence image or the corrected second fluorescence image can be fused and then output, resulting in a stereoscopic fluorescence image, which is a three-dimensional image and has a stereoscopic display effect after being displayed on a 3D monitor.
[0092] Based on this, as a preferred embodiment, this embodiment further includes: fusing the first white light image and the corrected first fluorescence image to obtain a first fused image, fusing the second white light image and the corrected second fluorescence image to obtain a second fused image; determining a target image based on the first fused image and the second fused image, and outputting the target image.
[0093] In practice, a first fused image is obtained by fusing the first white light image and the corrected first fluorescence image, and a second fused image is obtained by fusing the second white light image and the corrected second fluorescence image. No specific fusion method is limited here. The target image for output is determined based on the first and second fused images.
[0094] As a possible implementation, determining the target image based on the first fused image and the second fused image includes: determining either the first fused image or the second fused image as the target image. In a specific implementation, either the first fused image or the second fused image can be directly output, that is, a white light-fluorescence fused image can be output, which is a two-dimensional image and does not have a stereoscopic display effect.
[0095] As another feasible implementation, determining the target image based on the first fused image and the second fused image includes: generating a stereoscopic image as the target image based on the first fused image and the second fused image. In specific implementations, the target image can be obtained by fusing the first fused image and the second fused image for output. The specific fusion method is not limited here. For example, stereoscopic display interlaced fusion, vertical fusion, horizontal fusion, etc., can be used. The output target image is a stereoscopic white light-fluorescence fused image, which is a three-dimensional image and has a stereoscopic display effect after passing through a 3D display.
[0096] For RGBIR image sensors, since they simultaneously acquire white light and fluorescence images, it's impossible to separately adjust the white light and fluorescence signals when adjusting parameters affecting signal strength, such as exposure time and gain, in related technologies. However, by employing the fluorescence correction scheme of this embodiment, adjusting the image sensor parameters adjusts the white light signal while simultaneously correcting the fluorescence signal, ensuring the fluorescence signal remains constant or changes very little, thus achieving independent adjustment of the white light signal. When separate adjustment of the fluorescence signal is needed, the image sensor parameters can be fine-tuned to minimize changes in the white light signal, while simultaneously increasing the aforementioned adjustment factor s to achieve a greater degree of fluorescence signal correction, thereby adjusting the fluorescence signal. Therefore, the fluorescence correction scheme of this embodiment achieves separate and independent adjustment of the white light and fluorescence signals.
[0097] In this embodiment, endoscopic imaging and fluorescence image correction can be achieved using only two image sensors, a first image sensor and a second image sensor. This reduces the bandwidth requirements for data transmission and the power consumption of the endoscopic imaging system, making it applicable to both rigid and flexible endoscopes. Furthermore, the endoscopic imaging method provided in this embodiment corrects the fluorescence reception intensity based on the depth information corresponding to pixels in the fluorescence image. It enhances the fluorescence of pixels at greater depths (i.e., farther distances) and weakens the fluorescence of pixels at shallower depths (i.e., closer distances), thereby reducing the negative impact of fluorescence signal variations with depth on the display effect of the fluorescence image. The corrected fluorescence image (and other images generated therefrom, such as white light-fluorescence fusion images, stereoscopic white light-fluorescence fusion images, stereoscopic fluorescence images, etc.) can better display the fluorescence region, especially enhancing the edges of the region of interest, which is beneficial for the diagnosis and treatment of affected areas.
[0098] This application discloses an endoscopic imaging method. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Specifically:
[0099] See Figure 5 A flowchart illustrating another endoscopic imaging method according to an exemplary embodiment, such as... Figure 5 As shown, it includes:
[0100] S201: Acquire a first white light image and a first fluorescence image of the object using a first image sensor, and acquire a second white light image and a second fluorescence image of the object using a second image sensor;
[0101] S202: Determine the depth information corresponding to the fluorescent pixels in the first fluorescence image and the second fluorescence image based on the first white light image and the second white light image;
[0102] S203: Determine the reference depth and determine the reference fluorescence receiving intensity corresponding to the reference depth;
[0103] S204: Determine the change in fluorescence receiving intensity corresponding to the fluorescent pixel based on the depth information corresponding to the fluorescent pixel, the reference depth, and the reference fluorescence receiving intensity;
[0104] S205: Correct the fluorescence receiving intensity of the fluorescence pixel according to the change in fluorescence receiving intensity to obtain a corrected first fluorescence image and a corrected second fluorescence image;
[0105] S206: Fusing the first white light image and the corrected first fluorescence image to obtain a first fused image, and fusing the second white light image and the corrected second fluorescence image to obtain a second fused image;
[0106] S207: Determine whether a stereoscopic display image needs to be output; if yes, proceed to S208; if no, proceed to S209.
[0107] S208: Generate a stereoscopic image as a target image based on the first fused image and the second fused image, and output the target image;
[0108] S209: Output the first fused image or the second fused image.
[0109] In this embodiment, when a stereoscopic display image is not required, either the first fused image or the second fused image is directly output, resulting in a two-dimensional image without a stereoscopic effect. When a stereoscopic display image is required, the first fused image and the second fused image are fused to obtain the target image for output. The output target image is a three-dimensional image, which exhibits a stereoscopic display effect after passing through a 3D display.
[0110] Therefore, this embodiment can select to output a two-dimensional image or a three-dimensional image according to the requirements.
[0111] The following describes an endoscopic imaging device provided in an embodiment of this application. The endoscopic imaging device described below and the endoscopic imaging method described above can be referred to each other.
[0112] See Figure 6 A structural diagram of an endoscopic imaging device according to an exemplary embodiment is shown, as follows: Figure 6 As shown, it includes:
[0113] The acquisition unit 601 is used to acquire a first white light image and a first fluorescence image of an object through a first image sensor, and to acquire a second white light image and a second fluorescence image of the object through a second image sensor.
[0114] The first determining unit 602 is used to determine the depth information corresponding to the fluorescent pixels in the first fluorescence image and / or the second fluorescence image based on the first white light image and the second white light image.
[0115] The second determining unit 603 is used to determine the reference depth and the reference fluorescence receiving intensity corresponding to the reference depth;
[0116] The third determining unit 604 is used to determine the change in fluorescence receiving intensity corresponding to the fluorescent pixel based on the depth information corresponding to the fluorescent pixel, the reference depth, and the reference fluorescence receiving intensity.
[0117] The correction unit 605 is used to correct the fluorescence receiving intensity of the fluorescence pixel according to the change in fluorescence receiving intensity, so as to obtain a corrected first fluorescence image and / or a corrected second fluorescence image.
[0118] In this embodiment, endoscopic imaging and fluorescence image correction can be achieved using only two image sensors, a first image sensor and a second image sensor. This reduces the bandwidth requirements for data transmission and the power consumption of the endoscopic imaging system, making it applicable to both rigid and flexible endoscopes. Furthermore, the endoscopic imaging device provided in this embodiment corrects the fluorescence reception intensity based on the depth information corresponding to pixels in the fluorescence image. It enhances the fluorescence of pixels at greater depths (i.e., farther distances) and weakens the fluorescence of pixels at shallower depths (i.e., closer distances), thereby reducing the negative impact of fluorescence signal variations with depth on the display effect of the fluorescence image. The corrected fluorescence image (and other images generated therefrom, such as white light-fluorescence fusion images, stereoscopic white light-fluorescence fusion images, stereoscopic fluorescence images, etc.) can better display the fluorescence region, especially enhancing the edges of the region of interest, which is beneficial for the diagnosis and treatment of affected areas.
[0119] Based on the above embodiments, as a preferred embodiment, the first determining unit 602 is specifically used to: determine the depth information of the white light pixels according to the first white light image and the second white light image, and use it as the depth information corresponding to the fluorescent pixels in the first fluorescence image and / or the second fluorescence image.
[0120] Based on the above embodiments, as a preferred embodiment, it further includes:
[0121] An interpolation unit is used to interpolate the first fluorescence image and / or the second fluorescence image so that its resolution is the same as that of the first white light image and the second white light image.
[0122] Based on the above embodiments, as a preferred implementation, the first determining unit 602 is specifically used to: determine a first difference in the coordinates of the white light pixels corresponding to the same object point in the first white light image and the second white light image in a target direction; wherein, the target direction is the direction of the line connecting the optical center of the first camera and the optical center of the second camera, the first camera is the camera corresponding to the first image sensor, and the second camera is the camera corresponding to the second image sensor; determine a first product of the distance between the optical centers of the first camera and the second camera and the target focal length; wherein, the target focal length is the focal length of the first camera and the second camera; and determine a first ratio of the first product to the first difference as the depth information corresponding to the white light pixels corresponding to the object point in the first white light image and the second white light image.
[0123] Based on the above embodiments, as a preferred embodiment, the second determining unit 603 is specifically used to: determine the minimum depth information and the maximum depth information of the white light pixel, determine a reference depth between the minimum depth information and the maximum depth information, and determine the reference fluorescence receiving intensity corresponding to the reference depth based on the first fluorescence image or the second fluorescence image.
[0124] Based on the above embodiments, as a preferred embodiment, the third determining unit 604 is specifically used to: determine a second ratio between the square of the reference depth and the square of the depth information corresponding to the fluorescent pixel; determine a third ratio between the second ratio and a preset adjustment factor; determine a second product between the third ratio and the reference fluorescence receiving intensity; and determine a second difference between the reference fluorescence receiving intensity and the second product as the change in fluorescence receiving intensity corresponding to the fluorescent pixel.
[0125] Accordingly, the correction unit 605 is specifically used to: correct the fluorescence receiving intensity of the fluorescent pixel to the sum of the fluorescence receiving intensity of the fluorescent pixel and the change in fluorescence receiving intensity, so as to obtain a corrected first fluorescence image and / or a corrected second fluorescence image.
[0126] Based on the above embodiments, as a preferred embodiment, it further includes:
[0127] A fusion unit is used to fuse the first white light image and the corrected first fluorescence image to obtain a first fused image, and to fuse the second white light image and the corrected second fluorescence image to obtain a second fused image;
[0128] The output unit is used to determine the target image based on the first fused image and the second fused image, and output the target image.
[0129] Based on the above embodiments, as a preferred embodiment, the output unit is specifically used to: determine the first fused image or the second fused image as the target image.
[0130] Based on the above embodiments, as a preferred embodiment, the output unit is specifically used to: generate a stereoscopic image as the target image based on the first fused image and the second fused image.
[0131] Based on the above embodiments, as a preferred embodiment, it further includes:
[0132] The demosaic unit is used to perform a demosaic operation on the first white light image and the second white light image.
[0133] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0134] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiments of this application, the embodiments of this application also provide an electronic device. Figure 7 This is a structural diagram of an electronic device according to an exemplary embodiment, such as... Figure 7 As shown, the electronic device includes:
[0135] Communication interface 1 enables information exchange with other devices, such as network devices;
[0136] Processor 2 is connected to communication interface 1 to enable information exchange with other devices and, when running a computer program, executes the endoscopic imaging method provided by one or more of the above-mentioned technical solutions. The computer program is stored in memory 3.
[0137] Of course, in practical applications, the various components in an electronic device are coupled together through bus system 4. It can be understood that bus system 4 is used to achieve communication and connection between these components. In addition to the data bus, bus system 4 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 7 The general will label all buses as Bus System 4.
[0138] The memory 3 in this embodiment is used to store various types of data to support the operation of the electronic device. Examples of such data include any computer program used to operate on the electronic device.
[0139] It is understood that memory 3 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memory 3 described in the embodiments of this application is intended to include, but is not limited to, these and any other suitable types of memory.
[0140] The methods disclosed in the embodiments of this application can be applied to processor 2, or implemented by processor 2. Processor 2 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 2 or by instructions in the form of software. The processor 2 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 2 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory 3. Processor 2 reads the program in memory 3 and completes the steps of the aforementioned method in combination with its hardware.
[0141] When processor 2 executes the program, it implements the corresponding processes in the various methods of the embodiments of this application. For the sake of brevity, these will not be described in detail here.
[0142] In an exemplary embodiment, this application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, such as a memory 3 that stores a computer program, which can be executed by a processor 2 to complete the steps described in the aforementioned method. The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM.
[0143] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.
[0144] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.
[0145] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An endoscopic imaging method, characterized in that, include: A first white light image and a first fluorescence image of an object are acquired using a first image sensor, and a second white light image and a second fluorescence image of the object are acquired using a second image sensor. Determine the depth information corresponding to the fluorescent pixels in the first fluorescence image and / or the second fluorescence image based on the first white light image and the second white light image; Determine the reference depth and the reference fluorescence receiving intensity corresponding to the reference depth; The change in fluorescence receiving intensity corresponding to the fluorescent pixel is determined based on the depth information corresponding to the fluorescent pixel, the reference depth, and the reference fluorescence receiving intensity. The fluorescence receiving intensity of the fluorescent pixel is corrected according to the change in fluorescence receiving intensity to obtain a corrected first fluorescence image and / or a corrected second fluorescence image. The step of determining the change in fluorescence receiving intensity corresponding to the fluorescent pixel based on the depth information corresponding to the fluorescent pixel, the reference depth, and the reference fluorescence receiving intensity includes: A second ratio is determined between the square of the reference depth and the square of the depth information corresponding to the fluorescent pixel, and a third ratio is determined between the second ratio and a preset adjustment factor. Determine the second product between the third ratio and the reference fluorescence receiving intensity, and determine the second difference between the reference fluorescence receiving intensity and the second product as the fluorescence receiving intensity change corresponding to the fluorescence pixel. Accordingly, the step of correcting the fluorescence receiving intensity of the fluorescent pixels based on the change in fluorescence receiving intensity to obtain a corrected first fluorescence image and / or a corrected second fluorescence image includes: The fluorescence receiving intensity of the fluorescent pixels is corrected to the sum of the fluorescence receiving intensity of the fluorescent pixels and the change in fluorescence receiving intensity, so as to increase the fluorescence receiving intensity of fluorescent pixels with depth information greater than the reference depth and decrease the fluorescence receiving intensity of fluorescent pixels with depth information less than the reference depth, thereby obtaining a corrected first fluorescence image and / or a corrected second fluorescence image.
2. The endoscopic imaging method according to claim 1, characterized in that, The step of determining the depth information corresponding to the fluorescent pixels in the first fluorescence image and the second fluorescence image based on the first white light image and the second white light image includes: The depth information of the white light pixels is determined based on the first white light image and the second white light image, and is used as the depth information corresponding to the fluorescent pixels in the first fluorescence image and / or the second fluorescence image.
3. The endoscopic imaging method according to claim 2, characterized in that, Before determining the depth information corresponding to the fluorescent pixels in the first fluorescence image and the second fluorescence image based on the first white light image and the second white light image, the method further includes: The first fluorescence image and / or the second fluorescence image are interpolated to make their resolution the same as that of the first white light image and the second white light image.
4. The endoscopic imaging method according to claim 2, characterized in that, Determining the depth information of white light pixels based on the first white light image and the second white light image includes: Determine the first difference in the coordinates of the corresponding white light pixels of the same object point in the first white light image and the second white light image in the target direction; wherein, the target direction is the direction of the line connecting the optical center of the first camera and the optical center of the second camera, the first camera is the camera corresponding to the first image sensor, and the second camera is the camera corresponding to the second image sensor; Determine the first product of the distance between the optical centers of the first camera and the second camera and the target focal length; wherein the target focal length is the focal length of the first camera and the second camera; The first ratio of the first product to the first difference is determined as the depth information corresponding to the white light pixel point of the object point in the first white light image and the second white light image.
5. The endoscopic imaging method according to claim 2, characterized in that, The step of determining the reference depth and determining the reference fluorescence receiving intensity corresponding to the reference depth includes: Determine the minimum depth information and maximum depth information of the white light pixel, and determine a reference depth between the minimum depth information and the maximum depth information; The reference fluorescence receiving intensity corresponding to the reference depth is determined based on the first fluorescence image or the second fluorescence image.
6. The endoscopic imaging method according to claim 1, characterized in that, The method further includes: A first fused image is obtained by fusing the first white light image and the corrected first fluorescence image, and a second fused image is obtained by fusing the second white light image and the corrected second fluorescence image; The target image is determined based on the first fused image and the second fused image, and the target image is output.
7. The endoscopic imaging method according to claim 6, characterized in that, Determining the target image based on the first fused image and the second fused image includes: The first fused image or the second fused image is determined as the target image.
8. The endoscopic imaging method according to claim 6, characterized in that, Determining the target image based on the first fused image and the second fused image includes: A stereoscopic image is generated as the target image based on the first fused image and the second fused image.
9. The endoscopic imaging method according to claim 1, characterized in that, After acquiring a first white light image and a first fluorescence image of the object through a first image sensor, and acquiring a second white light image and a second fluorescence image of the object through a second image sensor, the method further includes: Perform a demosaic operation on the first white light image and the second white light image.
10. An endoscopic imaging device, characterized in that, include: The acquisition unit is configured to acquire a first white light image and a first fluorescence image of an object through a first image sensor, and to acquire a second white light image and a second fluorescence image of the object through a second image sensor. The first determining unit is configured to determine the depth information corresponding to the fluorescent pixels in the first fluorescence image and / or the second fluorescence image based on the first white light image and the second white light image. The second determining unit is used to determine the reference depth and the reference fluorescence receiving intensity corresponding to the reference depth; The third determining unit is used to determine the change in fluorescence receiving intensity corresponding to the fluorescent pixel based on the depth information corresponding to the fluorescent pixel, the reference depth, and the reference fluorescence receiving intensity. The correction unit is used to correct the fluorescence receiving intensity of the fluorescence pixel according to the change in fluorescence receiving intensity, so as to obtain a corrected first fluorescence image and / or a corrected second fluorescence image. Specifically, the third determining unit is used to: determine a second ratio between the square of the reference depth and the square of the depth information corresponding to the fluorescent pixel, and determine a third ratio between the second ratio and a preset adjustment factor; Determine the second product between the third ratio and the reference fluorescence receiving intensity, and determine the second difference between the reference fluorescence receiving intensity and the second product as the fluorescence receiving intensity change corresponding to the fluorescence pixel. Accordingly, the correction unit is specifically used to: correct the fluorescence receiving intensity of the fluorescent pixel to the sum of the fluorescence receiving intensity of the fluorescent pixel and the change in fluorescence receiving intensity, so as to increase the fluorescence receiving intensity of fluorescent pixels with depth information greater than the reference depth and decrease the fluorescence receiving intensity of fluorescent pixels with depth information less than the reference depth, thereby obtaining a corrected first fluorescence image and / or a corrected second fluorescence image.
11. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the endoscopic imaging method as described in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the endoscopic imaging method as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Fluorescence excitation binocular endoscopic system
CN103654699A
Endoscope imaging method and endoscope imaging system
CN111803013A
