Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2015 Jun 24.
Published in final edited form as: Proc IEEE Int Symp Biomed Imaging. 2012 May;2012:996–999. doi: 10.1109/ISBI.2012.6235725

IMAGE REGISTRATION ERROR ANALYSIS WITH APPLICATIONS IN SINGLE MOLECULE MICROSCOPY

E A K Cohen 1,2, R J Ober 1,2
PMCID: PMC4479212  NIHMSID: NIHMS378553  PMID: 26120377

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 : xAx + 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 {xk(1),k=1,,K}, and in ℐ2 at true locations {xk(2),k=1,,K}, such that xk(2)=T(xk(1))=Axk(1)+t. 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 {yk(1),k=1,,K} and {yk(2),k=1,,K} where yk(j)=xk(j)+εk(j),k=1,,K, j = 1,2, where εk(j)2 is a random vector known as the measurement error with zero mean and covariance Σk(j). Through the work of Ober and Ram [4] [5], in practice it is possible to determine the error covariance matrices {Σk(1),k=1,,K} and {Σk(2),k=1,,K}, 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 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 ya(1), where ya(1)=xa(1)+εa(1) (again the covariance of εa(1) is estimable from [4]). xa(1) is the true positional vector of the molecule. We estimate its new coordinate (the registered position) in ℐ2 as Âya(1)+t^. 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)

νaxa(2)Âya(1)t^,

where xa(2)=Axa(1)+t.

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 ℝK matrices for j = 1, 2

X(j)    [x1(j),,xK(j)]Y(j)    [y1(j),,yK(j)]E(j)    [ε1(j),,εK(j)],

and further define the ℝK matrices

X=[X(1)X(2)],Y=[Y(1)Y(2)],E=[E(1)E(2)].

With this notation the system of equations can be conveniently represented as the single matrix equation

Y=α1KT+ΛX(1)+E, (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

Σk=[Σk(1)00Σk(2)],

for which we write Ek=dN2(0,Σk).

2.1. Image registration error

Suppose we image a molecule in ℐ1 with true position xa(1)1. The true position of the molecule in ℐ2, xa(2)2 will be related to xa(1) by the same affine transform, namely xa(2)=Axa(1)+t. Let ya(1)=xa(1)+εa(1) be the measured position of the molecule in ℐ1, where εa(1)=dN2(0,Σa(1)).

Definition 2.1. The image registration error (IRE) νa = [νa,1, νa,2]T associated with registering the molecule in2 is defined as

νaxa(2)Âya(1)t^, (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 Δtt. It can be shown that

νa=Aεa(1)ΔtΔAxa(1)ΔAεa(1),

and hence

E{νa}=E{Δt}E{ΔA}xa(1),

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 εa(1) is independent of both ΔA and Δt, then Ea} = 0 and

cov{νa}=AΣa(1)AT+E{(Δt+ΔAxa(1))(Δt+ΔAxa(1))T}+E{ΔAε(1)ε(1)TΔAT}. (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 Nk(j). The noise terms εk(j),k=1,,K, j = 1,2, have covariance Σk(j)=(1/Nk(j))Σ˜0(j) where Σ˜0(j)=Z(j)1 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 Nk(2)=cNk(1) for all k = 1, …, K, where c > 0 is a constant of proportionality, universal for all control points. We define N¯(j)(1/K)k=1KNk(j), and Σ0(j)(1/N¯(j))Σ˜0(j), for j = 1, 2, then (2) = c(1) and we have the situation where the covariance of the measurement errors are scalar multiples of a common matrix, i.e.

Σk=ηk[Σ0(1)00Σ0(2)]

where ηk=N¯(1)/Nk(1) and Σ0(1) and Σ0(2) 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

r=k=1KυkTΦ1υk (4)

where υk=yk(2)tAyk(1), Φ = 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

r=k=1KυkTΦk1υk, (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 (1/K)k=1Kηk1=1. 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 S(1/K)k=1Kηk1(yky¯)(yky¯)T where y¯(1/K)k=1Kηk1yk. By considering V = GDGT, the eigenvalue decomposition of matrix VSΣ01, with D = diag{d1, d2, d3, d4} where d1 ≥ … ≥ d4 and GGT = GTG = I4, then by making the partition

G=[G11G12G21G11],

the GLS estimator of A and t are given as

Â=G21G111,    t^=k=1Kηk1Uyk.

Theorem 4.3. Define2 vector x¯(1/K)k=1Kηk1xk(1), ℝ2×2 matrix Ξ(1/K)k=1Kηk1xk(1)xk(1)T, matrix Ψ = Ξ − T and matrix Θ=Ψ1(ΛTΣ01Λ)1Ψ1+Ψ1, then we have the following identities

cov{Δtm,Δtn}=K1(1+x¯Θx¯T)Φmn (6)
cov{Δtl,Δamn}=K1[Θx¯]nΦml (7)
cov{Δamn,Δamn}=K1ΘmmΦnn. (8)

5. IMAGE REGISTRATION ERROR ANALYSIS

We now consider the asymptotic form of the IRE covariance matrix. Consider a molecule in ℐ1 at point ya(1), where ya(1)=xa(1)+εa(1) with the measurement error having covariance Σa estimable from [4], and xa(1) being the true positional vector. We estimate its new coordinate (the registered position) in ℐ2 as Âya(1)+t^. 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 {xk(1),k=1,,K} be K realizations of a random variable 𝒳 = [𝒳1, 𝒳2]T ∈ ℝ2 where

𝒳=dN2(μ,Π),

then asymptotically = μ and Ψ = Π.

5.2. Assumptions

  1. Consider the positions {xk(1),k=1,,K} to be K realizations of a random variable 𝒳 = [𝒳1, 𝒳2]T ∈ ℝ2 where
    𝒳=dN2(0,κ2I2).

    From Lemma 5.1 we have = 0 and Ψ = κ2I2.

  2. 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.

  3. We model the measurement errors as Ek=dN4(0,Σk) where
    Σk=(σ1,k2I200σ2,k2I2)=N¯(1)Nk(1)(σ12I200σ22I2)
    with the normalized variance terms σj(2) inversely proportional to the mean photon count, σj2=ζ(j)/N¯(j). 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, Φ=(m2σ12+σ22)I2 and Θ=κ4(σ12+m2σ22)I2+κ2I2. We immediately conclude cov{Δtl, Δaij} = 0 for l, i, j. Further to this cov{Δti,Δtj}=K1(m2σ12+σ22)δij, where δij is the Kronecker delta. cov{Δaij, Δaij} = 0 if ii′ and/or jj′. If i = i′ and j = j′, then given κ2(σ12+m2σ22) we can treat cov{Δaij, Δaij} ≈ 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

cov{va,i,va,j}[AΣaAT]ij+K1(σ12m2δij+σ22).

If the covariance Σa is itself representable as σa2I2 then in terms of photon count the covariance terms become

cov{va,i,va,j}m2σa2δij+K1(m2ζ(1)N¯(1)δij+ζ(2)N¯(2)).

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 m2σa2. 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]

RESOURCES