The present invention relates to a method and apparatus for forming a multiple focus stack image.
In a number of market sectors such as medical applications samples are examined with a microscope and digital images are generated with a 2D digital camera attached to the microscope. This has a restriction of limited area of the sample viewed being captured with the digital camera. For a 40× objective a typical area is only 0.7 mm wide. Given that the active area on a microscope slide is 64×24 mm this is only a very small area of the possible sample area. One answer to this is to step and repeat otherwise known as macro dither over the whole of the sample area. A more preferred process is to use a line scan device similar to that described in U.S. Pat. No. 6,711,283 where long strips of data can be collected of 0.7 by 64 mm. Then adjacent strips can be scanned and the images butted together or stitched together as described in patent GB2206011.
As mentioned in U.S. Pat. No. 6,711,283 one problem with this long strip scanning is that the focus must be maintained over the whole length of the scan. As an example for a 40× lens with numerical aperture of 0.65 the depth of focus is around 1 micrometre. A typical microscope slide is not manufactured to hold this sort of tolerance and when mounted may flex due to the mounting method or under the force of gravity in excess of one micron. Also the sample being imaged may not itself be flat to 1 micrometre. In U.S. Pat. No. 6,711,283 this problem is addressed by separately building a focus map over the length of the scan and then adjusting the focus dynamically during scanning to fit the focus map. Unfortunately this is time consuming in building the focus map for each sample. A typical method of focusing is to scan the same area of the image at different focus levels and use a merit algorithm to determine the best focus. There are a number of merit algorithms used but an example is to take the sum of the squares of the differences between adjacent pixels. The merit algorithm produces a function, an example of which is shown in
Another method used to address this problem is to have multiple scans at different focus levels. This is called focus stacking or z stacking and is shown in
There is therefore a need to address these disadvantages.
In accordance with a first aspect of the present invention we provide a method of producing a multiple focus stack image of a target, the stack image comprising a plurality of images of the target, each image having a corresponding focal range or position, the method comprising:
causing relative scanning movement between the target and an array of light detectors, the array being used to repeatedly receive image information from the target during the scan in the form of scan lines; and,
causing the relative focus between the target and the array to be modified between the said focal ranges or positions of the respective images during the scan, so as to obtain the images in the stack, wherein each image is formed from the image information obtained at the respective focal range or position during the scan.
The present invention is therefore quite different to prior art methods. In the prior methods stack images are obtained as sequential image frames, whereas in the present invention the images are obtained by scan lines. Importantly, the scan lines are obtained whilst repeatedly swapping between the different focal positions (either fixed or within a range) of the images during the scan itself and these scan lines are then used to form the images of different focus within the stack by the end of the scan. The images can be thought of as focus levels or layers. When discussing scan lines, it will be appreciated that this term encompasses the output of a number of detector lines in an array having more than one line of detectors. Nevertheless, the number of detectors along the scan line is a number of orders of magnitude greater than the small number (less than about 16) across such an array.
The invention therefore provides a significant advantage over the prior art in that relatively inexpensive equipment can be used. This also avoids the need for multiple scans of the target that can cause problems in terms of registration between the information obtained. Furthermore no additional apparatus is required to produce focussing maps beforehand. It also allows image information for different focuses for a very localised area to be obtained within a short time period and not in a later scan. This helps to ensure that no changes occur in the optics or the sample in any intervening period and conveniently provides for on-the-fly modification of focus levels across the scan in targets having significant topography.
Typically the method is repeated for a number of swathes of the target and the multiple focus stack image is obtained within a single scan of the target. Preferably, following obtaining a scan line of image information from the target for a particular image in the stack, the relative focus is modified so as to obtain the scan line for at least one other image before further scan lines (image information) are obtained for the said particular image once more. The focus may therefore be cycled between the images of the stack during the scan, the images being built up from individual scan lines. The image information may be obtained for each image for common regions or parts of the target and the relative movement may be halted during the scan to achieve this. Attentively the scanning movement can be substantially continuous and the image information obtained for each image can then be interpolated so as to form corresponding images having different focus positions or ranges within the stack.
The array may be a one-dimensional array defining a first direction with the relative scanning movement being in a direction substantially perpendicular to the first. The focus positions or ranges may be evenly or unevenly spaced in focus with respect to one another. A focus range encompasses a region of focus between two extreme focus positions bounding the range. When focus ranges are used, the focus ranges may be overlapping or non-overlapping for different images in the stack. When focus ranges are used, the method may comprise using the image information from the scan lines during the scan so as to modify the focus for obtaining subsequent scan lines for each image as the scan proceeds. A merit curve of focus as a function of focus position can be used for this and the method may then further comprise controlling the focus for images in the stack so as to span an “ideal” focus position for a particular region. The centre-most image(s) in the stack can be arranged to correspond to the ideal focus position for the regions.
The images in the stack may be used so as to produce an output image having a depth of focus according to the focus ranges or positions of the images from which it is constructed.
The array may comprise a plurality of pixels arranged in substantially the scanning direction in sub-arrays. These may be spaced apart in substantially the scanning direction and each sub-array then adapted to receive light of a corresponding colour.
In some examples the image information is obtained from adjacent regions. When an integer “m” sub-arrays are provided, preferably the sub-array spacing, in units of the region widths as seen by the array, is mn−1, where n is a non-zero integer, typically such that image information from different regions obtained at different times is interleaved.
The speed of the relative movement is determined according to the dimensions and positioning of the array.
In accordance with a second aspect of the invention we provide apparatus for producing a multiple focus stack image of a target, the stack image comprising a plurality of images of the target, each image having a corresponding focal range or position, the apparatus comprising:
an array of light detectors for receiving image information from a target in the form of scan lines;
a scan device for providing relative movement between the array and the target;
a focus device for controlling the relative focus between the array and the target, and,
a control system for operating the scan device for causing relative scanning movement between the target and the array of light detectors; and further adapted for controlling the array to repeatedly receive image information from the target during the scan; and for operating the focus device for causing the relative focus between the target and the array to be modified between the said focal ranges or positions of the respective images during the scan, so as to obtain the images in the stack, wherein each image is formed from the image information obtained at the respective focal range or position during the scan.
The array may comprise a one dimensional array or a plurality of sub-arrays arranged in a direction substantially perpendicular to the direction of scanning. The number of pixels may be large, such as about 5000. A number “m” of sub-arrays may be provided, these being spaced such that the corresponding obtained image information from the regions is spaced in the image in integers of the dimension of the regions in substantially the direction of scanning. This spacing may be an actual physical spacing or an optically equivalent spacing provided for example by the use of beam splitters and physically spaced sub-arrays.
For colour images, the sub-arrays preferably each comprise filters so as to receive light corresponding to particular colours. The focus device may effect the focus by movement of the array, or the target, or when the device comprises an imaging lens then by movement of the imaging lens or component parts of the imaging lens. When the focus device comprises fold mirrors, the focus device effects the focus by movement of the fold mirrors. A window of controllable optical thickness can also be used for this purpose, this being an electro-optical active quartz window for example or a rotatable window with a variable optical thickness as a function of the rotation angle.
The apparatus and method can be used in a number of imaging applications although it finds particular advantage in microscopy where the field of view and depth of field are typically rather limited.
A number of examples of methods and apparatus according to the present invention are now described, with reference to the accompanying drawings, in which:
a shows a practical three focus stack arrangement;
a shows crossing of the lower image;
b shows the crossing of upper and lower focus stack images;
a shows the stack with respect to the sample;
a shows three adjacent line detectors with a three focus stack and smooth scan;
b shows four adjacent line detectors with a three focus stack and smooth scan;
c shows two adjacent line detectors with a three focus stack and smooth scan;
a shows a 3 line detector with a 2 line spacing;
b shows a 3 line detector with a 5 line spacing;
c shows a 3 line detector with a 8 line spacing;
a shows a 3 line detector with a 2 line spacing, a three focus stack and a smooth scan;
b shows a 3 line detector with a 5 line spacing, a three focus stack and a smooth scan; and 3 focus positions;
c shows a 4 line detector with a 3 line spacing, a three focus stack and a smooth scan;
a shows multiple detectors arranged in colour groups;
b shows multiple detectors arranged in colour sequences;
a shows apparatus containing two beam splitters and three arrays;
b shows a two array, two mirror arrangement;
c shows a three array, two mirror arrangement;
a illustrates the movement of the detector head;
b illustrates movements of an imaging lens;
c illustrates the use of moveable beam folding mirrors;
d shows movement of the sample;
e illustrates moving components within an imaging lens;
f shows an adjustable optical thickness example;
g uses rotating windows of variable optical thickness; and,
Normal line scanning involves a single line array of x pixels, each pixel typically corresponding to a detector in the array. For colour, a single line for each of the three colours is provided (RGB for example). This single line is then traversed in a direction perpendicular to the line of the detector array. The traverse speed is set so that after one “line time” of the detector, the detector has traversed by a distance of one pixel in the scan direction so that the next line time produces a line of pixels abutted to the previous line. This is shown in
In another embodiment the traverse can be arranged to be smooth (a constant scan velocity) but three times slower than that shown in
It is not required that the focus stacks should remain in a constant plane. This is illustrated in
In some cases the focus stacks may be arranged to cross each other as is illustrated in
One particular advantage of taking multiple focus stacks at once and adjusting the focus during the scan is that it is possible to track the focus of a non-planar object such as the surface of a tissue sample or rock sample. If the outer two focus positions are arranged to be on the slope of the focus curve it is possible to predict the best focus position and adjust the focus positions so as to place the central focus positions in the best focus position. This can be achieved with focus merit curve techniques as is illustrated in
In comparing
The provision of adjustable focus separations enables the scanner to set the outlying focus levels 302 to the edge of focus when the range over which the focus is of good value changes. This is shown in
Another embodiment has the outer focus images arranged so that they are near the edge of range of focus but not actually out of focus. Then the merit of focus is monitored to ensure that none of the detectors goes out of focus. Once one of the outer detectors shows merit values going out of focus the focus is adjusted to bring all the detectors back into focus.
Although we have described so far the use of only one 1D detector array it is possible to use multiple detectors to do this task with improved productivity. One embodiment is to use a three by x pixels array as shown in
It is also not required for the multiple line detectors to have the lines adjacent to each other. It is therefore possible to create this scanning process with gaps between the detectors as shown in
In order to produce colour or multi-channel images it is possible to change the colour of the illumination on a line-by-line basis and traverse slower by a factor of the number of channels. For example for three colour RGB scanning it would be required to use a traverse speed of a third of the mono speed as illustrated in
Another way of creating RGB colour information is to put Red, Green and Blue filters over separate lines of the detector. Such combinations may include grouping all the same colour lines together as shown in
In all of the cases where the number of focus plane is less than the number of 1D arrays used it is required that the time the detector detects light is less than the time it takes to move to the next position number to prevent motion blur. For example for a four line detector with a single focus plane the light detection time should be less than a quarter of the motion time. It is also not necessary to have a single detector system as shown in FIGS. 18,20 and 25a,b.
Single lines of detectors such as that shown in
If the arrangement is set to not have the detectors on the same plane, then, when any adjustment of the relative focus planes is required during scanning, the detectors will have to be moved relative to each other and this would make variable non-uniform focus plane separation difficult to implement or large numbers of non-uniform focus stacks would require large numbers of detectors so every focus plane was scanned simultaneously. Other methods of combining detectors include fibre bundles, physically abutting detectors together and micro-prismatic arrays arranged at the imaging lens.
There are a number of possible ways of adjusting the focus during the scanning some of which are illustrated in
The arrangements described herein are quite different to those of the prior art where multiple detectors are used to capture the image with each detector at a different focus position. In contrast, with the present invention in many cases we can use a single detector as shown in
In summary, a line scanning method is therefore provided for producing multiple focus stack images in one pass. A 1D (typically) array of detectors is traversed in a direction perpendicular to the axis of the array and generally in the plane of the detector surface. The focus is adjusted between scan lines for each image in the focus stack image. The process is repeated cyclically as a traverse mechanism moves to the next scan line of the first focus stack image until all the focus stack images are formed.
The detector array is typically traversed (relatively) in a direction perpendicular to the axis of the array and generally in the plane of the detector surface at a speed such that the next set of lines is taken an integer multiple of m lines worth along the image. These lines need not be the same size as sensitive area of the detectors. The speed of traverse relative to the line time may be reduced by a factor of the number of colour channels (where provided) and the colour of the illumination is changed for each channel of the image before or during each focus change.
The focus levels may be adjusted advantageously during scanning to track the region of focus. The focus levels may be used to determine the focus range by looking at the relationship of the focus merit function of at least two levels on either side of the focus region and these levels are set to the edge of the focus region, for example to keep a constant relationship between the in focus planes and the edge of focus planes.
In practical embodiments a multiple 1D array of confocal lines may produced with the use of beam splitters/mirrors/microprisms (near the imaging lens) and the array.
Number | Date | Country | Kind |
---|---|---|---|
0414201.4 | Jun 2004 | GB | national |
Number | Name | Date | Kind |
---|---|---|---|
4099051 | Gugliotta | Jul 1978 | A |
4812643 | Talbot | Mar 1989 | A |
4844617 | Kelderman et al. | Jul 1989 | A |
5248876 | Kerstens et al. | Sep 1993 | A |
5394205 | Ochiai et al. | Feb 1995 | A |
5446276 | Iyoda et al. | Aug 1995 | A |
5659390 | Danko | Aug 1997 | A |
5763871 | Ortyn et al. | Jun 1998 | A |
5793379 | Lapidous | Aug 1998 | A |
5912699 | Hayenga et al. | Jun 1999 | A |
6091075 | Shibata et al. | Jul 2000 | A |
6201619 | Neale et al. | Mar 2001 | B1 |
6538249 | Takane et al. | Mar 2003 | B1 |
6580502 | Kuwabara | Jun 2003 | B1 |
6711283 | Soenksen | Mar 2004 | B1 |
6875973 | Ortyn et al. | Apr 2005 | B2 |
7015418 | Cahill et al. | Mar 2006 | B2 |
7109459 | Kam et al. | Sep 2006 | B2 |
7485834 | Gouch | Feb 2009 | B2 |
20030067596 | Leonard | Apr 2003 | A1 |
20030160957 | Oldham et al. | Aug 2003 | A1 |
20040256538 | Olson et al. | Dec 2004 | A1 |
20050286800 | Gouch | Dec 2005 | A1 |
20060238847 | Gouch | Oct 2006 | A1 |
20070036462 | Crandall et al. | Feb 2007 | A1 |
20070147673 | Crandall | Jun 2007 | A1 |
Number | Date | Country |
---|---|---|
200 16 490 | Dec 2000 | DE |
1 593 957 | Nov 2005 | EP |
0137025 | May 2001 | WO |
Number | Date | Country | |
---|---|---|---|
20050286800 A1 | Dec 2005 | US |