본문 펼치기
# Improvements on marker-free images alignment for electron tomography
### C.O.S. Sorzano 1, F. de Isidro-Gómez 1, E. Fernández-Giménez 1, D. Herreros 1, S. Marco 2, J.M. Carazo 1, C. Messaoudi 2 May 22, 2020
(1)Biocomputing Unit, National Center for Biotechnology (CSIC), c/Darwin, 3, Campus Universidad
Aut’onoma, 28049 Cantoblanco, Madrid, Spain.
(2)Institite Curie, 110 Avenue de Bures, 91440 Bures-sur-Yvette, France
Abstract
Electron tomography is a technique to obtain three-dimensional structural information of samples. However, the technique is limited by shifts occurring during acquisition
that need to be corrected before the reconstruction process. In 2009, we proposed an approach for post-acquisition alignment of tilt series images. This approach was marker-free,
based on patch tracking and integrated in free software. Here, we present improvements
to the method to make it more reliable, stable and accurate. In addition, we modified
the image formation model underlying the alignment procedure to include different deformations occurring during acquisition. We propose a new way to correct these computed
deformations to obtain reconstructions with reduced artifacts. The new approach has
demonstrated to improve the quality of the final 3D reconstruction, giving access to better
defined structures for different transmission electron tomography methods: resin embedded STEM-tomography and cryo-TEM tomography. The method is freely available in
TomoJ software.
## 1 Introduction
Electron tomography is a technique that produces structural information of samples at a resolution between 20Å and 5Å (Kovtun et al., 2018; Mattei et al., 2018). This structural information
helps scientists to determine the precise organization and relationship between the different components of samples. In biology, it has helped in understanding subcellular organelles thereby
becoming a cutting-edge tool in structural biology (Donohoe et al., 2006; Pfeffer and Mahamid,
2018). In material science, the use of electron tomography is more recent, but it has already
facilitated the studies going from carbon nanotubes doped with nitrogen (Florea et al., 2012)
to dislocations in minerals or semiconductors (Midgley and Dunin-Borkowski, 2009).
Electron tomography relies on the tomographic reconstruction of a sample from projection
images acquired at different orientations by using a transmission electron microscope. The
1
most popular and simplest data collection geometry is the single-axis tilt series, although other
geometries are also possible like dual-axis (Mastronarde, 1997), multiple-axes (Messaoudi et al.,
2006; Hata et al., 2011), or conical tilt (Zampighi et al., 2005). Since single-axis tilt series is the
most common and simplest method, in this paper we will focus on this technique. In singleaxis tilt series, the sample is tilted around an axis to provide its different projection views.
This simple approach presents some inconveniences such as the limitation of tilt range, due
to the increment of the sample section to be crossed by the electrons at high tilt; mechanical
instabilities during data collection producing shifted images; or deformations of images, due
to small magnification change or radiation damage. Because the reconstruction algorithms are
based on the existence of a single and well defined axis, the relative projection directions for
each image must be established before starting the three-dimensional reconstruction process.
This calls for the determination of the common tilt axis on all images, which requires the
correction of shifts and/or deformations occurring during the acquisition.
Software for acquisition of single-axis tilt series is improving concerning the tracking of the
sample during tilt series acquisition. However, it does not absolutely compensate for all shifts
in the sample. It also tracks and corrects for changes in the defocus, but cannot compensate
for magnification changes or deformations occurring in samples sensible to radiation damage.
So post-acquisition alignment is mandatory to get images in the correct geometric system for
reconstruction.
With biological samples, alignment of the tilt series is often performed by using gold beads
serving as fiducial markers. This technique is quite effective, but since markers are not always
visible or trackable, or because they are not available, it is not always applicable. In addition, the use of markers needs the intervention of user, during image processing, to manually
indicate the position of fiducials on images making possible automatic tracking on the whole
data set. Some papers proposed automatic detection of fiducials (Amat et al., 2008; Mastronarde and Held, 2017; Han et al., 2018). Alternatively, image corners can be used as fiducial
markers (Brandt et al., 2001), or the image information content itself can be used through crosscorrelation (Frank and McEwen, 1992). Electron microscopy of single particles has proved that
algorithms based on image information such as cross-correlation provide the best results when
a reference volume pre-exists. However, since the objects to be reconstructed in electron tomography are unique, reference volumes cannot be generated. Consequently, post-acquisition
alignment requires algorithms based on information exclusively contained in images from the
tilt series. Three main possibilities using cross-correlation to align tilt series exist. The first
one is to align the first image with the second, the second with the third, and so on. This serial
approach compares similar images, although it has the drawback of serious potential drifts due
to error propagation as it reduces the alignment to multiple two-images problems, instead of
considering the tilt series as a whole. This results in inaccurate estimations of the tilt axis
and shift parameters for each images. The second approach computes a rough reconstruction
of the tomogram and realigns the tilt series with respect to reprojections to iteratively refine
the computed reconstruction. This approach, frequently used in single particle analysis (Frank,
2006), is highly time consuming and limited for tomography because of the small number of
projections available to compute the first volume. The third option is to use cross-correlation
to track features within the tilt series. Features are characteristic points in the images (due
to change of contrast, borders, corners, etc.) that can be tracked in neighboring images. The
feature tracking allows defining markers that are visible in sub-sequences of the whole tilt series.
2
In 2009, we proposed an approach, based on the third option, whose improvements are
discussed hereafter (Sorzano et al., 2009). This approach was as follows. First, shifts were
roughly corrected by cross-correlation. Rotations and deformations were estimated using affine
transforms. This was a pre-alignment required for further steps. Second, a grid was applied on
each image to place seeds in regular positions. As the grid was applied on unaligned images,
the seeds were not located on the same features. Third, a patch was extracted and, using the
pre-alignment parameters, the corresponding patch in previous and next images was found by
cross-correlation. At this step, while the correlation score between patches was high enough,
the process continued to produce a landmark chain. Fourth, for each seed only chains having a
length higher than a threshold defined by user were selected. Fifth, a 3D model of landmarks
was created iteratively along with detection of tilt axis orientation, in-plane shifts and rotations
(incorrectly detected landmark chains were automatically identified and removed).
In this article we introduce several improvements to the previously described procedure:
1. We have speeded-up the prealignment of micrographs by a factor 100 using a multiscale
image alignment algorithm (see Secs. 2.1.1 and 3.2.1).
2. We have enhanced the generation of seeds producing fewer and better seeds (see Secs.
2.1.2 and 3.2.2).
3. We have introduced an algorithm specially suited to spherical image features (like gold
beads, but not limited to these; see Secs. 2.1.2 and 3.2.3).
4. We have made the landmark chain generation more robust by considering the reversibility
of the landmark matching (see Sec. 2.1.3).
5. We have improved the fusion of landmark chains producing longer chains and of better
quality (see Secs. 2.1.4 and 3.2.4).
6. We have extended the deformation model to include sample shrinkage and shearing effects
as well as differences in image magnification (see Sec. 2.2.1).
7. We have included a better procedure to spot incorrectly identified projections of the 3D
landmarks or incorrect parts of the landmark chains (see Sec. 2.2.2).
8. We have modified the 3D reconstruction algorithm to account for the sample out-ofplane deformations. Alternatively, we also provide two faster 2D transformations of the
experimental images that allow partial correction of the out-of-plane effects. The three
alternatives are shown in Sec. 2.3, and their results in Secs. 3.1 and 3.2.5.
We finally show the performance of the method on CryoEM and resin-embedded STEM data.
## 2 Methods
In this section, the improvements for each step of the workflow of the algorithm published in
Sorzano et al. (2009) are detailed. They have been included in the ImageJ (Abramoff et al.,
2004; Schneider et al., 2012) plugin TomoJ (Messaoudi et al., 2007) and are freely available
from `[http://www.cmib.fr/en/download/softwares/TomoJ.html](http://www.cmib.fr/en/download/softwares/TomoJ.html)` . These modifications affect
3
the method used to generate landmark chains (Section 2.1), the deformation model (Section
2.2), and the 3D reconstruction algorithm that compensates for these deformations (Section
2.3).
### 2.1 Feature tracking to produce landmarks chains
The first part that have been improved is the one producing landmarks chains from the tilt
series. It can be decomposed in four steps: 1) pre-alignment to help future tracking, 2) detection
of points of interest, 3) creation of landmark chains, and 4) selection of high quality chains.
2.1.1 Pre-alignment procedure simplification
In order to reduce the computation time, the entire procedure, including affine transform,
can often be replaced by a simplified two-steps multiscale translation determination by crosscorrelation. In this new procedure, full size images are downsampled by a factor 2 leading to
an improvement of the Signal-to-Noise Ratio (SNR) as expected for an averaging filter. Then,
an alignment by cross-correlation is serially performed. In addition, because the dimension of
images is reduced, this leads to a gain in the computation time. The user can chose to repeat
this step or to change the downsampling factor, but, as this step aims to correct for the largest
translations, it is not really required. Following this first step, refinement is done by computing
the cross-correlation on the center of the images at full resolution (without downsampling).
Using only this central part prevents inaccuracies due to the apparition, at high tilt angle, of
features in the field of view which are absent on images recorded at angles close to 0 <sup>_◦_</sup> . Sec.
3.2.1 shows the results obtained by this improvement.
2.1.2 Seeds detection
Our algorithm introduced in 2009 was based on an initialization process in which the seeds
were regularly placed on the intersections of a grid whose size was defined by user. However,
this does not consider any information coming from images and, as a consequence many seeds
were located on places with no feature to be tracked reducing the efficiency of the next steps
of the workflow. Therefore, in order to optimize the initialization process, the local extrema
(minima or maxima depending on image contrast) are now used as seeds. Because these extrema
correspond to regions having high contrast, such as recognizable features in images or gold beads
frequently used as fiducial markers, this provides an additional value to the efficiency of the
determination of chains. The detailed procedure implemented consists in band-pass filtering
images to remove noise, followed by the generation of a coordinates map with the position
of all local minima (or maxima). This map is computed by determining if each pixel value
corresponds to a local minimum within a radius given by user. For each minimum, its score is
computed as the mean square difference between this pixel and its neighbors within the radius
previously used. The best _N_ seeds are kept, being _N_ a number selected by the user. Sec. 2.1.2
shows the results obtained by this algorithmic improvement.
In addition, an optimized procedure for spherical feature detection is available. As spherical
3D features will approximately project on images as 2D Gaussians, for each detected minimum,
two 1D Gaussian curves are fitted to the sum of pixel values on X and Y directions respectively.
This fit is done over the radius used to determine the minimum. The centers of the Gaussian
4
curves help determining the true center of the feature. Based on the regression coefficient used
as a fit score, this approach can also be used to remove non-spherical features using a score
threshold defined by the user. This optimization in the selection of spherical features directly
leads to a gain in computation time for the tracking part by removing uninteresting seeds (see
Sec. 3.2.3).
2.1.3 Generation of landmark chains
The robust determination of landmark chains is a major issue to guarantee the final accuracy
of the alignment process. In our previous work, the seeds were followed by using local patches
and cross-correlation and multiple refinements of the chains, in forward and backward direction,
were used to validate the chains. However, as proposed by Castaño Díez et al. (2010), this can
be done in a more efficient way by checking if the matching of each landmark is reversible. This
means that: given a patch located in position p _i_, in image _i_, and its corresponding matching
position p _i_ +1, in image _i_ + 1, the matching position of p _i_ +1 in image _i_, p ˆ _i_ should be at the
same position than p _i_ . Ideally the distance _d_ ( p _i,_ ˆ p _i_ ) should be zero. However, this ideal case
is unreachable in a large number of cases, but moderate values still gives usable matches. A
maximum distance of 2 pixels is considered good enough to validate the matching as correct.
Since the number of cross-correlations needed in this process is lower than that required for the
procedure proposed in 2009, this procedure results in a reduction of the computation time.
In case of spherical features, an additional optimization of the landmark chains generation
is possible by applying symmetry to the patch used as reference during tracking. This helps
the correct tracking of spherical features when other highly contrasted structures (such as cell
membranes in stained biological samples) appear in a same patch by forcing a circular shape
without need of _a_ _priori_ knowledge about its size. This symmetrization is done by averaging
12 rotated images on 360 <sup>_◦_</sup> with 30 <sup>_◦_</sup> steps.
2.1.4 Selection of high-quality chains
The correlation score between patches used during the generation of landmark chains is highly
dependent on the matching of the patches, but also on the surface occupied by features in
the patch and the SNR of the images. This score is used as the criterion to stop the tracking
process when it is lower than a threshold defined by the user. However, because of the variable
contribution of the three enumerated factors, it is difficult for any user to propose a correct
threshold _a priori_ . This difficulty results in an unpredictable computation time and in a number
of chains highly dependent on the user input. In order to make the process more robust and
reproducible, the user threshold is replaced by the length of the landmark chains. Thus, all seeds
are tracked on a given number of images, corresponding to the selected length of the landmark
chains, even if the correlation score is low. Each chain receives a score corresponding to the
lowest correlation value obtained during tracking. Only chains with the highest scores are kept.
The user defines the number of chains to keep, with the possibility to fix a minimum correlation
value. This minimum correlation value guarantees that chains with very low correlation values,
corresponding to inaccurate tracking, will not deteriorate the convergence of the alignment in
the next step.
In addition, as some of the local minima can fall on a same structure in the sample, many
landmarks chains can share a common segment, which leads to an over-representation of some
5
regions of the images. To prevent this, a fusion of landmark chains is done when the landmarks
chains share landmarks within a radius of less than two pixels on at least three images. The
fusion is done by averaging the position of landmarks. This procedure has the advantage to
produce longer chains than those defined by user, allowing a significant reduction in the number
of images on which seeds might be tracked. This new approach makes, in a robust way, the
selection of chains more independent of arbitrary and difficult to define parameters. Sec. 3.2.4
shows the results related to this part of the algorithm.
### 2.2 3D Deformation model and estimation of its parameters
The improved landmark chains are then introduced into an alignment algorithm that will create
a 3D model with the 3D coordinates of each landmarks. This 3D model was improved by adding
sample deformations, and variable magnifications.
2.2.1 Alignment with normalized distances
Let r _j_ be the coordinate of a 3D landmark, p _ij_ the coordinate of its projection onto image
_i_ . Let _Vj_ be the set of all images in which the _j_ -th landmark is seen, and _Vi_ the set of all
landmarks seen in image _i_ . The relationship between r _j_ and p _ij_ is
p _ij_ = _Ai_ r _j_ + d _i_
where _Ai_ is the projection matrix accounting for the tilting around the tilt axis and a posterior
in-plane rotation, and d _i_ is a 2D vector accounting for an in-plane shift of the _i_ -th image. _Ai_
is computed as
_Ai_ = _HRψiRθi,_ u _axisDi_ (1)
where _H_ is the matrix that projects 3D coordinates into its _X, Y_ components, _Rψi_ is a rotation
matrix of _ψi_ degrees around the _Z_ axis (that is, the beam axis), _Di_ is any 3D deformation
matrix with which we can encode change of scale (with a diagonal matrix) or shearing along any
arbitrary axis (a unitary matrix with all its eigenvalues equal to 1 and a degenerate eigenspace)
or any other arbitrary 3D transformation, and _Rθi,_ u _axis_ is a rotation matrix of _θi_ degrees around
the tilt axis u _axis_ . The tilt axis is described by the two Euler angles _α_ and _β_ yielding the vector
representation
u _axis_ = (sin _β_ cos _α,_ sin _β_ sin _α,_ cos _β_ ) (2)
Let us also refer to the product _RψiRθi,_ u _axis_ as _Ri_ . In the Electron Tomography field, it is
traditional to model _Si_ (Mastronarde, 2006) as
( _mi_ + _si_ ) cos( _δi_ ) 0 0
( _mi_ + _si_ ) sin( _δi_ ) _mi_ 0
0 0 _miti_
_Di_ =
although we prefer the model
_misi_ cos( _δi_ ) 0 0
_misi_ sin( _δi_ ) _mi_ 0
0 0 _miti_
6
(3)
_Di_ =
Both deformation models can span the same subspace of deformation matrices. In this model,
_mi_ is a global change of magnification/compression, _ti_ is a vertical compression of the specimen,
_si_ is a compression along _X_, and _δi_ represents a shearing operation.
The goal is to minimize the reprojection error
_E_ =
_i_
=
_i_
_j∈Vi_
_j∈Vi_
_∥_ p _ij_ _−_ ( _Ai_ r _j_ + d _i_ ) _∥_ <sup>2</sup> _Wj_
p <sup>_t_</sup>
<sup>_t_</sup> _ij_ <sup>_Wj_</sup> <sup>p</sup> <sup>_ij_</sup> <sup>_−_</sup> <sup>2</sup> <sup>p</sup> <sup>_t_</sup> _ij_
<sup>_t_</sup> _ij_ <sup>_Wj_</sup> <sup>(</sup> <sup>_Ai_</sup> <sup>r</sup> <sup>_j_</sup> <sup>+</sup> <sup>d</sup> <sup>_i_</sup> <sup>) +</sup> <sup>r</sup> <sup>_t_</sup> _j_
<sup>_t_</sup> _j_ <sup>_At_</sup> _i_
<sup>_t_</sup> _i_ <sup>_WjAi_</sup> <sup>r</sup> <sup>_j_</sup> <sup>+</sup> <sup>d</sup> <sup>_t_</sup> _i_
<sup>_t_</sup> _i_ <sup>_Wj_</sup> <sup>d</sup> <sup>_i_</sup> <sup>+ 2</sup> <sup>d</sup> <sup>_t_</sup> _i_
<sup>_t_</sup> _i_ <sup>_WjAi_</sup> <sup>r</sup> <sup>_j_</sup>
where _Wj_ = _I_ + _λSj_ <sup>_−_</sup> <sup>1</sup>
where _Wj_ = _I_ + _λSj_ <sup>_−_</sup> <sup>1,</sup> <sup>_Sj_</sup> <sup>is</sup> <sup>the</sup> <sup>sample</sup> <sup>covariance</sup> <sup>of</sup> <sup>the</sup> <sup>residuals</sup> <sup>of</sup> <sup>the</sup> <sup>_j_</sup> <sup>-th</sup> <sup>landmark</sup>
calculated as
e _ij_ = p _ij_ _−_ ( _Ai_ r _j_ + d _i_ )
e _·j_ = _N_ <u>1</u> _j_ - e _ij_
_i∈Vj_
e _ij_
_Sj_ = _Nj_ <u>1</u> _−_ 1
_i∈Vj_
( e _ij_ _−_ e _·j_ ) ( e _ij_ _−_ e _·j_ ) <sup>_t_</sup>
and _λ_ is a regularization parameter that balances the importance between the Euclidean and
Mahalanobis distance (we have observed that a weight different from zero helps to estabilize the
alignment, especially by avoiding jumps in the zero degree image). In fact, this goal function
is a generalization of our previous one, since the previous corresponds to the particular case
_λ_ = 0. Note that _Wj_ is a symmetric matrix ( _Wj_ <sup>_t_</sup> <sup>=</sup> <sup>_Wj_</sup> <sup>),</sup> <sup>and</sup> <sup>that</sup> <sup>at</sup> <sup>every</sup> <sup>iteration</sup> <sup>of</sup> <sup>our</sup>
_λ_ = 0. Note that _Wj_ is a symmetric matrix ( _Wj_ <sup>_t_</sup> <sup>=</sup> <sup>_Wj_</sup> <sup>),</sup> <sup>and</sup> <sup>that</sup> <sup>at</sup> <sup>every</sup> <sup>iteration</sup> <sup>of</sup> <sup>our</sup>
algorithm we only have an estimate of the matrix _Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> given by the current estimates of the
algorithm we only have an estimate of the matrix _Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> given by the current estimates of the
parameter _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> and d <sup>(</sup> _i_ <sup>_k_</sup> <sup>).</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> and d <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
parameter _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> and d <sup>(</sup> _i_ <sup>_k_</sup> <sup>).</sup>
In order to reduce the cross-talking between alignment parameters, we constrain the minimization so that
<u>1</u>
_I_
_i_
_mi_ = _I_ <sup><u>1</u></sup>
_si_ = _I_ <sup><u>1</u></sup>
_i_
_i_
_i_
_ti_ = 1
_δi_ = 0
_I_
_I_
<u>1</u>
_I_
which is simply stating that the mean of each of the deformation parameters should be around
1 (no scaling, _mi_, _ti_, _si_ ) or 0 (no shearing, _δi_ ).
For performing the minimization of _E_ with respect to the different parameters, we differentiate _E_ with respect to each parameter and equate to 0. This gives us updates for all the model
parameters (different deformations of the volume, image shifts and rotations, 3D landmarks,
and position of the tilt axis). The details of these updates can be seen in the Suppl. Material
1.
2.2.2 Evaluation of the landmarks quality and removal of outliers
We can also use the normalized distance introduced in this paper to evaluate the quality of the
landmarks used for alignment. For doing so, we can analyze the residuals, e _ij_, which we have
seen that play a central role along the alignment procedure, and identify those landmarks with
larger residuals according the metric introduced in this paper. We can do this in two different
ways:
1. <u>Identification</u> <u>of</u> <u>large</u> <u>isolated</u> <u>residuals:</u> We may identify those landmarks for which at
least one of their residuals in at least one of the projections is larger than a given threshold:
_z_ 1 = _∥_ e _ij∥Wj_ _> ϵ_ 1
7
2. <u>Identification</u> <u>of</u> <u>large</u> <u>average</u> <u>residuals:</u> We may identify those landmarks for which, on
average, their residuals are larger than a given threshold:
_z_ 2 = <sup><u>1</u></sup>
_Nj_
_i∈Vj_
_∥_ e _ij∥Wj_ _> ϵ_ 2
These thresholds may be either set by the user or estimated by some suitable procedure like
calculating a high percentile (90-95%) of the distribution of the measured feature ( _∥_ e _ij∥Wj_
or _N_ <u>1</u> _j_ - _∥_ e _ij∥Wj_ ) over all landmarks. Alternatively, we here propose an automatic way of
_i∈Vj_
removing landmarks based on Mahalanobis distance. Let us define for landmark _i_ a vector
_i∈Vj_
_∥_ e _ij∥Wj_ ) over all landmarks. Alternatively, we here propose an automatic way of
formed by its residuals z _i_ =
- _zi_ 1�
. We define the covariance of all residual vectors as
_zi_ 2
<u>1</u>
_SZ_ =
_N_ _−_ 1
_N_
- ( z _i −_ z ¯)( z _i −_ z ¯) <sup>_T_</sup>
_i_ =1
where _N_ is the number of landmarks and z ¯ is the mean of all residuals. Then, for every
landmark we compute its Mahalanbobis norm with respect to the distribution mean as
_∥_ z _∥_ =
( z _i −_ z ¯) <sup>_T_</sup> _SZ_ <sup>_−_</sup> <sup>1(</sup> <sup>z</sup> <sup>_i −_</sup> <sup>z</sup> <sup>¯)</sup>
Those landmarks whose norm is larger than a threshold are identified as <u>outliers.</u> In the
multivariate statistics literature it is normally accepted to use the threshold - _p_ + 3 <sup>_~~√~~_</sup> <u>2</u> _<u>p</u>_ <u>, where</u>
_p_ is the number of variables of the z vectors (in our case, _p_ = 2).
### 2.3 3D Reconstruction and compensation of the deformations
Once the alignment has been estimated, we want to produce a reconstruction that takes into
account the deformation in such a way that the reconstructed volume is undeformed. In the
following we show three different methods with increasing degree of accuracy.
2.3.1 Method 1: Linear mapping of the acquired images
Following the classical approach in the spirit of Mastronarde (2006), we may try to find a linear
transformation that converts points in the underformed projection into points in the deformed
(acquired) one. Consider a point r <sup>_′_</sup> in the underformed volume _V_ <sup>_′_</sup> . In the undeformed projection
it would be projected at the coordinate
s <sup>_′_</sup> = _HRθi_ r <sup>_′_</sup>
while in the deformed projection it would be projected at the coordinate
s = _HRiDiRα_ <sup>_−_</sup> <sup>1</sup> <sup>r</sup> <sup>_′_</sup> <sup>+</sup> <sup>d</sup> <sup>_i_</sup>
We may now look for an affine transformation of one coordinate into the other
s = _G_ ( s <sup>_′_</sup> + d <sup>_′_</sup> _i_
s = _G_ ( s <sup>_′_</sup> + d <sup>_′_</sup> _i_ <sup>)</sup>
_HRiDiRα_ <sup>_−_</sup> <sup>1</sup> <sup>r</sup> <sup>_′_</sup> <sup>+</sup> <sup>d</sup> <sup>_i_</sup> = _GHRθi_ r <sup>_′_</sup>
_i_
_α_ <sup>_−_</sup> <sup>1</sup> <sup>r</sup> <sup>_′_</sup> <sup>+</sup> <sup>d</sup> <sup>_i_</sup> = _GHRθi_ r <sup>_′_</sup> + _G_ d <sup>_′_</sup> _i_
8
which implies
d _i_ = _G_ d <sup>_′_</sup> _i_
_i_
_HRiDiRα_ <sup>_−_</sup> <sup>1</sup> = _GHR_
_α_ <sup>_−_</sup> <sup>1</sup> = _GHRθi_
If we multiply the second equation by _H_ <sup>_t_</sup> from the right
_HRiDiRα_ <sup>_−_</sup> <sup>1</sup> <sup>_H_</sup> <sup>_t_</sup> <sup>=</sup> <sup>_GHRθ_</sup> _i_ <sup>_H_</sup> <sup>_t_</sup>
From this last equation we can solve for _G_
_G_ = _HRiDiRα_ <sup>_−_</sup> <sup>1</sup> <sup>_H_</sup> <sup>_t_</sup> <sup>(</sup> <sup>_HRθ_</sup> _i_ <sup>_H_</sup> <sup>_t_</sup> <sup>)</sup> <sup>_−_</sup> <sup>1</sup> (4)
You may compare this latter equation with Eq. 5. It can be seen that the latter is a 2D
version of the one in Method 2. Once we have the matrix _G_ we can easily calculate the affine
displacement
d <sup>_′_</sup> _i_ <sup>=</sup> <sup>_G−_</sup> <sup>1</sup> <sup>d</sup> <sup>_i_</sup>
2.3.2 Method 2: Non-linear mapping of the acquired images
For reconstruction, it is convenient to have the tilt axis aligned with the vertical axis and with
all shifts and deformations corrected. For this, we need to generate the images
_R_ ˜ _θ_ <sup>_−_</sup> _i_ <sup>1</sup>
_θ_ <sup>_−_</sup> _i_ <sup>1</sup> <sup>_H_</sup> <sup>˜</sup> _z_ <sup>_t_</sup>
_z_ <sup>_t′_</sup> <sup>˜</sup> <sup>s</sup> <sup>_′_</sup> <sup>�</sup>
_Ii_ <sup>_′_</sup> <sup>(˜</sup> <sup>s</sup> <sup>_′_</sup> <sup>) =</sup>
_Ii_ <sup>_′_</sup>
_∞_
_−∞_
_V_ <sup>_′_</sup> <sup>�</sup>
_dz_ <sup>_′_</sup>
where we have made used of the matrix
_H_ ˜ _z_ <sup>_t_</sup> <sup>=</sup>
1 0 0
0 1 0
0 0 _z_
0 0 1
and used homogeneous coordinates (with tilde) to refer to all positions in space (as a reminder,
homogeneous coordinates for a 2D or 3D location are not unique, but it suffices to think of them
as ˜ s = ( _x, y,_ 1) <sup>_t_</sup> or ˜ r = ( _x, y, z,_ 1) <sup>_t_</sup> ). Among all ˜ r <sup>_′_</sup> points projecting onto a given coordinate ˜ s <sup>_′_</sup>
only one of them lies in the _XY_ plane, ˜ r <sup>_′_</sup> 0
<sup>_′_</sup> 0 <sup>=</sup> <sup>_R_</sup> <sup>˜</sup> _θ_ <sup>_−_</sup> _i_ <sup>1</sup> <sup>_H_</sup> <sup>˜</sup> _z_ <sup>_t_</sup> 0 <sup>_′_</sup>
˜ r <sup>_′_</sup>
_z_ <sup>_′_</sup>
0 <sup>_′_</sup> <sup>˜</sup> <sup>s</sup> <sup>_′_</sup>
Let r <sup>_t_</sup> _θ_
<sup>_t_</sup> _θi,_ 2 <sup>and</sup> <sup>r</sup> <sup>_t_</sup> _θ_
<sup>_t_</sup> _θi,_ 1 <sup>,</sup> <sup>r</sup> <sup>_t_</sup> _θ_
Let r <sup>_t_</sup> _θi,_ 1 <sup>,</sup> <sup>r</sup> <sup>_t_</sup> _θi,_ 2 <sup>and</sup> <sup>r</sup> <sup>_t_</sup> _θi,_ 3 <sup>be the first, second and third rows of the</sup> <sup>_Rθ_</sup> _i_ <sup>matrix.</sup> <sup>Then, it can easily</sup>
be shown that (note that we have abandoned the homogeneous coordinates)
<sup>_′_</sup> 0 <sup>=</sup> <sup>_R_</sup> _θ_ <sup>_−_</sup> _i_ <sup>1</sup> <sup>_H_</sup> _z_ <sup>_t_</sup> 0 <sup>_′_</sup>
r <sup>_′_</sup>
_z_ <sup>_′_</sup>
0 <sup>_′_</sup> <sup>s</sup> <sup>_′_</sup> <sup>=</sup> <sup>_x′_</sup> <sup>r</sup> <sup>_θi,_</sup> <sup>1 +</sup> <sup>_y′_</sup> <sup>r</sup> <sup>_θi,_</sup> <sup>2 +</sup> <sup>_z_</sup> 0 <sup>_′_</sup> <sup>r</sup> <sup>_θ_</sup> _i_ <sup>_,_</sup> <sup>3</sup>
Since r <sup>_′_</sup> 0 <sup>lies</sup> <sup>in</sup> <sup>the</sup> <sup>XY</sup> <sup>plane,</sup> <sup>it</sup> <sup>must</sup> <sup>be</sup>
r <sup>_′_</sup> 0 _,z_ <sup>= 0</sup> <sup>_⇒_</sup> <sup>_z_</sup> 0 <sup>_′_</sup> <sup>=</sup> <sup>_−x′Rθi,_</sup> <sup><u>13 +</u></sup> <sup>_<u>y′Rθi,</u>_</sup> <sup><u>23</u></sup>
_Rθi,_ 33
9
In the experimental (deformed) image, this coordinate is projected at the location
˜ s = _H_ <sup>˜</sup> 0 _T_ <sup>˜</sup> _iR_ <sup>˜</sup> _iD_ <sup>˜</sup> _iR_ <sup>˜</sup> _α_ <sup>_−_</sup> <sup>1</sup>
<sup>_′_</sup> 0 <sup>=</sup> <sup>_H_</sup> <sup>˜</sup> <sup>0</sup> <sup>_T_</sup> <sup>˜</sup> <sup>_iR_</sup> <sup>˜</sup> <sup>_iD_</sup> <sup>˜</sup> <sup>_iR_</sup> <sup>˜</sup> _α_ <sup>_−_</sup> <sup>1</sup> <sup>_R_</sup> <sup>˜</sup> _θ_ <sup>_−_</sup> _i_ <sup>1</sup>
_z_ <sup>_′_</sup>
0 <sup>_′_</sup> <sup>˜</sup> <sup>s</sup> <sup>_′_</sup> (5)
_α_ <sup>_−_</sup> <sup>1˜</sup> <sup>r</sup> <sup>_′_</sup> 0
_θ_ <sup>_−_</sup> _i_ <sup>1</sup> <sup>_H_</sup> <sup>˜</sup> _z_ <sup>_t_</sup> 0 <sup>_′_</sup>
Note that this relationship is valid only for the r <sup>_′_</sup> points in the _XY_ plane and that the relationship is non-linear because the matrix _H_ <sup>˜</sup> _z_ <sup>_t′_</sup>
0 <sup>depends</sup> <sup>on</sup> <sup>the</sup> <sup>coordinate</sup> <sup>s</sup> <sup>_′_</sup> <sup>.</sup>
tionship is non-linear because the matrix _H_ <sup>˜</sup> _z_ <sup>_t′_</sup>
0 <sup>depends</sup> <sup>on</sup> <sup>the</sup> <sup>coordinate</sup> <sup>s</sup> <sup>_′_</sup> <sup>.</sup>
We can relate the ideal images needed for reconstruction with the acquired images as
_z_ <sup>_′_</sup>
_i_ <sup>_′_</sup> <sup>(˜</sup> <sup>s</sup> <sup>_′_</sup> <sup>)</sup> <sup>_≈_</sup> <sup>_Ii_</sup> <sup>( ˜</sup> <sup>_H_</sup> <sup>0</sup> <sup>_T_</sup> <sup>˜</sup> <sup>_iR_</sup> <sup>˜</sup> <sup>_iD_</sup> <sup>˜</sup> <sup>_iR_</sup> <sup>˜</sup> _α_ <sup>_−_</sup> <sup>1</sup>
_θ_ <sup>_−_</sup> _i_ <sup>1</sup> <sup>_H_</sup> <sup>˜</sup> _z_ <sup>_t_</sup> 0 <sup>_′_</sup>
_z_ <sup>_′_</sup>
0 <sup>_′_</sup> <sup>˜</sup> <sup>s</sup> <sup>_′_</sup> <sup>)</sup>
_Ii_ <sup>_′_</sup>
_α_ <sup>_−_</sup> <sup>1</sup> <sup>_R_</sup> <sup>˜</sup> _θ_ <sup>_−_</sup> _i_ <sup>1</sup>
Note that because of the 3D deformation _Di_, this latter equation gives only an approximation to the true image _Ii_ <sup>_′_</sup> <sup>.</sup> <sup>The</sup> <sup>larger</sup> <sup>the</sup> <sup>deformation</sup> <sup>and</sup> <sup>the</sup> <sup>sample</sup> <sup>thickness,</sup> <sup>the</sup> <sup>worse</sup>
the approximation is. However, the approximation becomes exact for infinitely thin samples.
Instead of creating “undeformed” images, a more exact alternative would be to construct a 3D
reconstruction algorithm whose projector explicitly takes into account the deformation.
In the following paragraph we show that this way of generating an “undeformed” projection
generalizes the current approach to projection alignment of a tilt series. In case, there is no
deformation (the assumption of the standard tomographic approach), the expression above
simplifies to
_i_ <sup>_′_</sup> <sup>(˜</sup> <sup>s</sup> <sup>_′_</sup> <sup>)</sup> = _Ii_ ( _H_ <sup>˜</sup> 0 _T_ <sup>˜</sup> _iR_ <sup>˜</sup> _iR_ <sup>˜</sup> _α_ <sup>_−_</sup> <sup>1</sup>
_θ_ <sup>_−_</sup> _i_ <sup>1</sup> <sup>_H_</sup> <sup>˜</sup> _z_ <sup>_t_</sup> 0 <sup>_′_</sup>
_z_ <sup>_′_</sup>
_α_ <sup>_−_</sup> <sup>1</sup> <sup>_R_</sup> <sup>˜</sup> _θ_ <sup>_−_</sup> _i_ <sup>1</sup>
_θ_ <sup>_−_</sup> _i_ <sup>1</sup> <sup>_H_</sup> <sup>˜</sup> _z_ <sup>_t_</sup> 0 <sup>_′_</sup>
_Ii_ <sup>_′_</sup>
= _Ii_ ( _H_ <sup>˜</sup> 0 _T_ <sup>˜</sup> _iR_ <sup>˜</sup> _iR_ <sup>˜</sup> _α_ <sup>_−_</sup> <sup>1</sup> <sup>_R_</sup> <sup>˜</sup> _θ_ <sup>_−_</sup> _i_ <sup>1</sup> <sup>_H_</sup> <sup>˜</sup> _z_ <sup>_t_</sup> 0 <sup>_′_</sup> <sup>˜</sup> <sup>s</sup> <sup>_′_</sup> <sup>)</sup>
= _Ii_ ( _H_ <sup>˜</sup> 0 _T_ <sup>˜</sup> _i_ ( _R_ <sup>˜</sup> _ψiR_ <sup>˜</sup> _θi,_ u _axis_ ) _R_ <sup>˜</sup> _α_ <sup>_−_</sup> <sup>1</sup>
_α_ <sup>_−_</sup> <sup>1</sup> <sup>_R_</sup> <sup>˜</sup> _θ_ <sup>_−_</sup> _i_ <sup>1</sup>
_α_ <sup>_−_</sup> <sup>1</sup> <sup>_R_</sup> <sup>˜</sup> _θ_ <sup>_−_</sup> _i_ <sup>1</sup>
= _Ii_ ( _H_ <sup>˜</sup> 0 _T_ <sup>˜</sup> _i_ ( _R_ <sup>˜</sup> _ψiR_ <sup>˜</sup> _θi,_ u _axis_ ) _R_ <sup>˜</sup> _α_ <sup>_−_</sup> <sup>1</sup> <sup>_R_</sup> <sup>˜</sup> _θ_ <sup>_−_</sup> _i_ <sup>1</sup> <sup>_H_</sup> <sup>˜</sup> _z_ <sup>_t_</sup> 0 <sup>_′_</sup> <sup>˜</sup> <sup>s</sup> <sup>_′_</sup> <sup>)</sup>
= _Ii_ ( _H_ <sup>˜</sup> 0 _T_ <sup>˜</sup> _iR_ <sup>˜</sup> _ψi_ ( _R_ <sup>˜</sup> _−αR_ <sup>˜</sup> 90 _−βR_ <sup>˜</sup> _θiR_ <sup>˜</sup> _−_ (90 _−β_ ) _R_ <sup>˜</sup> _α_ ) _R_ <sup>˜</sup> _α_ <sup>_−_</sup> <sup>1</sup>
_z_ <sup>_′_</sup>
= _Ii_ ( _H_ <sup>˜</sup> 0 _T_ <sup>˜</sup> _iR_ <sup>˜</sup> _ψi_ ( _R_ <sup>˜</sup> _−αR_ <sup>˜</sup> 90 _−βR_ <sup>˜</sup> _θiR_ <sup>˜</sup> _−_ (90 _−β_ ) _R_ <sup>˜</sup> _α_ ) _R_ <sup>˜</sup> _α_ <sup>_−_</sup> <sup>1</sup> <sup>_R_</sup> <sup>˜</sup> _θ_ <sup>_−_</sup> _i_ <sup>1</sup> <sup>_H_</sup> <sup>˜</sup> _z_ <sup>_t_</sup> 0 <sup>_′_</sup> <sup>˜</sup> <sup>s</sup> <sup>_′_</sup> <sup>)</sup>
= _Ii_ ( _H_ <sup>˜</sup> 0 _T_ <sup>˜</sup> _iR_ <sup>˜</sup> _ψi−αR_ <sup>˜</sup> 90 _−βR_ <sup>˜</sup> _θiR_ <sup>˜</sup> _−_ (90 _−β_ ) _R_ <sup>˜</sup> _θ_ <sup>_−_</sup> _i_ <sup>1</sup> <sup>_H_</sup> <sup>˜</sup> _z_ <sup>_t_</sup> 0 <sup>_′_</sup> <sup>˜</sup> <sup>s</sup> <sup>_′_</sup> <sup>)</sup>
_z_ <sup>_′_</sup>
_θ_ <sup>_−_</sup> _i_ <sup>1</sup> <sup>_H_</sup> <sup>˜</sup> _z_ <sup>_t_</sup> 0 <sup>_′_</sup>
0 <sup>_′_</sup> <sup>˜</sup> <sup>s</sup> <sup>_′_</sup> <sup>)</sup>
_θ_ <sup>_−_</sup> _i_ <sup>1</sup> <sup>_H_</sup> <sup>˜</sup> _z_ <sup>_t_</sup> 0 <sup>_′_</sup>
_z_ <sup>_′_</sup>
where _α_ and _β_ are the two angles defining the tilt axis (Eq. (2)), _R_ <sup>˜</sup> _α_ is a rotation around
_Z_, _R_ <sup>˜</sup> 90 _−β_ is a rotation around _X_ and _R_ <sup>˜</sup> _θi_ is a rotation around _Y_ . If the tilt axis is perfectly
perpendicular to the electron beam, then _β_ = 90 and the expression above further simplifies to
_i_ <sup>_′_</sup> <sup>(˜</sup> <sup>s</sup> <sup>_′_</sup> <sup>)</sup> = _Ii_ ( _H_ <sup>˜</sup> 0 _T_ <sup>˜</sup> _iR_ <sup>˜</sup> _ψi−αH_ <sup>˜</sup> _z_ <sup>_t_</sup> 0 <sup>_′_</sup>
_Ii_ <sup>_′_</sup>
_z_ <sup>_′_</sup>
_z_ <sup>_t_</sup> 0 <sup>_′_</sup> <sup>˜</sup> <sup>s</sup> <sup>_′_</sup> <sup>)</sup>
Note that the translation and rotations are only performed in the _XY_ plane, so using the _H_ <sup>˜</sup> _z_ <sup>_t_</sup> 0 <sup>_′_</sup>
or _H_ <sup>˜</sup> 0 <sup>_t_</sup> <sup>gives</sup> <sup>the</sup> <sup>same</sup> <sup>result.</sup> <sup>Consequently,</sup>
_z_ 0 <sup>_′_</sup>
0 <sup>_t_</sup> <sup>gives</sup> <sup>the</sup> <sup>same</sup> <sup>result.</sup> <sup>Consequently,</sup>
_i_ <sup>_′_</sup> <sup>(˜</sup> <sup>s</sup> <sup>_′_</sup> <sup>)</sup> = _Ii_ ( _H_ <sup>˜</sup> 0 _T_ <sup>˜</sup> _iR_ <sup>˜</sup> _ψi−αH_ <sup>˜</sup> 0 <sup>_t_</sup>
_Ii_ <sup>_′_</sup>
0 <sup>_t_</sup> <sup>˜</sup> <sup>s</sup> <sup>_′_</sup> <sup>)</sup>
That is the standard way of aligning projection images of a tilt series.
2.3.3 Method 3: 3D Projector integrated in the 3D reconstruction algorithm
Each one of the images acquired responds to a model that can be described as (Sorzano et al.,
2014, 2015)
_dz._
_Ii_ (˜ s ) =
_∞_
_−∞_
_V_
�( _T_ <sup>˜</sup> _iR_ <sup>˜</sup> _iD_ <sup>˜</sup> _i_ ) <sup>_−_</sup> <sup>1 ˜</sup> _Hz_ <sup>_t_</sup>
_z_ <sup>_t_</sup> <sup>˜</sup> <sup>s</sup>
10
For the sake of clarity let us specify each one of the matrices involved:
1 0 0 _dix_
0 1 0 _diy_
0 0 1 0
0 0 0 1
cos( _ψi_ ) sin( _ψi_ ) 0 0
_−_ sin( _ψi_ ) cos( _ψi_ ) 0 0
0 0 1 0
0 0 0 1
_T_ ˜ _i_ =
_R_ ˜ _i_ = _R_ ˜ _ψi_ ˜ _Rθi,_ u _axis_ =
- _Rθi,_ u _axis_ 0 0 <sup>_t_</sup> 1
_D_ ˜ _i_ =
- _Di_ 0
(See Eq. 3)
0 <sup>_t_</sup> 1
We are interested in producing a tilt series whose tilt axis is not arbitrary but it is aligned
with the _Y_ axis. Let us call _V_ <sup>_′_</sup> the corresponding volume. The relationship between _V_ <sup>_′_</sup> and _V_
is given by
_V_ (˜ r ) = _V_ <sup>_′_</sup> ( _R_ <sup>˜</sup> _α_ ˜ r )
where _α_ is the rotation angle defining the orientation of the tilt axis orientation (see Section
2.2.1) and _R_ <sup>˜</sup> _α_ is a _Z_ -rotation matrix with this angle. In our convention, angles are measured
from the _Y_ axis (i.e., the _Y_ axis has _α_ = 0) and clockwise angles are positive.
Thus, we may rewrite the acquired image in terms of the vertically aligned volume as
_R_ ˜ _α_ ( ˜ _Ti_ ˜ _Ri_ ˜ _Di_ ) <sup>_−_</sup> <sup>1</sup> _H_ ˜ _z_ <sup>_t_</sup>
_z_ <sup>_t_</sup> <sup>˜</sup> <sup>s</sup>
- _∞_
_−∞_
_V_ <sup>_′_</sup> <sup>�</sup>
( _T_ <sup>˜</sup> _iR_ <sup>˜</sup> _iD_ <sup>˜</sup> _iR_ <sup>˜</sup> _α_ <sup>_−_</sup> <sup>1</sup>
_α_ <sup>_−_</sup> <sup>1)</sup> <sup>_−_</sup> <sup>1 ˜</sup> <sup>_H_</sup> _z_ <sup>_t_</sup>
_dz_ =
_dz_
_z_ <sup>_t_</sup> <sup>˜</sup> <sup>s</sup>
_Ii_ (˜ s ) =
- _∞_
_−∞_
_V_ <sup>_′_</sup> <sup>�</sup>
Note that all points in the volume _V_ <sup>_′_</sup> of the form
<sup>_′_</sup> _z_ <sup>= ( ˜</sup> <sup>_TiR_</sup> <sup>˜</sup> <sup>_iD_</sup> <sup>˜</sup> <sup>_iR_</sup> <sup>˜</sup> _α_ <sup>_−_</sup> <sup>1</sup>
˜ r <sup>_′_</sup>
_α_ <sup>_−_</sup> <sup>1)</sup> <sup>_−_</sup> <sup>1 ˜</sup> <sup>_H_</sup> _z_ <sup>_t_</sup>
_z_ <sup>_t_</sup> <sup>˜</sup> <sup>s</sup>
project onto the point ˜ s of the experimentally observed image. Conversely, given a point ˜ r <sup>_′_</sup> of
the volume _V_ <sup>_′_</sup>, it is projected on the experimental image at the location
˜ s = _H_ <sup>˜</sup> 0 _T_ <sup>˜</sup> _iR_ <sup>˜</sup> _iD_ <sup>˜</sup> _iR_ <sup>˜</sup> _α_ <sup>_−_</sup> <sup>1˜</sup> <sup>r</sup> <sup>_′_</sup> (6)
Including Eq. 6 into the reconstruction process breaks the possibility to optimize parallel
beam reconstruction by working on each XZ plane independently. This drawback is particularly
crucial with optimization on GPU where memory is often not sufficient to hold the entire
reconstruction. The reconstruction of part of the reconstruction and then joining them is
problematic in the junctions, because some of the information to use in the process is not
attainable. To solve this problem, it is possible to reconstruct overlapping sub-reconstruction
and then copy only the parts where all information is present. Using Eq. 6 we can determine
the change for volume coordinates of each point as r <sup>˜</sup> <sup>_′_</sup> = _D_ <sup>˜</sup> _iR_ <sup>˜</sup> _α_ <sup>_−_</sup> <sup>1˜</sup> <sup>r</sup>
Knowing this, it is then easy to determine the range of the correctly reconstructed pixels
from the corners coordinates of the sub-reconstruction.
max _rθ_ <sup>_′_</sup>
_θi_
_rymin_ = max
_θ_ <sup>_′_</sup> _i_ <sup>(</sup> <sup>_xmin, ystart_</sup> <sup>)</sup> <sup>_, r_</sup> _θ_ <sup>_′_</sup>
_θ_ <sup>_′_</sup> _i_ <sup>(</sup> <sup>_xmax, ystart_</sup> <sup>)</sup>
11
and
_θi_ <sup>min</sup> <sup>_r_</sup> _θ_ <sup>_′_</sup>
_rymax_ = min _θi_
_θ_ <sup>_′_</sup> _i_ <sup>(</sup> <sup>_xmin, yend_</sup> <sup>)</sup> <sup>_, r_</sup> _θ_ <sup>_′_</sup>
_θ_ <sup>_′_</sup> _i_ <sup>(</sup> <sup>_xmax, yend_</sup> <sup>)</sup>
Finally, to determine the start of next sub-reconstruction, we use the same approach by
taking
_θi_ <sup>min</sup> <sup>_r_</sup> _θ_ <sup>_′_</sup>
_rnextstart_ = min _θi_
_θ_ <sup>_′_</sup> _i_ <sup>(</sup> <sup>_xmin, ymax_</sup> <sup>)</sup> <sup>_, r_</sup> _θ_ <sup>_′_</sup>
_θ_ <sup>_′_</sup> _i_ <sup>(</sup> <sup>_xmax, ymax_</sup> <sup>)</sup>
Special care with these limits should be taken when _α_ is higher than 45 <sup>_◦_</sup> or lower than _−_ 45 <sup>_◦_</sup>,
and in these cases we must use _α ±_ 90 <sup>_◦_</sup>, in order to have the correct image corners.
## 3 Results
We first show the ability of the algorithm to recover deformed tilt series with a phantom test.
This test will also help to understand the artifacts induced by the different correction methods.
We then illustrate each one of the new improvements on a standard dataset (Experimental
example 1) widely used in ours and others’ publications. Finally, we show the application
of our method to the alignment of datasets in the absence of fiducial markers (Experimental
examples 2 and 3).
### 3.1 Phantom test
Phantom data was used to validate the new model used for alignment and prove its correctness.
First, a phantom volume was created as white dots randomly distributed in a dark background.
The projection of the points were computed using Eq. 1 with variations of shifts, rotation, and
deformation parameters following sine functions. The maximum values were 50 pixels for shift,
2 <sup>_◦_</sup> for in-plane rotation ( _ψi_ ), 0 _._ 02 for magnification ( _mi_ ), 0 _._ 05 for shrinkage ( _ti_ ), 0 _._ 1 for scale on
X axis ( _si_ ) and 0 _._ 5 <sup>_◦_</sup> for shearing angle ( _δi_ ). The reader is referred to the Sec. 2.2.1 for a detailed
explanation of these parameters. The coordinates on the projection images were stored and then
used as input to the procedure to determine all parameters for alignment and deformation. The
parameters of deformation found were very similar to the true ones (Supplementary Material
2). However, to quantitatively assess the effect of the small differences in the deformation
parameters, we calculated the warping index between the true transformations applied to the
phantom at tilt _i_, _Di_, and the estimated ones, _D_ <sup>ˆ</sup> _i_, (Sorzano et al., 2005)
_Ntilts_
_i_ =0
<u>1</u>
_WI_ =
_NvoxelsNtilts_
_Nvoxels_
_j_ =0
_∥_ r _j_ _−_ _D_ <sup>ˆ</sup> _i_
_−_ 1( _Di_ ( r _j_ )) _∥_ 2
where _Nvoxels_ and _Ntilts_ are the number of voxels in the phantom and the number of tilts images
created respectively. r _j_ is the _j_ <sup>_th_</sup> voxel coordinate in the phantoms. On the phantom data used
in Fig. 1 the warping index was 0.24 voxels. This difference is in the subvoxel accuracy, proving
the accuracy of the algorithm.
In Sec. 2.3, we discuss three different ways of correcting the estimated deformations. To
show their effect, three different reconstructions were performed using the true deformations
parameters. As can be seen in Fig. 1, the points on the central plane are perfectly reconstructed
with the different methods of correction of deformations (thin white arrows). The points that
are not on the central plane are perfectly reconstructed only in the case of applying alignment
12
with the 3D projector during the reconstruction process (Method 3; Fig. 1 E and F). With the
other two methods (B and C), the points are reconstructed as triangles (dotted or large white
arrows).
### 3.2 Experimental example 1
In Sec. 2.1 we have introduced several modifications for the detection and tracking of landmarks.
In this section we test these ideas along with the analysis of the different ways of estimating
(Sec. 2.2) and correcting (Sec. 2.3) for the deformation. To evaluate these ideas, several tests
were performed on the TomoJ tutorial data ( _Pyrodictium_ _abyssii_ ) cell strain TAG11 (Rieger
et al., 1995), embedded in vitreous ice layer on holey carbon grid (Sorzano et al., 2009).
3.2.1 Multiscale prealignment with cross-correlation
The total computing time was reduced from 388 s. in our previous method to 4 s. in the
method introduced in this paper using a laptop computer equipped with an Intel i7-4700MQ
processor and 32 GB RAM. This implies a speed-up factor of two orders of magnitude. We
measured the quality of the new prealignment by evaluating the number of landmark chains and
their alignment score. The alignment score of the previous algorithm (Sorzano et al., 2009) and
the new one are very similar, 1.37 and 1.38, respectively. The alignment score is the average
error in pixels between the reprojection of the 3D landmarks and their experimentally observed
positions. However, the number of landmark chains dropped from 2,684 to 2,127. Although
there is a drop of about 20% in the number of chains, there is no drop in the quality of the
detected chains, and the execution time has been reduced by a factor 100.
3.2.2 Seed generation
We evaluated the ability of the new methods to generate seeds using the ratio of final retained
chains versus the number of initial chains (Table 1). We see that in our previous method
the success rate of a seed was about 5.8% that was the probability of a grid point hitting a
feature that could be tracked along the tilt series. We see that the new method is much more
successful resulting in a larger number of final chains and higher success probability. The fact
that adding more seeds per image in the new method reduces the success rate can be explained
by the fact that high quality seeds are chosen first, and adding more seeds per image results in
a degradation of the quality of the added seeds.
3.2.3 Spherical feature optimization
The spherical feature optimization plays a role at two levels. First, the detection of seeds by
filtering with Gaussian function. The effect of this step is to reduce the number of seeds to
track in the subsequent algorithm. The activation of this option with a threshold of fit of 0.5
gives 5,792 seeds instead of the 18,592 found after the detection of local minima. The number
of chains found dropped from 7,708 to 3,176 (1,638 and 943 after fusion respectively) and the
final alignment score is very similar: 1.26 and 1.20 without and with gold bead optimization,
respectively. The main gain is the computation of only 31% of the potential seeds at the expense
of computing the Gaussian fitting. This is confirmed by the total time to compute alignment
13
(detection and alignment) that drops from 10 minutes and 22 seconds to 4 minutes and 46
seconds.
The second role of spherical feature optimization is in the tracking of the seeds. The effect of
the symmetrization during tracking resulted in a lower number of chains found, 1,992 (166 after
fusion), compared to the tracking without symmetrization, 3,176 (943 after fusion). First, the
fusion is more efficient with the symmetrization with only 8% of the chains remaining instead
of 29%. Second, after fusion the length of landmark chains improves from an average length
of 35 to an average length of 47. The number of tracked chains highlights the fact that the
symmetrization limits the selected features to spherical ones. The high level of fusion proves
that few distinct features are found by the procedure. Moreover, the interest of the procedure
for spherical features is confirmed by the increase of average length of landmark chains as long
chains help the future alignment. Adding this symmetrization step allows a new drop in the
total computation time to 2 minutes and 55 seconds.
As can be observed in Fig. 2 the algorithm found many spherical features of different sizes.
Some of them are gold beads present on sample as expected. However, many are just particles
present in ice or even proteins of the archaeon.
3.2.4 Tracking of landmark chains
In Sec. 2.1.4, we have proposed a cross-validation procedure to track a seed along the different
tilt series images. The use of this procedure increased the number of chains from 3,036 to 3,701
(increase of 21%) while keeping similar alignment score (1.48 and 1.54 respectively).
The use of fixed sized chains proves to be efficient. A first experiment was done with the
correlation threshold approach with a minimum size of 15 and threshold of 0.9. It produced
3,702 chains with an average length of 52 and correlation scores ranging from 0.90 to 0.96.
For the fixed size approach, chains of size 31, the algorithm produced twice the number of
chains (7,708) with correlation scores ranging from 0.5 (minimum accepted score) to 0.96.
After alignment, the score obtained slightly improved (1.09 for fixed size and 1.54 for the old
approach).
The fusion of landmarks reduced the number of chains from 7,708 to 1,638 chains. The
fused chains had an average length of 39 images. The chain fusion on the alignment caused a
slight increase of the alignment score from 1.09 to 1.25.
3.2.5 New reconstruction algorithm with deformation compensation
The new reconstruction algorithm was first compared with the previous version. The reconstructions, Fig. 3, show an important improvement. As can be seen, the gold beads pointed by
white arrows display a higher circularity and no banana shape.
Next, we explored the effect of the three different deformation compensation algorithms.
The three compensation schemes were tested. As Fig. 4 shows, visible changes between the
three methods are present. In the case of application using 3D projector during reconstruction
(Method 3) the gold beads pointed by white arrows display less reconstruction artifacts.
14
### 3.3 Experimental example 2
The method was applied on an acquisition of _Trypanosoma_ _brucei_ cilia embedded in Epon
resin. The electron tomography was performed using a JEM 2200FS microscope (JEOL, Tokyo,
Japan) operated at 200 KeV in STEM bright field mode. The tilt series ranged from -75.62 <sup>_◦_</sup> to
+77.62 <sup>_◦_</sup> with a Saxton scheme (Saxton, 1978) for a total number of 97 images. The images,
of a size of 2 _,_ 048 _×_ 2 _,_ 048 pixels, were recorded at nominal magnification of 100,000X with a
pixel size of 1.46 nm. at specimen level. Images were binned by a factor 2 before processing.
The algorithm was applied using the following parameters. For prealignment, the two pass
cross-correlation approach was applied on a region of interest (ROI) centered on image center.
First pass was with a size of 720 _×_ 720 pixels followed by a factor 2 binning. The second pass
was performed on a 360 _×_ 360 pixels size ROI with no additional binning. The generation of
landmarks was done using local minima detection (radius 4 pixels) on band-pass filtered images
(with radius in Fourier images 0 and 256 pixels). 1,800 seeds were detected on each image (on
the 95% central part). The tracking length was 24 images using a 11 _×_ 11 pixels size for the
patch with a minimum allowed correlation of 0.5. After tracking, 111,963 chains were found.
After fusion of these chains, 24,575 remained.
Two independent alignments were produced from the fused chains. The first was with only
shift and rotation, the second with all the deformations defined in Eq. 3. With only shifts and
rotation the final score was 1.99 (average residuals 1.20, isolated residuals 2.79) with 18,083
chains remaining. With deformations, the final alignment score was 1.81 (average residuals
1.09, isolated residuals 2.53) with 21,243 chains remaining. Reconstructions were done using
SART algorithm with 20 iterations and a relaxation coefficient of 0.1. As can be seen in Fig. 5,
the two reconstructions of the cilia seems at first similar proving that the alignment procedure
gives good alignment. However, close examination of the reconstructions shows clear differences
such as microtubules under the membrane in the bottom left corner of the central XY plane.
Without correction of deformations some part of the volume are very good while others are
blurred. With correction of deformations, the reconstruction is well defined in all areas.
### 3.4 Experimental example 3
The method was applied on an acquisition of T5 bacteriophages. Bacteriophages T5st(0),
a heat-stable T5 mutant, were produced in E.coli Fsu _β_ + and purified on CsCl gradient as
described in Boulanger et al. (1996). They were dialysed against 10 mM Tris-HCl pH 7.5, 100
mM NaCl, 1 mM MgCl2, 1 mM CaCl2, and stored at 4 <sup>_◦_</sup> C at a DNA concentration of 7 mg/ml.
3-4 _µl_ of the phage suspension were deposited onto a glow-discharged cryoEM grid (Quantifoil
R2/2). The grid was blotted with a filter paper for 4 s, and plunged into liquid, using a
Vitrobot Mark IV operated at room temperature and 100% relative humidity. Tilt series were
collected at 300 kV on a Titan Krios electron microscope equipped with Volta phase plates, a
GATAN GIF Quantum post-column energy filter and K2 Summit direct electron detector, at
a pixel size of 2.185 Å, using the Serial EM software. A dose-symmetric recording scheme was
used, from a starting angle of 0 <sup>_◦_</sup>, and an angular increment of 2 <sup>_◦_</sup>, within a _±_ 60 <sup>_◦_</sup> angular range.
The electron dose was set to 1 _._ 2 _e/_ Å <sup>2</sup> for individual images, corresponding to a total dose of
73 _._ 2 _e/_ Å <sup>2</sup> . Images were binned by a factor 2 before processing. The algorithm was applied
using the following parameters. For prealignment, the two pass cross-correlation was applied.
First pass was with a size of 1 _,_ 024 _×_ 1 _,_ 024 pixels followed by a factor 2 binning. The second
15
pass was performed on a 512 _×_ 512 pixels size ROI with no additional binning. The generation
of seeds was done local minima detection (radius 15 pixels) on band-pass filtered images (with
radius in Fourier images 2 and 125 pixels) with 2,000 seeds detected on each images (on the
90% central part). The tracking length was 12 images using a 41 _×_ 41 pixels size for the patch
with a minimum correlation allowed of 0.3. The algorithm identified 787 chains found after
fusion. The alignment with all deformations was computed with this new chains resulting in
a score of 3.33 (average residual 2.21, isolated residual 4.48) with 444 chains remaining. The
reconstruction was SART with 600 iterations and a relaxation coefficient of 0.01. As can be seen
in Fig. 6A, the viruses were well defined (the zoomed views are filtered using a 3D Gaussian
blur of radius 1). Around half of them were intact and still contain their DNA inside (Fig.
6, B and C) while the other half were empty with broken capside. Interestingly, three of the
empty viruses seemed to have some DNA chains still connected to the tail. The tails were well
defined (Fig. 6, H and I) with a periodic structure clearly identifiable (Fig 6, I’) as helicoidal
with a pitch of 43.6Å and a twist of 38.66 <sup>_◦_</sup> (in Effantin et al. (2006) the values described were
43.8Åand 39.4 <sup>_◦_</sup> respectively). The tail end is capped with the central fiber and lateral fibers
were connected (Fig. 6, E and F). Some of the tails have lost the capping by the central fiber,
they corresponded to empty viruses, even if no link to this state can be made at the moment
(Fig. 6, G). The only gold bead present in this sample showed no deformation (Fig. 6, J and
J’)
## 4 Conclusions
We have shown with phantom data that the new methods are capable to properly estimate
the underlying deformations. The correction of these deformations was shown to be better
when done during 3D reconstruction than when applied on 2D projection images. This can
be explained by the fact that the two methods correcting deformations by modifying the 2D
projections consider that all points on the images come from the same plane (see Method 2
derivation). However, these two corrections provide fast approximations to the more expensive
3D full correction. The parameters used to create the phantom data are larger than the ones
usually found on experimental data, thus, this artifact is much less visible in experimental data,
although it is present.
The differences between the affine transform and the nonlinear transform are small, even if in
theory the nonlinear version should be better. The main drawback of the affine transformation
is that it is correct only in the central plane, but not in the other planes of the reconstruction.
On the other side, the nonlinear correction is computationally more demanding as the step to
create the aligned image is more complex.
On experimental data, the improvement of seed detection and tracking helps to produce
better chains with easier parameterization of the algorithm. The alignment with deformations
proved to be worthy even on cryo-tomography data. The algorithm permits a detailed analysis
of the different parameters in the deformations. The correction of the deformation proved to be
more efficient with Method 3. The method proved efficient in aligning cryo-tomography data
without the need of gold beads.
16
### Acknowledgements
We thank S. Trepout for the STEM dataset on cilia of _Trypanosoma brucei_, M. de Frutos (LPS,
Orsay) for phage purification and J. Ortiz (IGBMC, Strasbourg) for tilt series acquisition.
We thank financial support from the Spanish Ministry of Economy and Competitiveness
through Grants BIO2016-76400-R(AEI/FEDER, UE), the “Comunidad Autónoma de Madrid”
through Grant: S2017/BMD-3817, Instituto de Salud Carlos III, PT17/0009/0010 (ISCIIISGEFI/ERDF), European Union (EU) and Horizon 2020 through grants: CORBEL (INFRADEV1-2014-1, Proposal: 654248), INSTRUCT-ULTRA (INFRADEV-03-2016-2017, Proposal: 731005),
EOSC Life (INFRAEOSC-04-2018, Proposal: 824087), HighResCells (ERC-2018-SyG, Proposal: 810057), IMpaCT (WIDESPREAD-03-2018 - Proposal: 857203), EOSC-Synergy (EINFRAEOSC-5, Proposal: 857647), and iNEXT-Discovery (Proposal: 871037). The authors acknowledge the support and the use of resources of Instruct, a Landmark ESFRI project.
## References
Abramoff, M. D., Magelhaes, P. J., Ram, S. J., 2004. Image processing with ImageJ. Biopho
tonics Intl. 11, 36–42.
Amat, F., Moussavi, F., Comolli, L. R., Elidan, G., Downing, K. H., Horowitz, M., Mar. 2008.
Markov random field based automatic image alignment for electron tomography. J. Structural
Biology 161, 260–275.
Boulanger, P., Le Maire, M., Bonhivers, M., Dubois, S., Desmadril, M., Letellier, L., 1996.
Purification and structural and functional characterization of fhua, a transporter of the _Es-_
_cherichia_ _coli_ outer membrane. Biochemistry 35, 14216–14224.
Brandt, S., Heikkonen, J., Engehardt, P., 2001. Automatic alignment of transmission electron
microscope tilt series without fiducial markers. J. Structural Biology 136, 201–213.
Castaño Díez, D., Scheffer, M., Al-Amoudi, A., Frangakis, A. S., Apr 2010. Alignator: a gpu
powered software package for robust fiducial-less alignment of cryo tilt-series. J. Structural
Biology 170 (1), 117–126.
Donohoe, B. S., Mogelsvang, S., Staehelin, L. A., 2006. Electron tomography of er, golgi and
related membrane systems. Methods 39, 154–162.
Effantin, G., Boulanger, P., Neumann, E., Letellier, L., Conway, J., 2006. Bacteriophage T5
structure reveals similarities with hk97 and t4 suggesting evolutionary relationships. J. Molecular Biology 361 (5), 993–1002.
Florea, I., Ersen, O., Arenal, R., Ihiawakrim, D., Messaoudi, C., Chizari, K., Janowska, I.,
Pham-Huu, C., 2012. 3d analysis of the morphology and spatial distribution of nitrogen in
nitrogen-doped carbon nanotubes by energy-filtered transmission electron microscopy tomography. Journal of the American Chemical Society 134 (23), 9672–9680.
Frank, J., 2006. Three-Dimensional Electron Microscopy of Macromolecular Assemblies: Vi
sualization of Biological Molecules in Their Native State. Oxford Univ. Press, New York,
USA.
17
Frank, J., McEwen, B. F., 1992. Alignment by cross-correlation. In: Electron tomography.
Springer, pp. 205–213.
Han, R., Zhang, F., Gao, X., Mar. 2018. A fast fiducial marker tracking model for fully auto
matic alignment in electron tomography. Bioinformatics 34, 853–863.
Hata, S., Miyazaki, H., Miyazaki, S., Mitsuhara, M., Tanaka, M., Kaneko, K., Higashida, K.,
Ikeda, K., Nakashima, H., Matsumura, S., Barnard, J. S., Sharp, J. H., Midgley, P. A., 2011.
High-angle triple-axis specimen holder for three-dimensional diffraction contrast imaging in
transmission electron microscopy. Ultramicroscopy 111, 1168–1175.
Kovtun, O., Leneva, N., Bykov, Y. S., Ariotti, N., Teasdale, R. D., Schaffer, M., Engel, B. D.,
Owen, D. J., Briggs, J. A. G., Collins, B. M., Sep. 2018. Structure of the membrane-assembled
retromer coat determined by cryo-electron tomography. Nature 561, 561–564.
Mastronarde, D. N., 1997. Dual-axis tomography: an approach with alignment methods that
preserve resolution. J. Structural Biology 120, 343–352.
Mastronarde, D. N., 2006. Electron tomography. Springer, Ch. Fiducial marker and hybrid
alignment methods for single- and double-axis tomography, pp. 163–186.
Mastronarde, D. N., Held, S. R., 2017. Automated tilt series alignment and tomographic re
construction in imod. J. Structural Biology 197, 102–113.
Mattei, S., Tan, A., Glass, B., Müller, B., Kräusslich, H.-G., Briggs, J. A. G., 2018. High
resolution structures of HIV-1 gag cleavage mutants determine structural switch for virus
maturation. Proc. Natl. Acad. Sci. USA 115, E9401–E9410.
Messaoudi, C., Boudier, T., Sorzano, C. O. S., Marco, S., 2007. TomoJ: software for multiple
axis tomography. BMC Bioinformatics 8, 288.
Messaoudi, C., De Loubresse, N. G., Boudier, T., Dupuis-Williams, P., Marco, S., 2006.
Multiple-axis tomography: applications to basal bodies from paramecium tetraurelia. Biology of the Cell 98 (7), 415–425.
Midgley, P. A., Dunin-Borkowski, R. E., 2009. Electron tomography and holography in materials
science. Nature materials 8 (4), 271.
Pfeffer, S., Mahamid, J., 2018. Unravelling molecular complexity in structural cell biology.
Current opinion in structural biology 52, 111–118.
Rieger, G., Rachel, R., Hermann, R., Stetter, K. O., 1995. Ultrastructure of the hyperther
mophilic archaeon _Pyrodictium_ _abyssi_ . J. Structural Biology 115, 78–87.
Saxton, W. O., 1978. Computer Techniques for Image Processing of Electron Microscopy. Aca
demic Press.
Schneider, C. A., Rasband, W. S., Eliceiri, K. W., 2012. NIH image to ImageJ: 25 years of
image analysis. Nature methods 9 (7), 671.
18
Sorzano, C. O. S., Alcorlo, M., de la Rosa-Trevín, J. M., Melero, R., Foche, I., Zaldívar
Peraza, A., del Cano, L., Vargas, J., Abrishami, V., Otón, J., Marabini, R., Carazo, J. M.,
2015. Cryo-EM and the elucidation of new macromolecular structures: Random conical tilt
revisited. Sci Rep 5, 14290.
Sorzano, C. O. S., Marabini, R., Vargas, J., Otón, J., Cuenca-Alba, J., Quintana, A., de la
Rosa-Trevín, J. M., Carazo, J. M., 2014. Computational Methods for Three-Dimensional
Microscopy Reconstruction. Springer, Ch. Interchanging geometry information in electron
microscopy single particle analysis: mathematical context for the development of a standard,
pp. 7–42.
Sorzano, C. O. S., Messaoudi, C., Eibauer, M., Bilbao-Castro, J. R., Hegerl, R., Nickell, S.,
Marco, S., Carazo, J. M., 2009. Marker-free image registration of electron tomography tiltseries. BMC Bioinformatics 10, 124.
Sorzano, C. O. S., Thévenaz, P., Unser, M., 2005. Elastic registration of biological images using
vector-spline regularization. IEEE Trans. on Biomedical Engineering 52, 652–663.
Zampighi, G. A., Zampighi, L., Fain, N., Wright, E. M., Cantele, F., Lanzavecchia, S., 2005.
Conical tomography ii: A method for the study of cellular organelles in thin sections. J.
Structural Biology 151, 263–274.
## Figures
19
Figure 1: Comparison of the reconstructions of the phantom with the different method of
correction of deformation. Each image corresponds to the sum of XZ planes to better see the
artifacts: (A) no correction of deformations, (B) correction using 2D affine transforms, (C)
correction using 2D non-linear mapping, (D) optimal reconstruction if no deformation exists,
(E) correction using 3D projector integrated in reconstruction, (F) correction using 3D projector
integrated in reconstruction with deformations computed from landmarks. White arrows point
to features. Near the central plane (thin arrows), the feature are well reconstructed with all
methods of correction of deformation. The features above (dotted arrows) or far (large arrows)
from central plane display correction of the in-plane deformation, but show triangular shapes
unless the 3D projector is employed.
20
Figure 2: Visualization of landmarks chains found with the gold bead-like optimization. A)
The landmarks found are displayed with green circles on the projection image near 0 <sup>_◦_</sup> . B) zoom
on a region with gold bead. C) zoom on a region with no gold bead, but sufficiently spherically
symmetric, distinctive features.
21
Figure 3: Comparison of reconstructions obtained with different alignment models. The first
column corresponds to alignment using our old alignment model (Sorzano et al., 2009), the
second column displays the result of the new model with only shifts and in-plane rotation (this
experiment shows the improvements not due to the 3D deformation model), and third column
shows the result of the new model with deformation correction. The top row corresponds to
the central XY plane. The second and third rows correspond to the XZ plane number 49 and
315, respectively. White arrows points to features with visible change between algorithms.
Black arrows points the plastic of holey grid where change in shape is visible. The scale bar
corresponds to 500 nm.
22
Figure 4: Comparison of the methods of application of alignment with deformations. The
top row corresponds to the central XY plane. The second and thirds row correspond to the
XZ plane number 49 and 315, respectively. The first column corresponds to method 3 with
application during reconstruction process. The second column corresponds to method 2 with
non-linear mapping. The third column corresponds to method 1 with linear mapping. White
arrows point to features with visible change between algorithms. Scale bar corresponds to 500
nm.
23
Figure 5: Comparison of the reconstructions of _Trypanosoma_ _Brucei_ cilia obtained with or
without deformation. A and C: Central slice in XY and XZ direction respectively from the
reconstruction with deformation correction, B and D: Central slice in XY and XZ direction
respectively from the reconstruction without correction of deformations. a, b, c, d, e zoomed-in
region corresponding to the areas delimited by white squares on central slices from reconstruction with deformation correction. a’, b’, c’, d’, e’ zoomed-in region from reconstruction without
correction of deformations corresponding to the same areas as a, b, c, d, e respectively (delimited by white squares on central slices). White arrows points to details improved in the
reconstruction with deformation correction. The scale bar corresponds to 200 nm.
24
Figure 6: Reconstructions of bacteriophage T5. A) plane from the reconstruction. B to D
zoom on virus either filled with DNA (B and C) or empty except for a brand of DNA going
through the tail (white arrow). E to G zoom on tail extremity, when viruses are filled with
DNA the tail fibers are clearly identifiable in E and F: central fiber is pointed by white arrow,
and lateral by dotted arrow ; when viruses are empty, the central fiber is lost and the tail is
open. H zoom on tail, I average of a tail and I’ its Fourier transform with spots corresponding
to helical structure the pitch angle (green lines) is 38 <sup>_◦_</sup> . J gold bead and j’ view in XZ plane.
Scale bar corresponds to 200 nm.
25
## Tables
<u>Grid</u> <u>(Sorzano</u> <u>et</u> <u>al.,</u> <u>2009)</u>
<u>seeds/image</u> <u>final</u> <u>chains</u> <u>success</u> <u>(%)</u> <u>alignment</u> <u>score</u>
400 2,127 5.8 1.47
225 1,196 5.8 1.48
100 528 5.8 1.33
49 265 5.9 1.66
<u>25</u> <u>98</u> <u>4.3</u> <u>1.21</u>
<u>Local</u> <u>minima</u> <u>(new</u> <u>method)</u>
<u>seeds/image</u> <u>final</u> <u>chains</u> <u>success</u> <u>(%)</u> <u>alignment</u> <u>score</u>
400 3,194 8.6 1.46
225 3,074 14.7 1.48
100 2,643 28.4 1.51
49 1,573 34.1 1.36
<u>25</u> <u>867</u> <u>36.1</u> <u>1.13</u>
Table 1: Comparison of the method of seeds determination. For our previous and current
methods. The table shows the number of seeds per image, the number of final chains, the
success probability of a seed to generate a final chain, and the alignment score in pixels.
## Additional Files
### Additional file 1 — Demonstration of model parameters determination.
The file contains the mathematical explanations to determine all parameters of the model with
deformation.
### Additional file 2 — Excel file containing all parameters of shifts, rota- tions and deformations applied to phantom data and the parameters found by the algorithm.
First page is the original parameters, second page corresponds to computed parameters and
third page display graphs to compare the parameters.
26
# Supplementary material
### May 22, 2020
## 1 Update of the model parameters
<u>In-plane,</u> <u>image</u> <u>shift:</u> <u>d</u> _<u>i</u>_
_D_ d _iE_ = 0 =
_j∈Vi_
( _−_ 2 _Wj_ p _ij_ + 2 _Wj_ d _i_ + 2 _WjAi_ r _j_ )
_Wj_ ( _Ai_ r _j_ _−_ p _ij_ ) = 0 _⇒_
=
d _i_ =
_j∈Vi_
_j∈Vi_
_Wj_
_Wj_
- _−_ 1 �
_j∈Vi_
d _i_ + <sup>�</sup>
_j∈Vi_
_Wj_ ( p _ij_ _−_ _Ai_ r _j_ )
That is, using the current estimates of the alignment parameters we update the in-plane shift
as
- _−_ 1 �
_j∈Vi_
- _−_ 1 �
_j∈Vi_
- _−_ 1 �
_j∈Vi_
- _−_ 1 �
_j∈Vi_
d <sup>(</sup> _<u>i</u>_ <sup>_k_</sup> <sup>+1)</sup> =
=
=
=
_j∈Vi_
_j∈Vi_
_j∈Vi_
_j∈Vi_
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> ( p _ij_ _−_ _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> <sup>r</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _j_ <sup>_k_</sup> <sup>))</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> ( e <sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup> <sup>+</sup> <sup>d</sup> <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>))</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> e <sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup> <sup>+</sup> <sup>�</sup>
_j∈Vi_
_i_
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> d <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
d <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> e <sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_ij_ <sup>+</sup>
_j∈Vi_
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<u>�</u> _−_ 1 ��
_j∈Vi_
<u>�</u>
= d <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> +
<u>��</u>
_j∈Vi_
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> e <sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup>
_ij_
In the particular case of _λ_ = 0, then <sup>�</sup>
_j∈Vi_
the form
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> simplifies to _NiI_ and the update equation takes
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> + <sup><u>1</u></sup>
d <sup>(</sup> _i_ <sup>_k_</sup> <sup>+1)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>+1)</sup> = d <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_Ni_
_j∈Vi_
e <sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup>
1
<u>3D</u> <u>landmark:</u> <u>r</u> _<u>j</u>_
_D_ r _j_ _E_ = 0 =
_i∈Vj_
( _−_ 2 _A_ <sup>_t_</sup> _i_
<sup>_t_</sup> _i_ <sup>_Wj_</sup> <sup>p</sup> <sup>_ij_</sup> <sup>+ 2</sup> <sup>_At_</sup> _i_
<sup>_t_</sup> _i_ <sup>_WjAi_</sup> <sup>r</sup> <sup>_j_</sup> <sup>+ 2</sup> <sup>_At_</sup> _i_
<sup>_t_</sup> _i_ <sup>_Wj_</sup> <sup>d</sup> <sup>_i_</sup> <sup>)</sup>
_A_ <sup>_t_</sup> _i_ <sup>_WjAi_</sup>
r _j_ + <sup>�</sup>
_i∈Vj_
_A_ <sup>_t_</sup> _i_ <sup>_Wj_</sup> <sup>(</sup> <sup>d</sup> <sup>_i_</sup> <sup>_−_</sup> <sup>p</sup> <sup>_ij_</sup> <sup>)</sup> <sup>_⇒_</sup>
=
r _j_ =
_i∈Vj_
_i∈Vj_
_A_ <sup>_t_</sup> _i_ <sup>_WjAi_</sup>
_A_ <sup>_t_</sup> _i_
- _−_ 1 �
<sup>_i_</sup>
_i∈Vj_
_A_ <sup>_t_</sup> _i_ <sup>_Wj_</sup> <sup>(</sup> <sup>p</sup> <sup>_ij_</sup> <sup>_−_</sup> <sup>d</sup> <sup>_i_</sup> <sup>)</sup>
That is, using the current estimates of the alignment parameters we update the 3D landmarks
as
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> ( p _ij_ _−_ d <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>))</sup>
( _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>))</sup> <sup>_tW_</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
r <sup>(</sup> _j_ <sup>_k_</sup> <sup>+1)</sup> =
=
=
=
_i∈Vj_
_i∈Vj_
_i∈Vj_
_i∈Vj_
( _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
( _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>))</sup> <sup>_tW_</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>))</sup> <sup>_tW_</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_i_
( _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>))</sup> <sup>_tW_</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_i_
( _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>))</sup> <sup>_tW_</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> ( e <sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup> <sup>+</sup> <sup>_A_</sup> <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> <sup>r</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _j_ <sup>_k_</sup> <sup>))</sup>
( _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_i_
<sup>(</sup> _i_ <sup>_k_</sup> <sup>))</sup> <sup>_tW_</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>))</sup> <sup>_tW_</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> e <sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup> <sup>+</sup> <sup>�</sup>
_i∈Vj_
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> <sup>r</sup> _j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_
( _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
( _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>))</sup> <sup>_tW_</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_i_
- _−_ 1 �
_i∈Vj_
- _−_ 1 �
_i∈Vj_
- _−_ 1 �
_i∈Vj_
- _−_ 1 �
_i∈Vj_
( _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>))</sup> <sup>_tW_</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> e <sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_ij_ <sup>+</sup>
_i∈Vj_
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_i_
r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
( _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>))</sup> <sup>_tW_</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_−_ 1 <sup><u></u></sup>
<sup>�</sup>
_i∈Vj_
<sup>(</sup> _i_ <sup>_k_</sup> <sup>))</sup> <sup>_tW_</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
= r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> +
<u></u>
<sup>�</sup>
_i∈Vj_
<sup>(</sup> _i_ <sup>_k_</sup> <sup>))</sup> <sup>_tW_</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
( _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_i_
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> e <sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup>
_ij_
<u></u>
( _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<u></u>
In the case of _λ_ = 0, _Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> = _I_ .
<u>Vertical</u> <u>compression:</u> _<u>ti</u>_
_DtiE_ = 0 =
- _D_ vec( _Ai_ ) _E_
�� _D_ vec( _Di_ )vec( _Ai_ )� ( _Dti_ vec( _Di_ ))
Let us calculate the different terms appearing in the expression above
<sup>_t_</sup> _j_ <sup>) + vec(2</sup> <sup>_Wj_</sup> <sup>d</sup> <sup>_i_</sup> <sup>r</sup> <sup>_t_</sup> _j_
<sup>_t_</sup> _j_ <sup>)</sup>
- _t_
_D_ vec( _Ai_ ) _E_ =
_j∈Vi_
=
_j∈Vi_
�vec( _−_ 2 _Wj_ p _ij_ r <sup>_t_</sup> _j_
<sup>_t_</sup> _j_ <sup>) + vec(2</sup> <sup>_WjAi_</sup> <sup>r</sup> <sup>_j_</sup> <sup>r</sup> <sup>_t_</sup> _j_
�2vec( _Wj_ ( _Ai_ r _j_ + d _i −_ p _ij_ ) r <sup>_t_</sup> _j_ <sup>)</sup> - _t_
- _t_
= _−_ 2 <sup>�</sup>
_j∈Vi_
�vec( _Wj_ e _ij_ r <sup>_t_</sup> _j_
<sup>_t_</sup> _j_ <sup>)</sup>
_D_ vec( _Di_ )vec( _Ai_ ) = _I_ 3 _⊗_ _HRψiRθi,_ u _axis_
_Dti_ vec( _Di_ ) = (0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _, mi_ ) <sup>_t_</sup>
Gathering all terms
- _t_ ( _I_ 3 _⊗_ _HRi_ ) (0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _, mi_ ) _t_
_DtiE_ = 0 = _−_ 2 <sup>�</sup>
_j∈Vi_
�vec( _Wj_ e _ij_ r <sup>_t_</sup> _j_
<sup>_t_</sup> _j_ <sup>)</sup>
= _−_ 2 <sup>�</sup>
_j∈Vi_
_mirjz_ z <sup>_t_</sup> _Ri_ <sup>_tH_</sup> <sup>_tWj_</sup> <sup>e</sup> <sup>_ij_</sup>
2
Let us define the scalar product
_⟨_ x _,_ y _⟩A_ = x <sup>_t_</sup> _A_ y
being _A_ a symmetric matrix. Then, the derivative above is
_DtiE_ = 0 = _−_ 2 _mi_
_j∈Vi_
_⟨HRirjz_ z _,_ e _ij⟩Wj_
=
_j∈Vi_
_⟨HRirjz_ z _,_ e _ij⟩Wj_
Let us expand e _ij_ = p _ij_ _−_ _Ai_ r _j_ _−_ d _i_ in the expression above
_j∈Vi_
_⟨HRirjz_ z _,_ e _ij⟩Wj_ =
_j∈Vi_
=
_j∈Vi_
_⟨HRirjz_ z _,_ p _ij_ _−_ d _i⟩Wj_ _−_ <sup>�</sup>
_j∈Vi_
_⟨HRirjz_ z _,_ p _ij_ _−_ _Ai_ r _j_ _−_ d _i⟩Wj_
_⟨HRirjz_ z _, Ai_ r _j⟩Wj_
Let us analyze further the term _⟨HRirjz_ z _, Ai_ r _j⟩Wj_
_⟨HRirjz_ z _, Ai_ r _j⟩Wj_ = _⟨HRirjz_ z _, HRiDi_ r _j⟩Wj_
If we decompose _Di_ as
_misi_ cos( _δi_ ) 0 0
_misi_ sin( _δi_ ) _mi_ 0
0 0 0
+
_Di_ = _D_ <sup>˜</sup> _i_ + _D_ <sup>ˆ</sup> _i_ =
0 0 0
0 0 0
0 0 _miti_
then,
_⟨HRirjz_ z _, Ai_ r _j⟩Wj_ =
- _HRirjz_ z _, HRiD_ <sup>ˆ</sup> _i_ r _j_
_Wj_
-
= _HRirjz_ z _, HRiD_ <sup>˜</sup> _i_ r _j_ _Wj_ <sup>+</sup> <sup>_miti ⟨HRirjz_</sup> <sup>z</sup> <sup>_, HRirjz_</sup> <sup>z</sup>
_Wj_ <sup>+</sup>
_Wj_ <sup>+</sup> <sup>_miti ⟨HRirjz_</sup> <sup>z</sup> <sup>_, HRirjz_</sup> <sup>z</sup> <sup>_⟩Wj_</sup>
_Wj_
_Wj_ <sup>+</sup> <sup>_miti∥HRirjz_</sup> <sup>z</sup> <sup>_∥_</sup> <sup>2</sup>
=
Going back to the derivative
- _HRirjz_ z _, HRiD_ <sup>˜</sup> _i_ r _j_
- _HRirjz_ z _, HRiD_ <sup>˜</sup> _i_ r _j_
- _HRirjz_ z _, HRiD_ <sup>˜</sup> _i_ r _j_
_j∈Vi_
_⟨HRirjz_ z _,_ p _ij_ _−_ d _i⟩Wj_ =
_j∈Vi_
=
_j∈Vi_
_⟨HRirjz_ z _, Ai_ r _j⟩Wj_
��
_HRirjz_ z _, HRiD_ <sup>˜</sup> _i_ r _j_
_Wj_
_Wj_ <sup>+</sup> <sup>_miti∥HRirjz_</sup> <sup>z</sup> <sup>_∥_</sup> <sup>2</sup>
or equivalently
_j∈Vi_
- _HRirjz_ z _,_ p _ij_ _−_ _HRiD_ <sup>˜</sup> _i_ r _j_ _−_ d _i_
3
= _miti_
_Wj_
_∥HRirjz_ z _∥_ <sup>2</sup> _Wj_
_j∈Vi_
Finally, using the current estimates of the parameters
- _HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_rjz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup> <sup>_,_</sup> <sup>p</sup> <sup>_ij_</sup> <sup>_−HR_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> _−_ d <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˜ _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _rjz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_<u>j</u>_ _j∈Vi_ _<u>j</u>_
_m_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> <u>�</u> _∥HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _rjz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup> <sup>_∥_</sup> <sup>2</sup>
_<u>j</u>_
<sup>(</sup> _i_
_t_ <sup>(</sup> _<u>i</u>_ <sup>_k_</sup> <sup>+1)</sup> =
=
=
_j∈Vi_
_j∈Vi_
_j∈Vi_
<u>�</u>
_∥HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_<u>j</u>_
_m_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> <u>�</u> _∥HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _rjz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup> <sup>_∥_</sup> <sup>2</sup>
_jz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup> <sup>_∥_</sup> <sup>2</sup>
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_∥HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _r_
_i_
_j∈Vi_
<u>�</u>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _rjz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup>
_j_
- _HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_rjz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup> <sup>_,_</sup> <sup>e</sup> <sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _rjz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _ij_ <sup>_k_</sup> <sup>)+</sup> <sup>_HR_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˆ _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
ˆ _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_j_
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_<u>j</u>_
_m_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> <u>�</u> _∥HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _rjz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup> <sup>_∥_</sup> <sup>2</sup>
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_jz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup> <sup>_∥_</sup> <sup>2</sup>
_∥HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_
_j∈Vi_
<u>�</u>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _rjz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup>
_j_
- _HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_rjz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup> <sup>_,_</sup> <sup>e</sup> _ij_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
+ _m_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _t_
_jz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup> <sup>_,HR_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _rjz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_ij_
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _rjz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_jz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup>
- _HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _t_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_i_
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _rjz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
_jz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup> <sup>_∥_</sup> <sup>2</sup>
_W_
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _rjz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_<u>j</u>_
_jz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup> <sup>_,_</sup> <sup>e</sup> _ij_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_ij_
<u>�</u>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<u>�</u>
<u>�</u> _HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<u>1</u>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> +
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_r_</sup> _jz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
= _t_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_m_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
_i_ _j_
<u>�</u> _∥HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_r_</sup> _jz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup> <sup>_∥_</sup> <sup>2</sup>
_∥HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_jz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>z</sup> <sup>_∥_</sup> <sup>2</sup> _W_
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_
_i_
_j∈Vi_
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_r_</sup> _jz_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<u>Global</u> <u>compression:</u> _<u>mi</u>_
The derivation for _mi_ is totally analogous to the one of _ti_
_DmiE_ = 0 =
- _D_ vec( _Ai_ ) _E_
�� _D_ vec( _Di_ )vec( _Ai_ )� ( _Dmi_ vec( _Di_ ))
�� _D_ vec( _Di_ )vec( _Ai_ )
except that
Then
_Dmi_ vec( _Di_ ) = ( _si_ cos( _δi_ ) _, si_ sin( _δi_ ) _,_ 0 _,_ 0 _,_ 1 _,_ 0 _,_ 0 _,_ 0 _, ti_ ) <sup>_t_</sup> = <sup><u>1</u></sup>
_mi_
vec( _Di_ )
<u>1</u>
- _t_ ( _I_ 3 _⊗_ _HRi_ ) _mi_ <sup>vec(</sup> <sup>_Di_</sup> <sup>)</sup>
_DmiE_ = 0 = _−_ 2 <sup>�</sup>
_j∈Vi_
�vec( _Wj_ e _ij_ r <sup>_t_</sup> _j_
<sup>_t_</sup> _j_ <sup>)</sup>
= _−_ <sup><u>2</u></sup>
_mi_
_j∈Vi_
- r <sup>_t_</sup> _j_
_i_ <sup>_tR_</sup> _i_ <sup>_t_</sup>
_i_ <sup>_tH_</sup> <sup>_tWj_</sup> <sup>e</sup> <sup>_ij_</sup>
<sup>_t_</sup> _j_ <sup>_D_</sup> _i_ <sup>_t_</sup>
= - _⟨Ai_ r _j,_ e _ij⟩Wj_
_j∈Vi_
We now expand e _ij_
_j∈Vi_
_⟨Ai_ r _j,_ e _ij⟩Wj_ =
_j∈Vi_
=
_j∈Vi_
=
_j∈Vi_
_⟨Ai_ r _j,_ p _ij_ _−_ _Ai_ r _j_ _−_ d _i⟩Wj_
_⟨Ai_ r _j,_ p _ij_ _−_ d _i⟩Wj_ _−_ <sup>�</sup>
_j∈Vi_
_⟨Ai_ r _j,_ p _ij_ _−_ d _i⟩Wj_ _−_ <sup>�</sup>
_j∈Vi_
_⟨Ai_ r _j, Ai_ r _j⟩Wj_
- _Ai_ r _j,_ _m_ <u>1</u> _i_ <sup>_Ai_</sup> <sup>r</sup> <sup>_j_</sup>
_Wj_
_mi_
Going back to the derivative equation
_Wj_
_j∈Vi_
_⟨Ai_ r _j,_ p _ij_ _−_ d _i⟩Wj_ = _mi_
4
- _Ai_ r _j,_ _m_ <u>1</u> _i_ <sup>_Ai_</sup> <sup>r</sup> <sup>_j_</sup>
_j∈Vi_
Using the current estimates of the parameters
- _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> _,_ p _ij_ _−_ d <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_i_
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_m_ <sup>(</sup> _<u>i</u>_ <sup>_k_</sup> <sup>+1)</sup> =
_j∈Vi_ _<u>j</u>_
<u>�</u> <u>�</u>
- _A_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _,_ <u>1</u> _A_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
<u>�</u>
<u>�</u>
_m_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> _,_ _m_ <sup>(</sup> <u>1</u>
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_
_j_
_A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_i_
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> _,_ p _ij_ _−_ d <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_i_
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
_j∈Vi_
<u></u>
- _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
<u>�</u>
= _m_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_<u>j</u>_
2
<u>�</u> <u>���</u> _A_ ( _k_ ) r <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <u>���</u>
<u>���2</u> _W_
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_
_j∈Vi_
<u>���</u> _Ai_ ( _k_ ) r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_j_
- _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> _,_ e <sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _ij_ <sup>_k_</sup> <sup>)+</sup> <sup>_Ai_</sup> <sup>r</sup> _j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
= _m_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_<u>j</u>_
2
<u>�</u> <u>���</u> _A_ ( _k_ ) r <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <u>���</u>
<u>���</u> _Ai_ ( _k_ ) r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_<u>j</u>_
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<u>���2</u> _W_
_j∈Vi_
_j_
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> <sup>_,_</sup> <sup>e</sup> _ij_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_ij_
<u>�</u>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<u>�</u> _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> <sup>r</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
<u></u>
= _m_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
= _m_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>1 +</sup>
_j∈Vi_
_i_ _j_
2
<u>�</u> <u>���</u> _Ai_ ( _k_ ) <sup>r</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <u>���</u>
_j_
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<u>���2</u> _W_
_j∈Vi_
<u>���</u> _Ai_ ( _k_ ) <sup>r</sup> _j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_
<u>Scaling</u> <u>along</u> _<u>X</u>_ <u>:</u> _<u>si</u>_
Similarly to the previous two cases
�� _D_ vec( _Di_ )vec( _Ai_ )� ( _Dsi_ vec( _Di_ ))
_DsiE_ = 0 =
- _D_ vec( _Ai_ ) _E_
with
_Dsi_ vec( _Di_ ) = ( _mi_ cos( _δi_ ) _, mi_ sin( _δi_ ) _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0) <sup>_t_</sup>
The derivative becomes
- _t_ ( _I_ 3 _⊗_ _HRi_ ) ( _mi_ cos( _δi_ ) _, mi_ sin( _δi_ ) _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0) _t_
_DsiE_ = 0 = _−_ 2 <sup>�</sup>
_j∈Vi_
�vec( _Wj_ e _ij_ r <sup>_t_</sup> _j_
<sup>_t_</sup> _j_ <sup>)</sup>
= _−_ 2 <sup>�</sup>
_j∈Vi_
- _s_ <u>1</u> _i_ <sup>_rjx_</sup> <sup>x</sup> <sup>_tD_</sup> _i_ <sup>_t_</sup>
_i_ <sup>_tR_</sup> _i_ <sup>_t_</sup>
_i_ <sup>_tH_</sup> <sup>_tWj_</sup> <sup>e</sup> <sup>_ij_</sup>
=
_j∈Vi_
Let us expand e _ij_
_⟨Airjx_ x _,_ e _ij⟩Wj_
_j∈Vi_
_⟨Airjx_ x _,_ e _ij⟩Wj_ =
_j∈Vi_
=
_j∈Vi_
=
_j∈Vi_
_⟨Airjx_ x _,_ p _ij_ _−_ _Ai_ r _j_ _−_ d _i⟩Wj_
_⟨Airjx_ x _,_ p _ij_ _−_ d _i⟩Wj_ _−_ <sup>�</sup>
_j∈Vi_
_⟨Airjx_ x _,_ p _ij_ _−_ d _i⟩Wj_ _−_ <sup>�</sup>
_j∈Vi_
_⟨Airjx_ x _, Ai_ r _j⟩Wj_
_⟨Airjx_ x _, HRiDi_ r _j⟩Wj_
We now decompose _Di_ as
_Di_ = _siD_ <sup>˜</sup> _i_ + _D_ <sup>ˆ</sup> _i_ = _si_
_mi_ cos( _δi_ ) 0 0
_mi_ sin( _δi_ ) 0 0
0 0 0
+
0 0 0
0 _mi_ 0
0 0 _miti_
and analyze the term _⟨Airjx_ x _, HRiDi_ r _j⟩Wj_
_⟨Airjx_ x _, HRiDi_ r _j⟩Wj_ =
- _Airjx_ x _, HRi_ ( _siD_ <sup>˜</sup> _i_ + _D_ <sup>ˆ</sup> _i_ ) r _j_
_Wj_
- -
= _si_ _Airjx_ x _, HRiD_ <sup>˜</sup> _i_ r _j_ _Ai_
_Wj_ <sup>+</sup>
- _Airjx_ x _, HRiD_ <sup>˜</sup> _i_ r _j_
_Wj_ <sup>+</sup>
_Wj_
- _Airjx_ x _, HRiD_ <sup>ˆ</sup> _i_ r _j_
5
Going back to the derivative
_j∈Vi_
_⟨Airjx_ x _,_ p _ij_ _−_ d _i⟩Wj_ =
_j∈Vi_
_⟨Airjx_ x _,_ p _ij_ _−_ d _i⟩Wj_ =
_⟨Airjx_ x _, HRiDi_ r _j⟩Wj_
_Wj_ <sup>+</sup> _j_ <sup>�</sup> _∈Vi_
_Wj_ <sup>+</sup> _j_ <sup>�</sup> _∈V_
_Wj_
= _si_
_j∈Vi_
- _Airjx_ x _, HRiD_ <sup>˜</sup> _i_ r _j_
- _Airjx_ x _, HRiD_ <sup>ˆ</sup> _i_ r _j_
from where
p _ij_ _−_ d _i⟩Wj −j∈_ <sup>�</sup> _Vi_ <sup>_⟨Airjx_</sup> <sup>x</sup> <sup>_,HRiD_</sup> <sup>ˆ</sup> <sup>_i_</sup> <sup>r</sup> <sup>_j⟩Wj_</sup>
<u>�</u>
_si_ =
=
_j∈Vi_
_j∈_ <u>�</u> _Vi_ <sup>_⟨Airjx_</sup> <sup>x</sup> <sup>_,HRiD_</sup> <sup>˜</sup> <sup>_i_</sup> <sup>r</sup> <sup>_j⟩Wj_</sup>
_⟨Airjx_ x _,_ p _ij_ _−_ d _i⟩Wj −j∈_ <sup>�</sup> _V_
_j∈_ <u>�</u> _Vi_ <sup>_⟨Airjx_</sup> <sup>x</sup> <sup>_,HRiD_</sup> <sup>˜</sup> <sup>_i_</sup> <sup>r</sup> <sup>_j⟩Wj_</sup>
_j∈_ - _Vi_ <sup>_⟨Airjx_</sup> <sup>x</sup> <sup>_,_</sup> <sup>p</sup> <sup>_ij_</sup> <sup>_−HRiD_</sup> <sup>ˆ</sup> <sup>_i_</sup> <sup>r</sup> <sup>_j_</sup> <sup>_−_</sup> <sup>d</sup> <sup>_i⟩Wj_</sup>
Using the current estimates of the parameters
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,_</sup> <sup>p</sup> <sup>_ij_</sup> <sup>_−HR_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˆ _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> _−_ d <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_j_
_i_
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
- _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _r_
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_<u>j</u>_ _j∈Vi_ _<u>j</u>_
<u>�</u> <u>�</u> _A_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,HR_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˜ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <u>�</u>
_s_ <sup>(</sup> _<u>i</u>_ <sup>_k_</sup> <sup>+1)</sup> =
=
=
_j∈Vi_
_j∈Vi_
_j∈Vi_
_<u>j</u>_
<u>�</u> <u>�</u> _A_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,HR_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˜ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <u>�</u>
<u>�</u> _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,HR_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˜ _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> _−_
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˜ _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_
<u>�</u>
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_
- _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _r_
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,_</sup> <sup>e</sup> <sup>(</sup> _ij_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _ij_ <sup>_k_</sup> <sup>)+</sup> <sup>_s_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<sup>_s_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_<u>j</u>_
<u>�</u> <u>�</u> _A_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,HR_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˜ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <u>�</u>
<u>�</u> _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,HR_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˜ _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_j_
<u>�</u>
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_
- _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _r_
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,_</sup> <sup>e</sup> _ij_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
+ _s_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
+ _s_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˜ _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_j_
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
- _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _r_
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_ij_
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_<u>j</u>_
<u>�</u> _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _r_
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,HR_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_j_
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,HR_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_<u>j</u>_
_j∈Vi_
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˜ _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<u>�</u>
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_
_rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,_</sup> <sup>e</sup> _ij_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_ij_
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
- _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
= _s_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> +
_j∈Vi_ _<u>j</u>_
<u>�</u> <u>�</u> _A_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,HR_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˜ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> <sup>_k_</sup>
<u>�</u> _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
- _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,_</sup> <sup>e</sup> _ij_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_ij_
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˜ _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> r <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
<u>�</u>
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,HR_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
= _s_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> +
_j∈Vi_
_j∈Vi_
_∈Vi_ _<u>j</u>_
2
<u>�</u> <u>1</u> <u>���</u> _A_ ( _k_ ) _r_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <u>���</u>
<u>1</u>
_<u>j</u>_
<u>���2</u> _W_
<u>���</u> _Ai_ ( _k_ ) _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup>
_j∈Vi_
_s_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_<u>i</u>_
_s_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<u></u>
<sup>1 +</sup>
_i_ _j_
2
<u>�</u> <u>���</u> _Ai_ ( _k_ ) <sup>_r_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <u>���</u>
<u>���</u> _Ai_ ( _k_ ) <sup>_r_</sup> _jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,_</sup> <sup>e</sup> _ij_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_ij_
<u>�</u>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<u>�</u>
<u>�</u> _A_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> <sup>_r_</sup> _jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<u></u>
= _s_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
= _s_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
_j_
<u>���2</u>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup>
<u>Shearing:</u> _<u>δi</u>_ Similarly to the previous cases
_DδiE_ = 0 =
- _D_ vec( _Ai_ ) _E_
�� _D_ vec( _Di_ )vec( _Ai_ )� ( _Dsi_ vec( _Di_ ))
�� _D_ vec( _Di_ )vec( _Ai_ )
with
_Dδi_ vec( _Di_ ) = ( _misiδi_ ( _−_ sin( _δi_ )) _, misiδi_ cos( _δi_ ) _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0) <sup>_t_</sup>
The derivative becomes
- _t_ ( _I_ 3 _⊗_ _HRi_ ) ( _misiδi_ ( _−_ sin( _δi_ )) _, misiδi_ cos( _δi_ ) _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0) _t_
_DδiE_ = 0 = _−_ 2 <sup>�</sup>
_j∈Vi_
�vec( _Wj_ e _ij_ r <sup>_t_</sup> _j_
<sup>_t_</sup> _j_ <sup>)</sup>
_i_ <sup>_tH_</sup> <sup>_tWj_</sup> <sup>e</sup> <sup>_ij_</sup> <sup>)</sup>
= _−_ 2 <sup>�</sup>
_j∈Vi_
( _δirjx_ x <sup>_t_</sup> _Di_ <sup>_t_</sup>
_i_ <sup>_tP tR_</sup> _i_ <sup>_t_</sup>
=
_j∈Vi_
_⟨HRiPDirjx_ x _,_ e _ij⟩Wj_
6
0 _−_ 1 0
1 0 0
0 0 1
. Let’s expand e _ij_
where _P_ =
_j∈Vi_
_⟨HRiPDirjx_ x _,_ e _ij⟩Wj_ =
_j∈Vi_
=
_j∈Vi_
_⟨HRiPDirjx_ x _,_ p _ij_ _−_ d _i⟩Wj_ _−_ <sup>�</sup>
_j∈Vi_
_⟨HRiPDirjx_ x _,_ p _ij_ _−_ _HRiDi_ r _j_ _−_ d _i⟩Wj_
_⟨HRiPDirjx_ x _, HRiDi_ r _j⟩Wj_
We now decompose _Di_ as
_Di_ = _misiD_ <sup>˜</sup> _i_ + _D_ <sup>ˆ</sup> _i_ = _misi_
cos( _δi_ ) 0 0
sin( _δi_ ) 0 0
0 0 0
+
0 0 0
0 _mi_ 0
0 0 _miti_
and analyze the term _⟨HRiPDirjx_ x _, HRiDi_ r _j⟩Wj_
_⟨HRiPDirjx_ x _, HRiDi_ r _j⟩Wj_ =
- _HRiPDirjx_ x _, HRi_ ( _misiD_ <sup>˜</sup> _i_ + _D_ <sup>ˆ</sup> _i_ ) r _j_
_Wj_
- -
= _misi_ _HRiPDirjx_ x _, HRiD_ <sup>˜</sup> _i_ r _j_ _HR_
_Wj_ <sup>+</sup>
- _HRiPDirjx_ x _, HRiD_ <sup>˜</sup> _i_ r _j_
_Wj_ <sup>+</sup>
- _HRiPDirjx_ x _, HRiD_ <sup>ˆ</sup> _i_ r _j_
_Wj_
Then
_j∈Vi_
_⟨HRiPDirjx_ x _,_ p _ij_ _−_ d _i⟩Wj_ =
_j∈Vi_
_⟨HRiPDirjx_ x _, HRiDi_ r _j⟩Wj_
_Wj_ <sup>+</sup>
- _HRiPDirjx_ x _, HRiD_ <sup>˜</sup> _i_ r _j_
= _misi_
_j∈Vi_
_Wj_
_j∈Vi_
- _HRiPDirjx_ x _, HRiD_ <sup>ˆ</sup> _i_ r _j_
or equivalently
- _HRiPDirjx_ x _,_ p _ij_ _−_ _HRiD_ <sup>ˆ</sup> _i_ r _j_ _−_ d _i_
- _HRiPDirjx_ x _, HRiD_ <sup>˜</sup> _i_ r _j_
_j∈Vi_
_j∈Vi_
_∈Vi_ _Wj_ _j∈Vi_ _Wj_
- - -
- _HRiPDirjx_ x _,_ e _ij_ + _misiHRiD_ <sup>˜</sup> _i_ r _j_ = _misi_ - _HRiPDirjx_ x _, HRiD_ <sup>˜</sup> _irjx_ x
_j∈Vi_
= _misi_
_Wj_
= _misi_
_Wj_
- _HRiPDirjx_ x _, HRiD_ <sup>˜</sup> _irjx_ x
_Wj_
- _HRiPDirjx_ x _,_ e _ij_ + _misiHRiD_ <sup>˜</sup> _i_ r _j_
- _HRiPDirjx_ x _,_ e _ij_ + _misiHRiD_ <sup>˜</sup> _i_ r _j_
= _Wj_ _j∈Vi_
= _Wj_ _j∈Vi_
- _HRiPDirjx_ x _, HRiD_ <sup>˜</sup> _irjx_ x
- _HRiPDirjx_ x _, HRiD_ <sup>˜</sup> _irjx_ x
_Wj_
<u>1</u>
_misi_
_j∈Vi_
_j∈Vi_
We now decompose as
_D_ ˜ _i_ = cos( _δi_ ) ˜ _D_ 1 + sin( _δi_ ) ˜ _D_ 2 = cos( _δi_ )
1 0 0
0 0 0
0 0 0
+ sin( _δi_ )
0 0 0
1 0 0
0 0 0
So the right-hand side of the previous expression becomes
-
- _HRiPDirjx_ x _, HRiD_ <sup>˜</sup> _irjx_ x
_j∈Vi_
= cos( _δi_ ) <sup>�</sup>
_Wj_ _j∈Vi_
_Wj_ <sup>+</sup>
- _HRiPDirjx_ x _, HRiD_ <sup>˜</sup> 1 _rjx_ x
- _HRiPDirjx_ x _, HRiD_ <sup>˜</sup> 1 _rjx_ x
_Wj_
sin( _δi_ ) <sup>�</sup>
_j∈Vi_
7
- _HRiPDirjx_ x _, HRiD_ <sup>˜</sup> 2 _rjx_ x
- _HRiPDirjx_ x _, HRiD_ <sup>˜</sup> 2 _rjx_ x
while the left hand side becomes
= <u>1</u>
_misi_
_Wj_
_⟨HRiPDirjx_ x _,_ e _ij⟩Wj_ +
<u>1</u>
_misi_
_j∈Vi_
_j∈Vi_
- _HRiPDirjx_ x _,_ e _ij_ + _misiHRiD_ <sup>˜</sup> _i_ r _j_
cos( _δi_ ) <sup>�</sup>
_j∈Vi_
cos( _δi_ ) <sup>�</sup>
_Wj_ <sup>+</sup>
sin( _δi_ ) <sup>�</sup>
_j∈Vi_
- _HRiPDirjx_ x _, HRiD_ <sup>˜</sup> 1 _rjx_ x
- _HRiPDirjx_ x _, HRiD_ <sup>˜</sup> 2 _rjx_ x
_Wj_
If we call
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup>
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_, HR_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_, HR_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˜ 1 _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup>
_A_ = <sup>�</sup>
- _HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
_j∈Vi_ _j_
_B_ = _j_ <sup>�</sup> _∈Vi_ - _HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_PD_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_r_</sup> _jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_, HR_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˜ 2 _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> - _Wj_ <sup>(</sup>
_C_ = _m_ <u>1</u> _isi_ - - _HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_PD_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_r_</sup> _jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,_</sup> <sup>e</sup> _ij_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> - _W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
- _HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_r_</sup> _jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_r_</sup> _jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _D_ ˜ 2 _rjx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_PD_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_PD_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_r_</sup> _jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_ij_
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_jx_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>x</sup> <sup>_,_</sup> <sup>e</sup> _ij_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
- _HRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_PD_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
_j∈Vi_ _j_
Then, we can update _δi_ through the recursion
_C_ + cos( _δi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>))</sup> <sup>_B_</sup> <sup>= cos(</sup> <sup>_δ_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup> ) _A_ + sin( _δi_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup> ) _B_
_i_ <sup>(</sup> <sup>_k_</sup> <sup>))</sup> <sup>_A_</sup> <sup>+ sin(</sup> <sup>_δ_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_C_ + cos( _δi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>))</sup> <sup>_B_</sup> <sup>=</sup> <sup>_xA_</sup> <sup>+</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>))</sup> <sup>_A_</sup> <sup>+ sin(</sup> <sup>_δ_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_√_
1 _−_ _x_ <sup>2</sup> _B_
Calling _D_ = _C_ + cos( _δi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>))</sup> <sup>_B_</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>))</sup> <sup>_A_</sup> <sup>+ sin(</sup> <sup>_δ_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_√_
1 _−_ _x_ <sup>2</sup> _B_ = _D −_ _xA_
_B_ <sup>2</sup> _−_ _B_ <sup>2</sup> _x_ <sup>2</sup> = _D_ <sup>2</sup> + _x_ <sup>2</sup> _A_ <sup>2</sup> _−_ 2 _ADx_
_x_ <sup>2</sup> ( _A_ <sup>2</sup> + _B_ <sup>2</sup> ) _−_ 2 _ADx_ + ( _D_ <sup>2</sup> _−_ _B_ <sup>2</sup> ) = 0
_x_ 1 _,_ 2 = cos( _δi_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup> ) =
2 _AD±_ <sup>_√_</sup> 4 _A_ <sup>2</sup> _D_ <sup>2</sup> _−_ 4( _A_ <sup>2</sup> + _B_ <sup>2</sup> )( _D_ <sup>2</sup> _−B_ <sup>2</sup> )
<u>2(</u> _<u>A</u>_ <sup>2</sup> <u>+</u> _<u>B</u>_ <sup>2</sup> <u>)</u>
_~~√~~_
_<u>AD ± B</u>_
=
_<u>A</u>_ <sup>2</sup> <u>+</u> _<u>B</u>_ <sup>2</sup> _<u>−</u>_ _<u>D</u>_ <sup>2</sup>
_<u>A</u>_ <sup>2</sup> <u>+</u> _<u>B</u>_ <sup>2</sup>
Repeating the same exercise with the sin we would reach
_y_ 1 _,_ 2 = sin( _δi_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup> ) =
2 _BD±_ <sup>_√_</sup> 4 _B_ <sup>2</sup> _D_ <sup>2</sup> _−_ 4( _A_ <sup>2</sup> + _B_ <sup>2</sup> )( _D_ <sup>2</sup> _−A_ <sup>2</sup> )
<u>2(</u> _<u>A</u>_ <sup>2</sup> <u>+</u> _<u>B</u>_ <sup>2</sup> <u>)</u>
_~~√~~_
_<u>BD ± A</u>_
=
_<u>A</u>_ <sup>2</sup> <u>+</u> _<u>B</u>_ <sup>2</sup> _<u>−</u>_ _<u>D</u>_ <sup>2</sup>
_<u>A</u>_ <sup>2</sup> <u>+</u> _<u>B</u>_ <sup>2</sup>
So _δi_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup> is one of the four angles given by
atan2( _y_ 1 _, x_ 1)
atan2( _y_ 1 _, x_ 2)
atan2( _y_ 2 _, x_ 1)
atan2( _y_ 2 _, x_ 2)
_δi_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup> =
Amongst the fours solutions (which are equivalent from the point of view of the derivative of
_E_ ), we should choose the one that gives smaller _E_ .
8
<u>In</u> <u>plane</u> <u>rotation:</u> _<u>ψi</u>_
The in-plane rotation matrix is defined as
_Rψi_ =
cos( _ψi_ ) _−_ sin( _ψi_ ) 0
sin( _ψi_ ) cos( _ψi_ ) 0
0 0 1
We apply the same methodology as before
_DψiE_ = 0 =
We need to calculate the terms
- - <sup>�</sup>
_D_ vec( _Ai_ ) _E_ _D_ vec( _Rψi_ )vec( _Ai_ ) ( _Dψi_ vec( _Rψi_ ))
_D_ vec( _Rψi_ )vec( _Ai_ ) = ( _Rθi,_ u _axisDi_ ) <sup>_t_</sup> _⊗_ _H_
_Dψi_ vec( _Rψi_ ) = ( _−ψi_ sin( _ψi_ ) _, ψi_ cos( _ψi_ ) _,_ 0 _, −ψi_ cos( _ψi_ ) _, −ψi_ sin( _ψi_ ) _,_ 0 _,_ 0 _,_ 0 _,_ 0) <sup>_t_</sup>
Gathering all terms
�vec( _Wj_ e _ij_ r <sup>_t_</sup> _j_
- _t_ (( _Rθi,_ u _axisDi_ ) _t ⊗_ _H_ ) _Dψi_ vec( _Rψi_ )
_DψiE_ = 0 = _−_ 2 <sup>�</sup>
_j∈Vi_
_DψiE_ = 0 = _−_ 2 <sup>�</sup>
<sup>_t_</sup> _j_ <sup>)</sup>
- _ψi_ r <sup>_t_</sup> _j_
_i_ <sup>_tR_</sup> _θ_ <sup>_t_</sup> _i_
_θ_ <sup>_t_</sup> _i,_ u _axis_ <sup>_R_</sup> _ψ_ <sup>_t_</sup>
_ψ_ <sup>_t_</sup> _i_ <sup>_P tH_</sup> <sup>_tWj_</sup> <sup>e</sup> <sup>_ij_</sup>
= _−_ 2 <sup>�</sup>
_j∈Vi_
= _−_ 2 <sup>�</sup>
<sup>_t_</sup> _j_ <sup>_D_</sup> _i_ <sup>_t_</sup>
_⟨HPRiDi_ r _j,_ e _ij⟩Wj_
=
_j∈Vi_
0 _−_ 1 0
1 0 0.
0 0 1
where _P_ =
Let us expand e _ij_
_j∈Vi_
_⟨HPRiDi_ r _j,_ e _ij⟩Wj_ =
_j∈Vi_
=
_j∈Vi_
_⟨HPRiDi_ r _j,_ p _ij_ _−_ _HRψiRθi,_ u _axisDi_ r _j_ _−_ d _i⟩Wj_
_⟨HPRiDi_ r _j,_ p _ij_ _−_ d _i⟩Wj_
_−_ <sup>�</sup>
_−_ <sup>�</sup> _⟨HPRiDi_ r _j, HRψiRθi,_ u _axisDi_ r _j⟩Wj_
_j∈Vi_
- =
_j∈Vi_
_j∈Vi_
_⟨HPRiDi_ r _j,_ p _ij_ _−_ d _i⟩Wj_ =
_j∈Vi_
_⟨HPRiDi_ r _j, HRψiRθi,_ u _axisDi_ r _j⟩Wj_
Let us decompose _Rψi_ as
_Rψi_ = cos( _ψi_ ) _I_ + sin( _ψi_ ) _P_
9
then, the left-hand side of the previous expression becomes
_j∈Vi_
_⟨HPRiDi_ r _j,_ p _ij_ _−_ d _i⟩Wj_ =
_j∈Vi_
_⟨HPRiDi_ r _j,_ e _ij_ + _HRψiRθi,_ u _axisDi_ r _j⟩Wj_
=
- _⟨HPRiDi_ r _j,_ e _ij⟩Wj_ +
_j∈Vi_
_j∈Vi_
_j∈Vi_
_⟨HPRiDi_ r _j, HRψiRθi,_ u _axisDi_ r _j⟩Wj_
=
- _⟨HPRiDi_ r _j,_ e _ij⟩Wj_ +
_j∈Vi_
_j∈Vi_
- _⟨HPRiDi_ r _j, H_ cos( _ψi_ ) _Rθi,_ u _axisDi_ r _j⟩Wj_ +
_j∈Vi_
_j∈Vi_
_j∈Vi_
=
_j∈Vi_
_⟨HPRiDi_ r _j, H_ sin( _ψi_ ) _PRθi,_ u _axisDi_ r _j⟩Wj_
_⟨HPRiDi_ r _j,_ e _ij⟩Wj_ +
cos( _ψi_ ) <sup>�</sup>
_j∈Vi_
cos( _ψi_ ) <sup>�</sup>
_j∈Vi_
sin( _ψi_ ) <sup>�</sup>
_j∈Vi_
sin( _ψi_ ) <sup>�</sup>
_⟨HPRiDi_ r _j, HRθi,_ u _axisDi_ r _j⟩Wj_ +
_⟨HPRiDi_ r _j, HPRθi,_ u _axisDi_ r _j⟩Wj_
and the right-hand side
_j∈Vi_
_⟨HPRiDi_ r _j, HRψiRθi,_ u _axisDi_ r _j⟩Wj_ =
- _⟨HPRiDi_ r _j,_ cos( _ψi_ ) _HRθi,_ u _axisDi_ r _j⟩Wj_ +
_j∈Vi_
_j∈Vi_
_j∈Vi_
_⟨HPRiDi_ r _j,_ sin( _ψi_ ) _HPRθi,_ u _axisDi_ r _j⟩Wj_
= cos( _ψi_ ) <sup>�</sup>
_j∈Vi_
sin( _ψi_ ) <sup>�</sup>
_j∈Vi_
_⟨HPRiDi_ r _j, HRθi,_ u _axisDi_ r _j⟩Wj_ +
_⟨HPRiDi_ r _j, HPRθi,_ u _axisDi_ r _j⟩Wj_
If we call
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> <sup>_, HR_</sup> _θ_ <sup>(</sup> <sup>_k_</sup> _i,_ <sup>)</sup>
_θ_ <sup>(</sup> <sup>_k_</sup> _i,_ <sup>)</sup> u _axis_ <sup>_D_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> <sup>_,_</sup> <sup>e</sup> _ij_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>r</sup> _j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_A_ = <sup>�</sup>
- _HPRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
_j∈Vi_ _j_
_B_ = <sup>�</sup> - _HPRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_D_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>r</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> <sup>_, HPR_</sup> _θ_ <sup>(</sup> <sup>_k_</sup> _i,_ <sup>)</sup> u _axis_ <sup>_D_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>r</sup> _j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
- _HPRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
<sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> <sup>_, HPR_</sup> _θ_ <sup>(</sup> <sup>_k_</sup> _i,_ <sup>)</sup>
_θ_ <sup>(</sup> <sup>_k_</sup> _i,_ <sup>)</sup> u _axis_ <sup>_D_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>r</sup> _j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
_j∈Vi_ _j_
_C_ = <sup>�</sup> - _HPRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_D_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>r</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> <sup>_,_</sup> <sup>e</sup> _ij_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> - _W_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
- _HPRi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>r</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>r</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>r</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup>
_ij_
_Wj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j∈Vi_
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_D_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_D_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_D_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_j_
then the in-plane rotation can be updated through the recurrence equation
_C_ + cos( _ψi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>))</sup> <sup>_A_</sup> <sup>+ sin(</sup> <sup>_ψ_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>))</sup> <sup>_B_</sup> <sup>= cos(</sup> <sup>_ψ_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup> ) _A_ + sin( _ψi_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup> ) _B_
that has the same equation structure as the shearing angle and whose solution is
_~~√~~_
_i_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup> ) = <sup>_<u>AD ± B</u>_</sup>
_<u>A</u>_ <sup>2</sup> <u>+</u> _<u>B</u>_ <sup>2</sup> _<u>−</u>_ _<u>D</u>_ <sup>2</sup>
_x_ 1 _,_ 2 = cos( _ψi_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup>
_<u>A</u>_ <sup>2</sup> <u>+</u> _<u>B</u>_ <sup>2</sup>
_~~√~~_
_i_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup> ) = <sup>_<u>BD ± A</u>_</sup>
_<u>A</u>_ <sup>2</sup> <u>+</u> _<u>B</u>_ <sup>2</sup> _<u>−</u>_ _<u>D</u>_ <sup>2</sup>
_y_ 1 _,_ 2 = sin( _ψi_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup>
_<u>A</u>_ <sup>2</sup> <u>+</u> _<u>B</u>_ <sup>2</sup>
with _D_ = _C_ + cos( _ψi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>))</sup> <sup>_A_</sup> <sup>+ sin(</sup> <sup>_ψ_</sup> _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_k_</sup> <sup>))</sup> <sup>_B_</sup> <sup>.</sup>
10
So _ψi_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup> is one of the four angles given by
atan2( _y_ 1 _, x_ 1)
atan2( _y_ 1 _, x_ 2)
atan2( _y_ 2 _, x_ 1)
atan2( _y_ 2 _, x_ 2)
_ψi_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup> =
Amongst the fours solutions (which are equivalent from the point of view of the derivative of
_E_ ), we should choose the one that gives smaller _E_ .
<u>Tilt</u> <u>axis</u> <u>orientation:</u> _<u>α</u>_ <u>and</u> _<u>β</u>_
The arbitrary rotation by an angle _θi_ around the axis defined by
u _axis_ = (sin _β_ cos _α,_ sin _β_ sin _α,_ cos _β_ ) = ( _u, v, w_ )
is
_u_ <sup>2</sup> + (1 _−_ _u_ <sup>2</sup> ) cos( _θi_ ) _uv_ (1 _−_ cos( _θi_ )) _−_ _w_ sin( _θi_ ) _uw_ (1 _−_ cos( _θi_ )) + _v_ sin( _θi_ )
_uv_ (1 _−_ cos( _θi_ )) + _w_ sin( _θi_ ) _v_ <sup>2</sup> + (1 _−_ _v_ <sup>2</sup> ) cos( _θi_ ) _vw_ (1 _−_ cos( _θi_ )) _−_ _u_ sin( _θi_ )
_uw_ (1 _−_ cos( _θi_ )) _−_ _v_ sin( _θi_ ) _vw_ (1 _−_ cos( _θi_ )) + _u_ sin( _θi_ ) _w_ <sup>2</sup> + (1 _−_ _w_ <sup>2</sup> ) cos( _θi_ )
_Rθi,_ u _axis_ =
where we have made use of the fact that u _axis_ is a unitary vector. Although it is feasible to
follow the methodology developed along the paper for estimating _α_ and _β_ from the derivative
of _E_ with respect to them, the highly nonlinear nature of the equations involved make this
path impractical. For this reason, we prefer to employ a global search and a posterior local
optimization for estimating these two parameters.
## Appendix
In order to make the article self-contained, let us introduce here the derivative rules we have
needed along the article Dattorro (2005)[Appendix D]. Let us define the vectorization operator
applied to a matrix _A_ as
vec( _A_ ) =
_a_ 11
_a_ 21
_..._
_am_ 1
_a_ 12
_a_ 22
_..._
_amn_
The matrix derivative of a matrix function _F_ (whose result is a matrix of size _p × q_ ) with
respect to another matrix _X_ (of size _m × n_ ) is defined as
_DX_ ( _F_ ) =
_Dx_ 11 _F_ _Dx_ 21 _F_ _..._ _Dxn_ 1 _F_
_Dx_ 12 _F_ _Dx_ 22 _F_ _..._ _Dxn_ 2 _F_
_..._ _..._ _..._ _..._
_Dx_ 1 _mF_ _Dx_ 2 _mF_ _..._ _DxnmF_
11
Note that each of the _Dxij_ _F_ terms is actually another matrix defined as
_Dxij_ _F_ =
_Dxij_ _f_ 11 _Dxij_ _f_ 12 _..._ _Dxij_ _f_ 1 _q_
_Dxij_ _f_ 21 _Dxij_ _f_ 22 _..._ _Dxij_ _f_ 2 _q_
_..._ _..._ _..._ _..._
_Dxij_ _fp_ 1 _Dxij_ _fp_ 2 _..._ _Dxij_ _fpq_
This definition particularizes for a scalar function of a vector as
_<u>∂f</u>_ _..._ _<u>∂f</u>_ - _,_
_∂x_ 2 _∂xn_
_D_ x ( _f_ ) =
a scalar function of a matrix as
- _<u>∂f</u>_
_∂x_ 1
_DXf_ =
a vector function of a vector as
_D_ xf =
and a vector function of a scalar as
_Dx_ 11 _f_ _Dx_ 21 _f_ _..._ _Dxm_ 1 _f_
_Dx_ 12 _f_ _Dx_ 22 _f_ _..._ _Dxm_ 2 _f_
_..._ _..._ _..._ _..._
_Dx_ 1 _nf_ _Dx_ 2 _nf_ _..._ _Dxmnf_
_Dx_ 1 _f_ 1 _Dx_ 2 _f_ 1 _..._ _Dxnf_ 1
_Dx_ 1 _f_ 2 _Dx_ 2 _f_ 2 _..._ _Dxnf_ 2
_..._ _..._ _..._ _..._
_Dx_ 1 _fm_ _Dx_ 2 _fm_ _..._ _Dxnfm_
<sup>_,_</sup>
<sup>_,_</sup>
<sup>_,_</sup>
_Dx_ f =
_Dxf_ 1
_Dxf_ 2
_..._
_Dxfm_
Note that the chain rule does not normally apply with the derivative of a scalar function of
a matrix. For this reason, we prefer to arrange this derivative as a vector derivative (for which
the chain rule applies), that is,
_D_ vec( _X_ ) _f_ = vec( _DXf_ ) =
- _Dx_ 11 _f_ _Dx_ 21 _f_ _..._ _Dxm_ 1 _f_ _Dx_ 12 _f_ _Dx_ 22 _f_ _..._ _Dxmnf_
In this way, the chain rule can be written as
_Dtf_ =
_Dt_ f =
- _D_ vec( _X_ ) _f_ - ( _Dt_ vec( _X_ ))
- _D_ vec( _X_ ) f - ( _Dt_ vec( _X_ ))
We make use of the following vector and matrix derivatives
_•_ R1: _D_ x ( a <sup>_t_</sup> _A_ x ) = _A_ <sup>_t_</sup> a
_•_ R2: _D_ x ( x <sup>_t_</sup> _A_ b ) = _A_ b
_•_ R3: _D_ x ( x <sup>_t_</sup> _A_ x ) = ( _A_ + _A_ <sup>_t_</sup> ) x
12
_•_ R4: _DX_ ( a <sup>_t_</sup> _X_ b ) = ab <sup>_t_</sup>
_•_ R5: _DX_ ( a <sup>_t_</sup> _X_ <sup>_t_</sup> _X_ b ) = _X_ ( ab <sup>_t_</sup> + ba <sup>_t_</sup> )
_•_ R6: _DX_ ( a <sup>_t_</sup> _X_ <sup>_t_</sup> _CX_ b ) = _C_ <sup>_t_</sup> _X_ ab <sup>_t_</sup> + _CX_ ba <sup>_t_</sup>
_•_ R7: _DX_ ( _AXB_ ) = _B_ <sup>_t_</sup> _⊗_ _A_ where _⊗_ denotes the outer product between matrices defined
as
_a_ 11 _B_ _a_ 12 _B_ _..._ _a_ 1 _nB_
_a_ 21 _B_ _a_ 22 _B_ _..._ _a_ 2 _nB_
_..._ _..._ _..._ _..._
_am_ 1 _B_ _am_ 2 _B_ _..._ _amnB_
_A ⊗_ _B_ =
_•_ R8: _DX_ ( _AX_ ) = _I_ _⊗_ _A_
_DXf_ 11( _X_ ) _DXf_ 12( _X_ ) _..._ _DXf_ 1 _N_ ( _X_ )
_DXf_ 21( _X_ ) _DXf_ 22( _X_ ) _..._ _DXf_ 2 _N_ ( _X_ )
_..._ _..._ _..._ _..._
_DXfM_ 1( _X_ ) _DXfM_ 2( _X_ ) _..._ _DXfMN_ ( _X_ )
_•_ R9: _DX_ ( _F_ ( _X_ )) =
being _F_ a matrix function that takes a _K × L_ matrix _X_, to produce a new matrix of size
_M_ _× N_ . In this case, _DX_ ( _F_ ( _X_ )) is a _M_ _× N_ _× K × L_ tensor.
_•_ R10: _DX_ ( _f_ ( _g_ <sup>_t_</sup> ( _X_ ))) = _DX_ ( _g_ ( _X_ )) <sup>_t_</sup> _Dg_ ( _f_ ( _g_ ))
## References
Dattorro, A., 2005. Convex optimization and Euclidean distance geometry. Meboo Publishing.
13