This application claims priority of the German patent application 103 61 327.7 which is incorporated by reference herein.
The invention concerns a method for correcting drift in an optical device, as defined in the preamble of claim 1, as well as a microscope having a device for correcting drift, as defined in the preamble of claim 12.
Optical devices, in particular microscopes, can also be regarded as mechanical assemblages that as a result of technically related limitations—for example the accuracy with which the housing is manufactured, or possible fitting inaccuracies when the individual parts are put together—act in quite stable fashion macroscopically, but nevertheless exhibit motions microscopically. These motions are often thermally dependent. These motions are, as a rule, referred to as “drift.” It must be noted in general, however, that drift as a rule is only an observed manifestation that is perceived, in the context of long-term observations of immovable portions of a specimen using a camera or a confocal scanner, as virtual motion of that specimen over time. This apparent motion of the specimen can be perceived by the user in the context of optical devices, and often results in complaints or in difficulties when evaluating images of specimens being examined.
Drift occurs as a visible result of the coaction of all the parts of an optical device. For example, one panel may expand as a result of heating and another may contract, and another component may move or in fact be deformed by the resulting forces. The result is perceived, however, only as a relatively small change in the X, Y, and Z direction.
A sophisticated mechanical design can be used to prevent drift, in which context the drift can often be reduced at least to a negligible level.
With increasing resolution and magnification, however, it becomes more and more difficult to achieve such a reduction in drift. The reason is that to do so, increasingly small motions of the optical device relative to the specimen must be detected and prevented, often requiring cost-intensive measures. In addition, there is a trend in present-day optical devices to use increasingly economical materials, metal parts often being replaced by plastic parts. This often results, however, in new effects that are difficult to evaluate and have a negative influence on drift.
The German Paten Application DE 199 59 228 discloses a laser scanning microscope that encompasses a temperature sensor whose signals accomplishes focus correction on the basis of stored reference values. The measured temperature change is converted into a modification of at least one component of the microscope (stage displacement, piezoelement positioning, mirror deformation, etc.) to be performed accordingly. Temperature compensation can likewise be accomplished by way of a stored table or curve. With this method, only the Z coordinate, i.e. the focus, can be kept constant. “Wandering” of the sample within the X-Y plane defined by the stage surface cannot be compensated for therewith.
DE Patent 195 301 36 C1 likewise describes a microscope having a focus stabilization system. Temperature stabilization is accomplished by way of two metal rods having different coefficients of thermal expansion. One rod is connected to the toothed rack for the focus drive, the other rod to the microscope stage. Focus stabilization is accomplished exclusively by mechanical means matched individually to the microscope.
The proposed drift correction systems also require that the drift be caused by a change in the sensed temperature. Temperature changes that are very small but result in a large drift thus cannot be adequately sensed and corrected. Drift that is attributable to other causes, for example a change in installation conditions or the coaction (as already described above) of parts of the microscope, therefore cannot be sensed.
It is the object of the present invention to propose a method for correcting drift in optical devices that is independent of the cause of the drift.
According to the present invention, this object is achieved by a method for correcting drift in an optical device having the features according to Claim 1.
The principle of the method according to the present invention is therefore that firstly, two chronologically successive images of an immovable specimen are acquired. Both images are subdivided using a grid, producing on both images blocks whose centers are defined by coordinates, called “motion hypotheses.” One block of the second image is then selected and is compared with the blocks of the first image until the most similar block in the first image, called the “target block,” is found. If the comparison reveals that the coordinates of the block found in the first image agree with the coordinates of the block in the second image, the block has therefore not changed position, and no drift is present. If, however, the target block is in a different location, a vector can be identified that describes the displacement of that block as drift.
Although moving specimens can, in principle, also be used, it is advantageous to select immovable specimens. This is because with movable specimens, it must be considered that here drift could also be simulated by the specimen motion, which can be taken into account again, i.e. calculated out, only if the specimen's motion pattern is known. This is likely to be the case, however, in very few instances with the specimens being examined.
When the block of the second image is compared with all the blocks of the first image, it is possible to identify the so-called target block which meets the criterion of being the most similar to the initial block, i.e. the block of the second image. From a knowledge of the block coordinates, it is then possible to determine the vector that characterizes the drift.
For comparison of the blocks it is possible to use a number of methods that can identify whether the blocks compared with one another are similar to one another. An evaluation must also be made, however, that provides information as to how great the degree of similarity is, so that a decision can later be made as to which is the target block, i.e. which block is most similar to the initial block.
To enhance accuracy, it is possible to subdivide the target block further into sub-blocks, and to carry out the method again for these sub-blocks. This can be continued until no further improvement in similarity can be identified. For this instance, the drift is then obtained from the sum of the individual steps resulting from consideration of the sub-blocks.
Drift correction in the microscope can then be accomplished, for example, by calculating the drift out of the identified images as an apparent motion.
A microscope according to the present invention thus comprises an apparatus for acquiring a first and a second image. A device for correcting drift is also provided. This device is equipped with a unit for dividing the first and second images into blocks. A unit for comparing one block of the second image with the blocks of the first image allows the similarity between the blocks to be identified and evaluated.
The above-described microscope and method for correcting drift have the advantage that drift can be accurately sensed and corrected for very small values. The drift that is sensed is, moreover, independent of its cause, and in particular is not limited merely to temperature changes.
The direction of the drift can furthermore be determined, and corrected accordingly, in the X-Y direction as well.
Further advantages and advantageous embodiments of the invention are the subject matter of the Figures below and their descriptions. In the individual Figures:
a)-c) schematically depict a motion estimator;
As already mentioned, the entirety of the components of microscope 2 can cause a drift. The basic method for determining drift according to the present invention is shown in
The current drift d(n) is calculated using a motion estimator in which the motion of the specimen monitored by comparing blocks in terms of their similarity. This is done by first subdividing the first and the second image of the selected ROI into blocks. A comparison is then made between one block of the first image and all the blocks of the second image, in which comparison the degree of similarity that exists between the compared blocks is ascertained. In other words, a search is made for the image segment that is most similar to the scene from the last image. The indicator of similarity between two blocks that is used, for example, the mean squared error for a predetermined ROI and a drift vector d that is to be evaluated. The mean squared error (MSE) can be represented as follows:
The principle of this motion estimator is depicted in
As is evident from
As soon as all the motion hypotheses are tested, a determination can be made as to which block is the target block, i.e. for which block the MSE is lowest. The current drift vector d(n) is thus defined for this target block. The procedure can then continue in the same way in this target block. This is done, as shown in
If this method is continued in successive and recursive fashion, the identification of the respective target blocks yields a number of drift vectors whose sum represents the total drift, the surface of the ROI being tiled with hypotheses. If one begins, for example, with an ROI having a pixel size of 14×14, the method can be continued until a pixel size of 2×2 is attained for the smallest block. The drift vector is thus identified after a maximum of 25 operations on successively smaller and smaller blocks.
The drift thus identified is then compensated for in the microscope. This can be done, for example, by calculating the drift out in a subsequent calculation step that is performed, in particular, in a calculation unit of the microscope. Control and monitoring unit 10 of microscope 2 can be used here, for example.
Since the total drift D(n) of microscope 2 is now known, it can be taken into account in the depiction of any specimens (including movables ones) by calculating it out of the image in a subsequent step after imaging of the specimen.
It is also possible, in principle, to reconfigure the control system in a confocal microscope in such a way that two different images are acquired in successive sequence. For this purpose, the first image is acquired directly from the sample itself, while the second image is obtained from the intermediate image plane. The overall sequence of acquired images can then be generated in such a way that in a successive sequence of sample images, a reference image is acquired from the intermediate image plane and is employed for drift determination. In this case an immovable specimen is definitely present, and the image can be restricted to the number of pixels relevant for drift determination.
Number | Date | Country | Kind |
---|---|---|---|
DE10361327.7 | Dec 2003 | DE | national |