Académique Documents
Professionnel Documents
Culture Documents
1 Algorithm structures
Algorithm 1 rotational offset
This algorithm is designed to determine the difference in
angle between the same feature in 2 different images, with
respect to the vertical, due to the difference in orientation of
the detection devices used for their acquisition.
If the data in the 2 dimensional image,
, is duplicated,
rotated by an angle, , and scaled by a factor, , we get a
second image:
. The Fourier transform of the
original image is related to the Fourier transform of the
scaled-rotated image by Fourier scale and Fourier rotation
theory. These state: A rotation in the spatial domain will
result in the same rotation the frequency domain; A scale in
the spatial domain will in appear as a reciprocal scale in the
frequency domain (1, 2). These properties form basis theory
in the design of this optimisation type algorithm. Phase
correlation between two images,
, and
, is
defined by:
(1)
Where:
corresponds to the Fourier transform of an
image,
, corresponds to the inverse Fourier transform,
and
denotes the complex conjugate of the Fourier
transform of an image. Fast Fourier Transform (FFT)
algorithms are used to calculate the Fourier transform of
discrete image data. As the sole objective of this algorithm is
to calculate rotation, we are only interested in the value of
the maximum element of
but not its position (phase
correlation is commonly used to calculate the translation
between 2 images). The similarity metric for two images
used in this algorithm is defined by:
(2)
Where:
(a) Initialisation
To determine the rotation accurately we require precise
knowledge of the image pixel scales. Calibrated microscopes
provide a pixel scale (the physical length each pixel
represents) with their images so the ratio of these can be
used as a corrective scale factor. However, the calibration
values will each carry an error and therefore this scale factor
can only be used as an approximation. If, , and,
, are
the pixel calibration values for Confocal and TIRF
microscopes images, respectively, then the ratio gives a first
estimate for the difference in scale for the two images. Each
value will carry some measurement error therefore,
,
carries an error, . Visual assessment of the images
provides a rough estimate for the rotational offset,
,
(8)
, from
1,
,(
= 0).
If
, then the values,
, and,
, are
considered to be closer to global solution than the previous
estimates
, and,
, and therefore the estimate values
are updated for the next iteration
, and
. If
, then the correlation of transformed
test images is calculated individually with the confocal image.
The transformation that gave the best correlation with the
confocal image, when applied to the appropriate test image,
had its value saved and was used as the next estimate. The
other was discarded and the estimate from the previous
iteration was used. Limits on the search range that each test
(d) Break conditions
The final solution is generated when both
, and,
,
have converged to some stable result for 3 consecutive
iterations. The definition for convergence here is When all
and
fall within
Motion due to stage drift is detected using normalised crosscorrelation performed on adjacent frames in time from a time
series data set. The assumption used here is that the
morphology of the sample does not change dramatically from
frame to frame i.e.
. Images are
translated with respect to the previous frame in the time
series. If the motion/change in morphology between frames
is significant (significant being a net change in position or
shape greater than the motion due to stage drift) the
algorithm may register images according to the net motion of
the objects in the image.
Algorithm 4 Dual wavelength, single CCD image
alignment
The regions of the images containing data corresponding to
signals from different wavelengths are defined manually and
images are separated. An identical scale test to that used in
algorithm 1 is performed on the two images to determine if
there is a scale difference between the images due to a non
linear chromatic response of the microscopes magnification
optics. Normalised cross-correlation is used to register the
images. The final registered images are cropped to the
largest rectangular size where features in both images lie on
the same coordinates and contain pixels that existed in the
original recorded image i.e. there is no border extensions to
match the image sizes.
Image Padding
,
and are the predefined limits of convergence. The value
of the final result is equal to the average of the 3 consecutive
values that met the convergence conditions.
the
ranges
and
where:
(a) Algorithm 2
Before the final translation is calculated the scale difference
is calculated; the accuracy of this determines the accuracy of
the final translation. Figure S4 shows the results for the scale
calculated prior to the final translation (Figure S2). Again, the
variance of the result generally increases with the noise
levels as might be expected. The Intensity dependent
Poisson noise appears to be the main cause of inaccuracies.
The results show that the algorithm is robust against additive
Gaussian noise until they are the main contributor of the total
noise.
Figure S5 shows the results for the final image translation
once the images were scaled. The actual coordinates of
translation of the TIRF image relative to the confocal images
is (20,20); 80 percent of the results fall within a distance of 1
pixel of this result, most of which fall exactly on the correct
result. Calculation of the translation is the most basic part of
the algorithm so any inaccuracies at this stage are almost
certainly due to either inaccurate calculation of the scale or
the rotational offset between images. In practice, the images
the noise conditions of the images used would not be as
harsh as the images used to show the algorithm fail here.
1.
Marks RJ. Handbook of Fourier analysis & its
applications. 1 ed. New York, N.Y. ; Oxford: Oxford
University Press; 2009.
2.
Bracewell RN. Fourier analysis and imaging. New
York: Springer US; 2003.
3.
Lewis J. Fast normalized cross-correlation. 1995:
Citeseer; 1995. p. 120-123.
4.
Webb RH. Confocal optical microscopy. Reports on
Progress in Physics 1996;59:427.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5