Motion-compensated laser speckle contrast imaging.
Patent Information
- Application Number
- JP2023517650
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2020-09-18
- Filing Date
- 2021-09-17
- Publication Date
- 2024-09-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing laser speckle contrast imaging (LSCI) systems are highly sensitive to motion artifacts, such as those caused by tissue movement, breathing, heartbeat, or camera movement, which degrade the accuracy and resolution of blood flow imaging, particularly in handheld systems, making it difficult to achieve real-time, high-resolution perfusion imaging without the use of fiducial markers.
A method for motion-compensated laser speckle contrast imaging that registers and aligns multiple speckle images using transformation parameters based on pixel similarity measures, allowing for marker-free, high-resolution perfusion imaging by combining images to reduce noise and motion artifacts, utilizing coherent light at different wavelengths for enhanced registration.
The method enables real-time, robust, high-resolution perfusion imaging with reduced motion artifacts, improving diagnostic accuracy and reducing the need for fiducial markers, especially in applications where marker placement is undesirable.
Abstract
Description
[Technical Field]
[0001] The present disclosure relates to motion-compensated laser speckle contrast imaging, and in particular, but not exclusively, to methods and systems for motion-compensated laser speckle contrast imaging, modules for motion compensation in laser speckle contrast imaging systems and methods, and computer program products that enable a computer system to perform such methods. [Background technology]
[0002] Laser speckle contrast imaging (LSCI) provides a fast, full-field, and in vivo imaging method for determining two-dimensional (2D) perfusion maps of living biological tissues. Perfusion can be an indicator of tissue viability and thus can provide useful information for diagnosis and surgery. For example, during intestinal surgery, selection of a highly perfused intervention site can reduce anastomotic leakage.
[0003] LSCI is based on the principle that backscattered light from tissue illuminated with coherent laser light forms a random interference pattern at the detector due to differences in optical path length. The resulting interference pattern is called a speckle pattern and can be imaged in real time using a digital camera. Particle movement within the tissue causes fluctuations in this speckle pattern, resulting in speckle blurring in those parts of the images where perfusion occurs.
[0004] For example, if the fluctuations are caused by the movement of red blood cells, this blurring can be related to blood flow. Thus, blood perfusion can be relatively easily imaged in living tissue. An example of a state-of-the-art clinical perfusion imaging technique using LSCI is described in the review article "Clinical applications of laser speckle contrast imaging: a review" by W. Heeman et al., J. Biomed. Opt. 24:8 (2019). Perfusion by other bodily fluids, such as lymphatic perfusion, can be imaged in a similar manner.
[0005] However, LSCI is extremely sensitive to any kind of motion: blurring can be caused not only by blood flow motion, but also by other kinds of motion, such as tissue motion due to breathing, heartbeat, muscle contraction, or camera, especially handheld, motion.
[0006] In many medical applications, such as diagnosis and surgery, it is desirable for LSCI systems to be able to generate accurate, high-resolution blood flow images, particularly microcirculation images, in real time with significantly reduced motion artifacts. Therefore, measures are needed to minimize motion artifacts during processing of raw speckle images so that accurate, high-resolution perfusion images can be obtained. This can improve the discrimination between well-perfused and poorly perfused areas, and thus improve diagnostic and treatment outcomes.
[0007] Various techniques for reducing motion artifacts in speckle images are known in the prior art. For example, International Publication No. 2020 / 045015(A1) discloses a laser speckle contrast imaging system capable of capturing near-infrared speckle images and white-light images of an imaging target. A simple motion detection technique may involve using a reference marker on the image target to track feature points in a visible-light image or changes in speckle shape in a speckle image to determine a global motion vector indicating the amount of motion of the image target between two subsequent images. Multiple speckle contrast images may be generated based on the multiple speckle images, and the amount of motion may be corrected based on the motion vector.
[0008] Motion is even more pronounced in handheld LSCI systems compared to systems supported by, for example, a tripod. For example, Lertsakdadet et al., in their paper 'Correcting for motion artifact in handheld laser speckle images', Journal of biomedical optics 23(2), March 2018, describe a motion compensation method for laser speckle imaging that uses fiducial markers attached to the tissue that needs to be imaged. The use of markers is not possible in many applications.
[0009] Similarly, P. Miao et al., in their paper, "High-resolution cerebral blood flow imaging by registered laser speckle contrast analysis," IEEE Transactions on Biomedical Engineering 57(5):1152-1157, describe a method for generating high-resolution LSCI images by registering multiple raw speckle images based on convolution filtering and correction / interpolation techniques. The registered images are then retrospectively analyzed using temporal laser speckle contrast analysis. However, such registration of raw speckle images requires significant computational resources and is therefore not suitable for accurate real-time imaging applications. Summary of the Invention [Problem to be solved by the invention]
[0010] It therefore follows from the above that there is a need in the art for improved motion-compensated laser speckle contrast imaging techniques, and in particular for improved methods and systems for laser speckle contrast imaging that enable real-time, robust, markerless, high-resolution perfusion imaging, particularly microcirculation imaging, in which motion artifacts are substantially eliminated or at least reduced. [Means for solving the problem]
[0011] As will be appreciated by those skilled in the art, aspects of the present invention may be embodied as a system, method, or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware implementation, an entirely software implementation (including firmware, resident software, microcode, etc.), or an implementation combining software and hardware aspects, all of which may be generally referred to herein as a "circuit," "module," or "system." Functions described in this disclosure may be implemented as an algorithm executed by a microprocessor of a computer. Furthermore, aspects of the present invention may take the form of a computer program product embodied in, e.g., stored on, one or more computer-readable medium(s) having computer-readable program code embedded in the computer program product.
[0012] Any combination of one or more computer-readable media may be utilized. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer-readable storage medium may be any tangible medium that can hold or store a program for use by or in connection with an instruction execution system, apparatus, or device.
[0013] A computer-readable signal medium may encompass a propagated data signal with computer-readable program code embedded therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electromagnetic, optical, or any suitable combination thereof. A computer-readable signal medium is not a computer-readable storage medium and may be any computer-readable medium that can communicate, propagate, or transport a program for use by, or in connection with, an instruction execution system, apparatus, or device.
[0014] Program code embodied on a computer-readable medium may be transmitted using any appropriate medium, including, but not limited to, wireless, wire, fiber optic, cable, RF, etc., or any suitable combination of the foregoing. Computer program code for performing operations related to aspects of the present invention may be written in any combination of one or more programming languages, including functional or object-oriented programming languages, such as Java™, Scala, C++, Python, etc., and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer, server, or virtualized server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be to or from an external computer (e.g., over the Internet using an Internet Service Provider).
[0015] Aspects of the present invention are described below with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, particularly a microprocessor or central processing unit (CPU), or a graphics processing unit (GPU), to produce a machine such that the instructions, executed via a processor of a computer or other programmable data processing device, or other device, create means for performing the functions / acts specified in one or more blocks of the flowchart illustrations and / or block diagrams.
[0016] These computer program instructions may also be stored on a computer-readable medium that can direct a computer, other programmable data processing apparatus, or other device to function in a particular manner, such that the instructions stored on the computer-readable medium constitute an article of manufacture including instructions that implement the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.
[0017] The computer program instructions may also be loaded into a computer, other programmable data processing apparatus, or other device, and cause the computer, other programmable apparatus, or other device to perform a series of operating steps to generate a computer-implemented process, such that the instructions, when executed on the computer, other programmable apparatus, or other device, provide a process for implementing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.
[0018] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of code, which includes one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may in fact be executed substantially simultaneously, or the blocks may sometimes be executed in the reverse order, depending on the functionality involved. It should also be noted that each block of the block diagrams and / or flowchart diagrams, and combinations of blocks in the block diagrams and / or flowchart diagrams, may be implemented by a special-purpose hardware-based system that performs the specified functions or operations, or a combination of special-purpose hardware and computer instructions.
[0019] It is an object of embodiments of the present disclosure to mitigate or eliminate at least one of the disadvantages known in the prior art.
[0020] In a first aspect, the present invention relates to a method for motion-compensated laser speckle contrast imaging, the method comprising: exposing a target area to coherent first light of a first wavelength, where the target area includes biological tissue; and capturing at least one sequence of multiple images. The at least one sequence of multiple images comprises a plurality of first speckle images, the plurality of first speckle images being captured during exposure to the first light. The method further comprises determining one or more transformation parameters of an image registration algorithm to register the plurality of first speckle images with each other. The transformation parameters may be based on a similarity measure of pixel values of a plurality of groups of pixels in a plurality of images of the at least one sequence of multiple images, the plurality of images being selected from or associated with the plurality of first speckle images. The method may further include either determining a plurality of registered first speckle images by registering the plurality of first speckle images based on the one or more transformation parameters and the image registration algorithm, and determining a single combined speckle contrast image based on the registered plurality of first speckle images; or determining a plurality of first speckle contrast images based on the plurality of first speckle images, determining a plurality of registered speckle contrast images by registering the plurality of first speckle contrast images based on the one or more transformation parameters and the image registration algorithm, and determining a single combined speckle contrast image based on the registered plurality of first speckle contrast images.
[0021] Thus, a sequence of either multiple speckle images or multiple speckle-contrast images can be registered or aligned without the use of markers. The registered images can then be combined into a single combined speckle-contrast image with high resolution and accuracy. The single combined image can include information from the multiple speckle images, such as a pixel-wise average, preferably a weighted average, or the single combined image can be the single most reliable image, e.g., the image that has the least transformation (i.e., closest to an identity transformation using a suitable metric) compared to subsequent images in a sequence of multiple images, for example, within a moving window of images.
[0022] In this way, the image is less sensitive to noise due to motion. Motion can be caused, for example, by camera movement, especially in handheld systems, or by patient movement, for example due to muscle contractions. Thus, embodiments of the present disclosure may enable or improve speckle contrast imaging in a wide range of applications, including, for example, perfusion imaging of the colon, which requires camera movement along the entire surface to be imaged, or perfusion imaging of skin burns, where pain may make it impossible for the patient to remain motionless.
[0023] The advantage of this method is that it can be performed in (essentially) real time using commonly available hardware. In some embodiments, there may be a small delay, for example, based on a certain number of frames (e.g., 20 frames, or 20 frames of sufficient quality), a fixed amount of time (e.g., 1 second), or a time based on a physiological property (e.g., the time corresponding to one or two heartbeats or one or two breaths). Such a delay is generally not harmful to clinical use. The physiological property may be based on image analysis of the speckle image, the speckle contrast image, and / or the image from the multiple images, a predetermined constant based on knowledge of physiological phenomena, or may be based on external input, for example, from a heart rate monitor.
[0024] Another advantage of the method is that it does not require that a fiducial marker be placed within the field of view, which is particularly true when imaging areas where it is undesirable to place a fiducial marker, such as internal organs, burned tissue, or brain tissue, or relatively large image targets that would otherwise require multiple fiducial markers or repeated replacement of a single marker.
[0025] The method corrects and / or compensates for motion of the target area relative to the camera, so that more reliable perfusion images can be produced. In some cases, for example, when a target that moves irregularly is being imaged and the operator would otherwise have to wait for a period of near-motionlessness to acquire an image, reliable images may be acquired faster or more easily. For example, motion correction may include transforming one or more images based on detected apparent motion. Motion compensation may include combining multiple images, thereby improving the signal-to-noise ratio.
[0026] By registering the plurality of first speckle images or the plurality of first speckle contrast images, the plurality of first speckle images from the sequence of plurality of first speckle images can be used to determine a combined speckle contrast image with enhanced contrast and / or spatial resolution compared to the plurality of speckle contrast images individually. The number of registered speckle images to be combined can depend on clinical requirements and / or quality parameters of the plurality of first speckle images.
[0027] Multiple speckle contrast images can be calculated based on unregistered, and therefore untransformed, multiple speckle images. The multiple speckle contrast images can then be transformed and then combined. The transformation can distort the speckle pattern or portions thereof; for example, speckles can be enlarged, reduced, or deformed, especially for transformations more general than simple translation or rotation. Thus, calculating multiple speckle contrast images based on untransformed multiple speckle images can prevent noise due to the transformation from appearing in the multiple speckle contrast images.
[0028] Alternatively, the multiple speckle images can be first registered and then transformed, and then one speckle contrast image can be calculated. In this way, the temporal or spatiotemporal speckle contrast can be calculated based on two or more registered speckle images. Using the temporal or spatiotemporal speckle contrast can lead to higher spatial resolution. In this embodiment, the images are preferably registered with sub-pixel accuracy.
[0029] A further advantage of this embodiment is that only a single sequence of images is required, i.e., the same sequence of images can be used to register the images (determine the transformation parameters therefor), determine the averaging weights, and determine a combined laser speckle contrast image or a combined perfusion image. However, in other embodiments, a second sequence of images can be used to determine the transformation parameters for image registration and to determine the averaging weights.
[0030] In one embodiment, the method further comprises exposing the target area to one or more second light wavelengths, preferably coherent light of a second wavelength or light comprising a plurality of second wavelengths in the visible spectrum, wherein the exposure to the second light alternates with the exposure to the first light or is simultaneous with the exposure to the first light.In this embodiment, the at least one sequence of multiple images comprises one sequence of multiple second images, the multiple second images are captured during the exposure to the second light, and the multiple images are selected from the one sequence of multiple second images, and each of the multiple second images is associated with a first speckle image.
[0031] Thus, in one embodiment, a method of laser speckle contrast imaging includes alternately or simultaneously exposing a target area to coherent first light at a first wavelength and second light at one or more second wavelengths, preferably coherent light at a second wavelength or light comprising multiple second wavelengths in the visible spectrum, the target area preferably comprising biological tissue. The method may further include capturing the one sequence of multiple first speckle images during the exposure with the first light and the one sequence of multiple second images during the exposure with the second light, wherein the speckle images of the one sequence of multiple first speckle images are associated with images of the one sequence of multiple second images. One or more transformation parameters of a registration algorithm for registering at least a portion of the one sequence of multiple first speckle images may be determined based on a similarity measure of pixel values of groups of pixels in at least a portion of the one sequence of multiple second images associated with the multiple first speckle images. The method may further include determining a plurality of registered first speckle images by registering the at least a portion of the sequence of a plurality of first speckle images based on the one or more transformation parameters and the registration algorithm, and determining a combined speckle contrast image based on the registered plurality of first speckle images. Alternatively, the method may include determining a plurality of first speckle contrast images based on the at least a portion of the sequence of a plurality of first speckle images, determining a plurality of registered speckle contrast images by registering the plurality of first speckle contrast images based on the one or more transformation parameters and the registration algorithm, and determining a combined speckle contrast image based on the registered plurality of first speckle contrast images.
[0032] In the first embodiment defined above, the first light and the second light are the same light having the same wavelength, and the one sequence of the plurality of first speckle images and the one sequence of the plurality of second images are the same sequence of images. However, in an advantageous embodiment, at least one of the one or more second wavelengths is different from the first wavelength, so that the plurality of second images are different from the plurality of first speckle images. The first speckle image and the associated second image can also be different parts of a single image. An image in the one sequence of multiple images can be a frame in a video stream or a multi-frame snapshot. In the present disclosure, the plurality of second images can also be referred to as correction images. Typically, at least one group of pixels in each of the at least a portion of the one sequence of multiple second images is used to determine the one or more transformation parameters.
[0033] Thus, the first wavelength and the capture of the sequence of multiple first speckle images can be optimized for speckle contrast imaging (e.g., optimized exposure time) depending on the quantity to be measured, while the one or more second wavelengths and the capture of the sequence of multiple second images can be optimized to obtain images that can be easily and accurately registered, for example, by ensuring high contrast between anatomical features, such as between blood vessels and normal tissue. Typical combinations can be a speckle image acquired using infrared light and a second image acquired using white light, or a speckle image acquired using red light and a second image acquired using green light or blue light, although other combinations are of course possible.
[0034] In one embodiment, a group of pixels may represent a predetermined feature in the plurality of images, the predetermined feature preferably being associated with an object, preferably an anatomical structure, in the target area. The group of pixels may be selected by a feature detection algorithm.
[0035] The features may be, for example, features associated with physical objects in the target area, such as features related to blood vessels, rather than image features not directly related to the object, such as overexposed image portions or speckles. Predetermined features may be determined, for example, by belonging to a certain feature class, such as a corner or a region with a large difference in intensity. They may further be determined, for example, by a quality measure, constraints on mutual distances between features, etc. In some embodiments, a neighborhood of one or more determined features may be used to determine the displacement vector and / or the transformation.
[0036] Determining displacement based on a relatively small number of features compared to the total number of pixels can significantly reduce computation time while still providing accurate results, especially in cases of relatively simple motion, for example, where the entire target area is displaced due to camera motion.
[0037] In one embodiment, the method may further include filtering the plurality of images with a filter adapted to increase the probability that groups of pixels represent features corresponding to anatomical features. For example, the filter may determine over-exposed and / or under-exposed areas and / or other image artifacts and create a mask based on those areas or artifacts, thereby preventing features related to those areas or artifacts from being determined.
[0038] In one embodiment, determining transformation parameters based on similarities in pixel values of groups of pixels may include determining, for each group of pixels in an image from the plurality of images, a convolution or cross-correlation with at least a portion of a different image from the plurality of images. The method may also include determining a polynomial expansion to model pixel values in a neighborhood of a pixel in the plurality of images, comparing expansion coefficients, and determining a displacement vector based on the comparison.
[0039] In one embodiment, determining one or more transformation parameters may include: determining a plurality of associated groups of pixels based on the similarity measure, where each group of pixels belongs to a different image from the plurality of images; determining a plurality of displacement vectors based on positions of the groups of pixels relative to each image from the plurality of images, where the displacement vectors represent movement of the target area relative to the image sensor; and determining the transformation parameters based on the plurality of displacement vectors.
[0040] By determining displacement vectors for multiple features or pairs of corresponding features, any motion of the camera relative to the imaging target can be determined and corrected for. The displacement vectors can be used, for example, to determine an affine transformation, a projective transformation, or a homography, which can correct, for example, for image translation, rotation, scaling, and shear, based on image data alone. Thus, the method does not require information about, for example, the distance between the camera and the target, the angle of incidence, etc.
[0041] Determining the displacement vectors and / or determining the one or more transformations may be based on optical flow parameters determined using a suitable optical flow algorithm, for example a dense optical flow algorithm or a coarse optical flow algorithm.
[0042] In one embodiment, determining the combined speckle contrast image may further include calculating an average of the registered first speckle images or an average of the registered first speckle contrast images, where the average is preferably a weighted average, and the weight of the one image is preferably based on the transformation parameter or the relative magnitude of the speckle contrast. Alternatively, combining the multiple speckle images or the multiple speckle contrast images may include filtering at least some of the multiple first speckle images or the multiple first speckle contrast images, for example, with a median filter, a minimum filter, a maximum filter, or the like. The weight of the weighted average may be based on a quantity derived from the one speckle contrast or the multiple displacement vectors, for example.
[0043] In one embodiment, calculating a combined laser speckle contrast image can include calculating an average, preferably a weighted average, of the registered sequence of speckle images.
[0044] In one embodiment, the method may further include determining, for each first speckle image or each first speckle contrast image associated with an image from the plurality of images, a transformation size associated with the respective first speckle image or each first speckle contrast image based on the plurality of displacement vectors, preferably based on lengths of the plurality of displacement vectors and / or parameters defining the determined transformation. The weighted average may be determined using weights based on the determined transformation sizes associated with the respective first speckle contrast images, preferably the weights being inversely correlated with the determined transformation sizes.
[0045] Weights based on the size or amount of displacement or the size or amount of transformation can be rapidly determined for each image, independent of other images. The transformation size can be based, for example, on the norm of a matrix representing the transformation, or on the norm of a matrix representing the difference between the transformation and the identity transformation. The transformation size can also be based, for example, on a statistically representative measure of the displacement vectors, such as the mean, median, nth percentile, or maximum displacement vector length. Images with a large amount of displacement are generally noisier and therefore can be assigned a lower weight, thereby improving the quality of the combined image.
[0046] In one embodiment, the method may further include determining, for each first speckle image, a normalized speckle contrast amount or a change in speckle contrast relative to one or more preceding and / or subsequent images in the sequence of multiple first speckle contrast images. The weighted average may be determined using weights based on the determined normalized speckle contrast amount or the determined change in speckle contrast associated with each first speckle contrast image. Alternatively or additionally, weights may be determined based on the normalized speckle contrast amount or the change in speckle contrast for the multiple second speckle contrast images.
[0047] Weights based on differences or changes, especially abrupt changes, in speckle contrast can indicate image quality. Typically, speckle contrast, and therefore these weights, can be affected by various factors within the overall system, such as the camera's motion relative to the target area, fiber movement, or other factors that affect the optical path length or change the lighting conditions. Therefore, using weights based on speckle contrast can result in a higher quality combined image. Typically, speckle contrast is determined in arbitrary units, so weights can be determined by analyzing the sequence of multiple speckle images. Because speckle contrast is inversely related to perfusion, perfusion units based on speckle contrast can also be used.
[0048] In one embodiment, the algorithm may be applied to a predetermined region of interest within the camera's field of view. Such a region of interest may be determined by a user or may be predetermined. For example, the outer boundaries of the image may be ignored and / or hidden from view, e.g., to prevent the transformed image boundaries from becoming visible. It may be faster to apply the algorithm, or a portion of the algorithm, to only a portion of the image. The region of interest may be transformed based on the determined transformation. In a different embodiment, the algorithm may be applied to the entire image.
[0049] In one embodiment, the multiple images can be the single sequence of multiple first speckle images.In such an embodiment, the first wavelength is preferably a wavelength in the green or blue part of the electromagnetic spectrum.In this way, a balance can be achieved between a good speckle signal and good visual distinction (i.e., high contrast of anatomical features to be distinguished from high speckle contrast), which is advantageous for determining features.Therefore, no pre-processing step is required to increase the contrast of the single speckle image.
[0050] Alternatively, a first wavelength within the red portion of the electromagnetic spectrum, preferably 600-700 nm, more preferably 620-660 nm, or within the infrared portion of the electromagnetic spectrum, preferably 700-1200 nm, can be used. Depending on the tissue type and imaging parameters, such as exposure time, visual distinctiveness may be sufficient for proper determination of features. Because red and infrared light are largely reflected by red blood cells, these wavelengths result in relatively high-intensity speckles and are therefore well suited for speckle-contrast imaging of blood flow.
[0051] As with these embodiments, the multiple first speckle images and the multiple images from the multiple images are the same image, and the multiple images can be acquired with a relatively simple system, requiring only a single light source and a single camera.
[0052] In one embodiment, the light of the at least second wavelength can be light of at least a second wavelength different from the first wavelength, preferably coherent light of a predetermined second wavelength, preferably in the green or blue portion of the electromagnetic spectrum, preferably between 380 and 590 nm, more preferably between 470 and 570 nm, and even more preferably between 520 and 560 nm. Blue, and especially green, light is absorbed much more strongly in blood vessels than in normal tissue, resulting in high contrast or visual distinctiveness. Thus, features of blood vessels, such as edges or corners, can be used to determine the transformation parameters.
[0053] Because the first speckle images themselves are inherently noisy (as far as imaging of anatomical features is concerned), it may be preferable to determine displacement vectors using a second image based on a different wavelength. In this way, the first speckle images may be acquired based on light selected to optimize speckle contrast signal, while the second speckle images may be acquired based on light selected to optimize visual distinctiveness. Such a system is particularly advantageous for imaging tissues with relatively deep blood perfusion, such as skin. Within such tissues, most green or blue light does not penetrate deep enough to interact with blood cells, resulting in a relatively noise-free image.
[0054] In one embodiment, the first wavelength is preferably within the red portion of the electromagnetic spectrum, preferably 600-700 nm, more preferably 620-660 nm, or within the infrared portion of the electromagnetic spectrum, preferably 700-1200 nm. Red and infrared light are mostly reflected by red blood cells and are highly suitable for speckle contrast imaging of blood flow. Infrared light has a greater penetration depth than red light. Red light may be easier to integrate into existing systems, for example, by using the red channel of an RGB camera to acquire speckle images.
[0055] Preferably, the first wavelength is selected to be scattered or reflected by the fluid of interest; for example, red or near-infrared light may be used to image blood in blood vessels. Preferably, the first wavelength may be selected based on the required penetration depth. Light with a relatively high penetration depth may allow light scattered by the fluid of interest to be detected with a sufficient signal-to-noise ratio, even at some depth within the imaged tissue.
[0056] Preferably, the second wavelength is selected to provide an image with high visual distinction, resulting in consistent tissue surface features within the image. For example, green light may be used to image blood vessels within internal organs, since green light is typically absorbed much more strongly by blood than by tissue. The light at the second wavelength may be either coherent or non-coherent light. The multiple second images may also be based on multiple wavelengths, e.g., white light may be used. The light at the second wavelength may be generated, for example, by a second coherent light source. Alternatively, the light at the first wavelength and the light at the second wavelength may be generated by a single coherent light source configured to generate coherent light at multiple wavelengths.
[0057] In one embodiment, the sequence of multiple second images may be the sequence of multiple second speckle images, and the method may further include determining multiple second speckle contrast images based on the sequence of multiple second speckle images, and adjusting or correcting the multiple first speckle contrast images based on a change in magnitude of a speckle contrast in the sequence of multiple second speckle contrast images.
[0058] Multispectral coherent correction (also called dual laser correction) may remove or reduce noise in the first speckle contrast image by adjusting the determined speckle contrast in the plurality of first speckle images based on changes in the determined speckle contrast in the sequence of plurality of second images. The adjustment may be based on a predetermined correlation between the speckle contrast of the plurality of first speckle contrast images and the speckle contrast of the plurality of second speckle contrast images.
[0059] Multispectral coherent correction can be advantageously combined with image registration using a second image based on the second wavelength by using the second image for both the multispectral coherent correction and the image registration. In such an embodiment, the second wavelength preferably has a relatively small penetration depth. In this way, the multiple second images can contain information primarily related to the surface of the target area. This is particularly true for tissues with low perfusion near the surface, such as skin, scar tissue, and some tumor types.
[0060] In one embodiment, the method may further include dividing each image in at least a portion of a sequence of the plurality of first speckle images or a sequence of a plurality of first speckle contrast images and each image in the plurality of images into a plurality of regions, preferably disjoint regions. Preferably, the regions in the images from the plurality of images correspond to regions in the associated first speckle image or first speckle contrast image. Determining the transformation parameters may include determining transformation parameters for each region, and determining the registered sequence of the plurality of first speckle images or a sequence of a plurality of first speckle contrast images may include registering each region of the first speckle image or first speckle contrast image based on a transformation based on a corresponding region in the image from the plurality of images.
[0061] The regions may be determined, for example, based on the geometry of the image, such as a grid of rectangular or triangular regions, or based on image properties, such as light intensity or groups of pixels that appear to belong to anatomical structures.
[0062] In this way, local motion in parts of the images can be corrected, leading to a higher quality combined image. Local motion is typically caused by motion within the target, for example, due to a person's movement, breathing, heartbeat, or muscle contractions, such as abdominal peristalsis. The regions can be as small as a single pixel. When weighted averaging is used to combine two or more images, weights can be assigned to each region separately and / or to the entire image. Image combining can also be region-based or performed on an image-by-image basis.
[0063] In one embodiment, the target area may include a perfused organ, preferably perfused by a body fluid, more preferably perfused by blood and / or lymph, and / or may include one or more blood vessels and / or lymphatic vessels. The method may further include calculating a perfusion intensity, preferably blood perfusion intensity or lymphatic perfusion intensity, based on the combined speckle image.
[0064] The method may further include post-processing the image, such as thresholding, pseudocoloring, superimposing it with another image, such as a white light image, and / or displaying the combined image or a derivative thereof.
[0065] In a second aspect, the present invention further relates to a hardware module for an imaging device, preferably a medical imaging device, comprising a first light source for exposing a target area to coherent first light of a first wavelength, the target area preferably comprising biological tissue, and may further comprise an image sensor system having one or more image sensors for capturing at least one sequence of a plurality of images, the at least one sequence of images comprising a plurality of first speckle images, the plurality of first speckle images being captured during exposure to the first light.The hardware module may further comprise a computer-readable storage medium having computer-readable program code embedded therein, and a processor, preferably a microprocessor, more preferably a graphics processing unit, coupled to the computer-readable storage medium, wherein in response to executing the computer-readable program code, the processor determines one or more transformation parameters of an image registration algorithm to register the plurality of first speckle images with one another, wherein the transformation parameters are based on a similarity measure of pixel values of multiple groups of pixels in a plurality of images, the images in the plurality of images being selected from the first laser speckle images or associated with the plurality of first speckle images, and the transformation parameters preferably define one of a homography, a projective transformation, or an affine transformation; and determining a registered plurality of first speckle images by registering the plurality of first speckle images based on the one or more transformation parameters and the image registration algorithm, and determining a combined speckle contrast image based on the registered plurality of first speckle images; or determining a plurality of first speckle contrast images based on the plurality of first speckle images, determining a registered plurality of speckle contrast images by registering the plurality of first speckle contrast images based on the one or more transformation parameters and the image registration algorithm, and determining a combined speckle contrast image based on the registered plurality of first speckle contrast images.
[0066] In one embodiment, the hardware module may include a second light source for illuminating the target area with light of at least a second wavelength different from the first wavelength, simultaneously or alternately with the first light source. The at least one image sensor may be configured to capture the sequence of multiple second images, where the multiple second images are captured during exposure to the second light. The multiple images may be selected from the sequence of multiple second images, where each of the multiple second images is associated with a first speckle image.
[0067] The image sensor system may include a first image sensor for capturing the one sequence of a plurality of first images and a second image sensor for capturing the one sequence of a plurality of second images, or a single image sensor for capturing both the one sequence of a plurality of first images and the one sequence of a plurality of second images.
[0068] In one embodiment, the hardware module may further comprise a display for displaying the combined speckle image and / or a derivative thereof, preferably a perfusion intensity image. Alternatively or additionally, the hardware module may comprise a video output for outputting the combined speckle image and / or a derivative thereof.
[0069] The image sensor system may include a first image sensor for capturing images at the first wavelength and a second image sensor for capturing images at the at least second wavelength. The first image sensor and the second image sensor may be the same image sensor, different portions of a single image sensor, such as the red and green channels from an RGB camera, or different image sensors. The module may further include optics for directing light from the first light source and the optional second light source to a target area and / or for directing light from the target area to the first and second image sensors.
[0070] The invention further relates to a medical imaging device, preferably an endoscope, a laparoscope, a surgical robot, a handheld laser speckle contrast imaging device or an open surgery laser speckle contrast imaging system, comprising such a hardware module.
[0071] In a further aspect, the present invention relates to a computation module for a laser speckle imaging system, the computation module comprising a computer readable storage medium having at least a portion of a program embedded therein, and a processor, preferably a microprocessor, more preferably a graphics processing unit, coupled to the computer readable storage medium, wherein the processor is configured to perform executable operations in response to executing the computer readable storage code, which may include: receiving at least one sequence of a plurality of images, wherein the at least one sequence of a plurality of images includes a plurality of first speckle images captured during exposure of a target area to coherent first light at a first wavelength, the target area including biological tissue; determining one or more transformation parameters of an image registration algorithm to register the plurality of first speckle images to one another, wherein the transformation parameters are based on a similarity measure of pixel values of a plurality of groups of pixels in a plurality of images of the at least one sequence of a plurality of images, the image in the plurality of images being selected from or related to the plurality of first speckle images, and the transformation parameters preferably define one of a homography, a projective transformation, or an affine transformation; and determining a registered plurality of first speckle images by registering the plurality of first speckle images based on the one or more transformation parameters and the image registration algorithm, and determining a combined speckle contrast image based on the registered plurality of first speckle images; or determining a plurality of first speckle contrast images based on the plurality of first speckle images, determining a registered plurality of speckle contrast images by registering the plurality of first speckle contrast images based on the one or more transformation parameters and the image registration algorithm, and determining a combined speckle contrast image based on the registered plurality of first speckle contrast images.
[0072] Such a computation module can be added to existing or new medical imaging devices, such as laparoscopes or endoscopes, for example, to improve laser speckle contrast imaging, particularly perfusion imaging. In one embodiment, the method steps described in this disclosure can be performed by a processor in a device for coupling coherent light into an endoscopic system. Such a device can be connected between the light source and video processor of the endoscopic system and an endoscope, such as a laparoscope, of the endoscopic system. The connection device can thereby add laser speckle imaging capabilities to the endoscopic system. Such a connection device is described in more detail in Dutch Patent Application No. 2026240, which is incorporated by reference.
[0073] In one embodiment, the at least one sequence of multiple images comprises the one sequence of multiple second images, wherein the multiple second images are captured during exposure to second light, the second light has one or more second wavelengths, preferably the second light is coherent light of a second wavelength, or the second light comprises multiple second wavelengths in the visible spectrum, and the exposure to the second light is alternated with the exposure to the first light or is simultaneous with the exposure to the first light.The multiple images can be selected from the one sequence of multiple second images, wherein each of the multiple second images is associated with a first speckle image.
[0074] The invention also relates to a computer program or suite of computer programs comprising at least one software code portion, or a computer program product having stored thereon at least one software code portion, which, when executed on a computer system, is configured to perform any of the method steps described above.
[0075] The invention may further relate to a non-transitory computer-readable storage medium having stored thereon at least one software code portion, which, when executed or processed by a computer, is configured to perform any of the method steps described above.
[0076] The invention will be further explained with reference to the accompanying drawings, which show, in a simplified form, embodiments according to the invention, it being understood that the invention is in no way restricted to those specific embodiments.
[0077] The following description of specific embodiments of the present invention is merely exemplary in nature and is not intended to limit the present teachings, their application, or uses. [Brief explanation of the drawings]
[0078] [Figure 1A] FIG. 1A illustrates a schematic diagram of a system for motion-compensated laser speckle contrast imaging in accordance with one embodiment of the present invention. [Figure 1B] FIG. 1B shows a flow diagram for laser speckle contrast imaging according to an embodiment of the present invention. [Figure 1C] FIG. 1C shows a flow diagram for laser speckle contrast imaging according to an embodiment of the present invention. [Figure 1D] FIG. 1D shows a flow diagram for laser speckle contrast imaging according to an embodiment of the present invention. [Figure 2A] FIG. 2A shows the raw speckle image. [Figure 2B] FIG. 2B shows a laser speckle contrast image based on the raw speckle image. [Figure 2C] FIG. 2C shows a perfusion image based on the laser speckle contrast image. [Figure 3A] FIG. 3A shows a flow diagram for laser speckle contrast imaging according to an embodiment of the present invention. [Figure 3B]FIG. 3B shows a flow diagram for laser speckle contrast imaging according to an embodiment of the present invention. [Figure 4A] FIG. 4A shows a flow diagram for laser speckle contrast imaging according to an embodiment of the present invention. [Figure 4B] FIG. 4B shows a flow diagram for laser speckle contrast imaging according to an embodiment of the present invention. [Figure 5] FIG. 5 illustrates a method for determining a transformation according to one embodiment of the present invention. [Figure 6A] FIG. 6A illustrates a method for determining a transformation according to one embodiment of the present invention. [Figure 6B] FIG. 6B illustrates a method for determining a transformation according to one embodiment of the present invention. [Figure 6C] FIG. 6C illustrates a method for determining a transformation according to one embodiment of the present invention. [Figure 6D] FIG. 6D illustrates a method for determining a transformation according to one embodiment of the present invention. [Figure 7A] FIG. 7A shows a flow diagram for laser speckle contrast imaging combining three or more raw speckle images according to one embodiment of the present invention. [Figure 7B] FIG. 7B shows a flow diagram for laser speckle contrast imaging combining three or more raw speckle images according to one embodiment of the present invention. [Figure 8] FIG. 8 shows a flow diagram for calculating a corrected laser speckle contrast image according to one embodiment of the present invention. [Figure 9] FIG. 9 illustrates a schematic diagram of a weighted average-based motion-compensated speckle contrast image determination according to one embodiment of the present invention. [Figure 10] FIG. 10 is a block diagram illustrating an exemplary data processing system that may be used to implement the methods and software products described herein. DETAILED DESCRIPTION OF THE INVENTION
[0079] Laser speckle contrast images can be based on spatial contrast, temporal contrast, or a combination thereof. Generally, using spatial contrast leads to high temporal resolution but may result in relatively low spatial resolution. In addition, individual images may suffer from degradation due to, for example, motion or lighting artifacts, resulting in image quality that may vary from image to image. On the other hand, using temporal contrast involves relatively high spatial resolution and relatively low temporal resolution. However, the quality of the temporal contrast may be strongly affected by the motion of the target relative to the camera, which may lead to pixels being inaccurately combined. The mixed method may share some advantages and disadvantages of both methods.
[0080] In this disclosure, a speckle image may also be referred to as an unprocessed speckle image to better distinguish between a (unprocessed) speckle image and a speckle contrast image. Thus, the term "unprocessed speckle image" may refer to an image representing a speckle pattern, with pixels having pixel values representing light intensity. An unprocessed speckle image may be an unprocessed image or a (pre)processed image. The term "speckle contrast image" may be used to refer to a processed speckle image, with pixels having pixel values representing the magnitude of the speckle contrast, typically the relative standard deviation over a predetermined neighborhood of pixels.
[0081] FIG. 1A schematically illustrates a system 100 for motion-compensated laser speckle contrast imaging according to one embodiment of the present invention. The system may include a first light source 104 for generating coherent light, e.g., laser light, at a first wavelength to illuminate a target area 102. The target is preferably biological tissue, e.g., skin, intestine, or brain tissue. The first wavelength may be selected to interact with bodily fluids, e.g., blood or lymph, that may travel through the target. The first wavelength may be in the red or (near) infrared portion of the electromagnetic spectrum, e.g., 600-700 nm, preferably 620-660 nm, or 700-1200 nm. The first wavelength may be selected based on the bodily fluid of interest and / or the tissue to be imaged. The first wavelength may also be selected based on the nature of the imaging sensor. Depending on the exposure time, size of the imaged area, speckle size, and image resolution, among others, various quantities of interest can be imaged, such as flow in individual large or small blood vessels, microvascular perfusion of the target area, etc.
[0082] In one embodiment, the system may further include a second light source 106 for generating light of at least a second wavelength for illuminating the target area 102, preferably including light in the green portion of the electromagnetic spectrum. The at least second wavelength may be selected to include a wavelength that produces images with high visual distinction, i.e., high contrast, of anatomical features. The second wavelength may be selected based on the tissue within the target area. Generally, the light of the at least second wavelength may be coherent or non-coherent, and may be monochromatic, e.g., blue or green narrow-band imaging light, or polychromatic, e.g., white light. In other embodiments, only the first light source is used. In the embodiment depicted in FIG. 1C, the light of the at least second wavelength is monochromatic coherent light. The second wavelength may be generated, for example, by a second coherent light source. Alternatively, the light at the first wavelength and the light at the second wavelength may be generated by a single coherent light source configured to generate coherent light at multiple wavelengths.
[0083] The system may further include one or more image sensors 108 for capturing an image associated with the light of the first wavelength and, if applicable, an image associated with the light of the at least second wavelength, where the light of the first wavelength and at least the second wavelength interacts with the target within the target area. In different embodiments, the system may include multiple cameras, such as a first camera for acquiring a first raw speckle image associated with the first wavelength and a second camera for acquiring a corrected image associated with the second wavelength. The system may further include additional optics, such as optical fibers, lenses, or beam splitters, for directing light from the one or more light sources to and from the target area to the one or more image sensors.
[0084] When the target is illuminated with coherent light, a laser speckle pattern may be formed through self-interference. The image may be received and processed by a processing unit 110. Examples are described in more detail with reference to FIGS. 1B-1D. The processing unit may output the processed image, essentially in real time, to, for example, a display or computer 112. The processing unit may be a separate unit or may be part of the computer. The processed image may be displayed by the display or computer.
[0085] In one embodiment, an endoscope or laparoscope can be used to direct light to the target area and acquire images. The one or more light sources, the one or more image sensors, the processing unit, and the display can be part of an endoscopy system, for example.
[0086] 1B-1D illustrate flow diagrams for motion-compensated laser speckle contrast imaging according to embodiments of the present invention. Alternatives mentioned with respect to one of these embodiments can also be applied to the other embodiments, unless such combination leads to contradictory statements.
[0087] FIG. 1B illustrates a flow diagram for motion-compensated laser speckle contrast imaging according to one embodiment of the present invention. In this embodiment, only the coherent light of the first wavelength generated by the first light source 104 is used, which can be, for example, green light, or preferably red light. The one or more image sensors 108 are single image sensors, typically monochromatic image sensors optimized for, or at least suitable for, the wavelength used. As noted above and shown in the examples of FIGS. 1C and 1D below, other embodiments may use different configurations.
[0088] In a first step 120, a sequence of a plurality of raw speckle images is obtained, e.g., captured or received from an external source. These speckle images are also used as correction images. A first speckle contrast image may be calculated 126 based on each first raw speckle image. The speckle contrast may be determined in any suitable manner, for example, by convolution with a predetermined convolution kernel or by determining the relative standard deviation of pixel value intensities within a sliding window. Because the speckle contrast is correlated with perfusion, a perfusion unit weight may be determined based on the speckle contrast values of the first speckle contrast image.
[0089] In single-wavelength embodiments, either the raw speckle image or the speckle contrast image can be used as a correction image. In each correction image, the position of a predetermined object feature can be determined 130. Based on the position of the predetermined object feature in two or more correction images, a displacement vector identifying movement of the target area can be determined, for example, using an optical flow algorithm. This is described in more detail with reference to Figures 5 and 6. A (coarse) optical flow algorithm can be used to determine a displacement vector based on selected features. Other embodiments can use, for example, a dense optical flow algorithm, in which case no features need to be determined.
[0090] Based on the displacement vectors, a transformation for registering the images in the second sequence of images can be determined. Preferably, the transformation is selected from the class of homographies, from the class of projective transformations, or from the class of affine transformations. Optionally, optical flow weights can be determined based on the displacement vectors or parameters defining the transformation.
[0091] The determined transformation can then be used to register (134), or geometrically align, the multiple speckle contrast images with one another, resulting in a plurality of registered first speckle contrast images. In an alternative embodiment, the multiple raw speckle images can be registered before calculating the speckle contrast. However, such an embodiment is less preferred because the image registration can affect pixel values and therefore contrast.
[0092] The registered first speckle contrast images may then be combined (136), for example, using a temporal filter. The temporal filter may include averaging the first speckle contrast images. The averaging may be a weighted average, where the weights are based on optical flow weights and / or perfusion unit weights. In an alternative embodiment, the registered raw speckle images may be combined using the temporal filter, and a speckle contrast image may be determined based on the combined raw speckle images. This results in a motion-compensated speckle contrast image.
[0093] The combined first raw speckle image may then be post-processed, e.g., converted to a perfusion value, thresholded to indicate areas of high or low perfusion, superimposed on a white-light image of the target area, etc. The post-processing may be performed, for example, by the processing unit 110 or the computer 112. FIG. 1C illustrates a flow diagram for motion-compensated laser speckle contrast imaging according to one embodiment of the present invention. In the depicted embodiment, the light of the first wavelength generated by the first light source 104 is red light, and the light of the at least second wavelength generated by the second light source 106 is coherent green light. The one or more image sensors 108 are a single sensor with red, green, and blue channels. The first wavelength and the second wavelength are selected to minimize crosstalk. The signal in the red channel caused by the green light is significantly smaller than the signal caused by the red light, and the signal in the green channel caused by the red light is significantly smaller than the signal caused by the green light. As noted above, other embodiments may use different configurations.
[0094] In a first step 140, a sequence of RGB images is received. A first sequence of first raw speckle images may be extracted from a red channel of the sequence of RGB images (142), and a second sequence of corrected images may be extracted from a green channel of the RGB images (144). The sequence of corrected images may be a second sequence of second raw speckle images. Each first raw speckle image may be associated with a corrected image extracted from the same RGB image. In other embodiments, the first raw speckle images and the corrected images may be acquired by different cameras, by different sensors of a multi-sensor camera (e.g., a 3-CCD camera), or by other (color) channels of a single camera (e.g., a YUV camera), or the images may be acquired alternately by a single monochromatic camera when the target is alternately illuminated with light of the first wavelength and light of the at least second wavelength.
[0095] A first speckle contrast image may be calculated based on each first raw speckle image (146). Optionally, a second speckle contrast image may be calculated based on each second raw speckle image (148). Speckle contrast may be determined in any suitable manner, for example, by convolution with a predetermined convolution kernel or by determining the relative standard deviation of pixel value intensities within a sliding window. Because the speckle contrast is correlated with perfusion, a perfusion unit weight may be determined based on the speckle contrast values of the first speckle contrast image. The second speckle contrast image may optionally be used to correct the first speckle contrast image (152), as described in more detail with reference to FIG. 8. The corrected speckle contrast values may then be used to determine the perfusion unit weight.
[0096] Within each corrected image (i.e., in this embodiment, within each second unprocessed speckle image), the position of a predetermined object feature may be determined (150). Based on the positions of the predetermined object feature in two or more corrected images, a displacement vector identifying movement of the target area may be determined, for example, using an optical flow algorithm. This is described in more detail with reference to Figures 5 and 6. A (coarse) optical flow algorithm may be used to determine the displacement vector based on selected features. Other embodiments may use, for example, a fine optical flow algorithm, in which case no features need to be determined.
[0097] Based on the displacement vectors, a transformation for registering the images in the second sequence of images can be determined. Preferably, the transformation is selected from the class of homographies, from the class of projective transformations, or from the class of affine transformations. Optionally, optical flow weights can be determined based on the displacement vectors or parameters defining the transformation.
[0098] The determined transformation may then be used to register (154), or geometrically align, the plurality of first speckle contrast images associated with the plurality of correction images.
[0099] The registered first speckle-contrast images may then be combined (156), for example, using a temporal filter. The temporal filter may include averaging the first speckle-contrast images. The averaging may be a weighted average, where the weights are based on optical flow weights and / or perfusion unit weights.
[0100] In a final step 158, the combined first raw speckle image may be post-processed, e.g., converted to a perfusion value, thresholded to indicate areas of high or low perfusion, superimposed on a white-light image of the target area, etc. The post-processing may be performed, for example, by the processing unit 110 or the computer 112.
[0101] 1D illustrates a flow diagram for motion-compensated laser speckle contrast imaging according to one embodiment of the present invention. In the illustrated embodiment, the light of the first wavelength generated by the first light source 104 is infrared light, but other colors, such as red, green, or blue, are also possible. The light of the at least second wavelength generated by the second light source 106 is (incoherent) white light. An advantage of using infrared light and white light is that both lights can be used simultaneously without significantly affecting each other.
[0102] As depicted, the one or more image sensors 108 are two image sensors within a dual camera: an infrared camera and a color camera. This can be practical, for example, in open surgery situations, when laser speckle imaging is added to a system that already includes a color camera. Additionally, having a dedicated image sensor can allow for separate optimization of hardware and / or equipment parameters, such as exposure time. As noted above, other embodiments may use different configurations. For example, in some embodiments, a single camera may be used to capture both infrared and (white light) color images. An advantage of using a single camera is that the infrared and color images are automatically aligned and correlated with each other.
[0103] In a first step 160, a first sequence of a plurality of first images is captured by the infrared camera. This first sequence may be stored by the image processor as a sequence of a plurality of raw speckle images. In a second step 161, a second sequence of a plurality of second images is captured by the color camera. This second sequence may be stored 164 as a sequence of a plurality of corrected images. Each raw speckle image may be associated with one or more corrected images. Preferably, each raw speckle image is associated with at least a corrected image captured proximately, and preferably simultaneously, with the raw speckle image. Preferably, the frame rates of the first and second cameras are selected to enable a straightforward association, for example, by selecting one frame rate as an integer multiple of the other frame rate.
[0104] A speckle contrast image may be calculated based on each raw speckle image (166). The speckle contrast may be determined in any suitable manner, for example, by convolution with a predetermined convolution kernel or by determining the relative standard deviation of pixel value intensities within a sliding window. Because the speckle contrast is correlated with perfusion, a perfusion unit weight may be determined based on the speckle contrast values of the plurality of first speckle contrast images.
[0105] Within each corrected image (i.e., in this embodiment, within each white-light image), the position of a predetermined object feature may be determined (170). Based on the positions of the predetermined object feature in two or more corrected images, a displacement vector identifying movement of the target area may be determined, for example, using an optical flow algorithm. This is described in more detail with reference to Figures 5 and 6. A (coarse) optical flow algorithm may be used to determine the displacement vector based on selected features. Other embodiments may use, for example, a dense optical flow algorithm, in which case no features need to be determined.
[0106] Based on the displacement vectors, a transformation for registering images in the sequence of corrected images can be determined. Preferably, the transformation is selected from the class of homographies, from the class of projective transformations, or from the class of affine transformations. Optionally, optical flow weights can be determined based on the displacement vectors or parameters defining the transformation.
[0107] The determined transformation can then be used to register (174), or geometrically align, the plurality of first speckle-contrast images associated with the plurality of correction images. In this embodiment, because two cameras are used, the two cameras do not share a field of view or a reference frame. As a result, registering the plurality of speckle-contrast images based on transformation parameters determined using the plurality of correction images can include applying a transformation to the transformation parameters to account for this change in reference frame. If the two cameras are positioned at fixed positions relative to each other, this transformation can be predetermined. Otherwise, the transformation can be determined, for example, based on image processing of a calibration image or a marker. The marker can be either natural or artificial.
[0108] The registered first speckle-contrast images may then be combined (176), for example, using a temporal filter. The temporal filter may include averaging the first speckle-contrast images. The averaging may be a weighted average, where the weights are based on optical flow weights and / or perfusion unit weights.
[0109] In a final step 178, the combined first raw speckle image may be post-processed, e.g., converted to a perfusion value, thresholded to indicate areas of high or low perfusion, superimposed on a white-light image of the target area, etc. The post-processing may be performed, for example, by the processing unit 110 or the computer 112.
[0110] In one embodiment, the method steps described in this disclosure may be performed by a processor in a device for coupling coherent light into an endoscopic system. Such a device may be connected between the light source and video processor of the endoscopic system and an endoscope, such as a laparoscope, of the endoscopic system. The coupling device may thereby add laser speckle imaging capabilities to the endoscopic system. Such a coupling device is described in more detail in Dutch Patent Application No. 2026240, which is incorporated by reference.
[0111] In an alternative embodiment, the method steps described in this disclosure may be applied in an open surgical setting, optionally in combination with an existing imaging system.
[0112] FIG. 2A illustrates raw speckle images and laser speckle contrast images based on the raw speckle images of targets with low and high perfusion. Images 202 and 204 are raw speckle images of the tip of a human finger, including the nail bed. When image 202 was acquired, blood flow through the finger was restricted, resulting in low blood perfusion (artificial ischemia) of the finger. When image 204 was acquired, blood flow was not restricted, resulting in much higher blood perfusion than in the previous situation. It is difficult for a human observer to see the difference in speckle pattern associated with the difference in perfusion. A magnified portion 210 of image 204 is also shown, revealing the speckle structure in more detail.
[0113] Images 206 and 208 are speckle contrast images based on images 202 and 204, respectively. Light colors represent low contrast and therefore high perfusion, while dark colors represent high contrast and therefore low perfusion. In these images, the differences in perfusion are immediately apparent, especially in the nail bed, where blood flow occurs relatively close to the surface.
[0114] FIG. 2B illustrates a series of laser speckle contrast images of a low-perfusion target exhibiting motion before and after motion correction in accordance with one embodiment of the present invention. 1~5 is a speckle contrast image of the tip of a human finger, including the nail bed. Image 220 2~4 The finger moved during the acquisition, resulting in a loss of contrast due to finger movement. If the user is interested in blood flow, the image 220 is represented by bright colors. 2~4 The low speckle contrast in image 222 can be considered a motion artifact. 1~5 220 statues each 1~5 1 is based on the same raw speckle image as in , but corrected by a motion correction algorithm according to one embodiment of the present invention.
[0115] FIG. 2C illustrates speckle contrast images from a series of speckle contrast images and a graph representing perfusion levels based on the series. Graph 230 depicts nail bed perfusion measurements, showing a first curve 232 representing perfusion determined based on uncorrected measurements and a second curve 234 representing perfusion determined based on measurements corrected using the motion correction algorithm described in this disclosure. Around the 10-second time mark, blood flow to the finger is artificially restricted, and the restriction is lifted approximately 30 seconds later. In particular, during the time range from 23 to 38 seconds, the uncorrected perfusion measurements show some motion artifacts, where the perfusion appears to rise sharply and then fall again.
[0116] The figure also shows the difference between the image 236 and the image 236 before processing with a single wavelength-based motion correction and compensation algorithm. 1~3 ) and later (Statue 238 1~3) show three exemplary speckle contrast images. Within these images, light colors represent low speckle contrast and therefore high perfusion, while dark colors represent high speckle contrast and therefore low perfusion. The three uncorrected images appear roughly the same, making it difficult for the user to identify times (or regions, in other applications) of low or high perfusion. In contrast, the motion-corrected images show a clear difference between the image acquired during the blood flow restriction (middle) and the other images without blood flow restriction, allowing the user to select times or locations of high perfusion.
[0117] Additionally, anatomical structures, such as the edges of the fingers and the nail bed, can be more easily recognized in the motion-compensated image, whereas in the uncompensated image, details can be difficult to recognize due to its grainy nature. This makes the image easier to interpret by the user.
[0118] FIG. 3A illustrates a flow diagram for laser speckle contrast imaging according to one embodiment of the present invention. In a first step 302, a first raw speckle image may be obtained at a first time t=t1. A light source may illuminate a target area with coherent light of a predetermined wavelength, and an image sensor may capture a first raw speckle image based on the predetermined wavelength. A first laser speckle contrast image may be calculated (304) based on the first raw speckle image. For example, the laser speckle contrast image may be determined by determining the relative standard deviation of pixel values within a sliding window, such as a 3×3 window, a 5×5 window, or a 7×7 window. Typically, a (2n+1)×(2n+1) window may be selected for a natural number n depending on the speckle size. Alternatively, convolution with a kernel may be used, and the size of the kernel may be selected based on the speckle size. The relative standard deviation may be determined by calculating the standard deviation of the pixel intensity values in an area divided by the average pixel intensity value in that area. Alternatively, the laser speckle contrast value may be determined in any other suitable manner.
[0119] In a next step 308, a processor may determine a first plurality of first features in the first raw speckle image. Alternatively, the first plurality of first features may be determined in the first speckle-contrast image. Preferably, an image with the most clearly defined anatomical features is used, and whether the anatomical structures have more visual distinction in the raw speckle image or the speckle-contrast image may depend on imaging parameters, such as wavelength and exposure time. In the remainder of the description of FIG. 3A, the term "speckle image" may refer to either a raw speckle image or a speckle-contrast image. The steps associated with feature detection are described in more detail below with reference to FIGS. 5-6.
[0120] Steps 312 through 318 are similar to steps 302 through 308, respectively, and are performed at a second time point t=t2. Thus, a second raw speckle image may be obtained at the second time point t=t2 (312). The light source may illuminate the target area with coherent light of the predetermined wavelength, and the image sensor may capture the second raw speckle image based on the predetermined wavelength. A second laser speckle contrast image may be calculated based on the second raw speckle image (314).
[0121] In a next step 318, the processor may determine a second plurality of second features in the second speckle image. At least some of the second plurality of second features should correspond to at least some of the first plurality of first features. Typically, in a typical application, the second speckle image will resemble the first speckle image because the target area does not change significantly between t=t1 and t=t2. Therefore, when a deterministic algorithm is used to detect features, most of the features detected in the second speckle image will generally correspond to features detected in the first speckle image, in the sense that the features detected in both images represent the same or substantially the same anatomical features in the imaged target. Thus, a plurality of second features may be associated with a plurality of first features.
[0122] In a next step 320, the processor may determine a plurality of displacement vectors based on the plurality of first features and the plurality of corresponding second features, where the displacement vectors describe the displacement of the features relative to an image. For example, the processor may determine feature pairs consisting of one first feature and one second feature, determine a first position of the first feature relative to the first speckle image, determine a second position of the second feature relative to the second speckle image, and determine the difference between the first and second positions. Typically, corresponding feature pairs may be pairs of a first feature and an associated second feature that represent the same anatomical feature.
[0123] In a next step 322, the processor may determine a transformation, such as an affine transformation or a more general homography, based on the plurality of displacement vectors to register corresponding features with each other. The transformation may be found, for example, by selecting from a class of transformations that minimizes the distance between pairs of corresponding features. Based on the transformation, the processor may register or align the first and second laser speckle contrast images with each other by transforming the first and / or second laser speckle contrast images (324). Typically, an older image may be transformed to be registered with a newer image.
[0124] In other embodiments, steps 308 and 318 can be omitted, and a displacement vector can be determined based on the plurality of first speckle images and the plurality of second speckle images. For example, a dense optical flow algorithm, such as the Pyramid Lucas-Kanade algorithm or the Farneback algorithm, can be used to determine the displacement vector. This type of algorithm typically convolves a pixel neighborhood from the plurality of first speckle images with part or all of the plurality of second speckle images, thereby matching a neighborhood corresponding to each pixel in the plurality of first speckle images with a neighborhood in the plurality of second speckle images. Such a method can also include determining a polynomial expansion to model pixel values within a pixel neighborhood in the plurality of first speckle images and the plurality of second speckle images, comparing the expansion coefficients, and determining a displacement vector based on the comparison.
[0125] In that way, a displacement vector may be determined, for example, for an individual pixel or group of pixels, based on pixel values within groups of pixels within the multiple speckle images.
[0126] In some embodiments, step 320 may be omitted and the transform may be determined based on pixel values of a group of pixels in the plurality of first speckle images and pixel values of an associated group of pixels in the plurality of second speckle images, for example, using a trained neural network that receives a first image and a second image as input and provides as output a transform for registering the first image with the second image, or alternatively, for registering the second image with the first image.
[0127] The processor may then calculate a combined, e.g., averaged, laser speckle contrast image based on the registered first and second laser speckle contrast images (326). Calculating the combined image may include calculating a weighted average, where the weights are preferably based on the normalized speckle contrast amount, the relative change in speckle contrast, the determined displacement vector, and / or parameters associated with the determined transformation. Calculating the combined image may further include applying one or more filters, e.g., a median filter or an outlier filter.
[0128] In other embodiments, the steps can be performed in a different order. For example, the laser speckle contrast image can be calculated after the raw speckle images are registered. In this way, a temporal or spatiotemporal speckle contrast image can be calculated. However, if the transformation is more general than translation and rotation (e.g., including scaling or shearing), the transformation can distort the speckle pattern, thereby introducing a source of noise. In some embodiments, a single laser contrast raw speckle image can be calculated based on the combined, e.g., averaged, raw speckle images. In this case, the images are preferably registered with sub-pixel accuracy.
[0129] 3B illustrates a flow diagram for laser speckle contrast imaging according to one embodiment of the present invention. In a first step 332, a first raw speckle image may be obtained at a first time t=t1. A first light source may illuminate a target area with coherent light of a first wavelength, and a first image sensor may capture a first raw speckle image based on the first wavelength. Based on the first raw speckle image, a first laser speckle contrast image may be calculated (334). The laser speckle contrast image may be determined as described above with reference to step 304.
[0130] In a next step 336, a first corrected image associated with the first speckle image may be obtained at a first time t=t1. The first corrected image may comprise pixels having pixel values and pixel coordinates, where the pixel coordinates identify the location of the pixel in the image. The first corrected image is preferably obtained simultaneously with the first unprocessed speckle image, although in alternative embodiments, the first corrected image may be obtained before or after the first unprocessed speckle image, for example.
[0131] A second light source can illuminate the target area with light of at least a second wavelength different from the first wavelength, and a second image sensor can capture a first corrected image based on the at least second wavelength. The second light source can use coherent or non-coherent light. The second light source can generate monochromatic light or polychromatic light, such as white light. The second image sensor can be the same sensor as the first image sensor or a different sensor.
[0132] In the embodiment described above with reference to FIG. 3A, the second wavelength is the same as the first wavelength, and the first corrected image is the same image as the first unprocessed speckle image.
[0133] In a next step 338, the processor may determine a first plurality of first features in the first corrected image. The steps involved in feature detection are described in more detail with reference to Figures 5-6.
[0134] Steps 342 through 348 are similar to steps 332 through 338, respectively, and are performed at a second time point t=t2. Thus, a second raw speckle image may be obtained at the second time point t=t2 (342). The first light source may illuminate a target area with coherent light at the first wavelength, and the first image sensor may capture the second raw speckle image based on the first wavelength. A second laser speckle contrast image may be calculated based on the second raw speckle image (344).
[0135] In a next step 346, a second corrected image associated with the second raw speckle image may be obtained at the second time t=t2. The second light source may illuminate the target area with light of the at least second wavelength, and the second image sensor may capture a second corrected image based on the at least second wavelength.
[0136] In a next step 348, the processor may determine a second plurality of second features in the second corrected image. At least some of the second plurality of second features should correspond to at least some of the first plurality of first features. Typically, in a typical application, the second corrected image will be similar to the first corrected image because the target area does not change significantly between t=t1 and t=t2. Therefore, if a deterministic algorithm is used to detect features, most of the features detected in the second corrected image will generally correspond to features detected in the first corrected image, in the sense that the features detected in both images represent the same or substantially the same anatomical features in the imaged target. Thus, a plurality of second features may be associated with a plurality of first features.
[0137] In a next step 350, the processor may determine a plurality of displacement vectors based on the first features and the corresponding second features, where the displacement vectors describe the displacement of the features relative to an image. For example, the processor may determine feature pairs consisting of one first feature and one second feature, determine a first position of the first feature relative to the first corrected image, determine a second position of the second feature relative to the second corrected image, and determine the difference between the first and second positions. Typically, corresponding feature pairs may be pairs of a first feature and an associated second feature that represent the same anatomical feature.
[0138] In a next step 352, the processor may determine a transformation, such as an affine transformation or a more general homography, based on the plurality of displacement vectors to register corresponding features with each other. The transformation may be found, for example, by selecting from a class of transformations that minimizes the distance between pairs of corresponding features. Based on the transformation, the processor may register or align the first and second laser speckle contrast images with each other by transforming the first and / or second laser speckle contrast images (354). Typically, an older image may be transformed to be registered with a newer image. In embodiments using two or more image sensors, the transformation parameters determined based on the correction images may be adjusted to account for differences between the fields of view of the two or more image sensors.
[0139] In other embodiments, steps 338 and 348 may be omitted, and a displacement vector may be determined based on the first and second corrected images. For example, a dense optical flow algorithm, such as the Pyramid Lucas-Kanade algorithm or the Farneback algorithm, may be used to determine the displacement vector. Such algorithms typically convolve a pixel neighborhood from the first corrected image with part or all of the second corrected image, thereby matching a neighborhood corresponding to each pixel in the first corrected image with a neighborhood in the second corrected image. Such a method may also include determining a polynomial expansion to model pixel values within a pixel neighborhood in the first and second corrected images, comparing the expansion coefficients, and determining a displacement vector based on the comparison.
[0140] In that way, a displacement vector can be determined, for example for an individual pixel or group of pixels, based on pixel values in a group of pixels in the first corrected image and an associated group of pixels in the second corrected image.
[0141] In some embodiments, step 350 may be omitted and the transformation may be determined based on pixel values of a group of pixels in the first corrected image and pixel values of an associated group of pixels in the second corrected image, for example, using a trained neural network that receives as input a first image and a second image and provides as output a transformation for registering the first image with the second image, or alternatively, for registering the second image with the first image.
[0142] The processor may then calculate (356) a combined, e.g., averaged, laser speckle contrast image based on the registered first and second laser speckle contrast images, as described above with reference to step 326.
[0143] In other embodiments, these steps can be performed in a different order. For example, the laser speckle contrast image can be calculated after the raw speckle images are registered. In this way, a temporal or spatiotemporal speckle contrast image can be calculated. However, if the transformation is more general than translation and rotation (e.g., including scaling or shearing), the transformation can distort the speckle pattern, thereby introducing a source of noise. This is particularly true in embodiments using two or more cameras. In some embodiments, a single laser contrast raw speckle image can be calculated based on the combined, e.g., averaged, raw speckle images. In this case, the images are preferably registered with sub-pixel accuracy.
[0144] 4A illustrates a flow diagram of a motion-compensated speckle contrast imaging method according to one embodiment of the present invention. In a first step 402, the method may include exposing a target area to coherent light of a predetermined wavelength, where the target area includes biological tissue. Preferably, the target area includes biological tissue, such as skin, a burn, or an internal organ, such as intestine or brain tissue. Preferably, the biological tissue is perfused and / or includes blood and / or lymphatic vessels. The predetermined wavelength may be a wavelength within the visible spectrum, e.g., within the red, green, or blue portion of the visible spectrum, or the predetermined wavelength may be a wavelength within the infrared portion of the spectrum, preferably within the near-infrared portion.
[0145] In a next step 404, the method may include capturing, for example by an image sensor, at least one sequence of images, wherein the at least one sequence of images includes a plurality of (unprocessed) speckle images, the plurality of (unprocessed) speckle images being captured during exposure to the first light.
[0146] Each raw speckle image may include pixels defined by pixel coordinates and having pixel values, which may define the pixel's position relative to the image and are typically associated with one sensor element of the image sensor, and which may represent light intensity.
[0147] The image sensor may include a 2D image sensor, such as a CCD, such as a monochrome camera or a color camera. The images in the sequence of images may be frames in a video stream or a multi-frame snapshot.
[0148] In a next step 406, the method may further include determining one or more transformation parameters of an image registration algorithm to register the plurality of speckle images with one another. The transformation parameters may be based on a similarity measure of pixel values of a plurality of groups of pixels in a plurality of images of the at least one sequence of images, the image in the plurality of images being selected from the plurality of speckle images. Alternatively, the image in the plurality of images may include an image other than the raw speckle image associated with the plurality of raw speckle images. The transformation parameters preferably define one or more transformations from the group consisting of a homography, a projective transformation, or an affine transformation.
[0149] Determining the transformation parameters based on groups of pixels is described in more detail below with reference to step 416, where it is understood that in this embodiment, the (unprocessed) speckle image is used as the correction image.
[0150] The method may further include determining, using either step 408 or step 410, a combined laser speckle contrast image based on at least a portion of the sequence of the plurality of first speckle images and the one or more determined transformation parameters.
[0151] In step 408, the method may further include determining a plurality of registered speckle images by registering the plurality of speckle images based on the one or more transformation parameters and the image registration algorithm, and determining a combined speckle-contrast image based on the registered plurality of speckle images. In such an embodiment, the algorithm may first register a sequence of a plurality of raw speckle images using the determined transformation, then calculate a sequence of a plurality of speckle-contrast images, and then combine the registered plurality of speckle-contrast images.
[0152] In an alternative step 410, the method may further include determining a plurality of speckle contrast images based on the plurality of speckle images, determining a plurality of registered speckle contrast images by registering the plurality of speckle contrast images based on the one or more transformation parameters and the image registration algorithm, and determining a combined speckle contrast image based on the registered plurality of speckle contrast images. In other words, the algorithm may first calculate a sequence of a plurality of speckle contrast images, then register the plurality of speckle contrast images using the determined transformation, and then combine the registered plurality of speckle contrast images.
[0153] Further alternatives are discussed below with reference to steps 418 and 420.
[0154] 4B illustrates a flow chart of a motion-compensated speckle contrast imaging method according to one embodiment of the present invention. In a first step 412, the method may include alternately or simultaneously exposing a target area to coherent first light of a first wavelength and second light of one or more second wavelengths, preferably at least partially different from the first wavelength. The second light may be, for example, coherent light of a second wavelength, narrowband light, or light including multiple second wavelengths in the visible spectrum, such as white light. Preferably, the target area includes biological tissue, such as skin, a burn, or an internal organ, such as intestine or brain tissue. Preferably, the biological tissue is perfused and / or includes blood vessels and / or lymphatic vessels.
[0155] In a next step 414, the method may include capturing, e.g., by an image sensor system having one or more image sensors in a fixed relationship with respect to one another, a sequence of first (unprocessed) speckle images during exposure with the first light and a sequence of second (corrected) images during exposure with the second light. A speckle image in the sequence of first speckle images may be associated with an image in the sequence of second images.
[0156] When exposure and acquisition are simultaneous, each second image may be associated with one simultaneously acquired first speckle image. In embodiments in which the plurality of second images are the same image as the plurality of first speckle images, each image may be considered to be associated with itself, and may be referred to as a first speckle image or a second image depending on its function in the algorithm (e.g., determining transformation parameters or providing perfusion information).
[0157] In the case of alternating acquisition, a first speckle image may be associated with, for example, either a second image acquired immediately before or after the plurality of first speckle images, or both. If the plurality of first speckle images are acquired at a higher rate than the plurality of second images, several first speckle images may be associated with a single second image.
[0158] Thus, a sequence of a plurality of first unprocessed speckle images of the target area and a sequence of a plurality of corrected images of the target area can be acquired, where each corrected image is associated with one or more of the first unprocessed speckle images. Each corrected image can include a plurality of pixels, each of which is defined by pixel coordinates and has a pixel value. The pixel coordinates can define the position of the pixel relative to the image and are typically associated with one sensor element of the image sensor. The pixel value can represent light intensity.
[0159] The image sensor system may include one or more 2D image sensors, such as a CCD. The first raw speckle image and the corrected image may be acquired using one or more image sensors, such as a grayscale camera or a color (RGB) camera. The images in the sequence of images may be, for example, frames in a video stream or a multi-frame snapshot.
[0160] In a next step 416, the method may further include determining one or more transformation parameters of a registration algorithm for registering at least a portion of the one sequence of a plurality of first speckle images based on a similarity measure of pixel values of groups of pixels in at least a portion of the one sequence of a plurality of second images associated with the plurality of first speckle images, the transformation parameters preferably defining one or more transformations from the group of a homography, a projective transformation, or an affine transformation.
[0161] Determining the transformation parameters may include selecting a first corrected image from the at least a portion of the sequence of corrected images and determining a plurality of first groups of pixels within the first corrected image. The first corrected image may be a reference corrected image. In one embodiment, the first corrected image may be an initial image, for example, when a single output image is generated based on input by a user. In a different embodiment, the first corrected image may be a most recent corrected image, for example, when a continuous stream of output images is being generated.
[0162] A first group of pixels may be associated with a feature in the first corrected image, such as an edge or a corner. Preferably, the feature is associated with a physical or anatomical feature, such as a blood vessel, or more particularly, a sharp corner or a bifurcation in a blood vessel. Image features unrelated to physical features, such as overexposed image portions or speckle edges, may exhibit large frame-to-frame variations, and therefore registering the multiple images may be less useful. The feature may be a predetermined feature, such as a feature belonging to a certain class of features, such as a corner or a region with a large intensity difference. The feature may further be determined, for example, by a quality measure, constraints on the mutual distance between features, etc.
[0163] Alternatively, the group of pixels may be associated with a region within the first corrected image, for example a set of neighborhoods of a given pixel, for example all pixels in the image, or a selection of pixels evenly distributed across the image.
[0164] Determining the transformation parameters may further include selecting one or more second corrected images different from the first corrected image. For each of the selected one or more second corrected images, multiple second groups of pixels may be determined. The second groups of pixels may be associated with features within the second corrected images. If feature-based (image) registration is used, for example using a coarse optical flow algorithm, preferably the same algorithm is used to determine the first groups of pixels and the second groups of pixels.
[0165] If the first group of pixels is determined based on pixel coordinates, the second group of pixels may be determined by convolving or cross-correlating the first group of pixels with the second corrected image and selecting the group of pixels that is most similar to the first group of pixels, e.g., based on a suitable similarity measure. The convolution may be spatially constrained, e.g., by searching only matching second groups of pixels that are close to the location of the first group of pixels. Alternatively, or additionally, the second group of pixels may be constrained to preserve the mutual orientation of the first group of pixels, e.g., to prevent anatomically impossible combinations.
[0166] The second group of pixels may then be associated with the first group of pixels based at least on similarity of pixel values. In embodiments in which the second group of pixels is determined by matching or convolution with the first group of pixels, such association may be made as part of determining the second group of pixels. If feature-based registration is used, the second group of pixels may be associated with the first group of pixels based on similarity between features associated with the second group of pixels and features associated with the first group of pixels.
[0167] A transformation for registering the second corrected image with the first corrected image, and thus a transformation for registering the associated plurality of first speckle images or the derived plurality of first speckle contrast images, can be determined based on pixel coordinates of pixels in the associated first and second groups of pixels. Determining a transformation can include determining 3D movement of the image sensor system relative to the target area, or can be informed about the effect this 3D movement will have on the acquired image.
[0168] As an intermediate step, a displacement vector may be determined based on the positions of the first group of pixels and the associated second group of pixels, e.g., based on the positions of features within the first and second corrected images. The displacement vector may represent movement of the target area relative to the image sensor or image capture device. In some embodiments, a neighborhood of one or more determined object features may be used to determine the displacement vector and / or the transformation.
[0169] Determining the displacement vector and / or determining the transformation may be based on optical flow parameters determined using any suitable coarse or fine optical flow algorithm. Determining the displacement vector may include determining corresponding or matching feature pairs, where one feature of the pair is determined in a corrected image associated with a first time point and the other feature of the pair is determined in a subsequent corrected image in a sequence of corrected images associated with a later time point.
[0170] Methods for determining the transformation parameters, and optionally the features, are discussed in more detail below with reference to FIGS.
[0171] The method may further include determining, using either step 418 or step 420, a combined laser speckle contrast image based on at least a portion of the sequence of the plurality of first speckle images and the one or more determined transformation parameters.
[0172] In step 418, the method may further include determining registered first speckle images by registering at least a portion of the sequence of first speckle images based on the one or more transformation parameters and the registration algorithm, and determining a combined speckle-contrast image based on the registered first speckle images. In such an embodiment, the algorithm may first register a sequence of raw speckle images using the determined transformation, then calculate the sequence of speckle-contrast images, and then combine the registered speckle-contrast images.
[0173] In alternative step 420, the method may further include determining a plurality of first speckle-contrast images based on at least a portion of the sequence of a plurality of first speckle images, determining a plurality of registered speckle-contrast images by registering the plurality of first speckle-contrast images based on the one or more transformation parameters and the registration algorithm, and determining a combined speckle-contrast image based on the registered plurality of first speckle-contrast images. In other words, the algorithm may first calculate a sequence of a plurality of speckle-contrast images, then register the plurality of speckle-contrast images using the determined transformation, and then combine the registered plurality of speckle-contrast images.
[0174] In a further alternative embodiment, determining a combined laser speckle contrast image may include determining a sequence of a plurality of first unprocessed speckle images registered based on the plurality of first unprocessed speckle images and the determined transformation, determining a combined speckle contrast image based on two or more registered first unprocessed speckle images of the registered sequence of a plurality of first unprocessed speckle images, and determining a combined speckle contrast image based on the combined unprocessed speckle images. In such an embodiment, the algorithm may first register the sequence of a plurality of unprocessed speckle images using the determined transformation, then combine the registered speckle contrast images, and then calculate a single speckle contrast image.
[0175] In yet another alternative embodiment, the combination and calculation of speckle contrast can be a single step, for example, by calculating the temporal or spatiotemporal speckle contrast based on one sequence of the registered plurality of first raw speckle images.
[0176] Combining multiple raw speckle images or multiple speckle contrast images can include averaging, weighted averaging, filtering, e.g., with a median filter, etc. The weights in the weighted average can be based on quantities derived, for example, from the speckle contrast, derived from the transformation parameters, or derived from the displacement vectors. Methods for combining multiple raw speckle images or multiple speckle contrast images are discussed in more detail below with reference to FIG. 9.
[0177] 5 illustrates a method for determining a transformation according to one embodiment of the present invention. 1~3may be determined in a first corrected image 502 acquired at a first time t=t1. Each of the plurality of first features may be associated with a group of pixels in the first corrected image. Preferably, the first features are associated with an anatomical structure, e.g., a blood vessel 504. 1~2 , or other stable features that can be assumed not to move between subsequent frames. Therefore, the first correction image is preferably obtained using light that makes such anatomical structures clearly visible. For example, green light can be used, which is strongly absorbed by blood vessels but not by most other tissues. Therefore, blood vessels can appear as dark structures in a bright environment, resulting in high visual distinctiveness. However, other embodiments can use light of one or more other wavelengths, such as blue light or white light.
[0178] Feature 506 1~3 can be determined using any suitable feature detection algorithm, for example, a feature detector based on the Harris detector or the Shi-Tomasi detector, e.g., goodFeaturesToTrack in the OpenCV library. Other examples of suitable feature detectors and descriptors include Speeded-Up Robust Features (SURF), Features from Accelerated Segment Test (FAST), Binary Robust Independent Elementary Features (BRIEF), and combinations thereof, e.g., ORB. Various suitable algorithms are implemented in commonly available image processing libraries, e.g., OpenCV. Preferably, depending on the application, the algorithm should be fast enough to allow real-time image processing.
[0179] Typically, sharp corners (e.g., feature 506 1,3) and bifurcations (e.g., feature 5062) are preferred features. Preferably, a deterministic feature detection algorithm is used, i.e., a feature detection algorithm that detects identical features within the same image. Preferably, the features should be distributed over a large portion of the image area. A good distribution of feature points across the image can be obtained by requiring a minimum distance between selected feature points. In some embodiments, based on, for example, a BRIEF or ORB implementation, the features may be assigned descriptors that identify feature characteristics to facilitate feature discrimination and feature matching.
[0180] The minimum number of feature points depends on the type of transformation; for example, an affine transformation has six degrees of freedom, while a homography has eight degrees of freedom. Thus, the first plurality of first features may comprise at least five features, preferably at least 25, more preferably at least 250, and even more preferably at least 1000 features. The number of features may depend on the amount of pixels in the image, with more features being used for images with more pixels. Typically, a larger number of features may result in a more accurate transformation, as random errors may be averaged out.
[0181] However, there are various reasons why the number of features may be limited. For example, there may be only a limited number of features that meet a certain quality metric, such as the magnitude of local contrast or corner sharpness. In addition, computation time increases with the number of features, and therefore the number of features may be limited to enable real-time image registration; for example, for a 50 fps video feed, the entire algorithm should preferably be less than 20 ms per frame.
[0182] a second plurality of second features 516 associated with the second group of pixels; 1~3can be determined in a second corrected image 512 acquired at a second time t=t2. Preferably, the field of view of the second corrected image overlaps substantially, preferably more than half, with the field of view of the first corrected image. Preferably, the second feature is located on the same anatomical structure as the first feature, e.g., blood vessel 514. 1~2 Preferably, the same feature detection algorithm is used to detect features in both the first and second corrected images.
[0183] The determined first and second features may include position information relative to the first and second corrected images, respectively. 1~3 and the second plurality of second features 516 1~3 based on a plurality of displacement vectors 524 1~2 may be determined, where displacement vectors describe the displacement of features relative to an image. In an intermediate step, pairs of corresponding features may be determined, e.g., feature 5061 may be associated with feature 5161, feature 5062 may be associated with feature 5162, and feature 5063 may be associated with feature 5163. Pairs of corresponding features may be determined, for example, based on feature parameters, such as local contrast or corner sharpness, or based on distances between features in the first and second corrected images. In some embodiments, not all features in the first corrected image can be paired with features in the second corrected image. In some embodiments, displacement vector 524 1~3 The determination of the corresponding feature pairs can be done in a single step.
[0184] For example, if a minimum distance between features is imposed and the displacement is assumed to be less than the minimum distance, an algorithm that minimizes the distance between the points formed by the first and second features, respectively, can implicitly determine corresponding feature pairs and the displacement vector for each corresponding feature pair. In a typical embodiment, a typical frame-to-frame displacement is only a few pixels. In one embodiment, the displacement vectors can be filtered to remove possible outliers, such as displacement vectors that deviate more than a predetermined amount from displacement vectors originating from neighboring features.
[0185] In other embodiments, the displacement vector may be determined based on groups of associated pixels based on pixel values in the first and second corrected images. As described above with reference to FIG. 3, in such embodiments, feature detection may be omitted. Instead, the displacement vector may be determined using, for example, a dense optical flow algorithm, such as the Pyramid Lucas-Kanade algorithm or the Farneback algorithm. In principle, any method for determining a displacement vector based on pixel values of groups of corresponding pixels may be used.
[0186] The plurality of displacement vectors 524 1~3 A transformation can be determined based on the calculated displacement vectors. In one embodiment, the transformation can be determined by an average or median displacement vector, or by another displacement vector that is statistically representative of the plurality of displacement vectors. In different embodiments, the transformation can be an affine transformation, a projective transformation, or a homography, e.g., combining translation, rotation, scaling, and shear transformations. Preferably, the transformation projects features from the first corrected image onto corresponding features in the second corrected image. The transformation can then be applied to the first unprocessed speckle image to register the first unprocessed speckle image with the second unprocessed speckle image.
[0187] In one embodiment, the first and second corrected images may be preprocessed before determining features. For example, overexposed and / or underexposed regions may be identified based on pixel values. These regions may then be masked so that features cannot be detected within them. The mask may be slightly larger than the overexposed or underexposed regions, for example, by increasing the identified regions by a predetermined number of pixels. Masking the overexposed and / or underexposed regions may improve the quality of the features, for example, by preventing features associated with the edges or corners of the overexposed regions.
[0188] 6A shows an example of determining a transformation according to one embodiment of the present invention, where the determined transformation is a translation. As described with reference to FIG. 5, the first plurality of first features 602 1~3 may be determined in the first corrected image acquired at t=t1, and the second plurality of second features 604 1~3 can be determined in a second corrected image acquired at t=t2. Based on the corresponding feature pairs, a plurality of displacement vectors 606 1~3 For ease of understanding, only the features and the displacement vectors are shown, not the (anatomical) structures.
[0189] In a typical situation, the determined displacement vector 606 1~3 are not all exactly the same. In the depicted example, displacement vector 6061 is slightly shorter than the average, while displacement vector 6063 is slightly larger than the average. Similarly, the direction of each displacement vector shows some variability. Based on these displacement vectors, an average displacement vector 608 can be determined. A translation can be defined by a single vector. For example, all pixels of the first raw speckle image acquired at t=t1 can be shifted by an amount equal to the average displacement vector. In principle, a translation can be determined based on a single displacement vector. However, by determining multiple displacement vectors, the accuracy of the transformation can be improved.
[0190] In one embodiment, the average displacement vector 608 and the determined displacement vector 606 1~3 The similarity between the features in the first corrected image and the corresponding features in the second corrected image after transformation can be calculated, for example, based on the variance of the displacement vectors. In that way, an indication of how well the transformation compensates for the detected displacement of individual feature pairs can be obtained. Alternatively, the average distance between the features in the first corrected image after transformation and the corresponding features in the second corrected image can be determined.
[0191] 6B shows an example of determining a transformation according to one embodiment of the present invention, where the determined transformation is an affine transformation. Similar to FIG. 6A, a first plurality of first features 612 1~3 , a second plurality of second features 614 1~3 , and a plurality of displacement vectors 616 1~3 However, in this example, the average displacement vector 618, which has a length of approximately zero, is not representative of the determined displacement vectors, which are typically longer and point in different directions.
[0192] Therefore, to compensate for this type of motion, a more general transformation, such as an affine transformation, is needed. Affine transformations include translation, rotation, mirroring, scaling, and shearing transformations, as well as combinations thereof. By restricting the transformation parameter values, it is possible to selectively exclude transformations. For example, mirroring can be excluded as a possible transformation because it is typically not physically possible.
[0193] In general, an affine transformation can be calculated using a six-degree-of-freedom transformation matrix, such as that described in equation (1), acting on points expressed in homogeneous coordinates. By restricting the possible values of the affine transformation matrix, the affine transformation can be restricted to only predetermined motions. For example, a more specific transformation matrix, such as a restricted rotation matrix, can be obtained, which may be more suitable for certain applications.
[0194]
number
[0195] where A is a transformation matrix that transforms a point p with coordinates x and y, typically in pixel coordinates, into a transformed point p' with coordinates x' and y'. The matrix A has six free parameters, of which t x and t y defines the translation, while the submatrix
[0196]
number
[0197] To solve Equation (1), at least three displacement vectors may be used to provide a solvable system consisting of six equations and six unknowns. Such linear systems can be solved deterministically, as is known in the art. In a typical embodiment, many displacement vectors may be determined, each of which may contain a small error. Therefore, a more robust approach may be to use multiple displacement vectors and use an appropriate fitting algorithm, such as least-squares fitting, as shown in Equation (2) below.
[0198]
number
[0199] The reliability of the determined transformation may again be determined as described above with reference to FIG. 6A.
[0200] 6C shows an example of determining a transformation according to one embodiment of the present invention, where the determined transformation is a projective transformation. Projective transformations include, and are more general than, affine transformations. Projective transformations include, for example, skewing transformations, which may be required to compensate for, for example, changes in angle between the camera and the target area.
[0201] Similar to FIGS. 6A and 6B, the first plurality of first features 622 1~3 , a second plurality of second features 624 1~3 , and a plurality of displacement vectors 626 1~3 can be determined. In this example, the translation on the left side of the image is much smaller than on the right side of the image. Therefore, applying an average translation will result in the pixels on the left side being transformed too much and the pixels on the right side being transformed too little. This type of displacement can be corrected by a projective transformation. Various methods for determining a projective transformation based on four or more displacement vectors are known in the art.
[0202] In general, a projective transformation can be calculated using the non-homogeneous coordinates (x1, y1, z1) and (x2, y2, z2) using a projection matrix as shown in equation (3) below.
[0203]
number
[0204] The non-homogeneous coordinates (x1, y1, z1) may be related to the feature's pixel coordinates (x, y) via x1 = x, y1 = y, and z1 = 1, while the transformed pixel coordinates (x', y') may be obtained from the non-homogeneous coordinates via x' = x2 / z2 and y' = y2 / z2. In some embodiments, a displacement vector may be determined by (x' - x, y' - y). In other embodiments, the displacement vector is not explicitly constructed.
[0205] Therefore, equation (3) can be rewritten as two independent equations, as shown in equation (4) below.
[0206]
number
[0207] Solving for H, equation (4) can be rewritten as equation (5) below:
[0208]
number
[0209]
number
[0210] Using a set of N feature points, a system of equations can be set up as shown in equation (7) below.
[0211]
number
[0212]
number
[0213] By definition, the matrix H is homogeneous and can be scaled by any constant, so the projective transformation matrix contains eight degrees of freedom. Thus, equation (7) can be solved using only four sets of coordinates given by the four features. The projective transformation matrix H can be expressed, for example, as equation (9) below:
[0214]
number
[0215]
number
[0216] Equation (7) can be solved deterministically using at least four points, but using more points may yield more robust results, similar to those described above for the affine transformation. In the case of a projective transformation or homography, this may be done using singular value decomposition (SVD). In some embodiments, determining the displacement vectors or point pairs is combined with determining the homography to find the most accurate projective transformation, which may be done using an algorithm such as RANSAC.
[0217] In one embodiment, the algorithm may first calculate a relatively simple transformation, such as a translation. The algorithm may then determine whether the calculated transformation reproduces the determined displacement vector with sufficient accuracy. If not, the algorithm may try a more general transformation, such as an affine transformation, and repeat the same procedure. This may reduce the required computation time if translation is sufficient in a sufficiently large number of cases. In a different embodiment, the algorithm may always calculate a general transformation, such as a general homography. This may result in more accurate registration of raw speckle images or speckle-contrast images.
[0218] 6D illustrates an example of determining multiple transformations according to one embodiment of the present invention. Each corrected image 650 in the series of corrected images includes multiple regions 652. 1-n, preferably into a plurality of separate regions that jointly cover the entire image, e.g., a rectangular grid. Transformations 6541, 6542, ..., 6544 are then applied to the entire image, preferably in the same manner as described above for the entire image with reference to Figures 6A-6C. n However, each region 6541, 6542, ..., 654 n A transformation may be determined for each region. Each region may then be transformed using the transformation determined for that region. Alternatively, the determined transformation may be assigned to, for example, a central pixel in the region, and the remaining pixels are transformed according to an interpolation technique based on the transformation of the region containing the pixel and the transformations of neighboring regions.
[0219] In one embodiment, each region may be a single pixel. In such an embodiment, the transformation may be determined based on the pixel value and based on the pixel values of pixels in the region surrounding the pixel.
[0220] 7A and 7B illustrate a flow diagram for laser speckle contrast imaging combining three or more raw speckle images according to one embodiment of the present invention. At a first time t=t1, a first raw speckle image 7021 based on light of a first wavelength may be obtained and used to calculate a first laser speckle contrast image 7041. A first corrected image 7061 associated with the first raw speckle image may be obtained based on light of at least a second wavelength, and a first plurality of first features may be detected in the first corrected image (7081). Items 7021 through 7081 may be obtained by performing step 7101, which may be similar to steps 302 through 308 described with reference to FIG. 3. In some embodiments, the first corrected image and the first raw speckle image may be the same image.
[0221] At a second time t=t2, step 7101 may be repeated as step 7102, resulting in a second raw speckle image 7022 based on light at the first wavelength, a second laser speckle contrast image 7042, a second corrected image 7062 based on light at least at a second wavelength, and a plurality of second features 7082. A plurality of first displacement vectors 7121 may be calculated based on the plurality of first features 7081 and the plurality of second features 7082. Based on the plurality of first displacement vectors, a first transformation 7141 may be determined, which may be used to transform the first laser speckle contrast image 7041 to register the first laser speckle contrast image 7041 with the second laser speckle contrast image 7042, resulting in a registered first laser speckle contrast image 7181. As discussed above, in some embodiments, the transformation may be determined without explicitly detecting features and / or displacement vectors.
[0222] Optionally, first weights 7161 may be determined based on the plurality of first displacement vectors 7121. The weights may be correlated, preferably inversely correlated, to the length of a representative displacement vector, e.g., the maximum, average, or median displacement vector, or, e.g., to the average or median length of the plurality of first displacement vectors. In embodiments in which an image is divided into multiple regions and a transformation is determined for each region, as described above with reference to FIG. 6D , a weight may be determined for each region based on the transformation parameters associated with that region, or a single weight may be determined for the entire image, e.g., based on a representative parameter, e.g., the maximum, average, or median displacement. Determining a weighted average is discussed in more detail below with reference to FIG. 9.
[0223] The registered first laser speckle contrast image 7181 may then be combined with the second laser speckle contrast image 7042, resulting in a combined first laser speckle contrast image 7201. The combined laser speckle contrast image may be, for example, a pixel-by-pixel average or maximum of the registered first laser speckle contrast image 7181 and the second laser speckle contrast image 7042. Optionally, first weights 7161 and / or second weights 7162 may be used to determine the weighted average.
[0224] At a third time t=t3, step 7101 may be repeated as step 7103, resulting in a third raw speckle image 7023 based on light at the first wavelength, a third laser speckle contrast image 7043, a third corrected image 7063 based on light at least at a second wavelength, and a plurality of second features 7083. A plurality of second displacement vectors 7122 may be calculated based on the plurality of second features 7082 and the plurality of third features 7083. A second transform 7142 may be determined based on the plurality of second displacement vectors. The second transform may be used to transform the combined first laser speckle contrast image 7201 to register the combined first laser speckle contrast image 7201 with the third laser speckle contrast image 7043, resulting in a registered combined first laser speckle contrast image 7221. The registered first laser speckle contrast image 7181 can then be combined with the second laser speckle contrast image 7042, resulting in a combined first laser speckle contrast image 7201.
[0225] The registered combined first laser speckle contrast image 7201 may then be combined with the third laser speckle contrast image 7043, resulting in a combined second laser speckle contrast image 7202. Thus, the combined second laser speckle contrast image may include information from the first laser speckle contrast image 7041, the second laser speckle contrast image 7042, and the third laser speckle contrast image 7043. By repeating these steps, the nth image may include information from all n-1 previous images. Preferably, in that case, the weighting may be skewed to give more recent images a higher weight than older images. This embodiment is particularly useful in the case of streaming video, where each captured frame is processed and output with minimal delay. Another advantage of this method is that it can be assumed that the motion between two subsequent frames is relatively small, which can speed up processing and also allow a wider range of algorithms to be used, as some algorithms may not work very well for large motion. In general, feature-based algorithms may be more reliable for relatively large displacements.
[0226] 7B illustrates a flow diagram for an alternative method for laser speckle contrast imaging that combines three or more raw speckle images, according to one embodiment of the present invention. In this embodiment, a predetermined number of images are combined into a single combined image. Step 752 involves image acquisition, speckle contrast image calculation, and feature determination. 1-n ~Process 760 1-n corresponds to step 702 described above with reference to FIG. 7A. 1-n ~Process 710 1-n It can be the same as:
[0227] However, unlike the method depicted in FIG. 7A, all displacement vectors 762 1,2is determined relative to a single reference image, e.g., the first or last image in a sequence of n images. In the depicted example, the image is registered with the nth image. Thus, the transformation 764 1,2 The first and second speckle contrast images are registered with the nth speckle contrast image by applying weights 766 to the first and second speckle contrast images, respectively. 1,2 is also determined for the nth image based on a transformation parameter, e.g., the average displacement. In a final step, all n registered speckle-contrast images may be combined into a single combined speckle-contrast image 770.
[0228] The method depicted in Figure 7B may result in a combined image with higher image quality than the method depicted in Figure 7A, but at the expense of a greater delay between image capture and display, making this method particularly advantageous for recording snapshots.
[0229] In one embodiment, the method depicted in FIG. 7B can be applied to a sliding group of images, e.g., the last n images of a video feed. To keep time delays low, n should preferably not be too large in this case; for example, n can be approximately 5-20 when the frame rate is, e.g., 50-60 fps. Of course, the number of frames that can be processed also depends on the hardware and algorithm, so a higher frame rate may still be feasible. Thus, some of the advantages of both methods can be combined. An advantage of using a relatively small number of frames is that dynamic phenomena, such as the effects of heartbeat, can be imaged. An advantage of a higher frame rate is that such transient effects can be filtered out, especially if the number of frames is selected to cover an integer multiple of the heart rate and / or respiratory cycle.
[0230] FIG. 8 illustrates a flow diagram for calculating a corrected laser speckle contrast image according to one embodiment of the present invention. Generally, one may be interested in the relative motion of one or more objects within the target area relative to one or more other objects within the target area, such as the motion of body fluids or red blood cells relative to tissue. In such cases, noise in a signal derived from a moving object (the desired signal) may be compensated for by a signal derived from a reference object (the reference signal). The underlying principle is that the desired signal may include a first component based on the motion of the quantity of interest relative to the reference object and a second component based on the motion of the entire target area relative to the camera. The reference signal may include only, or primarily, a component based on the motion of the entire target area relative to the camera. Therefore, the reference signal may be correlated with the second component of the desired signal. This correlation may be used to correct or compensate the desired signal. For example, a correction term based on the signal strength of the reference signal may be added to the desired signal.
[0231] In the embodiment depicted in Figure 8, a target area is illuminated with coherent light at a first wavelength 802, e.g., red or infrared light, and with coherent light at a second wavelength 812, e.g., green or blue light. Preferably, the light at the first wavelength is mostly scattered by an object or fluid of interest, e.g., blood. Preferably, the light at the second wavelength is mostly scattered by the surface of the target area and / or mostly absorbed by the object or fluid of interest. Preferably, the second wavelength is selected such that reflection of the second wavelength by blood is at least 25%, at least 50%, or at least 75% less than reflection by tissue. Preferably, the target area is illuminated with light at the first and second wavelengths simultaneously.
[0232] The scattered light of the first wavelength may result in a first raw speckle image, which may be captured by a first image sensor (804). The scattered light of the second raw speckle image may be captured by a second image sensor, preferably different from the first image sensor (814). The first raw speckle image may be referred to as a desired signal raw speckle image, and the second raw speckle image may be referred to as a reference signal image or a correction signal image.
[0233] A first speckle contrast image may be calculated based on the first raw speckle image (806). A second speckle contrast image may be calculated based on the second raw speckle image (806). Preferably, the speckle contrast is calculated in the same manner for the first and second raw speckle images. The speckle contrast may be calculated, for example, in the manner described above with reference to step 304 in Figures 1 and 3A.
[0234] In a next step 808, a corrected speckle contrast image can be calculated based on the first and second speckle contrast images. Calculating a corrected speckle contrast image can include, for example, adding a correction term or multiplying by a correction factor. The correction term can be based on the determined speckle contrast amount in the speckle contrast image compared to a reference speckle contrast amount. The reference speckle contrast amount can be, for example, predetermined, or can be dynamically determined, for example, based on the speckle contrast amounts in a certain number of previous second contrast images, or based on speckle contrast images with very little motion, for example, as determined by a motion correction algorithm as described above.
[0235] The corrected speckle contrast image may then be stored for further processing, such as re-registration or realignment and temporal averaging, as described with reference to Figures 3A and 3B (810). The second unprocessed speckle image and / or the second speckle contrast image may also be stored for further processing, such as determining displacement vectors within multiple second unprocessed speckle images to re-register or realign multiple simultaneously captured corrected speckle contrast images (818). In one embodiment, steps 802-818 may replace steps 332-336 of Figure 3B.
[0236] Thus, an advantage of the method in the present disclosure is that the second wavelength image can be used for both multispectral coherent correction (or "dual laser correction") as described with reference to FIG. 8 and speckle contrast image registration as described with reference to FIGS. 3A and 3B.
[0237] 9 illustrates a schematic diagram of a motion-compensated speckle contrast image determination based on a weighted average according to one embodiment of the present invention. 1-N For example, the transformation size may be determined based on the length of the plurality of displacement vectors, or a statistical representative thereof, such as the average 904 thereof. 1~N , or the matrix norm of the matrix representing the transformation.
[0238] The combined speckle contrast image 906 may be a weighted average of the speckle contrast images in a sequence of registered speckle contrast images, each image weighted by a weight parameter w′.
[0239] The weight parameter w' is the displacement vector ||p' i -p i||, where high displacement corresponds to small weight and vice versa, for example as defined in equation (11).
[0240]
number
[0241] Here, the displacement vector has coordinates (x i ',y i Point P defined by i ' and coordinates (x i ,y i ) is the point p i and can be determined by the sum of
[0242] The weight parameter w′ may also be determined based on fine or coarse optical flow parameters that define the optical flow between the first image, typically a reference image, and the second image. For example, the weight may be inversely correlated with the average optical flow over all pixels in the image or in a region of interest within the image, e.g., as defined in equation (12).
[0243]
number
[0244] where v ij ' is the optical flow of pixel (i,j) including the x and y components of the optical flow, and W and H are the width and height in pixels of the reference image or reference region of interest, respectively.
[0245] Alternatively, a weighting parameter can be determined for each pixel based on the per-pixel optical flow, for example as defined in equation (13).
[0246]
number
[0247] Instead of determining weighting parameters for each pixel or for the entire image, the weighting parameters can also be determined for a predetermined region of the image, such as a rectangular or triangular mesh, For example, the weighting parameters can be based on the average optical flow within the corresponding predetermined region.
[0248] The weighting parameter is also used to calculate the speckle contrast value s ij ', and preferably the weighting parameter is proportional to the magnitude of the speckle contrast, for example as defined in equation (14) below.
[0249]
number
[0250] where s ij ' is the speckle contrast of the reference image, and W and H are the width and height in pixels of the reference image or the reference region of interest, respectively. The advantage of using speckle contrast is that noise occurring within a small time window relative to the speckle contrast blurs the speckle contrast. Such noise may be due to, for example, motion of the imaged object or the camera, or other sources, such as loose fiber connections. The advantage of using weights based on displacement vectors or optical flow is that it may have higher temporal resolution in the case of LSCI, while weights based on speckle contrast may lag, especially when perfusion is increasing.
[0251] Alternatively, the weighting parameters can be determined based on the speckle contrast per pixel.
[0252]
number
[0253] Alternatively, the weighting parameters can be determined based on the average speckle contrast within a predetermined region, such as a square grid or a triangular mesh. The weighting parameters can also be determined for a dynamically determined region, which can be determined based on, for example, detected motion.
[0254] In one embodiment, various of these weights may be combined. For example, the weights may be normalized and added, multiplied, or compared, e.g., selecting the lowest weight. Alternatively, a first weight, e.g., based on speckle contrast value, may be used to filter out images that do not meet a predetermined quality standard; e.g., images with a contrast magnitude drop above a predetermined threshold receive a weight of 0, and all other images receive a weight of 1. Weights based on optical flow or displacement may then be used to determine a weighted average of the images that were not filtered out.
[0255] The weighted average is calculated by taking N images Img k and the corresponding N weighting coefficients w k can be determined by using a single weighting factor per image, with k=1, 2..., N, using a buffer of k. For each new image acquired, the following steps can be performed: 1) Copy the new image to Img N+1 to the buffer as , which can be selected as the reference image; 2) Retrieve the first weighting factor w1 and the first image Img1 from the buffer; 3) Other images in the buffer Img2, Img3, ..., Img N Apply a geometric transformation to the N+1 If these images have been previously registered, for example with a previous reference image, then all images Img 2-NIf unregistered images are stored in the buffer, a transformation can be determined and applied separately to each image in the buffer. 4) The weighting factor w as explained above N+1 and add it to the buffer; 5) Weighting coefficients w2~w N+1 , for example, according to equation (16):
[0256]
number
[0257]
number
[0258]
number
[0259] In an alternative embodiment, the image buffer may contain only one combined image. In such an embodiment, the N weighting factors w k (k=1, 2..., N corresponds to the N most recent images), and a combined image Img based on the N most recent images. N ', a weighted average can be determined. N+1 For each, the following steps can be taken: 1) Copy the new image to Img N+1 to the buffer as , which can be selected as the reference image; 2) Retrieve the first weighting factor w1 from the buffer; 3) Stored image (Img) N ' and apply a geometric transformation to the reference image Img N+1 and register. 4) As explained above, the weighting factor w N+1 and add it to the buffer; 5) Weighting coefficients w2~w N+1 normalize, for example, according to equation (16) or (17); 6) The stored image Img′, for example, as defined in equation (19) below: N and the reference image Img N+1 A weighted average of the images is calculated to produce a high-quality combined image (Img) N+1 ' to calculate:
[0260]
number
[0261] The advantage of this algorithm is that it is much faster to operate because only one geometric transformation needs to be applied and the amount of processing steps is smaller. The size of the buffer in which the weighting factors are stored determines how much influence the past image has compared to the influence of the new image. If the buffer is small, the new image will be closer to the present in the final image, whereas if the buffer is large, the new image will be less close to the present and images with high weighting factors will be closer to the present.
[0262] As explained above, the weights may be determined for the entire image, for each pixel within an image, or for a predetermined or dynamically determined region within an image. Similarly, a single transformation may be applied to each entire image, each pixel may be transformed individually, or the transformation may be determined and applied to a predetermined or dynamically determined region. Thus, the weights may be defined as scalars, matrices, or in a different format.
[0263] An advantage of algorithms that use geometric transformations based on, for example, rectangular or triangular meshes and use weights determined for each mesh segment is that such algorithms can be more robust to registration errors while being able to locally correct for noise, e.g., local motion.
[0264] A weight based on the amount of displacement or transformation can be quickly determined for each image, independent of other images. Images with a large amount of displacement are generally noisier and therefore can be assigned a lower weight, thereby improving the quality of the combined image.
[0265] Alternatively or additionally, a normalized speckle contrast amount or a change in speckle contrast relative to one or more preceding and / or subsequent images in the sequence of first speckle contrast images can be determined for each first raw speckle image, in which case the weighted average can be determined using weights based on the determined normalized speckle contrast amount or the determined change in speckle contrast associated with each first speckle contrast image.
[0266] Weights based on differences or changes in speckle contrast, especially abrupt changes, can indicate image quality. Typically, speckle contrast, and therefore these weights, can be affected by various factors within the overall system, such as the camera's movement relative to the target area, fiber movement, or other factors affecting the optical path length, loose connections, or varying lighting conditions. Therefore, using weights based on speckle contrast can result in a higher quality combined image. Typically, speckle contrast is determined in relative units, so weights can be determined by analyzing a sequence of multiple raw speckle images. Because speckle contrast is inversely correlated with perfusion, perfusion units based on speckle contrast can also be used.
[0267] Preferably, the images can be normalized so that the relationship between speckle contrast and weight is linear with a constant. In that case, correction based on speckle contrast can be closer to real time, since each image can be normalized directly and without reference to the temporal window of the image. Alternatively, incremental averaging can be used.
[0268] 10 is a block diagram illustrating an exemplary data processing system described in this disclosure. Data processing system 1000 may include at least one processor 1002 connected to memory elements 1004 through a system bus 1006. As such, the data processing system may store program code in memory elements 1004. Further, processor 1002 may execute the program code accessed from memory elements 1004 via system bus 1006. In one aspect, the data processing system may be implemented as a computer suitable for storing and / or executing program code. However, it should be appreciated that data processing system 1000 may be implemented in the form of any system including a processor and memory capable of performing the functions described herein.
[0269] The memory element 1004 may include one or more physical memory devices, such as a local memory 1008 and one or more mass storage devices 1010. The local memory may refer to random access memory or other non-persistent memory devices typically used during the actual execution of the program code. The mass storage device may be implemented as a hard drive or other persistent data storage device. The processing system 1000 may also include one or more cache memories (not shown) that provide temporary storage of at least some of the program code to reduce the number of times the program code must be retrieved from the mass storage device 1010 during execution.
[0270] Input / output (I / O) devices, depicted as key devices 1012 and output devices 1014, may optionally be connected to the data processing system. Examples of key devices may include, but are not limited to, a keyboard, a pointing device such as a mouse, etc. Examples of output devices may include, but are not limited to, a monitor or display, speakers, etc. The key devices and / or output devices may be connected to the data processing system directly or through an intermediary I / O controller. A network adapter 1016 may also be connected to the data processing system to enable it to become connected to other systems, computer systems, remote network devices, and / or remote storage devices through intermediary private or public networks. The network adapter may comprise a data receiver for receiving data transmitted by the system, device, and / or network to the data, and a data transmitter for transmitting data to the system, device, and / or network. A cable modem, a cable modem, and an Ethernet card are examples of different types of network adapters that may be used with data processing system 1000.
[0271] 10, memory element 1004 may store application 1018. It should be appreciated that data processing system 1000 may further execute an operating system (not shown) that may facilitate execution of the application. Applications implemented in the form of executable program code may be executed by data processing system 1000, for example, by processor 1002. In response to executing an application, the data processing system may be configured to perform one or more actions described in further detail herein.
[0272] In one aspect, for example, data processing system 1000 may represent a client data processing system, in which case application 1018 may represent a client application that, when executed, configures data processing system 1000 to perform the various functions described herein with reference to a "client." Examples of clients include, but are not limited to, personal computers, handheld computers, mobile phones, etc.
[0273] In another aspect, the data processing system may represent a server. For example, the data processing system may represent an (HTTP) server, in which case the application 1018, when executed, may configure the data processing system to perform (HTTP) server operations. In another aspect, the data processing system may represent a module, unit, or function, as referred to herein.
[0274] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the words "comprises" and / or "comprising," when used herein, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0275] In the following claims, equivalent structures, materials, acts, and all means-or-step-plus-function element equivalents are intended to encompass any structure, material, or act for performing the function that is specifically claimed in combination with other claimed elements. The description of the present invention has been presented for purposes of illustration and description and is not intended to be exhaustive or limited to the invention in the form disclosed. Many changes and modifications will be apparent to those skilled in the art without departing from the scope and spirit of the invention. The embodiments were chosen and described to best explain the principles and practical application of the invention and to enable those skilled in the art to understand the invention in terms of various embodiments with various modifications suited to the particular uses contemplated.
Claims
1. 1. A method for motion compensated laser speckle contrast imaging, comprising: exposing a target area to a coherent first light at a first wavelength, wherein the target area comprises biological tissue; capturing at least one sequence of a plurality of images, wherein the at least one sequence of a plurality of images includes a plurality of first speckle images, the plurality of first speckle images being captured during exposure with the first light; determining one or more transformation parameters of an image registration algorithm to register the plurality of first speckle images with one another, where the transformation parameters are based on a similarity measure of pixel values of at least one group of pixels in each of a plurality of images of the at least one sequence of a plurality of images, the image in the plurality of images being selected from or associated with the plurality of first speckle images; determining a plurality of first speckle contrast images based on the plurality of first speckle images; determining a plurality of registered speckle contrast images by registering the first plurality of speckle contrast images based on the one or more transformation parameters and the image registration algorithm; and calculating a weighted average of the registered speckle contrast images; The method comprising:
2. further comprising exposing the target area to a second light of one or more second wavelengths, wherein the exposure to the second light is alternating with or simultaneous with the exposure to the first light; the at least one sequence of a plurality of images includes a sequence of a plurality of second images; the plurality of second images are captured during exposure with the second light, and the plurality of images are selected from the one sequence of a plurality of second images, each of the plurality of second images being associated with a first speckle image. The method of claim 1.
3. the light of at least a second wavelength is coherent light of a predetermined second wavelength, and the sequence of a plurality of second images is a sequence of a plurality of second speckle images; The method determining a plurality of second speckle contrast images based on a sequence of the plurality of second speckle images; and adjusting the plurality of first speckle contrast images based on a change in a magnitude of a speckle contrast within the sequence of a plurality of second speckle contrast images. The method of claim 2 further comprising:
4. A method according to any one of claims 1 to 3, wherein the first wavelength is a wavelength in the red portion of the electromagnetic spectrum.
5. The weight of one image is based on the transformation parameters or based on the relative magnitude of the speckle contrast. The method of any one of claims 1 to 4, further comprising:
6. A method according to any preceding claim, wherein at least one group of pixels represents a predetermined feature within the plurality of images.
7. The method of claim 6, further comprising filtering the multiple images with a filter adapted to increase the probability that at least one group of pixels represents a feature corresponding to an anatomical feature.
8. Determining one or more transformation parameters determining a plurality of associated groups of pixels based on the similarity measure, where each group of pixels belongs to a different image from the plurality of images; determining a plurality of displacement vectors based on positions of the groups of pixels relative to respective images from the plurality of images, where the displacement vectors represent movement of the target area relative to an image sensor; and determining the transformation parameters based on the plurality of displacement vectors; The method according to any one of claims 1 to 7, comprising:
9. dividing each of the plurality of first speckle images or each of the plurality of first speckle contrast images and each image within the plurality of images into a plurality of regions, and wherein: Determining the transformation parameters includes determining transformation parameters for each region; and determining a sequence of registered first speckle images or first speckle contrast images includes registering each region of the first speckle images or first speckle contrast images based on a transformation based on the corresponding region in the second image; The method according to any one of claims 1 to 8.
10. 10. The method of claim 1, wherein the target area comprises a perfused organ and / or comprises one or more blood vessels and / or lymphatic vessels, the method further comprising calculating a perfusion intensity based on the combined speckle image.
11. The method of any one of claims 1 to 10, further comprising displaying the combined speckle image or a derivative thereof.
12. 1. A hardware module for an imaging device, the hardware module comprising: a first light source for exposing a target area to a coherent first light of a first wavelength, the target area including biological tissue; an image sensor system having one or more image sensors for capturing at least one sequence of a plurality of images, wherein the at least one sequence of a plurality of images includes a plurality of first speckle images, the plurality of first speckle images being captured during exposure with the first light; A computer readable storage medium having computer readable program code embedded therein and a processor coupled to the computer readable storage medium. and in response to executing the computer readable program code, the processor: determining one or more transformation parameters of an image registration algorithm to register the plurality of first speckle images with one another, where the transformation parameters are based on a similarity measure of pixel values of at least one group of pixels in each of a plurality of images, the images in the plurality of images being selected from or associated with the plurality of first laser speckle images; determining a plurality of first speckle contrast images based on the plurality of first speckle images; determining a plurality of registered speckle contrast images by registering the first plurality of speckle contrast images based on the one or more transformation parameters and the image registration algorithm; and calculating a weighted average of the registered speckle contrast images; The hardware module is configured to:
13. the hardware module further comprising a second light source for illuminating the target area with light of at least a second wavelength, different from the first wavelength, simultaneously or alternately with the first light source; the at least one image sensor is configured to capture a sequence of a plurality of second images, where the plurality of second images are captured during exposure with the second light; the plurality of images are selected from the one sequence of a plurality of second images, where each of the plurality of second images is associated with a first speckle image; The hardware module of claim 12.
14. 14. A hardware module according to claim 12 or 13, further comprising a display for displaying the combined speckle image and / or a derivative thereof.
15. A medical imaging device comprising a hardware module according to any one of claims 12 to 14.
16. The medical imaging device of claim 15, wherein the medical imaging device is one of an endoscope, a laparoscope, a surgical robot, a handheld laser speckle contrast imaging device, or an open surgery laser speckle contrast imaging system.
17. A computation module for a laser speckle imaging system, the computation module comprising a computer readable storage medium having at least a portion of a program embedded in the computer readable storage medium, and a processor coupled to the computer readable storage medium, wherein in response to executing the computer readable storage code, the processor is configured to perform executable operations, the executable operations including: receiving at least one sequence of a plurality of images, where the at least one sequence of a plurality of images includes a plurality of first speckle images captured during exposure of a target area to coherent first light at a first wavelength, the target area including biological tissue; determining one or more transformation parameters of an image registration algorithm to register the plurality of first speckle images with one another, where the transformation parameters are based on a similarity measure of pixel values of at least one group of pixels in each of a plurality of images of the at least one sequence of images, the image in the plurality of images being selected from or associated with the plurality of first speckle images; determining a plurality of first speckle contrast images based on the plurality of first speckle images; determining a plurality of registered speckle contrast images by registering the first plurality of speckle contrast images based on the one or more transformation parameters and the image registration algorithm; and calculating a weighted average of the registered speckle contrast images; Including, The calculation module.
18. the at least one sequence of a plurality of images includes a sequence of a plurality of second images, where the plurality of second images are captured during exposure to a second light, the second light having one or more second wavelengths or the second light including a plurality of second wavelengths in the visible spectrum, and the exposure to the second light alternates with the exposure to the first light or is simultaneous with the exposure to the first light; and the plurality of images are selected from the one sequence of a plurality of second images, where each of the plurality of second images is associated with a first speckle image; 18. A calculation module according to claim 17.
19. A computer program or suite of computer programs comprising at least one software code portion, said software code portion causing a computer system to carry out the method steps of any one of claims 1 to 11.
20. A computer-readable storage medium storing a computer program or suite of computer programs according to claim 19.
