a displacement that varies only along the slow scan direction
Temporal drift during a scan: the beam returns to the start of each line at a stage position slightly different from the last, so the whole line is displaced together and the displacement accumulates down the scan. Modelled as a linear spline in the slow scan coordinate alone - a rolling shutter, not a smooth field.
Which direction is the slow scan is a fact about the acquisition, not about the data, so it is carried rather than inferred. After resampling or rotation it is no longer grid dimension 1.
The spline is defined between its outermost knots and NOT beyond, so positions outside the measured band come back NaN rather than extrapolated. That is deliberate - it is what marks the region the correction is supported on. Pass 'extrapolate' to continue the end segments instead.
Syntax
T = spatialTransformDrift(s,u)
T = spatialTransformDrift(s,u,'slowScan',xvector)
T = spatialTransformDrift.fit(posA,posB)
T = spatialTransformDrift.fit(posA,posB,'slowScan',xvector,'extrapolate')Input
| s | n × 1 knot coordinates along the slow scan direction |
| u | n × 2 displacement at each knot |
| posA, posB | vector3d, the same points in the two frames |
Output
| T | spatialTransformDrift |
Class Properties
| s | n × 1 knots, ascending |
| u | n × 2 displacement at the knots |
| slowScan | vector3d, the direction the spline runs along |
| extrapolate | continue the end segments instead of returning NaN |
See also
Citing this page.
This page is part of the documentation of
MTEX, a free and open
source MATLAB toolbox for analyzing and modeling crystallographic textures.
It was written by The MTEX Developers and is published at
https://mtex-toolbox.github.io/spatialTransformDrift.html.
If you use MTEX, or reuse text or figures from this page, in your research,
please cite
F. Bachmann, R. Hielscher, H. Schaeben: Texture Analysis with MTEX - Free and Open Source Software Toolbox, Solid State Phenomena 160 (2010), 63-68. 10.4028/www.scientific.net/SSP.160.63
BibTeX
@article{bachmann2010mtex,
author = {F. Bachmann and R. Hielscher and H. Schaeben},
title = {Texture Analysis with MTEX - Free and Open Source Software Toolbox},
journal = {Solid State Phenomena},
volume = {160},
pages = {63-68},
year = {2010},
doi = {10.4028/www.scientific.net/SSP.160.63},
url = {https://doi.org/10.4028/www.scientific.net/SSP.160.63}
}
Other papers describing specific MTEX methods are listed under Publications — please cite the one that best fits your application. The MTEX source code is licensed under the GNU General Public License v2.0; the text and figures of this documentation are licensed under CC BY 4.0, which permits reuse — including by automated systems — provided The MTEX Developers and this page are credited.