a displacement that varies along the slow scan direction

Syntax

T = spatialTransformDrift(s, u, slowScan=vector3d(0, 1, 0))
T = spatialTransformDrift.fit(posA, posB)

Description

Project each position onto the unit slow-scan direction, then interpolate the x and y displacement at that coordinate. The displacement varies linearly between supplied knots; knots and their displacements are sorted together. Outside their range, positions become NaN unless extrapolate=True continues the end segments. No knots gives the identity.

Input

s one-dimensional array of knot coordinates in spatial units
u array of shape (len(s), 2), giving x and y displacements at the knots
slowScan vector3d direction, normalised internally; default is the y direction
extrapolate continue the end segments outside the knot range; default False

Output

T spatialTransformDrift

See also

spatialTransformDrift.fit, spatialTransformField

Members

eval the positions moved by the drift interpolated at their coordinate along the slow scan direction
fit a drift along the slow scan direction, the linear spline through the median displacement of every scan line
fitOptions the slow scan direction, the keyword a refit keeps
inv the inverse by fixed point iteration
isid whether the drift has no knots or displaces by nothing
paramChar the knots and the largest displacement as a line of text

Used on

EBSDSpatialTransform, EBSDTrueEbsd

MATLAB’s spatialTransformDrift

source

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