Hyperspectral imaging is used in various applications including investigating diseases in subjects. However, it is difficult to generate hyperspectral images in some applications, such as in endoscopy, because of a need for rapid data acquisition and the presence of image distortions. In endoscopy, the image distortions may arise from freehand imaging i.e. human control of an endoscope producing image data.
It is an object of embodiments of the invention to at least mitigate one or more of the problems of the prior art.
Embodiments of the invention will now be described by way of example only, with reference to the accompanying figures, in which:
The endoscope 100 comprises an imaging fibre 120 which is arranged to, in use, receive radiation reflected from a sample 190. In some embodiments, the imaging fibre 120 is an imaging fibre bundle 120 comprising a plurality of optical fibres for receiving radiation from the sample 190. In some embodiments the endoscope 100 comprises an illumination fibre 125a, 125b for communicating radiation from the source of radiation 110a, 110b toward the sample. The illumination fibre 125a may be associated with the imaging fibre 120 i.e. running adjacent thereto, such as in the case of the endoscope comprising the source of radiation 110a, or may be a separate illumination fibre 125b, particularly in the case of the source of radiation 110b being external to the endoscope 100. The imaging fibre bundle 120 and the illumination fibre 125a may be formed within a flexible body 125 of the endoscope 100.
The endoscope 100 further comprises an imaging device 130 for outputting wide-field image data, a spectrograph 140 for determining a spectrum of the radiation reflected from the sample 190. A further imaging device 150 may be associated with the spectrograph for outputting line-scan hyperspectral data. The imaging device 130 for outputting the wide-field image data may be a first imaging device 130 and the imaging device 150 associated with the spectrograph 140 may be referred to as a second imaging device 150. One or both of the first and second imaging devices 130, 150 may be CCDs or the like. The first imaging device may be a monochrome or colour imaging device.
The first imaging device 130 is utilised for determining registration information between frames of the wide-field image data as will be explained. In some embodiments the registration information comprises one or a plurality of transforms associated with respective portions of the wide-field image data. The wide-field image data comprises data in two axes, i.e. x and y axes, representative of the sample 190. During imaging using the endoscope 100, an end of the imaging fibre 120 is moved with respect to the sample 190. Thus frames of the wide-field image data represent the sample 190 at different locations of the imaging fibre 120. The movement of the imaging fibre 120 with respect to the sample 190 may comprise one or more of translation, rotation and magnification, as will be explained. Thus the one or more transforms may represent one or more of the translation, rotation and magnification as will be appreciated,
The spectrograph 140 may comprise an entrance slit 141 for forming a slit of incident radiation and a wavelength-separating device 142 for separating the slit of radiation in dependence on wavelength. The wavelength-separating device 142 may be a diffraction grating 142. Radiation separated according to wavelength is directed onto the second imaging device 150 which outputs line-scan hyperspectral data. The line-scan hyperspectral data comprises data in a first axis, such as ay-axis, representing the sample 190 and data in a second axis, such as the x-axis, representing wavelength.
The endoscope 100 comprises a beamsplitter 160 which splits or divides received radiation communicated along the imaging fibre 120 from the sample with a first portion of the radiation being directed to the first imaging device 130 for producing the wide-field image data and a second portion of the radiation being directed to the spectrograph 140 and the second imaging device 150 for producing the hyperspectral data. Thus the wide-field image data and hyperspectral data share distortion caused by the imaging system of the endoscope 100, which advantageously enables the wide-area hyperspectral data to be determined to account for said distortion. The endoscope 100 may further comprise one or more lenses for 171, 172, 173 for focusing incident radiation as will be appreciated.
The method 300 comprises a step 310 of obtaining data. In some embodiments the data comprises data relating to one or more references surfaces. The data relating to the one or more references surfaces may be obtained in a first portion of step 310. The obtained data comprises data relating to the sample 190 which is obtained using the endoscope 100, which may be obtained in a second portion of step 310. It will be understood that the first and second portions of data representing the one or more reference surfaces and the sample, respectively, may be obtained at different times.
In the first portion of step 310 the one or more reference surfaces are of predetermined brightness. Step 310 may comprise obtaining data relating to the one or more reference surfaces which are white and dark backgrounds for calibration. Wwhite, Wdark, Swhite, and Sdark represent measurements of white and dark backgrounds wherein W is indicative of the data being wide-field image data and S is line-scan hyperspectral data. The white backgrounds may be measured by using a standard white reflectance target and light source, and the dark backgrounds may be measured with a camera shutter closed.
The second portion of step 310 comprises moving an end of the imaging fibre 120 with respect to the sample 190. The data comprises a plurality of frames of wide-field image data which may be referred to as W(i), wherein W is indicative of the data being wide-field image data and i is an index number of the data i.e. an index of the frame number where i=1, 2, 3 . . . n where n is a total number of frames of the data. The data comprises S(i) where S is line-scan hyperspectral data and i is the index number. As the endoscope is being moved with respect to the sample 190 during capture of the data, i represents an imaging position with respect to the sample 190. The wide-field image data and the line-scan hyperspectral data share a common or global spatial coordinate system.
Returning to
The intensity normalisation may be performed in dependence on the data relating to the surface of predetermined brightness obtained in the first portion of step 310 in some embodiments. In step 320 intensity normalisation of the wide-field image data may be performed in dependence on the wide-field image data corresponding to surfaces of predetermined brightness. The intensity normalisation of wide-field image Wx may be performed to provide normalised wide-field image data NWx in some embodiments according to the following equation:
Similarly, in some embodiments, intensity normalisation of the line-scan hyperspectral image data may be performed in step 320. In step 320 the intensity normalisation of the line-scan hyperspectral image data may be performed in dependence on the line-scan hyperspectral image data corresponding to the surfaces of predetermined brightness. The intensity normalisation of the line-scan hyperspectral image data, S(i) may be performed in some embodiments according to the following equation:
Which produces an intensity normalised line-scan hyperspectral image NS(i). NW1(i) may be used to denote a wide-field image and NS(i) a line-scan hyperspectral image after intensity normalisation.
In some embodiments, step 320 comprises removing honeycomb structures from the wide-field image data. The honeycomb structures may be removed by applying low-pass filtering to the normalised wide-field image data. The honeycomb structures may be removed using low-pass Fourier filtering of NW1(i), which removes high frequency components from the image data including peaks arising due to the structure of the imaging fibre 120. A cut-off frequency of the low-pass filter used may be determined in dependence on image sizes and multicore imaging fibre bundle structures. The low-pass filtering may be performed in Fourier space (frequency domain) by removing information out of a low-pass filtering mask. Thus, scales in Fourier space may be determined in dependence upon an original size of the wide-field image data. In some embodiments a size of the low-pass filtering mask may be determined based on a size of the endoscopic image and imaging fibre core. NW2(i) may be used to denote a wide-field image after removal of honeycomb structures.
In some embodiments, step 320 comprises correcting for, or reducing, barrel distortion which may be caused by varying degrees of magnification along a radial axis. The barrel distortion may be corrected for according to the equation:
x
c
=x
0
+αr cos θ
y
c
=y
0
+αr sin θ
where xc and yc are corrected locations or pixels of NW3(i), x0 and y0 are a centre position of image NW2(i), r is a radial distance from (x0, y0) to (x,y) in polar coordinate, θ is an angle between x-axis and line from (x0,y0) to (x,y), and a is a correcting coefficient. NW3(i) is wide-field image data after correcting for the barrel distortion.
The method 300 comprises a step 330 of determining the registration information. The registration information is determined in step 330 in dependence on the wide-field image data. The registration information is indicative of one or both of an imaging position and a distortion of each wide-field image frame 410, 420, 430, 440. In some embodiments the registration information is the one or more transforms which each may be a geometric transform matrix. In some embodiments a transform is associated with each respective wide-field image. Thus the method 300 may comprise determining a plurality of geometric transformation matrices (GMs) between wide-field images 410, 420, 430, 440 as will be explained. Each GM has predetermined dimensions which, in an example embodiment, are 3×3, although it will be appreciated that GMs having other dimensions may be used.
A GM represents a transformation matrix, such as a 3×3 matrix, which includes 2D transformation information of scale, shear, rotation, and translation. A GM may be defined in Projective, Affine, Similarity, and Euclidian spaces. Transformation of an image using a GM may be performed using the following equation:
where (x,y) and (x′,y′) represent spatial coordinates of original and corresponding points, i.e. pixels, in the transformed image, respectively, and the 3×3 matrix represents the GM. A 4×4 GMs may be used in 3D Projective and Affine spaces as desired.
In step 710 a reference wide-field image frame is selected. In the illustrated example the first wide-field image at location 1=1 is selected as the reference image. In step 720 it is considered whether the value of i is greater than 1 which, in the first iteration of step 720 in the example, is negative given that i is set to 1 in step 710. Thus the method moves to step 730 where an initial displacement is determined. The initial displacement is set in step 730 based on the reference wide-field image i.e. 1=1.
Step 730 may comprise, in some embodiments, setting an initial GM to one or more predetermined values. Each GM may be referenced as GM(i) corresponding to one of the wide-field images with which it is associated. Thus in step 730 GM(i) which in step 730 is GM(1) may be set to predetermined values, which may be:
The initial GM i.e. GM(1) is used in embodiments of the invention to determine relative registration information i.e. other transforms or GMs relative to GM(1).
Following step 730 the method moves to step 770 where it is determined whether i is less than a predetermined value n. The predetermined value is indicative of a total number of wide-field images i.e. n is the total number of frames of the data as explained above. If i is less than n, the method moves to step 780 where the value of i is incremented i.e. in the example for the first iteration of step 780 i is incremented to a value of i=2. Thus i is used to select a next wide-field image which in the example embodiment is a next successive i.e. 2nd wide-field image. In a second iteration of step 720 i is greater than 1 and thus the method moves to step 740.
In step 740 a feature extraction algorithm is utilised to identify features in each of the wide field images. In some embodiments a Speeded Up Robust Features (SURF) algorithm may be used in step 740, although in other embodiments other feature extraction algorithms, such as a Scale-invariant feature transform or a Maximally stable extremal regions algorithm, may be used. It will be appreciated that other feature extraction algorithms may be used.
Step 750 comprises determining one of the wide-field images k having one or more matching features to the currently selected wide-field image i.e. NW3(i). Thus, as result of steps 740 and 750, the feature extraction algorithm is used in some embodiments to find a best matching wide-field image NW3(k) to NW3(i). The best matching may be having a most number of common features between the wide-field images.
In step 760 a transform is determined between the wide field images determined in step 750. That is, a transform is determined in step 760 between the wide-field images NW3(i) and NW3(k). In some embodiments, step 760 comprises determining a relative GM between the images NW3(i) and NW3(k). The relative GMr is associated with the wide field image i, GMr(i) may be determined by optimising global spatial coordinates. The global spatial coordinates are coordinates used over all wide-field images as a global set of coordinates.
Then a GM for the current wide-field image GM(i) may be determined as:
GM(i)=GMr(i)×GM(k)
where GM(k) is a GM for the kth wide-field image.
For example, GM(i) may be determined as:
As GM(i) indicates a relative transformation between the current image NW3(i) and NW3(1) using the global spatial coordinates, a relative transform for all the wide-field images relative to NW3(1).
The method then moves to step 770 as previously described. It will be appreciated that for each of the wide-field images 410, 420, 430, 440 registration information which may be the form of a respective transform such as a GM is determined by the method 700.
As a result of the method 700 a registered wide-field image 1000 may be produced representing a combination of a plurality of individual wide-field images 410, 420, 430, 440 where registration information determined by the method 700 is utilised to register the individual wide-field images 410, 420, 430, 440. Illustrated in
Returning again to
An embodiment of a method 1100 is illustrated in
In step 1110 of the method 1100 a first wavelength of radiation represented in the line-scan hyperspectral image data is selected. The wavelength may be selected according to an index m as λ(m). In the example method 1100 m=1 in step 1110.
In step 1120 a first line-scan hyperspectral image i is selected. In the example, the first line-scan hyperspectral image i is i=1, although it will be appreciated that other images may be selected as the first image in step 1120.
Referring to
In step 1130 a column of hyperspectral data of the currently selected line-scan hyperspectral image i is selected according to the currently selected wavelength m. That is, a column 1320 of the hyperspectral image data from the line-scan hyperspectral image NS(i) corresponding to λ(m) is selected in step 1130. The column 1320 of hyperspectral image data corresponds to that in the hyperspectral image NS(i) corresponding to the dotted line in
Step 1140 comprises duplicating the column of the hyperspectral image data selected in step 1130. The selected column of line-scan hyperspectral image data is one-dimensional, for example in they-axis corresponding to the selected wavelength m and is duplicated in step 1140 a second dimension. The duplication may be along the x-axis of the three-dimensional hyperspectral image data. The selected column of line-scan hyperspectral image data may be duplicated to match a physical size, i.e. width in the x-axis, of the entrance slit 141 and produce duplicated line-scan hyperspectral data DS(i) which is two dimensional i.e. in both x- and y-axes. Thus, the duplicated hyperspectral data matches dimensions of the entrance slit 141. A middle column of
In step 1150 a transform corresponding to that of the image i is applied to the duplicated hyperspectral image data to transform said data. For example, the duplicated hyperspectral image data is positioned on the global spatial coordinates according to the transform. In particular, step 1150 may comprise transforming a created 2D matrix DS(i) onto a set of global spatial coordinates by applying the estimated GM(i) associated with the image i using the equation discussed above:
In step 1160 it is determined whether i, corresponding to the currently selected image, is less than n representing the total number of frames of the data i.e. step 1160 determines whether all images have been considered. If not, i.e. i≤n then the method moves to step 1165 where a next image is selected which may comprise i being incremented before the method returns to step 1130 where a column of the hyperspectral image data corresponding to the wavelength m is selected. Thus steps 1130-1165 cause a column of the hyperspectral image data corresponding to the wavelength m to be selected from each of a plurality of hyperspectral images 1 . . . i . . . n. The selected columns are duplicated in some embodiments to match the entrance slit size and then transformed onto the global spatial coordinates to form an image for the wavelength m in x- and y-axes.
Once all n hyperspectral images have been considered in step 1160 the hyperspectral image at wavelength λ(m) is complete, as denoted by step 1170.
In step 1180 it is determined whether the currently selected wavelength m is the last wavelength i.e. m>M. If not i.e. there remain further wavelengths to be considered, the method moves to step 1185 where a next wavelength is selected. In some embodiments step 1185 comprises incrementing m i.e. to select the next wavelength. Following step 1185 the method moves to step 1120 where a first image is again selected for performing the remaining steps at the newly selected wavelength i.e. m+1.
If, however, at step 1180 the wavelength m was the last wavelength to be considered i.e. a maximum wavelength for constructing the hypercube, the wide-area hyperspectral image data is complete. In some embodiments, where the wide-area hyperspectral image data is a hypercube then the hypercube is complete as denoted by 1190 in
The images shown in
Embodiments of the invention therefore comprise a method of imaging tissue wherein wide-area hyperspectral image data corresponding to at least a portion of a tissue sample is produced using the system of an embodiment of the invention or using an embodiment of the invention as described above. The tissue sample may be imaged in vivo or ex vivo. Therefore, the tissue sample may be an in vivo tissue sample or an ex vivo tissue sample. Furthermore, the method may be an in vivo or an in vitro method of imaging tissue.
Embodiments of the invention furthermore comprise a method of diagnosing cancer in a subject, the method comprising producing wide-area hyperspectral image data corresponding to at least a portion of a tissue of the subject using the system of an embodiment of the invention or using a method according to an embodiment of the invention as described above.
The method may be a method performed in vivo. The tissue may be a tissue sample from the subject. Alternatively, the method may be performed in vitro. In such an embodiment, the sample may be an ex vivo tissue sample. Therefore, the method may be an in vitro method of diagnosing cancer.
The method comprises, in some embodiments, determining, in dependence on the wide-area hyperspectral image data, a presence of cancer in the tissue according to a wavelength of at least a portion of the image data. The method may comprise comparing the wide-area hyperspectral image data with one or more wavelength thresholds to determine the presence of cancer in the tissue.
In such embodiments, the method may further comprise providing treatment to the subject. The treatment may comprise cancer treatment. The cancer treatment may comprise a therapeutic agent for the treatment of cancer, suitably oesophagus cancer. The treatment may comprise administering a therapeutic agent to the subject. Suitable therapeutic agents may include: cisplatin, fluorouracil, capecitabine, epirubicin, oxaliplatin, irinotecan, paclitaxel, carboplatin, and the like.
Accordingly, the invention may comprise a method of treatment of cancer in a subject in need thereof, the method comprising:
A suitable sample for use in the methods of the invention is a tissue sample, suitably the tissue sample is derived from a biopsy of the relevant tissue, suitably the tissue sample is derived from a biopsy of the subject. The biopsy may be a biopsy from the oesophagus of the subject. Suitably therefore the tissue or tissue sample may be oesophagus tissue. In some embodiments, the methods of the invention may comprise obtaining a sample from a subject. Methods for obtaining such samples are well known to a person of ordinary skill in the art, such as biopsies.
The subject may be suspected of having cancer. Suitably the subject may be suspected of having oesophagus cancer. The subject may have or demonstrate symptoms of cancer. The subject may exhibit risk factors associated with oesophagus cancer.
The subject is suitably human.
The methods of the invention may be for diagnosing or treatment of cancers of the gastro-intestinal tract, suitably for diagnosing or treatment of oesophagus cancer.
It will be appreciated that embodiments of the present invention can be realised in the form of hardware, software or a combination of hardware and software. Any such software may be stored in the form of volatile or non-volatile storage such as, for example, a storage device like a ROM, whether erasable or rewritable or not, or in the form of memory such as, for example, RAM, memory chips, device or integrated circuits or on an optically or magnetically readable medium such as, for example, a CD, DVD, magnetic disk or magnetic tape. It will be appreciated that the storage devices and storage media are embodiments of machine-readable storage that are suitable for storing a program or programs that, when executed, implement embodiments of the present invention. Accordingly, embodiments provide a program comprising code for implementing a system or method as claimed in any preceding claim and a machine readable storage storing such a program. Still further, embodiments of the present invention may be conveyed electronically via any medium such as a communication signal carried over a wired or wireless connection and embodiments suitably encompass the same. The medium may be tangible or non-transitory.
All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and/or all of the steps of any method or process so disclosed, may be combined in any combination, except combinations where at least some of such features and/or steps are mutually exclusive.
Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise. Thus, unless expressly stated otherwise, each feature disclosed is one example only of a generic series of equivalent or similar features.
The invention is not restricted to the details of any foregoing embodiments. The invention extends to any novel one, or any novel combination, of the features disclosed in this specification (including any accompanying claims, abstract and drawings), or to any novel one, or any novel combination, of the steps of any method or process so disclosed. The claims should not be construed to cover merely the foregoing embodiments, but also any embodiments which fall within the scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
1817092.8 | Oct 2018 | GB | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/GB2019/052953 | 10/16/2019 | WO | 00 |