Abstract
This paper is concerned with assessing localization errors emanating from the image registration of two monochromatic fluorescence microscopy images. Assuming an affine transform exists between images, registration in this setting typically involves using control points to solve a multivariate linear regression problem; however with measurement errors existing in both sets of variables the use of linear least squares is inappropriate. It is shown that image registration is an errors-in-variable problem and as such the correct method is to use generalized least squares. Traditionally this requires the measurement errors to be independent and identically distributed (iid); an assumption that is rarely satisfied in practical situations. An extension of the multivariate generalized least squares estimator that allows non-iid noise is applied. The distributional properties of the estimators are used to derive localization errors emanating from the image registration process in terms of photon counts and experimental parameters.
Index Terms: Image registration, Microscopy, Total least squares methods
1. INTRODUCTION
In its most general form, image registration is the process of transforming different data sets into a single coordinate system. It is of use in areas as diverse as computer vision, target tracking, medical imaging and in fluorescence microscopy, the setting for this paper.
Recent advances in fluorescence microscopy have made it possible to detect single molecules in a cellular environment, e.g. [1]. A typical goal of a fluorescence microscopy experimental set-up is to observe the relative positions of a collection of two different protein molecules, for example to see whether they colocalize e.g. [2]. Two different fluorescents that emit at different wavelengths are used to tag the proteins, one for each type of molecule. The two types of molecule are imaged separately, but simultaneously using a pair of filters suitable for the fluorescents. A pair of monochromatic images are formed. It is often the case that the pair of images can not be considered to use the same coordinate system and the goal is to register the images so that the positions of the molecules can be viewed in unison, e.g. [3]. To do so we consider an image to be a subset of the space ℝ2. Suppose we have two images, ℐ1 and ℐ2, say, and there is some mapping T : ℐ1 → ℐ2 between the pair of images; the type of mapping assumed here is an affine transformation.
An affine transformation between two vector spaces is a linear transformation followed by a translation. When both vector spaces are ℝd then T : ℝd → ℝd is affine if there exists a matrix parameter A ∈ ℝd×d (the linear transformation), and a vector parameter t ∈ ℝd (the translation) such that for x ∈ ℝd, T : x → Ax + t. In this situation we are concerned with the case d = 2.
In practice the affine transformation that exists between a pair of images is not known and needs to be estimated experimentally. To do this it is necessary to have points of reference (control points) visible in both images. In fluorescence microscopy this is achieved through fiduciary markers such as small but bright fluorescent beads [2]. These objects emit photons across the visible spectrum resulting in them being observed through both filters and appearing in both images.
Suppose K control points are located in ℐ1 at true locations , and in ℐ2 at true locations , such that . In reality the position of these beads cannot be known exactly and must instead be measured. Consequently the true coordinates are not directly observed, but instead we observe coordinates that have been perturbed by some random additive noise. That is to say we observe , j = 1,2, where is a random vector known as the measurement error with zero mean and covariance . Through the work of Ober and Ram [4] [5], in practice it is possible to determine the error covariance matrices , with dependency on the microscopy set up and the intensity of the objects being imaged. It is assumed throughout this paper that the localization errors are normally distributed with mean zero [6] [7].
Given that we are able to construct estimators  and t̂ of the transformation parameters A and t, registration of the two images can commence. In the molecular fluorescence microscopy setting we observe a molecule in ℐ1 at point , where (again the covariance of is estimable from [4]). is the true positional vector of the molecule. We estimate its new coordinate (the registered position) in ℐ2 as . A key question is; what is the error associated with the registered position in ℐ2? Or equivalently to determine the covariance of the image registration error (IRE)
where .
In Section 2 we formulate the image registration problem and show that parameter estimation is consistent with a multivariate errors-in-variable framework. This is followed by a discussion on the image registration error. In Section 3 is a discussion on the distributional properties of the measurement errors. Traditional linear least squares methods are biased for errors-in-variable models so it is necessary to use the generalized least squares method to estimate the affine transform parameters. These estimators and their associated distributional properties are presented in Section 4 and are used to determine the image registration error in Section 5.
2. THE IMAGE REGISTRATION PROBLEM
We define the following ℝ2×K matrices for j = 1, 2
and further define the ℝ4×K matrices
With this notation the system of equations can be conveniently represented as the single matrix equation
(1) |
where α = [0T, tT]T, Λ = [I2, AT]T and 1K is a column vector of length K with every element taking the value 1. The columns of X(1) are known as the independent variables and the columns of X(2) are the dependent variables. Linear regression problems where both the independent and dependent variables contain measurement errors are known as errors-in-variable (EIV) models. Let Ek denote the kth column of E, then Ek is 4-D multivariate normally distributed with mean zero and covariance
for which we write .
2.1. Image registration error
Suppose we image a molecule in ℐ1 with true position . The true position of the molecule in ℐ2, will be related to by the same affine transform, namely . Let be the measured position of the molecule in ℐ1, where .
Definition 2.1. The image registration error (IRE) νa = [νa,1, νa,2]T associated with registering the molecule in ℐ2 is defined as
(2) |
where  and t̂ are estimators of the matrix A and vector t, respectively.
Let us define the difference between the true and estimated values of the transform parameters as ΔA ≡ Â − A and Δt ≡ t̂ − t. It can be shown that
and hence
where E{·} is the expectation operator. Let cov{υ} denote the covariance matrix of a vector υ.
Lemma 2.2. If  and t̂ are unbiased estimators and is independent of both ΔA and Δt, then E{νa} = 0 and
(3) |
To derive an expression for the second order moments of the IRE it is necessary to understand the distributional properties of the estimators ΔA and Δt.
3. MEASUREMENT ERRORS
In [4] detailed analytical expressions for the localization accuracy of a light emitting point source in a microscopy imaging experiment are derived allowing reliable estimates of the covariance matrices for the measurement errors. The Cramér-Rao lower bound (CRLB) theorem states:
Theorem 3.1. The covariance matrix of any unbiased estimator θ̂ of an unknown vector parameter θ is bounded from below by the inverse of the Fisher information matrix I(θ), i.e. cov(θ̂) ≥ I−1(θ).
For the purposes of this paper we assume that the CRLB is attained. We consider the most general and suitable case for application purposes, whereby the object being imaged emits photons as a Poisson process, and there is an additional background Poisson noise process and Gaussian read out noise. Typically the beads have large photon emission rates in comparison to the background and readout noise processes. In such circumstances the Fisher information matrix for the estimator of the location parameter θ = (u, υ) of an object in ℐj can be considered to be of the form I(θ) = NZ(j) where N ∈ ℤ+ is the photon count associated with the imaged object and Z(j) is a ℝ2×2 symmetric positive definite (SPD) matrix of known form.
The photon count associated with the kth bead in ℐj is labeled . The noise terms , j = 1,2, have covariance is a SPD matrix and universal for all imaged points in ℐj. We now make the assumption that there is a linear relation between the brightness of the bead in each image, i.e. a bead that is bright in ℐ1 is also bright in ℐ2. Mathematically we say for all k = 1, …, K, where c > 0 is a constant of proportionality, universal for all control points. We define , for j = 1, 2, then N̄(2) = cN̄(1) and we have the situation where the covariance of the measurement errors are scalar multiples of a common matrix, i.e.
where are known.
4. GENERALIZED LEAST SQUARES WITH COVARIANCE WEIGHTING
Given the columns of E are iid with common covariance Σ0 say, EIV models of type (1) are traditionally solved by minimizing the normalized residual sum of squares
(4) |
where , Φ = UΣ0UT and U = [−A, I2]. In the statistics literature, the values of A and t that minimize r are known as the generalized least squares (GLS) estimators [8]. In the engineering and numerical analysis literature total least squares (TLS) is the common approach where a different minimization problem is solved. Both estimators are identical to one another. Here we generalize (4) for the case where the columns of E no longer have common covariance.
Definition 4.1. The generalized least squares estimators  and t̂ are the values of A and t, respectively, that minimize the weighted residual sum of squares
(5) |
where Φk = UΣkUT.
Consider the multivariate EIV model (1), where the covariance of Ek is given by the SPD matrix Σk = ηkΣ0 where . For the estimators that minimize (5) and their asymptotic statistical properties we state the following two theorems. They are given full treatment in [9].
Theorem 4.2. Define the matrix . By considering V = GDGT, the eigenvalue decomposition of matrix , with D = diag{d1, d2, d3, d4} where d1 ≥ … ≥ d4 and GGT = GTG = I4, then by making the partition
the GLS estimator of A and t are given as
Theorem 4.3. Define ℝ2 vector , ℝ2×2 matrix , matrix Ψ = Ξ − x̄x̄T and matrix , then we have the following identities
(6) |
(7) |
(8) |
5. IMAGE REGISTRATION ERROR ANALYSIS
We now consider the asymptotic form of the IRE covariance matrix. Consider a molecule in ℐ1 at point , where with the measurement error having covariance Σa estimable from [4], and being the true positional vector. We estimate its new coordinate (the registered position) in ℐ2 as . The IRE is defined in (2) and its covariance matrix given in (3). The individual elements of cov{νa} can now be calculated using (6), (7) and (8).
5.1. Approximating the image registration error
Let us consider some simplifying assumptions. It is common that the control points (beads) are randomly scattered throughout the image and as such we will model their location as a 2-D Gaussian distribution.
Lemma 5.1. Let control point positions be K realizations of a random variable 𝒳 = [𝒳1, 𝒳2]T ∈ ℝ2 where
then asymptotically x̄ = μ and Ψ = Π.
5.2. Assumptions
-
Consider the positions to be K realizations of a random variable 𝒳 = [𝒳1, 𝒳2]T ∈ ℝ2 where
From Lemma 5.1 we have x̄ = 0 and Ψ = κ2I2.
The affine transformation parameter A represents a rotation R combined with a magnification M. Consequently A would be of the form MR where RRT = RTR = I2 and M = mI2.
- We model the measurement errors as where
with the normalized variance terms inversely proportional to the mean photon count, . The terms ζ(j) are known functions of the experimental parameters, including the Airy profile and photon wavelength [4].
Assumptions 1 – 3 give the identities x = 0, . We immediately conclude cov{Δtl, Δaij} = 0 for l, i, j. Further to this , where δij is the Kronecker delta. cov{Δaij, Δai′j′} = 0 if i ≠ i′ and/or j ≠ j′. If i = i′ and j = j′, then given we can treat cov{Δaij, Δai′j′} ≈ 0. This is equivalent to stating that the spread of the control points is much greater than the individual measurement errors, a valid assumption in a microscopy setting.
Theorem 5.2. The covariance terms of the IRE can be approximated as
If the covariance Σa is itself representable as then in terms of photon count the covariance terms become
6. CONCLUSION
When the control points have measurement error covariances that are known and some scalar multiple of a common SPD matrix, then the second order moments of the IRE have been derived. For microscopy applications we have shown there exists inverse dependencies on the mean photon counts of the control points, however there remains a theoretical lower bound to the variance or the IRE in either dimension of . Examples and simulations are found in [9].
Acknowledgments
Supported in part by the National Institute of Health grant R01 GM085575.
REFERENCES
- 1.Pierce DW, Hom-Booher N, Vale RD. Imaging individual green fluorescent proteins. Nature. 1997;388:338. doi: 10.1038/41009. [DOI] [PubMed] [Google Scholar]
- 2.Lachmanovich E, Shvartsman DE, Malka Y, Botvin C, Henis YI, Weiss AM. Co-localization analysis of complex formation among membrane proteins by computerized fluorescence microscopy: application to immunofluorescence co-patching studies. Journal of Microscopy. 2003;212(no. 2):122–131. doi: 10.1046/j.1365-2818.2003.01239.x. [DOI] [PubMed] [Google Scholar]
- 3.Allier CP, Hiernard G, Poher V, Dinten JM. Bacteria detection with thin wetting film lensless imaging. Biomedical Optics Express. 2010;1(no. 2):762–770. doi: 10.1364/BOE.1.000762. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Ober RJ, Ram S, Ward ES. Localization accuracy in single-molecule microscopy. Biophysical Journal. 2004;86:1185–1200. doi: 10.1016/S0006-3495(04)74193-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Ram S, Ward ES, Ober RJ. Localization accuracy in single-molecule microscopy. Proceedings National Academy of Science USA. 2006;103:4457–4462. doi: 10.1073/pnas.0508047103. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Bobroff N. Position measurement with a resolution and noise limited instrument. Review Scientific Instruments. 1986;57:1152–1157. [Google Scholar]
- 7.Goulian M, Simon SM. Tracking single proteins within cells. Biophysical Journal. 2000;66:2188–2198. doi: 10.1016/S0006-3495(00)76467-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Gleser LJ. Estimation in a multivariate “errors in variable” regression model: large sample results. The Annals of Statistics. 1981;9(no. 1):24–44. [Google Scholar]
- 9.Cohen EAK, Ober RJ. Generalized least squares with weighted covariance for image registration error analysis in single molecule microscopy. 2011 To be submitted, [Google Scholar]