원시데이터 수집 시스템
선정목록으로

Determination of tip transfer function for quantitative MFM using frequency domain filtering and least squares method

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. David Nečas — Plasma Technologies, CEITEC, Masaryk University, Brno, 62500, Czech Republic
  2. Petr Klapetek — Czech Metrology Institute, Brno, 63800, Czech Republic|||CEITEC, Brno University of Technology, Brno, 63800, Czech Republic
  3. V. Neu — IFW Dresden, Dresden, 01069, Germany
  4. Marek Havlíček — Czech Metrology Institute, Brno, 63800, Czech Republic|||CEITEC, Brno University of Technology, Brno, 63800, Czech Republic
  5. Robert Puttock — National Physical Laboratory, Teddington, TW11 0LW, United Kingdom
  6. Olga Kazakova — National Physical Laboratory, Teddington, TW11 0LW, United Kingdom
  7. Xiukun Hu — Physikalisch Technische Bundesanstalt, Braunschweig, 38116, Germany
  8. Lenka Zajı́čková — Department of Physical Electronics, Faculty of Science, Masaryk University, Brno, 61137, Czech Republic
DOI
10.1038/s41598-019-40477-x
저널
Scientific Reports
발행년도
2019
발행기관
Nature Portfolio
피인용수
21
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-019-40477-x
토픽
Tribology and Lubrication Engineering
OpenAlex ID
W2919058594

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Magnetic force microscopy has unsurpassed capabilities in analysis of nanoscale and microscale magnetic samples and devices. Similar to other Scanning Probe Microscopy techniques, quantitative analysis remains a challenge. Despite large theoretical and practical progress in this area, present methods are seldom used due to their complexity and lack of systematic understanding of related uncertainties and recommended best practice. Use of the Tip Transfer Function (TTF) is a key concept in making Magnetic Force Microscopy measurements quantitative. We present a numerical study of several aspects of TTF reconstruction using multilayer samples with perpendicular magnetisation. We address the choice of numerical approach, impact of non-periodicity and windowing, suitable conventions for data normalisation and units, criteria for choice of regularisation parameter and experimental effects observed in real measurements. We present a simple regularisation parameter selection method based on TTF width and verify this approach via numerical experiments. Examples of TTF estimation are shown on both 2D and 3D experimental datasets. We give recommendations on best practices for robust TTF estimation, including the choice of windowing function, measurement strategy and dealing with experimental error sources. A method for synthetic MFM data generation, suitable for large scale numerical experiments is also presented.

본문 71,995자

본문 펼치기
## OPEN Received: 29 October 2018 Accepted: 11 February 2019 Published: xx xx xxxx # Determination of tip transfer function for quantitative MFM using frequency domain filtering and least squares method David Nečas <sup>1</sup> , Petr Klapetek <sup>2,3</sup> , Volker Neu <sup>4</sup> , Marek Havlíček <sup>2,3</sup> , Robert Puttock <sup>5,6</sup> , Olga Kazakova <sup>5</sup> [, Xiukun Hu](http://orcid.org/0000-0003-1780-5801) <sup>7</sup> & Lenka Zajíčková <sup>1,8</sup> Magnetic force microscopy has unsurpassed capabilities in analysis of nanoscale and microscale magnetic samples and devices. Similar to other Scanning Probe Microscopy techniques, quantitative analysis remains a challenge. Despite large theoretical and practical progress in this area, present methods are seldom used due to their complexity and lack of systematic understanding of related uncertainties and recommended best practice. Use of the Tip Transfer Function (TTF) is a key concept in making Magnetic Force Microscopy measurements quantitative. We present a numerical study of several aspects of TTF reconstruction using multilayer samples with perpendicular magnetisation. We address the choice of numerical approach, impact of non-periodicity and windowing, suitable conventions for data normalisation and units, criteria for choice of regularisation parameter and experimental effects observed in real measurements. We present a simple regularisation parameter selection method based on TTF width and verify this approach via numerical experiments. Examples of TTF estimation are shown on both 2D and 3D experimental datasets. We give recommendations on best practices for robust TTF estimation, including the choice of windowing function, measurement strategy and dealing with experimental error sources. A method for synthetic MFM data generation, suitable for large scale numerical experiments is also presented. The point spread function (PSF) concept is frequently used in optical microscopy to estimate the properties of the imaging system and subsequently reduce its impact on the acquired image quality. The PSF represents how the single point on the sample gets blurred by the optical system; the whole recorded image is a convolution of the ideal sample image and the PSF. In the field of Scanning Probe Microscopy (SPM), a similar concept can be used. Though seldom used in routine analysis, the PSF is typically only used in advanced or specialised data processing. Examples include Kelvin Probe Force Microscopy and similar electrostatic forces-based techniques, where the PSF is used to incorporate the effect of averaging the measured signal across the sample and to consider probe shape due to long range behaviour of the electrostatic forces <sup>1–3</sup> . In the field of Scanning Near Field Optical Microscopy it is used to investigate the optical system properties <sup>4</sup> . In Magnetic Force Microscopy (MFM) a similar concept of a Tip Transfer Function (TTF) is used to specify the imaging properties of the probe and thus to receive quantitative information about the sample’s stray field <sup>5,6</sup> . As we concentrate on MFM data processing in the following text we use the Tip Transfer Function terminology, abbreviating it to TTF, however most of the presented algorithms are valid for point spread functions or related transfer functions in other SPM areas as well. The TTF is a simpler and less computationally demanding alternative to full micromagnetic simulations of the interaction between probe and sample which additionally require detailed information about the probe and sample materials and geometry <sup>7–9</sup> . A robust TTF determination which handles the unavoidable presence of noise 1Plasma Technologies, CEITEC, Masaryk University, Brno, 62500, Czech Republic. 2CEITEC, Brno University of Technology, Brno, 63800, Czech Republic. <sup>3</sup> Czech Metrology Institute, Brno, 63800, Czech Republic. <sup>4</sup> IFW Dresden, Dresden, 01069, Germany. <sup>5</sup> National Physical Laboratory, Teddington, TW11 0LW, United Kingdom. <sup>6</sup> Physics Department, Royal Holloway University of London, Egham, TW20 0EX, United Kingdom. <sup>7</sup> Physikalisch Technische Bundesanstalt, Braunschweig, 38116, Germany. <sup>8</sup> Department of Physical Electronics, Faculty of Science, Masaryk University, Brno, 61137, Czech Republic. Correspondence and requests for materials should be addressed to D.N. [(email: yeti@physics.muni.cz)](mailto:yeti@physics.muni.cz) is considered a major step for a routine application of quantitative MFM (qMFM) and will accelerate its use in numerous problems in nanomagnetism. The approach used for calculating the transfer function and namely its normalisation in different areas of Scanning Probe Microscopy varies, which makes mutual comparison of TTFs obtained by different groups complicated. Even though TTF reconstruction has been applied successfully to various MFM measurements <sup>5,6,10–14</sup> the behaviour of the reconstruction methods for MFM data has never been systematically studied. This article aims to suggest suitable procedures and parameters for the TTF calculation, based mostly on numerical studies. In addition, we discuss common pitfalls while calculating the TTF from real data and we present resulting 2D and 3D TTFs obtained on magnetic perpendicular media. Contrast in dynamic mode MFM is proportional to the probe-sample force gradient, which itself depends on both the probe and sample’s magnetic state. The Tip Transfer Function approach for MFM probe characterisation is based on using a well characterised reference sample for which the stray field pattern is calculable as it consists of magnetic domains of known orientation and possesses magnetic properties, which are measurable or known from literature. One possibility for such a reference sample are thin films with perpendicular magnetic anisotropy, such as the Co/Pd multilayers suggested in ref. <sup>11</sup> . They form striped domains with perpendicular orientation, so called band domains, and knowing the global magnetic properties a pure qualitative MFM image allows estimating the stray field pattern from domain theory. The high perpendicular magnetisation anisotropy of this sample guarantees a magnetisation alignment in the _z_ direction (perpendicular to sample plane) greater than 92%, permitting to consider in-plane magnetisation components equal to zero <sup>6</sup> . This calibration sample thus provides a strong and readily calculable stray field above the surface and also a large span of spatial frequencies, which are all helpful in TTF calculation. A calibration measurement of this sample allows to determine the unique TTF which is characteristic to the particular MFM probe. The estimated TTF can be then used to make quantitative measurements on an unknown sample. Its magnetic properties can be arbitrary, assuming it does not change the magnetic state of the probe. Most commonly the TTF from the reference sample is applied to calculated quantitative values from an unknown sample by convolving the TTF with a simulated charge map and quantifying the deviation from the experimental MFM image <sup>12</sup> . Alternatively, experimental MFM data are deconvolved with the TTF—this corresponds to the classical use of deconvolution for image deblurring <sup>15</sup> . The issue with the latter method is that it is more sensitive to noise and is considerably more erroneous than using a simulated charge map and modelling. Theory In many data acquisition methods the measured signal _m_ can be expressed as the convolution of an ideal (actual, sharp) signal _s_ with a transfer function (instrument function, point spread function) _p_ in presence of additive noise _t_ : _m_ = _s_ ∗ _p_ + _t_ . (1) Here ∗ denotes the convolution operator. In the case of SPM this is a two-dimensional convolution since all the quantities are images, i.e. functions of spatial coordinates _x_ and _y_ (in signal processing the convolution is usually in the time domain). The convolution with _p_ blurs the signal and there is a vast literature dedicated to deblurring, i.e. reconstruction of _s_ from _m_ and known _p_ <sup>15–17</sup> . Techniques have also been developed for blind deconvolution, in which the TTF and deconvolved data are estimated simultaneously, usually in a Bayesian framework <sup>18</sup> . The problem we face in MFM is that MFM probes are regularly changed (either due to tip wear or to adapt them to the sample under investigation) and each probe possesses individual properties. This therefore requires a calibration routine, which can be routinely applied to each MFM probe. The above mentioned multilayer reference sample possesses a balanced up-down magnetisation structure with smooth boundaries between the two domains and a power spectrum with one prominent spatial frequency. The magnetic surface charge distribution can be estimated by thresholding the measured image, and the stray field can be calculated based on the known saturation magnetisation, film thickness and domain transition width. These and similar samples are thus very suitable for TTF recovery <sup>5,10,11</sup> . Even though the deconvolution is in principle still blind, the ideal signal can be assumed known and we deal with a problem complementary to deblurring, i.e. the derivation of TTF _p_ from _m_ and the—presumably—known _s_ . Since convolution is commutative, the signal and TTF are interchangeable in (1). However, _s_ and _p_ differ substantially in character. Many deconvolution algorithms popular in various fields, such as CLEAN <sup>19</sup> in radio astronomy, are geared towards deblurring and less appropriate in our case. We will describe two approaches suitable for MFM. Frequency Domain Filtering If noise were not present, the problem would be theoretically trivial in the frequency domain. Denoting the Fourier transforms by uppercase letters _M_, _P_ and _S_, the convolution _M_ = _SP_ would be inverted by _P_ = _M_ / _S_ . In the presence of noise, however, this procedure would greatly amplify the noise at frequencies where | _S_ | is small. Therefore, regularisation (or some other constraint) is necessary, leading to formulae for an estimate _P_ <sup>ˆ</sup> of _P_ of the form _P_ ˆ = | _S_ |2 + _<u>S</u>_ ⁎ _P_ ˆ = | _S_ |2 + _<u>S</u>_ _M_, regularisation term = <u>2</u> + regularisation term (2) , where the fraction replaces 1/ _S_ (superscript star denotes complex conjugation). For given stationary noise and signal, the Wiener deconvolution _P_ ˆ = | _S_ |2 + _<u>S</u>_ | _T_ ⁎ |2 /| _P_ | _P_ ˆ = | _S_ |2 + _<u>S</u>_ | _T_ ⁎ |2 /| _P_ |2 = |2 + | _T_ |2 /| _P_ |2 (3) /| _P_ |2 _M_, , is mean-square error optimal <sup>20</sup>, uppercase _T_ again denoting the Fourier transform of noise _t_ . However, as the spectral density | _P_ | <sup>2</sup> of the sought function is seldom known, the filter needs to be approximated, for instance by the pseudo-Wiener filter <sup>16,21</sup> _P_ ˆ = | _S_ |2 + _cS_ <u>2|⁎</u> _T_ |2 /| _M_ | _P_ ˆ = <u>2</u> _<u>S</u>_ <u>2</u> ⁎ <u>2</u> <u>2</u> _M_ . = | _S_ |2 + _c_ <u>2|</u> _T_ |2 /| _M_ | _<u>S</u>_ <u>2</u> + _c_ <u>2|</u> _T_ |2 /| _M_ |2 _M_ . (4) This approximation, while reasonable in the case of deblurring, is more questionable in TTF recovery because the frequency content of _M_ and _P_ can differ substantially. The constant _c_ is a scaling factor between _M_ and _P_, estimating the ratio || _m_ ||/|| _p_ ||, where ||·|| denotes the _L_ <sup>2</sup> norm. We must point out that although formula (4) is usually presented without the factor _c_, a simple dimensional analysis shows that it is then incorrect if _m_ and _p_ are different physical quantities, which they generally are. The simplified formula (4) with _c_ = 1 can only be correct when it is used for simple deblurring where the sharp and convolved image are maps of the same physical quantity. A simple two-parameter regularisation <sup>22</sup> _P_ ˆ = | _S_ |2 + _λS_ ⁎+ _γ_ | _L_ | _P_ ˆ = | _S_ |2 + _λS_ ⁎+ _γ_ | _L_ |2 _<u>S</u>_ = | _S_ |2 + _λ_ + _γ_ _M_ <u>2</u> + _λ_ + _γ_ | _L_ |2 (5) is also widely used, where _λ_ and _γ_ are parameters which need to be chosen appropriately (more in section Optimal Regularisation Parameter) and | _L_ |2 = 16sin4 _<u>kh</u>_, 2 (6) is the squared magnitude of the second-order backward differential operator. Symbols _k_ and _h_ denote the wave vector and sampling step, respectively. Also its simpler form <sup>23</sup> corresponding to _γ_ = 0 is frequently utilised, as is also done in this work. The pseudo-Wiener filter would then reduce to (5) if _c_ 2| _T_ |2 /| _M_ |2 = _λ_, i.e. the measured signal has the same spectral density as noise. A more realistic assumption in scanning probe microscopy is that noise is dominated by independent point noise (| _T_ | ≈ const.), leading to the single-parameter pseudo-Wiener filter _P_ ˆ = | _S_ |2 + _<u>S</u>_ ⁎ _λ_ /| _M_ |2 _M_ = | _M_ ||2 _<u>M</u>_ | _S_ <u>||22</u> _<u>S</u>_ ⁎ 2 _P_ ˆ = <u>2</u> _<u>S</u>_ ⁎ <u>2</u> _M_ = <u>|2</u> _<u>M</u>_ <u>|</u> <u>2</u> _<u>S</u>_ _M_ . _<u>S</u>_ _<u>M</u>_ _<u>S</u>_ <u>2</u> + _λ_ /| _M_ |2 _M_ = | _M_ |2 | _S_ |2 + _λ_ _M_ . (7) _<u>S</u>_ = | _S_ |2 + _λ_ /| _M_ |2 _M_ = | _M_ |2 | _S_ |2 + _λ_ | _S_ |2 + _λ_ /| _M_ | <u>|</u> _<u>M</u>_ <u>|2</u> _<u>S</u>_ _M_ = | _M_ |2 | _S_ |2 <u>|</u> _<u>M</u>_ <u>|2</u> _<u>S</u>_ ⁎ = | _M_ |2 | _S_ |2 + <u>2</u> | _S_ |2 The scaling factor _c_ was included in _λ_ here. Least Squares Method (LSM) Instead of filtering we can explicitly look for the TTF which minimises the squared norm of the difference between reconstruction and measured data (residual) denoted _R_ = _m_ - _s_ ∗ _p_ <sup>2</sup> . Noting that Fourier transform is unitary, _R_ can be equivalently calculated from the frequency components as _R_ = _M_ - _PS_ <sup>2</sup>, which is useful in practical calculations. In this formulation _p_ is described by a vector of parameters _ξ_ and we seek the vector which minimises _R_ ( _ξ_ ). The two elementary choices of parameter sets are (i) entire _p_, with the value of each _p_ pixel being an independent parameter, and (ii) prescribing an explicit function form _p_ = _f_ ( _ξ_ ). It is advantageous to parametrise the Fourier transform _P_ instead of _p_ itself, because then min _ξ_  <sup>_M_</sup> - _P_ ( _ξ_ ) _S_  2 is a straightforward non-linear least-squares problem, which can be solved entirely in the frequency domain. No convolutions are necessary. Fourier transforms are only required to calculate _M_ and _S_ and then to transform the final fitted _P_ back to the spatial domain. We note that frequency-domain filtering inherently produces _p_ images as large as _m_ and _s_, even if only a small fraction contains useful information. Thus it may seem that choosing individual _p_ pixels as the fitting parameters ( _ξ_ = _p_ ) would lead to number of degrees of freedom comparable to number of data, i.e. pixels of _m_ . However, here the _p_ image can be chosen to be much smaller; and it should be if the (effective) support of _p_ is much smaller than the scan size. The corresponding linear least squares problem is therefore reasonable and better conditioned than frequency domain filtering, although regularisation can be still useful. For the Tikhonov regularisation <sup>24</sup> the residual is expressed as _R_ = _m_ - _s_ ∗ _p_ 2 + _λ_ _p_ 2 . (8) By introducing matrix _u_ which implements the linear operation _s_ *, i.e. discrete convolution with _s_ _un_, _k_ = _sn_ - _k_, (9) the convolution can be formally written as a matrix multiplication _s_ ∗ _p_ = _up_ . Note that all indices and array sizes are two-dimensional multi-indices, i.e. each consists of row and column index. The least squares problem min [  _m_ - _up_  2 + _λ_  _p_ 2] _p_ (10) is a standard linear problem with normal equations ( _u_ T _u_ + _λI_ ) _p_ ≡ _ap_ = _u_ T _m_, (11) where _I_ is the identity matrix (depending on the chosen discretisation, which we will discuss in Discretisation and Units, _λ_ parameters in (8) and (11) may differ). Matrix _u_ is Toeplitz-like. In one dimension it is Toeplitz, in two dimensions it is block Toeplitz, and in higher dimensions it has more deeply nested block Toeplitz structure. Hence _u_ <sup>T</sup> _u_ and consequently _a_ are also Toeplitz-like. Specifically, _ak_, _k_ ′ = _ck_ −′ _k_ + _λδk_, _k_ ′, (12) where _c_ is the unnormalised cyclic autocorrelation function of _s_ _N_ 1 −1 = ∑ _ck_ = ∑ _sn_ + _ksn_, _k_ = ∑ _sn_ + _ksn_, _n_ =0 (13) _n_ _sn_ + _ksn_, 0 =0 where _N_ is image pixel dimension. However, _c_ is cut to the size of _p_ to form the matrix. The vectors and matrices in the equations can be seen as images. This is obvious for vectors such as _m_, which we introduced as images. Writing out the multi-index _n_ as ( _nx_, _ny_ ) makes clear that _mn_ has rows and columns. In the case of matrices, this is enabled by their Toeplitz-like structure. Matrix _u_ is formed by elements of image _s_, only organised differently—see Eq. (9). Similarly, matrix _a_ is formed by elements of the cyclic autocorrelation image _c_, only organised differently and cut to a region around the origin—see Eq. (12). The addition of _λI_ corresponds to the modification of the single pixel at the origin. Representing the matrices as corresponding images is convenient for computer implementation because multiplication by a matrix is then equivalent to image convolution (or correlation for transposed matrices). Overall, all vectors and matrices involved in the system of Eq. (11), although relatively large, are only of size comparable to _p_, much smaller than the full images. The system can be solved easily using the conjugate gradients <sup>24,25</sup> method. The only costly operation involved is multiplication of _p_ -sized vectors with _a_, which is realised as image convolution, utilising the fast Fourier transform (FFT). The LSM extends naturally to multiple input images. If the same tip and lift height are used in several measurements (distinguished by index _μ_ ), the least squares problem (10) becomes 2 + _λ_  _p_ 2] ∑  _mµ_ - _uµp_  2 + _λ_  _p_ 2]. _µ_ min [∑  _mµ_ - _uµp_  2 + _λ_  _p_ 2]. _p_ _µ_ (14) The normal equations remain the same, except with _a_ being replaced by the sum of matrices corresponding to individual measurements ∑ _μ_ _aμ_ . Similarly in the right hand side _u_ <sup>T</sup> _m_ is replaced by the sum ∑ _μ_ _uμ_ T _mμ_ . The images combined in (14) must have the same sampling steps, but their dimensions may differ. We can even construct the normal equations for non-rectangular data, for example images with some regions excluded. The correlations and convolutions entering the equations can be easily computed for irregular regions <sup>26</sup>, unlike Fourier transforms. This can certainly be seen as an advantage. The disadvantage of LSM is larger complexity of implementation compared with frequency domain filtering. Discretisation and Units In practical calculations all the operations written using functions and integrals in Theory and Non-periodicity and Image Boundaries are realised with discrete data. Hence, we replace a function _f_ ( _x_, _y_ ) with its sampled values in _N_ discrete points _fn_ . The real coordinates are related to the integer indices _x_ = _hxnx_ <sup>and</sup> _y_ = _hyny_ <sup>, where</sup> <sup>_hx_</sup> <sup>and</sup> _hy_ are the horizontal and vertical sampling steps. We then assume _f_ ( _hn_ ) = _fn_ <sup>, writing formally the</sup> component-wise product ( _hxnx_, _hyny_ ) as _hn_ . In this paper we define the discrete norm <u>1</u> ∑ | _f_ 2 = _N_ <u>1</u> ∑ | _fn_ |2  _f_ 2 = _N_ <u>1</u> ∑ | _fn_ |2 _N_ _n_ _n_ (15) and assume unitary (symmetrically normalised) discrete Fourier transform <u>1</u> _<u>π</u>_ _<u>n</u>_ _<u>N</u>_ ∑ _n_ _fn_ exp <sup><u>2</u></sup> _N_ <sup><u>i</u></sup> <u>1</u> _<u>π</u>_ _<u>nν</u>_ <sup>_F_</sup> _ν_ = ∑ _fn_ exp <sup><u>2</u></sup> <sup><u>i</u></sup> . _<u>N</u>_ ∑ _f_ _n_ _n_ _N_ (16) _n_ The discrete convolution of _f_ and _g_ is the sum _hn_ = ∑ _fn_ - _k_ _gk_ . _n_ = ∑ _k_ _fn_ - _k_ _gk_ . (17) _k_ _n_ - _k_ _k_ This is the operation usually provied by numerical software. However, when the integral in convolution (1) is approximated by Riemann sum _m_ ( _hn_ ) ≈ ∑ _s_ ( _hn_ - _hk_ ) _p_ ( _hk_ ) _hxhy_ + _t_ ( _hn_ ), _xhy_ _x_ _y_ _k_ (18) it corresponds in the discrete notation to _mn_ = _hxhy_ ∑ _sn_ - _k_ _pk_ + _tn_ . _n_ = _hxhy_ ∑ _k_ _sn_ - _k_ _pk_ + _tn_ . (19) _k_ _n_ - _k_ _pk_ + _tn_ . This is consistent with the dimensional analysis of expression (1) which gives dim( _m_ ) = dim( _s_ )dim( _p_ )dim( _hxhy_ ) <sup>.</sup> In MFM the magnetic surface charge map is represented as _Hz_, measured in A/m. Tip-sample force gradient, the quantity imaged by MFM, has unit of N/m. Conventionally it is divided by the permeability of vacuum _μ_ 0, resulting in ‘force gradient’ images in A <sup>2</sup> /m. The TTF then has to be measured in (A /m)/(A/m2 ⋅ m )2 = A/m2. Obviously, the factor _hxhy_ must be applied somewhere when realising the convolution (19) using discrete operation (17), and the same holds for deconvolutions. One option is a meticulous normalisation of all intermediate data, Fourier transforms, norms and other quantities in the computation to ensure they always correspond to sampled continuous physical definitions. The other options, more convenient and thus much more popular, assimilate the factor _hxhy_ into one of the images. Either the ideal signal _s_ is pre-multiplied _s_  _n_ = _hxhysn_ <sup>, allowing to write</sup> _mn_ = ∑ _s_  _n_ - _k_ _pk_ + _tn_ . _n_ = ∑ _k_ _s_  _n_ - _k_ _pk_ + _tn_ . (20) _k_ _n_ - _k_ _pk_ + _tn_ . ∼ Or the measured data can be pre-divided _mn_ = _mn_ /( _hxhy_ ) <sup>. Or a discrete deconvolution used to obtain a dis-</sup> crete TTF _p_  _k_, which is then transformed to sampled physical TTF by post-division _pk_ = _p_  _k_ /( _hxhy_ ) <sup>. Images mod-</sup> ified for discrete operations can be used either internally or exposed to SPM software users. Pre-division is used for instance in the SigMath environment <sup>6,11</sup>, whereas post-division is used internally in Gwyddion <sup>27</sup> . As long as they are applied consistently, all the approaches provide physically equivalent final results. Nevertheless, the multitude of options invites misunderstanding and confusion in quantitative comparisons if the intermediate images are exchanged and presented. We strongly advocate for only exchanging and presenting images of sampled physical fields in units described above. Comparison of regularisation parameter _λ_ requires even more care. It has different meanings and different physical units in the individual methods. Furthermore, its numerical value depends on convolution and FFT normalisation and other choices. For the definitions (15) and (16) and post-division of discrete TTF _p_  _k_ we can introduce a dimensionless _σ_ related to _λ_ as follows: - In regularised filter (5) put _λ_ = _s_ <sup>2</sup> _σ_ . - In pseudo-Wiener filter (7) put _λ_ = _s_ 2 _m_ 2 _σ_ 2. - In LSM normal Eq. (11) put _λ_ = _NK_ 1/3 _s_ 2 _σ_, where _N_ and _K_ are the respective numbers of image and TTF pixels. Correct powers of || _s_ || and || _m_ || ensure that _σ_ does not depend on the magnitude of values in either input image. The quadratic relation between _σ_ and _λ_ for pseudo-Wiener filter and linear for the other two methods ensure _σ_ is approximately proportional to noise to signal ratio. Factor _N_ in LSM comes from the number of _u_ matrix rows <sup>24</sup> - _σ_ then scales approximately with 1/ _<u>N</u>_ for all methods (as expected for a least squares problem). The additional factor _K_ <sup>1/3</sup> ensures a more or less consistent _σ_ scaling with TTF support size across the methods. Nevertheless, we must note that consistent scaling does not mean _σ_ values are directly comparable between different methods and that other choices are possible which lead to different but again consistent scaling. Non-periodicity and Image Boundaries A point which cannot be overemphasised is that real-world samples are not periodic and SPM measurements do not produce periodic images. It was disregarded in the previous section for brevity. However, non-periodicity must be taken into account to have any hope of successful TTF recovery. Non-periodicity has two basic consequences. First, data measured close to image edges were influenced by sample regions beyond the boundaries of the scanned rectangle. Since these regions were not measured their content is unknown. In deblurring, this causes artefacts close to image edges. However, in the present study it is the least serious of the two problems. The second consequence is contamination of spectra by discontinuities across image edges (which have 1/ _f_ -like frequency response). The typical result is a ‘cross’ artefact in the reconstructed TTF illustrated in Fig. 1c, which occurs for all TTF calculation methods. The artefacts can be suppressed by mirror-extending _m_ and _s_, which makes them at least _C_ <sup>0</sup> -smooth ( _C_ <sup>_k_</sup> denoting the class of functions with _k_ continuous derivatives). In one dimension a spatially-reversed copy of the signal is placed after it and the new double-sized signal is used instead of the original. In two dimensions this has to be done along both axes, resulting in quadruple-sized images, containing the original plus three differently mirrored copies. Unfortunately, it also means the input data now contain convolutions with _p_ in four different positions. Deconvolution then produces _p_ averaged over all the positions. If we do not know whether _p_ is symmetrical, the result is not useful; whereas if _p_ is known to be completely symmetrical, we are better off fitting an explicit symmetrical functional form. Instead, we utilise windowing <sup>28</sup> . In other words, before the deconvolution using either (2) or (10), both _m_ and _s_ are multiplied by a window function _w_ which smoothly approaches zero at the boundaries. Hence the windowed images also smoothly approach zero at all boundaries and they can be considered periodic. The improvement is illustrated in Fig. 1b. We remark that both mentioned problems are more serious for two-dimensional images than for one-dimensional signals as comparably larger fractions of data lie close to the boundaries—and it becomes even more serious in higher dimensions as the fraction of hyper-volume lying within a fixed distance from the Figure 1. Cross artefact caused by image boundary discontinuities. Transfer functions displayed: ( a ) true; ( b ) reconstructed using the Welch window function and _σ_ → 0; ( c ) reconstructed without windowing and the same _σ_ ; ( d ) reconstructed without windowing and large _σ_ —even with _σ_ so large that the TTF becomes smeared, the cross-like anisotropy is still clearly present. Note that the colour scale in part ( c ) is adapted to the full value range—the smooth central bump corresponds to TTFs in the other three parts. boundary approaches unity. This also means that windowing has to suppress an increasing portion of data as the dimension _d_ grows. In the spatial domain, the linear relation _m_ = _p_ ∗ _s_ holds when _m_ and _s_ are multiplied by the same constant. The window _w_ is a very slowly varying function and the support, or at least the effective support, of _p_ is small; even though for instance Gaussian _p_ has in principle infinite support. Intuitively, in the corresponding small area the window _w_ is almost constant and the relation _m_ = _p_ ∗ _s_ is relatively unperturbed by windowing: _mw_ = _p_ ∗ _sw_ still holds relatively precisely. Nevertheless, windowing alters the reconstructed TTF. How much and which of the plethora of available window functions should be employed? It is not obvious how window function characteristics studied extensively in harmonic analysis translate to TTF reconstruction. How much _w_ differs locally from a constant depends, in the first approximation, on its derivative (gradient ∇ _w_ ). If we keep all other settings and only increase the scanned area, the linear dimension of TTF decreases with respect to the linear dimension of the entire area. Denote this ratio of the linear dimensions _ε_ ( _ε_  1). The _L_ <sup>2</sup> norm of difference of _w_ from a constant on TTF support, averaged over image area, is proportional to _ε_ 1+ _d_ /2 ∇ _w_  . This is one characteristic of the influence. However, there are other effects to consider. Suppressing more data leaves less information to be utilised in the reconstruction; this is measured by || _w_ ||. The window functions also make the data either _C_ <sup>0</sup> or _C_ <sup>1</sup> -smooth across the boundary, and this might play a role. We explored the effect of windowing by numerical simulations in one and two dimensions for several window functions implemented in Gwyddion. They included _C_ <sup>1</sup> Hann, Blackman <sup>28,29</sup> and Kaiser <sup>30</sup> ( _α_ = 2 5. ) windows, _C_ <sup>0</sup> Lanczos and Welch <sup>31</sup> windows, and _C_ <sup>−1</sup> Hamming <sup>28</sup> window, which is similar to Hann window but leaves a small discontinuity across the edge. The results for two-dimensional data (images) are plotted in Fig. 2. They are plotted for both periodic and non-periodic signal _s_ consisting of random artificial domain-like images. The true TTF was tetragonal, 21 × 21 pixels and normalised || _p_ || = 1. In order to isolate the effect of windowing no noise was added and _λ_ was set to zero—which is optimal in the noise-free case if windowing is applied (as discussed in Optimum Regularisation Parameter). The TTF was obtained by LSM. With the exception of no windowing and the _C_ <sup>−1</sup> Hamming window, the results for periodic and non-periodic images were almost identical. Without windowing, the reconstruction is almost perfect in the periodic case. The error is essentially given by the conjugated gradients stopping criterion. However, it is poor for non-periodic images. It should be noted that the no-window curve for non-periodic images does not correspond to the best TTF that could be obtained without windowing. Increasing _λ_ would lead to smaller errors. Nevertheless, as Fig. 1d illustrates, even the best case is rather poor. Any kind of windowing improves the results dramatically, but there are some systematic differences. The scaling behaviour with image size is essentially the same for all window functions which ensure at least _C_ <sup>0</sup> smoothness (the _C_ <sup>−1</sup> Hamming window is clearly inferior). In one dimension the power of _ε_ is approximately 1.62 while in two it is 2.06. This is not far off the 1 + _d_ /2 powers obtained by considering ∇ _w_ which are 1.5 and 2, respectively. However, when we compare individual windows, the _C_ <sup>0</sup> Welch and Lanczos functions perform best, while the smoother windows perform worse. In one dimension the differences are even more marked. In fact, for all tested windows, the error is strongly correlated to 1/|| _w_ || (not  ∇ _w_ , which is quite similar for all windows) as also illustrated in Fig. 2. Smoothness seems to not matter beyond _C_ <sup>0</sup> . The simple Welch window _w_ ( _x_ ) = 4 _x_ (1 - _x_ ) (for _x_ ∈ [0, 1]) appears to be a good choice. For a given windowing type the error essentially depends only on the ratio of image linear pixel size to TTF linear pixel size. Figure 2 thus provides an estimate how large a scan area must be to achieve a given error. When the ratio is at least 12–15, which is satisfied for typical image and TTF sizes, the TTF error due to windowing should be around or below 1%. We also tested the Tukey window function <sup>32</sup>, which is constant on a symmetrical interval around the centre. The interval width is tunable, with wider constant intervals corresponding to more rapidly changing function close to the edges. This window is used in qMFM in the SPM Toolbox <sup>33</sup> . If the parameter was chosen close to the optimum, the performance was slightly worse compared to the Welch window—see Fig. 2. The Tukey window transitions between rectangular and Hann windows as the limit cases. However, the Hann window did not Figure 2. Evolution of mean square error of TTF reconstruction with input data size for several window functions, for periodic and non-periodic noise-free images. The two small plots show the average error relative to the Welch window error for individual smooth window types and the tunable Tukey window. perform particularly well. So there might be space for further optimisation if the tunable window has one of the best performing windows (Welch or Lanczos) as the limit case. Finally, we remark that in LSM the influence of boundaries can be avoided entirely in a logically consistent manner—at least in principle. If the norm in (8) is calculated only from pixels sufficiently far from the border (farther than TTF size), while the convolution is still done with full-sized images, then no unmeasured data or boundary discontinuities enter the residual _R_ . The price is, however, high. The matrix of the corresponding normal equations, although still easy to express formally, has no longer Toeplitz structure; instead, it becomes a general symmetric positive definite matrix. Storage requirements and matrix multiplication complexity increase dramatically. In one dimension this may be still a reasonable trade off, in two and more dimensions the computational cost seems prohibitive. Optimal Regularisation Parameter In the preceding, regularisation parameter was assumed ‘chosen suitably’. When the goal is to measure the TTF corresponding to a particular tip and other parameters (lift height), a suitable choice means small error, expressed as norm of the difference between obtained and true TTF  _p_ ^ ( _σ_ ) - _p_  . There are several major contributions to this error: - Perturbation error, originating from noise and other artefacts in _m_ (decreases with increasing _σ_ ). - Regularisation error, arising from the difference between regularised and exact problem (grows with _σ_ ). - Windowing error, caused by windowing. It can be sometimes avoided, e.g. for strictly periodic data. It can be also traded for an error caused by edge effects but, as shown in section Non-periodicity and Image Boundaries, this is not recommended. - Ideal data error, caused by our inability to obtain _s_ exactly, even with carefully selected and measured samples of perpendicular structures. It will be discussed in section Ideal Image Estimation and Instrumentation Errors. The first two errors depend strongly on _σ_ and we seek a compromise between them. Instead of  _p_ ^ ( _σ_ ) - _p_ , which requires to know the true TTF, a surrogate quantity must be optimised. A large number of methods detailing how to choose _σ_ have been proposed. The discrepancy principle <sup>34</sup> relies on a good estimate of noise in measurement _δ_ = _m_ - _m_ noisefree  . We then seek to achieve to match the estimated error, more precisely to achieve  _m_ - _p_ ( _σ_ ) ∗ _s_ = _cδ_, where _c_ is a constant, typically _c_ = 2 − 5. The L-curve method <sup>24</sup> follows from the observation that the parametric curve ( _p_ ( _σ_ ), _m_ - _p_ ( _σ_ ) ∗ _s_ ) is often L-shaped in logarithmic scale, with good compromise between the two errors corresponding to the corner. The generalised cross-validation (GCV) method <sup>24,35</sup> arises from the requirement that if a single measurement is omitted, it should be predicted well by the remaining data in a good solution. By Figure 3. Illustration of _σ_ selection criterion based on TTF width: ( a ) actual reconstruction error as a function of _σ_ ; ( b ) width estimated as _w_ ttf as functions of _σ_ . Individual curves corresponding to different noise to signal ratios and two different reconstruction methods. applying this to all points it is possible to derive explicit formulae for the cross-validation error, expressed using eigenvalues of the matrix of the linear problem. Under certain assumptions, GCV minimises the prediction error  _p_ ^ ∗ _s_ - _p_ ∗ _s_  . Rice’s method seeks instead to actually minimise estimated  _p_ ^ - _p_  <sup>36,37</sup>, utilising both a noise estimate and the eigenvalue spectrum. All these methods work under certain assumptions or in a certain sense, but none work universally. They can suffer a variety of problems, including systematic bias, tricky shape of the minimum, poor behaviour in low-noise cases and instability—and sometimes they can even fail to provide any estimate at all <sup>24,37–41</sup> . One should always verify the suitability of a particular method for specific applications. After many numerical experiments attempting to identify a criterion which works well for this particular application in MFM, we had to ask: Why can a human fiddling with a _σ_ slider recognise a near-optimal TTF just by looking at it, without studying eigenvalue spectra or even the residuum? The TTF is not an arbitrary image; it is a localised structure. The compromise we seek is between making it too blurry and too noisy. We observe that even though oversmoothing and noise act very differently—one smears the image, whereas the other increases distant values randomly—both widen the TTF. Therefore, a good TTF should be tight. A suitable tightness criterion should select good _σ_ values. Define TTF function width _w_ ttf simply as the standard deviation ### [ p ˆ] = 1 ∫ | r |2 | p ˆ( r )| d A, 2 [ _p_ ˆ] = <u>1</u> | _r_ |2 ### w ttf2 [ p ˆ] = 1 ∫ | r |2 | p ˆ( r )| <u>1</u> ### = | A | ∫ ### ttf[ p ˆ] = | A | ∫ A | r | | p ˆ( r )| d A, (21) | _A_ | | _A_ | where _r_ is vector from the TTF centre of mass (or, alternatively, maximum – they usually almost coincide). For the LSM, the integration area _A_ is simply the entire _p_ ˆ image. For frequency domain filtering, best results are obtained if _A_ again roughly corresponds to the estimated support of _p_ . The course of _w_ ttf( _σ_ ) is not sensitive to precise dimensions of _A_ . It should be noted that evaluation of _w_ ttf is particularly computationally cheap in LSM, because it only involves the small _p_ ˆ image—no operations with full image-sized data are necessary. We can now check how well the minimum of _w_ ttf( _σ_ ) approximates the minimum of the TTF error  _p_ ^ ( _σ_ ) - _p_  . Figure 3a shows the dependency of reconstruction error on _σ_ for two algorithms and a set of noise to signal ratios. The displayed curves were obtained using artificial 640 × 640 data for Gaussian TTF and point noise. However, the results were similar for other cases we studied, in particular local scan line errors instead of point noise (as simulated by Gwyddion _Line noise_ function) and tetrahedral TTF, which has sharp features and is more sensitive to correct phase than a Gaussian. Figure 3b shows the evolution of _w_ ttf( _σ_ ) (plotted as inverse value for clearer comparison) – and the similarity to Fig. 3a is striking. We can also see that LSM led to systematically smaller errors in the optimal TTF than Figure 4. Ratio of TTF reconstruction errors as a function of noise. In part ( a ) _σ_ was estimated by finding the minimum of _w_ ttf and the plot shows the ratio of TTF error to the minimal error, obtained for true optimal _σ_ . The values are evidently scattered; nevertheless, they remain in a narrow interval. Part ( b ) illustrates the improvement when the estimated _σ_ is modified by factor 0.35. frequency domain filtering. In Fig. 3a the improvement is between about 20% and a factor of 2. Furthermore, it is evident that LSM behaves considerably better for underestimated _σ_ as it is less ill-conditioned. In fact, for low noise there may not be any discernible minimum of  _p_ ^ ( _σ_ ) - _p_  and _σ_ → 0 is a also suitable choice. In assessing the consequences of replacing the unknown minimum of  _p_ ^ ( _σ_ ) - _p_  with measurable minimum of _w_ ttf( _σ_ ), we must therefore consider how much the TTF itself changes with respect to the optimal _σ_ —comparing just _σ_ estimates would be misleading. Figure 4a shows the ratio of error obtained from the width-based estimate to the smallest error possible for given algorithm: _<u>p</u>_ ^ <u>(</u> _<u>σ</u>_ <u>wttf)</u> <u>−</u> _<u>p</u>_ <u></u> . _p_ ^ ( _σ_ best) - _p_  (22) <u></u> _<u>p</u>_ ^ <u>(</u> _<u>σ</u>_ <u>wttf)</u> <u>−</u> _<u>p</u>_ <u></u> .  _p_ ^ ( _σ_ best) - _p_  _<u>σ</u>_ _σ_ <u>wttf</u> best <u>−</u> The ratios are plotted for all combinations of two TTF shapes (Gaussian and tetrahedral), noise types (point and scars) and algorithms (least squares and filtering). Individual values are rather scattered, even though a difference between TTF shapes is observable. The important observation is that the highest ratios are below 1.6 and the typical increase is about 1.3, only a moderate increase. A closer comparison of _σ_ values reveals a small systematic offset between optimal _σ_ and position of _w_ ttf minimum. The minimum overestimates optimum _σ_ slightly. Noting that the cost of overestimation and underestimation differ, the correction factor can be estimated as approximately 0.4. A larger-scale numerical experiment consisting of 23,760 deconvolutions covering wide ranges of image resolutions, noise levels, TTF sizes, and domain widths led to optimum factor of approximately 0.35. The results for _σ_ wttf replaced by 0.35 _σ_ wttf are plotted in Fig. 4b. The error is quite close to minimal for all algorithm and parameter permutations. The TTF width criterion, as presented above, is therefore a simple and robust way how to optmise the regularisation parameter in TTF reconstruction for all typical MFM image sizes and noise to signal ratios. We should however note that for very large input images with very low noise the method sensitivity is low, i.e. it is not able to differentiate well between a very good TTF and even better one. Figure 5. Instrumentation errors and their effect on TTF: ( a ) detail of a MFM phase image with magnetisation switches and other line artefacts; ( b ) the same image with switches corrected; ( c ) strike-through artefact caused by scan line errors; ( d ) strike-through artefact removed by utilisation of uncorrelated images; ( e ) stripe artefacts caused by lift height variation; ( f ) single-pixel spike artefact caused by correlated point noise. The colour scales in parts ( c - f ) illustrating individual artefacts are adapted to always match the full data range. Data Resolution While measuring the reference sample we need to decide how to set the scan area and pixel resolution of the data. Even if we could search for the best pixel resolution for the TTF reconstruction this would be useless in practice. The goal of TTF estimation is to use it for further calculations, making measurements on some other sample quantitative. Therefore the pixel size of measurement on the multilayer sample used for TTF estimation should be same as real pixel size of the data on unknown sample that we want to quantitatively measure. Fortunately, for most of the probes the TTF is smooth and influence of pixel resolution and scan area (if we can see reasonably the domains on the MFM data) on TTF reconstruction is relatively small. Ideal Image Estimation and Instrumentation Errors Most of the previous discussion was based on numerical experiments with artificial data for which we also knew all the unperturbed images exactly. This allowed isolation of particular aspects and quantification of errors instead of mere estimation. In real MFM measurements, however, the blind deconvolution situation is more messy and there are several image artefacts specific to scanning probe techniques we must deal with. Switching of the tip magnetisation at particular part of the sample is caused by combination of tip magnetisation instability and local magnetic field variations from the sample and is observed relatively often. As a result, the values in entire scan lines are approximately inverted (Fig. 5a). The defect can span several scan lines, or a part of a scan line. It is easy to detect in the data by calculating the discrete covariance of each pair of neighbour lines. Negative values indicate tip magnetisation switch between the two lines. Line inversions must be corrected, otherwise they would wreak havoc on the TTF reconstruction. Interpolation, for instance by solution of Laplace’s equation, is a suitable method. Its Gwyddion implementation gives the result shown in Fig. 5b. A conservative estimate of uncertainty originating from the correction can be based on the fraction of pixels replaced. If all scan lines in the image are replaced by the averages of their neighbours, it results in a distortion in the range 0.5 to 3% under typical conditions. A more specific value can be derived from particular data. By multiplying it with the fraction of replaced pixels we obtain an estimate of additional ‘noise’ introduced by the interpolation. Even with no inversions present, other line artefacts frequently make the features slightly misaligned between individual scan lines, also visible in Fig. 5. Consequently, each scan line is less correlated to its neighbours than it should be, resulting in a ‘strike-through’ TTF defect, illustrated in Fig. 5c, where a prominent central horizontal stripe is surrounded by suppressed regions. Larger _λ_ makes the defect less prominent, at the expense of more blurred result. A surprisingly simple remedy is to utilise two independent scans, one for _Hz_ and one for force gradient. This means to repeat the scan after we see line artefacts present in our data. The line artefacts in the two scans are uncorrelated and thus do not give the horizontal stripe. See Fig. 5d, which was calculated with the same _λ_, only utilising two different scans. Of course, drift must be under control to minimise shifts between the scans. The origin of the line artefacts can be a fault in the feedback loop while measuring the surface topography, similar to the defect observed in purely topographic measurements. It can be also related to the MFM signal measurement in the Lift mode, where two scenarios can lead to line artefacts. Either the probe stays attached to the surface due to adhesion forces, producing virtually no contrast in MFM data; or the lift height is wrong for the entire scan line, which can be caused by an inaccuracy of the _z_ -position Figure 6. Thresholding artefacts: ( a ) detail of true domain image; ( b ) convolved with Gaussian (width 1/6) and thresholded; ( c ) convolved with Gaussian (width 1/3) and thresholded; ( d ) convolved with Gaussian (width 1/3), 1% noise added, deconvolved and thresholded. Lower halfs of parts ( b - d ) show differences from the original binary image, with red and blue representing positive and negative signs, respectively. sensor. To prevent the former, manufacturers typically retract the probe further from the sample before starting the data acquisition in the Lift mode. For the latter, acquired MFM data are still valid, but acquired closer to or further from the sample surface than requested. Since MFM data decay quickly when moving farther from the sample, the signal in these lines have visually the same shape, but different scale. In order to simulate the effect of wrong lift height on TTF reconstruction we used a volume MFM dataset and created a virtual experimental data set from MFM signal acquired at different heights. The resulting stripe artefacts are shown in Fig. 5e. The lift height defects can be in principle corrected in the image similarly to magnetisation switches. However, it is much more difficult to mark areas of affected pixels. To avoid excessive correction of experimental data, we should ideally perform a new measurement. An effect of similar nature can appear for large lift heights, where the signal to noise ratio decreases and the TTF width increases. When there is considerable noise in the measured force gradient, simple thresholding leads to ‘hairy’ edges in the surface charge map. Again, the correlated errors between the images cause artefacts, in this case a sharp single-pixel peak in the TTF centre (essentially representing a _δ_ -function). It is depicted in Fig. 5f, calculated from quite noisy data measured at lift height of 250 nm. It is again eliminated by using two scans, a scan with small lift height for the _Hz_ image and the possibly large lift height where we intend to measure TTF for the force gradient image. This brings us to the final point, the fact that thresholding a force gradient image does not recover the sharp image representing magnetic domains perfectly. Even at small lift heights the shape of reconstructed domain edges is deformed by convolution with TTF. This is illustrated in Fig. 6 using artificial data. Figure 6a displays the actual magnetic domains. The result of convolution and subsequent thresholding is shown in Fig. 6b,c for two different Gaussian TFs, wide 1/6 and 1/3 of domain width, respectively. Differences between Fig. 6b and original are barely noticeable, but in Fig. 6c we can see that finer features were lost. Under typical circumstances, the deformation is moderate and can be to a large degree removed by deconvolving the force gradient image with the obtained TTF and using the result of the deconvolution for thresholding and computation of a second, final TTF. In Fig. 6d, which illustrates the result of this procedure, we can see the original features were not recovered perfectly, but the distortion was still reduced. Note that the procedure was carried out with 1% noise in the ‘measured’ image. Deconvolution with the first TTF produces artefacts close to image edges (not visible in the selected detail). Fortunately, these regions are suppressed by windowing and even considerable artefact are not detrimental. Volume MFM data handling When the procedure of TTF estimation is robust enough for automated work we can use it for more complex dataset processing. This is namely the case for volume data. Present SPMs allow magnetic signal measurements in the whole volume above the sample, with high resolution in all the axes and within reasonable time. Such data can be useful for analysing the stray field decay from the sample surface, e.g. to distinguish between magnetic signal and other probe-sample forces. The volume data interpretation is beyond the scope of this paper, we only demonstrate the performance of TTF estimation algorithm, as shown in Fig. 7. The first step is to obtain the best _Hz_ from the point of view experimental errors, then apply to all lift heights. The lift height for _Hz_ is selected to be sufficiently high to prevent feedback errors and short range interactions from affecting the data and simultaneously low enough to get good signal to noise ratio. The TTF can be estimated using either constant _σ_ or _σ_ optimised for each level independently. From Fig. 7a we can see that there is a range in which the estimated _σ_ is nearly constant. Therefore, in this region we can use a constant value. However, to cover a wider range of lift heights and still get well reconstructed TTF in each of the lift heights one has to optimise _σ_ at each level. The choice of _σ_ has an impact on TTF shape. This is illustrated in Fig. 7b on the plot of TTF width as a function of lift height for different choices of _σ_ . A resulting 3D plot of TTFs evaluated at different lift heights is shown in Fig. 7c. Figure 7. Lift height-dependent reconstruction for volume MFM data: ( a ) evolution of estimated optimal regularisation parameter _σ_ ; ( b ) TTF width measured using formula (21) for _σ_ estimated at each lift height and three fixed values within the range of more or less constant optimal _σ_ ; ( c ) evolution of TTF with lift height calculated from volume MFM data with slices at selected heights (colour ranges are adapted to full range of each individual slice). Conclusion We considered aspects of tip transfer function (TTF) reconstruction in magnetic force microscopy using measurements on perpendicular domain multilayer structures specially designed for quantitative MFM imaging. With the goal of providing procedures, suitable parameter choices and best practice for measuring the TTF effectively and efficiently, numerical experiments with large sets of simulated data (for which a procedure is outlined) were used to ensure the recommendations hold. Two different classes of deconvolution approaches were studied, regularised frequency domain filtering and solution of least-squares problem. Frequency domain filtering certainly has the advantage of implementation simplicity and while we found it can provide adequate results, the least squares method achieved TTF reconstruction with lower errors and brought other benefits, such as natural extension to multiple input images. We also addressed the tangled issue of regularisation parameter choice for the reconstruction. Noting that in this particular application under- and oversmoothing have the same effect of widening the result, finding TTF with the minimal dispersion was suggested as a simple yet effective regularisation parameter optimisation method. It was verified by a numerical study that it leads to consistently good choices for the regularisation parameter under a variety of conditions covering a range of MFM applications. A robust and automated regularisation parameter estimation has also a benefit that it can be used for volume MFM data analysis, either for cross-checking of data consistency or for estimating the influence of other probe-sample interactions. Since measurements with a scanning probe bring a specific types of image defects, the effects of most common ones were illustrated alongside measures to avoid them. From analysis of data from numerical experiments and real measurements we can give the following recommendations: - When possible, measure the experimental data that will be used for TTF estimation twice. Use one of the measurements to simulate the ideal response and another one to estimate the TTF on these data. - Choose resolution and range of the measurement used for TTF estimation to match the resolution and range of data on the unknown sample on which we want to do quantitative MFM. Use a different resolution only in cases when resulting TTF would be too small or the characterisation sample would be not sufficiently statistically covered. - Always use windowing when performing the TTF. Based on numerical studies, we recommend the Welch window for TTF reconstruction, for which the error originating from windowing is about 1% or below for typical image dimensions. - Report TTF and related quantities only as sampled physical fields. We advocate for this even where it might depart from current practice. - A simple TTF width-based criterion can be used for estimation of the regularisation parameter. Other approaches can be used as well, however be wary when comparing regularisation parameters coming from different methods. Even if these rules are not exhaustive and there are many experimental conditions that need to be still chosen, following them can signifincantly reduce the TTF errors and potential misunderstandings in TTF interpretation. Methods MFM Samples and Measurements. Experimental data measured on a reference sample based on Si/SiO _x_ / Pt(5 nm)/[Pt(0.9 nm)/Co(0.4 nm)]100/Pt(2 nm) multilayer are provided within this paper to illustrate the TTF estimation procedure and to point out different instrumentation related errors that we can observe in the measurements. Data were obtained using Dimension Icon microscope with MESP-RC probes in the Lift mode (2D data) or in Force Volume mode (3D data), with typical settings used in routine microscope operation. Figure 8. Images representing vectors and matrices in the conjugated gradients procedure. Data Processing. MFM data were processed in Gwyddion (post-2.51 development version) <sup>27</sup> . Artificial data were generated using Gwyddion data processing libraries and modules. Presented algorithms were implemented in C using Gwyddion libraries and FFTW3 <sup>42</sup> and Gwyddion modules and/or library functions. Conjugate Gradients. A simple conjugated gradients procedure is sufficient for the normal Eq. (11). As already noted in section Least Squares Method, the matrices and vectors can be stored as images. We found a consistent FFT-native representation convenient, i.e. during the computation all these images are centred at the origin (top left corner), with large indices _N_ - _j_ interpreted as negative − _j_ . Any zero padding is then done by inserting zeros in the middle—as illustrated in Fig. 8. Assume _p_ is odd-sized with pixel dimension _K_ = 2 _M_ + 1 ( _K_ and _M_ being again multi-indices) and the negative index convention. The _p_ image then has values _pk_ where _k_ = - _M_, - _M_ + 1, …, _M_ - 1, _M_ and the same holds for the right hand side image. The image representing matrix _a_ has values _a_ _k_ with _k_ = - _K_, - _K_ + 1, …, _K_ - 1, _K_ . The procedure has two stages, initial setup: 1. Apply windowing to _s_ and _m_ images. 2. Compute image _b_ = _s_ ∗ _m_, cut to 2 _M_ + 1 size. 3. Compute image _c_ = _s_ ∗ _s_ (cyclic autocorrelation), cut to 2 _K_ + 1 size. 4. Modify the pixel at origin in _c_ by adding _λ_ . 5. Start with _j_ = 0 and _p_ (0) = 0 (if no better initial estimate is available). 6. Compute _f_ (0) = _v_ (0) = _ap_ (0) - _b_ = - _b_ and _w_ (0) = _av_ (0) = - _ab_ . Images _f_, _v_ and _w_ all have the same dimensions as _p_ . and iteration: 1. Compute the scalar products _n_ = _f_ ( _j_ )T _v_ ( _j_ ) and _d_ = _v_ ( _j_ )T _w_ ( _j_ ). 2. Iterate solution _p_ : _p_ ( _j_ +1) = _p_ ( _j_ ) - _n_ / _d v_ ( _j_ ). 3. Iterate residual vector _f_ : _f_ ( _j_ +1) = _f_ ( _j_ ) - _n_ / _d w_ ( _j_ ). 4. Check iteration stopping criteria and possibly stop with solution _p_ <sup>(</sup> <sup>_j_</sup> <sup>+1)</sup> . 5. Iterate _v_ : _v_ ( _j_ +1) = _f_ ( _j_ +1) - _f_ ( _j_ +1) _T_ _w_ ( _j_ )/ _d v_ ( _j_ ). 6. Iterate _w_ : _w_ ( _j_ +1) = _av_ ( _j_ +1). 7. Increment _j_ and repeat. Matrix multiplication _av_ is realised as the image convolution with the corresponding images _a_ ∗ _v_, with _v_ zero-padded in the middle for FFT. Since errors tend to accumulate in pixels close to the borders of the solution image, the result can be noticeably improved by increasing the estimated TTF size by 2–3 pixels on each side and then cutting the solution back to the original size. Artificial Data Generation. The perpendicular magnetic domain structures used for determining TTF are quite specific. In order to study the behaviour of various algorithms in numerical simulations, an efficient artificial data generation method is necessary. The procedure described below reproduces local features, observable on the scale of TTF support and we implemented it as _Phases_ synthetic data module for Gwyddion <sup>27</sup> . It does not reproduce faithfully the global topology, with entire ‘up’ and ‘down’ domains forming single connected components (or at least disconnected components being rare). However, this characteristic is not observable on the scale of TTF and thus not important in the reconstruction. The procedure combines frequency domain synthesis with morphological processing: 1. A frequency-domain image is formed, containing a ring with amplitude of Fourier coefficients given by function 1/cosh _t_, where _t_ = ( _f_ - _f_ 0 )/∆ _f_ . The ring central frequency _f_ 0 and spread ∆ _f_ are tunable parameters; the domain widths are proportional to 1/ _f_ 0. The phase of Fourier coefficients is assigned randomly. Figure 9. Artificial data generation procedure: ( a ) frequency-domain synthesis; ( b ) local normalisation; ( c ) difference of Euclidean distance transforms; ( d ) final binary image (low frequency spread ∆ _f_ ); ( e ) final image with moderate ∆ _f_ ; ( f ) final image with large ∆ _f_ . 2. The corresponding spatial-domain image is obtained by inverse FFT (Fig. 9a). 3. Image values _vn_ are locally normalised to the range [0, 1] by replacing them with ( _vn_ - _mn_ )/( _Mn_ - _mn_ ) <sup>.</sup> Symbols _mn_ and _Mn_ denote the local minimum and maximum values in circular neighbourhoods of _vn_ . They are calculated by erosion and dilation morphological filters with flat disk structuring elements. The neighbourhood size is proportional to 1/ _f_ 0 (Fig. 9b). 4. A binary image is formed by thresholding _v_ at level _vn_ ≥ 1/2. The binary image is then thinned. All pixels corresponding to local maxima in _v_ are set to 1 in the thinned binary image (this is essentially to compensate their possible removal by thinning). Euclidean distance transform of 0-valued pixels in the binary image produces image _t_ <sup>+</sup> . 5. The previous step is repeated with binary image formed by _vn_ < 1/2 and local minima in _v_, obtaining _t_ <sup>−</sup> . 6. Difference image _d_ = _t_ + - _t_ - (Fig. 9c) is thresholded at _d_ ≥ 0, obtaining a new binary image representing the two domains. 7. Alternating sequential filter with disk structuring elements is applied to the binary image to ensure smoothness of the domain boundaries. The maximum kernel size is again proportional to 1/ _f_ 0, but only a small fraction of the stripe width. The binary image is then used to obtain the stray field image in the same manner as the thresholded image in TTF calculation. The effect of varying frequency spread ∆ _f_ is illustrated in Fig. 9d–f. Efficient algorithms were utilised for all operations in this procedure. If the number of image pixels is _N_ and linear domain size is _W_ (also in pixels), the inverse FFT complexity is _O_ ( _N_ log _N_ ). The dilation and erosion filters have complexity _O_ ( _NW_ ) if decomposed into operations with smaller structuring elements <sup>43</sup> and the same holds for thinning. Euclidean distance transform has complexity just _O_ ( _N_ ) <sup>43</sup> . Therefore, the operation with largest asymptotic complexity of _O_ ( _NW_ <sup>2</sup> ) is the alternating sequential filter <sup>43</sup> which is, however, only executed with much smaller structuring elements and does not dominate the total computation time. Data Availability The algorithms are available as a part of open source software Gwyddion. All the experimental and generated data [are available at http://nanometrologie.cz/ttf/.](http://nanometrologie.cz/ttf/) References 1. Cohen, G. _et al_ . Reconstruction of surface potential from Kelvin probe force microscopy images. _Nanotechnology_ 24, 295702 (2013). 2. Lan, F., Jiang, M., Tao, Q., Wei, F. & Li, G. Reconstruction of Kelvin probe force microscopy image with experimentally calibrated point spread function. _Rev. Sci. Instrum._ 88, 033704 (2017). 3. Machleidt, T., Sparrer, E., Kapusi, D. & Franke, K.-H. Deconvolution of Kelvin probe force microscopy measurements - methodology and application. _Meas. Sci. Technol._ 20, 084017 (2009). 4. Pieralli, C. Statistical estimation of point spread function applied to scanning near-field optical microscopy. _Opt. Commun._ 108, 203–208 (1994). 5. Hug, H. J. _et al_ . Quantitative magnetic force microscopy on perpendicularly magnetized samples. _J. Appl. Phys_ 83, 5609 (1998). 6. Vock, S. _et al_ . Magnetic vortex observation in FeCo nanowires by quantitative magnetic force microscopy. _Appl. Phys. Lett._ 105, 172409 (2014). 7. Li, H., Wei, D. & Piramanayagam, S. N. Micromagnetic study of effect of tip-coating microstructure on the resolution of magnetic force microscopy. _Appl. Phys. A_ 110, 217–225 (2013). 8. Li, H., Wei, D. & Piramanayagam, S. N. Optimization of perpendicular magnetic anisotropy tips for high resolution magnetic force microscopy by micromagnetic simulations. _Appl. Phys. A_ 112, 985–991 (2013). 9. Li, J., Chen, N., Wei, D. & Futamoto, M. Micromagnetic studies of ultrahigh resolution magnetic force microscope tip coated by soft magnetic materials. _IEEE T. Magn._ 51, 2001005 (2015). 10. van Schendel, P. J. A., Hug, H. J., Stiefel, B., Martin, S. & Güntherodt, H. J. A method for the calibration of magnetic force microscopy tips. _J. Appl. Phys._ 88, 435–445 (2000). 11. Vock, S. _et al_ . Quantitative magnetic force microscopy study of the diameter evolution of bubble domains in a Co/Pd multilayer. _IEEE Transactions on Magnetics_ 47, 2352 (2011). 12. Puttock, R. _et al_ . V-shaped domain wall probes for calibrated magnetic force microscopy. _IEEE Transactions on Magnetics_ 53, 1–5 (2017). 13. Panchal, V. _et al_ . Calibration of multi-layered probes with low/high magnetic moments. _Scientific Reports_ 7, 7224 (2017). 14. Marioni, M. A. _et al_ . Halbach effect at the nanoscale from chiral spin textures. _Nano Lett._ 18, 2263–2267 (2018). 15. Candocia, F. M., Svedberg, E. B., Litvinov, D. & Khizroev, S. Deconvolution processing for increasing the resolution of magnetic force microscopy measurements. _Nanotechnology_ 15, S575–S584 (2004). 16. Bányász, Á., Mátyus, E. & Keszei, E. Deconvolution of ultrafast kinetic data with inverse filtering. _Radiat. Phys. Chem._ 72, 235–242 (2005). 17. Bányász, Á. & Keszei, E. Model-free deconvolution of femtosecond kinetic data. _J. Phys. Chem. A_ 110, 6192–6207 (2006). 18. Bishop, T. E. _et al_ . Blind image deconvolution: problem formulation and existing approaches. In Campisi, P. & Egiazarian, K. (eds) _Blind Image Deconvolution: Theory and Applications_ (CRC Press, London, 2017). 19. Högbom, J. A. Aperture synthesis with a non-regular distribution of interferometer baselines. _Astron. Astrophys. Suppl._ 15, 417–426 (1974). 20. Pratt, W. K. _Digital Image Processing_ . 3rd edn., (John Wiley & Sons, New York, 2001). 21. Gobbel, G. T. & Fike, J. R. A deconvolution method for evaluating indicator-dilution curves. _Phys. Med. Biol._ 39, 1833–1854 (1994). 22. Dabóczi, T. & Kollár, I. Multiparameter optimization of inverse filtering algorithms. _IEEE Trans. Instrum. Meas._ 45, 417–421 (1996). 23. Parruck, B. & Riad, S. M. Study and performance evaluation of 2 iterative frequency-domain deconvolution techniques. _IEEE Trans._ _Instrum. Meas._ 33, 281–287 (1984). 24. Golub, G. H. & Meurant, G. _Matrices, Moments and Quadrature with Applications_ . (Princeton University Press, New Jersey, 2010). 25. Hestenes, M. R. & Stiefel, E. Methods of conjugate gradients for solving linear systems. _J. Res. Nat. Bur. Stand._ 49, 409–436 (1952). 26. Nečas, D. & Klapetek, P. One-dimensional autocorrelation and power spectrum density functions of irregular regions. _Ultramicroscopy_ 124, 13–19 (2013). 27. Nečas, D. & Klapetek, P. Gwyddion: an open-source software for SPM data analysis. _Cent. Eur. J. Phys._ 10, 181–188 (2012). 28. Harris, F. J. On the use of windows for harmonic analysis with the discrete Fourier transform. _P. IEEE_ 66, 51–83 (1978). 29. Blackman, R. B. & Tukey, J. W. _The Measurement of Power Spectra, From the Point of View of Communications Engineering_ . (Dover, New York, 1959). 30. Kaiser, J. F. Digital filters. In Kuo, F. F. & Kaiser, J. F. (eds) _System Analysis by Digital Computer_ (Wiley, New York, 1966). 31. Welch, P. D. The use of fast Fourier transform for the estimation of power spectra: A method based on time averaging over short, modified periodograms. _IEEE T. Acoust. Speech._ 15, 70–73 (1967). 32. Tukey, J. W. An introduction to the calculations of numerical spectrum analysis. In Harris, B. (ed.) _Spectral Analysis of Time Series_, 25–46 (Wiley, New York, 1967). 33. Goey, Z. M. _et al_ [. SPM toolbox, https://qmfm.empa.ch/ (2013).](https://qmfm.empa.ch/) 34. Hofmann, B. _Regularization for Applied Inverse and Ill-Posed Problems_ 85 (Vieweg+Teubner Verlag, Leipzig, 1986). 35. Golub, G. H., Heath, M. & Wahba, G. Generalized cross-validation as a method for choosing a good ridge parameter. _Technometrics_ 21, 215–223 (1979). 36. Rice, J. A. Choice of smoothing parameter in deconvolution problems. In Marron, J. S. (ed.) _Function Estimates_, vol. 59 of _Contemporary Mathematics_, 137–151 (1986). 37. Desbat, L. & Girard, D. The ‘minimum reconstruction-error’ choice of regularization parameters: some more efficient methods and their application to deconvolution problems. _Siam. J. Sci. Comput_ 16, 1387–1403 (1995). 38. Varah, J. M. Pitfalls in the numerical solution of linear ill-posed problems. _SIAM J. Sci. and Stat. Comput._ 4, 164–176 (1983). 39. Hall, P. & Titterington, D. M. Common structure of techniques for choosing smoothing parameters in regression problems. _J. R. Stat._ _Soc. B. Met._ 49, 184–198 (1987). 40. Engl, H. W. & Grever, W. Using the L-curve for determining optimal regularization parameters. _Numerische Mathematik_ 69, 25–31 (1994). 41. Vogel, C. R. Non-convergence of the L-curve regularization parameter selection method. _Inverse Probl._ 12, 535–547 (1996). 42. Frigo, M. & Johnson, S. G. The design and implementation of FFTW3. _Proceedings of the IEEE_ 93, 216–231 (2005). 43. Shih, F. Y. _Image Processing and Mathematical Morphology: Fundamentals and Applications_ . (CRC Press, Boca Raton, 2009). Acknowledgements This work was supported by project ‘NanoMag’ in the EMPIR program co-financed by the Euramet participating states and European Union’s Horizon 2020 programme; European Regional Development Fund-Project ‘CEITEC Nano+’ (No. CZ.02.1.01/0.0/0.0/16_013/0001728) and by the ESF under the project CZ.02.2.69/0.0/0.0/17_050 /0008462. Author Contributions D.N. concieved the main ideas, implemented the least squares algorithm and artificial data generation and wrote the algorithms related part of the paper, P.K. implemented the frequency domain reconstruction and initial set of MFM data processing modules, V.N. provided the samples and reference data for them, validated the methods in the SigMath environment and contributed to the methodology, M.H. conducted the experiments, R.P. tested the algorithms on NPL data sets, O.K. contributed to the MFM related part of the paper, X.H. validated the methods using PTBs reference software, L.Z. analysed the numerical results. All authors reviewed the manuscript and contributed to the general conclusions and recommendations. Additional Information Competing Interests: The authors declare no competing interests. Publisher’s note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the [copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2019

섹션 본문 165문단 · 91,577자

(제목 없음)

1Magnetic force microscopy has unsurpassed capabilities in analysis of nanoscale and microscale magnetic samples and devices. Similar to other Scanning Probe Microscopy techniques, quantitative analysis remains a challenge. Despite large theoretical and practical progress in this area, present methods are seldom used due to their complexity and lack of systematic understanding of related uncertainties and recommended best practice. Use of the Tip Transfer Function (TTF) is a key concept in making Magnetic Force Microscopy measurements quantitative. We present a numerical study of several aspects of TTF reconstruction using multilayer samples with perpendicular magnetisation. We address the choice of numerical approach, impact of non-periodicity and windowing, suitable conventions for data normalisation and units, criteria for choice of regularisation parameter and experimental effects observed in real measurements. We present a simple regularisation parameter selection method based on TTF width and verify this approach via numerical experiments. Examples of TTF estimation are shown on both 2D and 3D experimental datasets. We give recommendations on best practices for robust TTF estimation, including the choice of windowing function, measurement strategy and dealing with experimental error sources. A method for synthetic MFM data generation, suitable for large scale numerical experiments is also presented.The point spread function (PSF) concept is frequently used in optical microscopy to estimate the properties of the imaging system and subsequently reduce its impact on the acquired image quality. The PSF represents how the single point on the sample gets blurred by the optical system; the whole recorded image is a convolution of the ideal sample image and the PSF. In the field of Scanning Probe Microscopy (SPM), a similar concept can be used. Though seldom used in routine analysis, the PSF is typically only used in advanced or specialised data processing. Examples include Kelvin Probe Force Microscopy and similar electrostatic forces-based techniques, where the PSF is used to incorporate the effect of averaging the measured signal across the sample and to consider probe shape due to long range behaviour of the electrostatic forces 1-3 . In the field of Scanning Near Field Optical Microscopy it is used to investigate the optical system properties 4 . In Magnetic Force Microscopy (MFM) a similar concept of a Tip Transfer Function (TTF) is used to specify the imaging properties of the probe and thus to receive quantitative information about the sample's stray field 5,6 . As we concentrate on MFM data processing in the following text we use the Tip Transfer Function terminology, abbreviating it to TTF, however most of the presented algorithms are valid for point spread functions or related transfer functions in other SPM areas as well. The TTF is a simpler and less computationally demanding alternative to full micromagnetic simulations of the interaction between probe and sample which additionally require detailed information about the probe and sample materials and geometry 7-9 . A robust TTF determination which handles the unavoidable presence of noise

2is considered a major step for a routine application of quantitative MFM (qMFM) and will accelerate its use in numerous problems in nanomagnetism.

3The approach used for calculating the transfer function and namely its normalisation in different areas of Scanning Probe Microscopy varies, which makes mutual comparison of TTFs obtained by different groups complicated. Even though TTF reconstruction has been applied successfully to various MFM measurements 5,6,[10][11][12][13][14] the behaviour of the reconstruction methods for MFM data has never been systematically studied. This article aims to suggest suitable procedures and parameters for the TTF calculation, based mostly on numerical studies. In addition, we discuss common pitfalls while calculating the TTF from real data and we present resulting 2D and 3D TTFs obtained on magnetic perpendicular media.

4Contrast in dynamic mode MFM is proportional to the probe-sample force gradient, which itself depends on both the probe and sample's magnetic state. The Tip Transfer Function approach for MFM probe characterisation is based on using a well characterised reference sample for which the stray field pattern is calculable as it consists of magnetic domains of known orientation and possesses magnetic properties, which are measurable or known from literature. One possibility for such a reference sample are thin films with perpendicular magnetic anisotropy, such as the Co/Pd multilayers suggested in ref. 11 . They form striped domains with perpendicular orientation, so called band domains, and knowing the global magnetic properties a pure qualitative MFM image allows estimating the stray field pattern from domain theory. The high perpendicular magnetisation anisotropy of this sample guarantees a magnetisation alignment in the z direction (perpendicular to sample plane) greater than 92%, permitting to consider in-plane magnetisation components equal to zero 6 . This calibration sample thus provides a strong and readily calculable stray field above the surface and also a large span of spatial frequencies, which are all helpful in TTF calculation. A calibration measurement of this sample allows to determine the unique TTF which is characteristic to the particular MFM probe.

5The estimated TTF can be then used to make quantitative measurements on an unknown sample. Its magnetic properties can be arbitrary, assuming it does not change the magnetic state of the probe. Most commonly the TTF from the reference sample is applied to calculated quantitative values from an unknown sample by convolving the TTF with a simulated charge map and quantifying the deviation from the experimental MFM image 12 . Alternatively, experimental MFM data are deconvolved with the TTF-this corresponds to the classical use of deconvolution for image deblurring 15 . The issue with the latter method is that it is more sensitive to noise and is considerably more erroneous than using a simulated charge map and modelling.

Theory

6In many data acquisition methods the measured signal m can be expressed as the convolution of an ideal (actual, sharp) signal s with a transfer function (instrument function, point spread function) p in presence of additive noise t: = * + . m s p t (1) Here * denotes the convolution operator. In the case of SPM this is a two-dimensional convolution since all the quantities are images, i.e. functions of spatial coordinates x and y (in signal processing the convolution is usually in the time domain).

7The convolution with p blurs the signal and there is a vast literature dedicated to deblurring, i.e. reconstruction of s from m and known p [15][16][17] . Techniques have also been developed for blind deconvolution, in which the TTF and deconvolved data are estimated simultaneously, usually in a Bayesian framework 18 .

8The problem we face in MFM is that MFM probes are regularly changed (either due to tip wear or to adapt them to the sample under investigation) and each probe possesses individual properties. This therefore requires a calibration routine, which can be routinely applied to each MFM probe. The above mentioned multilayer reference sample possesses a balanced up-down magnetisation structure with smooth boundaries between the two domains and a power spectrum with one prominent spatial frequency. The magnetic surface charge distribution can be estimated by thresholding the measured image, and the stray field can be calculated based on the known saturation magnetisation, film thickness and domain transition width. These and similar samples are thus very suitable for TTF recovery 5,10,11 . Even though the deconvolution is in principle still blind, the ideal signal can be assumed known and we deal with a problem complementary to deblurring, i.e. the derivation of TTF p from m and the-presumably-known s.

9Since convolution is commutative, the signal and TTF are interchangeable in (1). However, s and p differ substantially in character. Many deconvolution algorithms popular in various fields, such as CLEAN 19 in radio astronomy, are geared towards deblurring and less appropriate in our case. We will describe two approaches suitable for MFM.

Frequency Domain Filtering

10If noise were not present, the problem would be theoretically trivial in the frequency domain. Denoting the Fourier transforms by uppercase letters M, P and S, the convolution = M SP would be inverted by = P M S / . In the presence of noise, however, this procedure would greatly amplify the noise at frequencies where |S| is small. Therefore, regularisation (or some other constraint) is necessary, leading to formulae for an estimate P of P of the form 2 where the fraction replaces 1/S (superscript star denotes complex conjugation). For given stationary noise and signal, the Wiener deconvolution

Least Squares Method (LSM)

11Instead of filtering we can explicitly look for the TTF which minimises the squared norm of the difference between reconstruction and measured data (residual) denoted = − * R m s p 2 . Noting that Fourier transform is unitary, R can be equivalently calculated from the frequency components as = − R M PS 2 , which is useful in practical calculations.

12In this formulation p is described by a vector of parameters ξ and we seek the vector which minimises R ξ ( ). The two elementary choices of parameter sets are (i) entire p, with the value of each p pixel being an independent parameter, and (ii) prescribing an explicit function form ξ = p f ( ). It is advantageous to parametrise the Fourier transform P instead of p itself, because then   ξ − ξ M P S min ( ) 2 is a straightforward non-linear least-squares problem, which can be solved entirely in the frequency domain. No convolutions are necessary. Fourier transforms are only required to calculate M and S and then to transform the final fitted P back to the spatial domain.

13We note that frequency-domain filtering inherently produces p images as large as m and s, even if only a small fraction contains useful information. Thus it may seem that choosing individual p pixels as the fitting parameters (ξ = p) would lead to number of degrees of freedom comparable to number of data, i.e. pixels of m. However, here the p image can be chosen to be much smaller; and it should be if the (effective) support of p is much smaller than the scan size. The corresponding linear least squares problem is therefore reasonable and better conditioned than frequency domain filtering, although regularisation can be still useful. For the Tikhonov regularisation 24 the residual is expressed as

14By introducing matrix u which implements the linear operation s *, i.e. discrete convolution with s

15n k n k , the convolution can be formally written as a matrix multiplication * = s p up. Note that all indices and array sizes are two-dimensional multi-indices, i.e. each consists of row and column index. The least squares problem is a standard linear problem with normal equations www.nature.com/scientificreports www.nature.com/scientificreports/

16T T where I is the identity matrix (depending on the chosen discretisation, which we will discuss in Discretisation and Units, λ parameters in (8) and (11) may differ). Matrix u is Toeplitz-like. In one dimension it is Toeplitz, in two dimensions it is block Toeplitz, and in higher dimensions it has more deeply nested block Toeplitz structure. Hence u T u and consequently a are also Toeplitz-like. Specifically,

17where c is the unnormalised cyclic autocorrelation function of s where N is image pixel dimension. However, c is cut to the size of p to form the matrix.

18The vectors and matrices in the equations can be seen as images. This is obvious for vectors such as m, which we introduced as images. Writing out the multi-index n as (n x , n y ) makes clear that m n has rows and columns. In the case of matrices, this is enabled by their Toeplitz-like structure. Matrix u is formed by elements of image s, only organised differently-see Eq. (9). Similarly, matrix a is formed by elements of the cyclic autocorrelation image c, only organised differently and cut to a region around the origin-see Eq. (12). The addition of λI corresponds to the modification of the single pixel at the origin. Representing the matrices as corresponding images is convenient for computer implementation because multiplication by a matrix is then equivalent to image convolution (or correlation for transposed matrices).

19Overall, all vectors and matrices involved in the system of Eq. (11), although relatively large, are only of size comparable to p, much smaller than the full images. The system can be solved easily using the conjugate gradients 24,25 method. The only costly operation involved is multiplication of p-sized vectors with a, which is realised as image convolution, utilising the fast Fourier transform (FFT).

20The LSM extends naturally to multiple input images. If the same tip and lift height are used in several measurements (distinguished by index μ), the least squares problem (10) becomes

21The normal equations remain the same, except with a being replaced by the sum of matrices corresponding to individual measurements ∑ μ μ a . Similarly in the right hand side u T m is replaced by the sum ∑ μ μ μ u m T . The images combined in (14) must have the same sampling steps, but their dimensions may differ. We can even construct the normal equations for non-rectangular data, for example images with some regions excluded. The correlations and convolutions entering the equations can be easily computed for irregular regions 26 , unlike Fourier transforms. This can certainly be seen as an advantage. The disadvantage of LSM is larger complexity of implementation compared with frequency domain filtering.

Discretisation and Units

22In practical calculations all the operations written using functions and integrals in Theory and Non-periodicity and Image Boundaries are realised with discrete data. Hence, we replace a function f(x, y) with its sampled values in N discrete points f n . The real coordinates are related to the integer indices = x h n x x and = y h n y y , where h x and h y are the horizontal and vertical sampling steps. We then assume = f hn f ( ) n , writing formally the component-wise product (h x n x , h y n y ) as hn.

23In this paper we define the discrete norm

24The discrete convolution of f and g is the sum

25This is the operation usually provied by numerical software. However, when the integral in convolution (1) is approximated by Riemann sum

26In MFM the magnetic surface charge map is represented as H z , measured in A/m. Tip-sample force gradient, the quantity imaged by MFM, has unit of N/m. Conventionally it is divided by the permeability of vacuum μ 0 , resulting in 'force gradient' images in A 2 /m. The TTF then has to be measured in

272 . Obviously, the factor h x h y must be applied somewhere when realising the convolution (19) using discrete operation (17), and the same holds for deconvolutions. One option is a meticulous normalisation of all intermediate data, Fourier transforms, norms and other quantities in the computation to ensure they always correspond to sampled continuous physical definitions. The other options, more convenient and thus much more popular, assimilate the factor h x h y into one of the images. Either the ideal signal s is pre-multiplied =  s h h s n x y n , allowing to write

28x y . Or a discrete deconvolution used to obtain a discrete TTF  p k , which is then transformed to sampled physical TTF by post-

29x y . Images modified for discrete operations can be used either internally or exposed to SPM software users. Pre-division is used for instance in the SigMath environment 6,11 , whereas post-division is used internally in Gwyddion 27 .

30As long as they are applied consistently, all the approaches provide physically equivalent final results. Nevertheless, the multitude of options invites misunderstanding and confusion in quantitative comparisons if the intermediate images are exchanged and presented. We strongly advocate for only exchanging and presenting images of sampled physical fields in units described above.

31Comparison of regularisation parameter λ requires even more care. It has different meanings and different physical units in the individual methods. Furthermore, its numerical value depends on convolution and FFT normalisation and other choices. For the definitions (15) and (16) and post-division of discrete TTF  p k we can introduce a dimensionless σ related to λ as follows:

32where N and K are the respective numbers of image and TTF pixels.

33Correct powers of ||s|| and ||m|| ensure that σ does not depend on the magnitude of values in either input image. The quadratic relation between σ and λ for pseudo-Wiener filter and linear for the other two methods ensure σ is approximately proportional to noise to signal ratio. Factor N in LSM comes from the number of u matrix rows 24 -σ then scales approximately with N 1/ for all methods (as expected for a least squares problem). The additional factor K 1/3 ensures a more or less consistent σ scaling with TTF support size across the methods. Nevertheless, we must note that consistent scaling does not mean σ values are directly comparable between different methods and that other choices are possible which lead to different but again consistent scaling.

Non-periodicity and Image Boundaries

34A point which cannot be overemphasised is that real-world samples are not periodic and SPM measurements do not produce periodic images. It was disregarded in the previous section for brevity. However, non-periodicity must be taken into account to have any hope of successful TTF recovery.

35Non-periodicity has two basic consequences. First, data measured close to image edges were influenced by sample regions beyond the boundaries of the scanned rectangle. Since these regions were not measured their content is unknown. In deblurring, this causes artefacts close to image edges. However, in the present study it is the least serious of the two problems. The second consequence is contamination of spectra by discontinuities across image edges (which have 1/f-like frequency response). The typical result is a 'cross' artefact in the reconstructed TTF illustrated in Fig. 1c, which occurs for all TTF calculation methods.

36The artefacts can be suppressed by mirror-extending m and s, which makes them at least C 0 -smooth (C k denoting the class of functions with k continuous derivatives). In one dimension a spatially-reversed copy of the signal is placed after it and the new double-sized signal is used instead of the original. In two dimensions this has to be done along both axes, resulting in quadruple-sized images, containing the original plus three differently mirrored copies. Unfortunately, it also means the input data now contain convolutions with p in four different positions. Deconvolution then produces p averaged over all the positions. If we do not know whether p is symmetrical, the result is not useful; whereas if p is known to be completely symmetrical, we are better off fitting an explicit symmetrical functional form.

37Instead, we utilise windowing 28 . In other words, before the deconvolution using either (2) or (10), both m and s are multiplied by a window function w which smoothly approaches zero at the boundaries. Hence the windowed images also smoothly approach zero at all boundaries and they can be considered periodic. The improvement is illustrated in Fig. 1b.

38We remark that both mentioned problems are more serious for two-dimensional images than for one-dimensional signals as comparably larger fractions of data lie close to the boundaries-and it becomes even more serious in higher dimensions as the fraction of hyper-volume lying within a fixed distance from the www.nature.com/scientificreports www.nature.com/scientificreports/ boundary approaches unity. This also means that windowing has to suppress an increasing portion of data as the dimension d grows.

39In the spatial domain, the linear relation = * m p s holds when m and s are multiplied by the same constant. The window w is a very slowly varying function and the support, or at least the effective support, of p is small; even though for instance Gaussian p has in principle infinite support. Intuitively, in the corresponding small area the window w is almost constant and the relation = * m p s is relatively unperturbed by windowing: = * mw p sw still holds relatively precisely. Nevertheless, windowing alters the reconstructed TTF. How much and which of the plethora of available window functions should be employed? It is not obvious how window function characteristics studied extensively in harmonic analysis translate to TTF reconstruction.

40How much w differs locally from a constant depends, in the first approximation, on its derivative (gradient ∇w). If we keep all other settings and only increase the scanned area, the linear dimension of TTF decreases with respect to the linear dimension of the entire area. Denote this ratio of the linear dimensions ε (ε  1). The L 2 norm of difference of w from a constant on TTF support, averaged over image area, is proportional to ε ∇

41. This is one characteristic of the influence. However, there are other effects to consider. Suppressing more data leaves less information to be utilised in the reconstruction; this is measured by ||w||. The window functions also make the data either C 0 or C 1 -smooth across the boundary, and this might play a role.

42We explored the effect of windowing by numerical simulations in one and two dimensions for several window functions implemented in Gwyddion. They included C 1 Hann, Blackman 28,29 and Kaiser 30 (α = .

432 5) windows, C 0 Lanczos and Welch 31 windows, and C −1 Hamming 28 window, which is similar to Hann window but leaves a small discontinuity across the edge.

44The results for two-dimensional data (images) are plotted in Fig. 2. They are plotted for both periodic and non-periodic signal s consisting of random artificial domain-like images. The true TTF was tetragonal, 21 × 21 pixels and normalised ||p|| = 1. In order to isolate the effect of windowing no noise was added and λ was set to zero-which is optimal in the noise-free case if windowing is applied (as discussed in Optimum Regularisation Parameter). The TTF was obtained by LSM.

45With the exception of no windowing and the C −1 Hamming window, the results for periodic and non-periodic images were almost identical. Without windowing, the reconstruction is almost perfect in the periodic case. The error is essentially given by the conjugated gradients stopping criterion. However, it is poor for non-periodic images. It should be noted that the no-window curve for non-periodic images does not correspond to the best TTF that could be obtained without windowing. Increasing λ would lead to smaller errors. Nevertheless, as Fig. 1d illustrates, even the best case is rather poor.

46Any kind of windowing improves the results dramatically, but there are some systematic differences. The scaling behaviour with image size is essentially the same for all window functions which ensure at least C 0 smoothness (the C −1 Hamming window is clearly inferior). In one dimension the power of ε is approximately 1.62 while in two it is 2.06. This is not far off the + d 1 /2 powers obtained by considering ∇w which are 1.5 and 2, respectively. However, when we compare individual windows, the C 0 Welch and Lanczos functions perform best, while the smoother windows perform worse. In one dimension the differences are even more marked. In fact, for all tested windows, the error is strongly correlated to 1/||w|| (not ∇   w , which is quite similar for all windows) as also illustrated in Fig. 2. Smoothness seems to not matter beyond C 0 . The simple Welch window

471]) appears to be a good choice. For a given windowing type the error essentially depends only on the ratio of image linear pixel size to TTF linear pixel size. Figure 2 thus provides an estimate how large a scan area must be to achieve a given error. When the ratio is at least 12-15, which is satisfied for typical image and TTF sizes, the TTF error due to windowing should be around or below 1%.

48We also tested the Tukey window function 32 , which is constant on a symmetrical interval around the centre. The interval width is tunable, with wider constant intervals corresponding to more rapidly changing function close to the edges. This window is used in qMFM in the SPM Toolbox 33 . If the parameter was chosen close to the optimum, the performance was slightly worse compared to the Welch window-see Fig. 2. The Tukey window transitions between rectangular and Hann windows as the limit cases. However, the Hann window did not www.nature.com/scientificreports www.nature.com/scientificreports/ perform particularly well. So there might be space for further optimisation if the tunable window has one of the best performing windows (Welch or Lanczos) as the limit case.

49Finally, we remark that in LSM the influence of boundaries can be avoided entirely in a logically consistent manner-at least in principle. If the norm in (8) is calculated only from pixels sufficiently far from the border (farther than TTF size), while the convolution is still done with full-sized images, then no unmeasured data or boundary discontinuities enter the residual R. The price is, however, high. The matrix of the corresponding normal equations, although still easy to express formally, has no longer Toeplitz structure; instead, it becomes a general symmetric positive definite matrix. Storage requirements and matrix multiplication complexity increase dramatically. In one dimension this may be still a reasonable trade off, in two and more dimensions the computational cost seems prohibitive.

Optimal Regularisation Parameter

50In the preceding, regularisation parameter was assumed 'chosen suitably' . When the goal is to measure the TTF corresponding to a particular tip and other parameters (lift height), a suitable choice means small error, expressed as norm of the difference between obtained and true TTF σ −   p p ( ) . There are several major contributions to this error:

51• Perturbation error, originating from noise and other artefacts in m (decreases with increasing σ).

52• Regularisation error, arising from the difference between regularised and exact problem (grows with σ).

53• Windowing error, caused by windowing. It can be sometimes avoided, e.g. for strictly periodic data. It can be also traded for an error caused by edge effects but, as shown in section Non-periodicity and Image Boundaries, this is not recommended. • Ideal data error, caused by our inability to obtain s exactly, even with carefully selected and measured samples of perpendicular structures. It will be discussed in section Ideal Image Estimation and Instrumentation Errors.

54The first two errors depend strongly on σ and we seek a compromise between them. Instead of σ −   p p ( ) , which requires to know the true TTF, a surrogate quantity must be optimised. A large number of methods detailing how to choose σ have been proposed.

55The discrepancy principle 34 relies on a good estimate of noise in measurement δ = −  m m noisefree . We then seek to achieve to match the estimated error, more precisely to achieve

56, where c is a constant, typically c = 2 − 5. The L-curve method 24 follows from the observation that the parametric curve

57is often L-shaped in logarithmic scale, with good compromise between the two errors corresponding to the corner. The generalised cross-validation (GCV) method 24,35 arises from the requirement that if a single measurement is omitted, it should be predicted well by the remaining data in a good solution. By All these methods work under certain assumptions or in a certain sense, but none work universally. They can suffer a variety of problems, including systematic bias, tricky shape of the minimum, poor behaviour in low-noise cases and instability-and sometimes they can even fail to provide any estimate at all 24,37-41 . One should always verify the suitability of a particular method for specific applications. After many numerical experiments attempting to identify a criterion which works well for this particular application in MFM, we had to ask: Why can a human fiddling with a σ slider recognise a near-optimal TTF just by looking at it, without studying eigenvalue spectra or even the residuum? The TTF is not an arbitrary image; it is a localised structure. The compromise we seek is between making it too blurry and too noisy. We observe that even though oversmoothing and noise act very differently-one smears the image, whereas the other increases distant values randomly-both widen the TTF. Therefore, a good TTF should be tight. A suitable tightness criterion should select good σ values.

58Define TTF function width w ttf simply as the standard deviation

59A ttf 2 2 where r is vector from the TTF centre of mass (or, alternatively, maximum -they usually almost coincide). For the LSM, the integration area A is simply the entire p image. For frequency domain filtering, best results are obtained if A again roughly corresponds to the estimated support of p. The course of w ttf (σ) is not sensitive to precise dimensions of A. It should be noted that evaluation of w ttf is particularly computationally cheap in LSM, because it only involves the small p image-no operations with full image-sized data are necessary.

60We can now check how well the minimum of w ttf (σ) approximates the minimum of the TTF error σ −   p p ( ) . Figure 3a shows the dependency of reconstruction error on σ for two algorithms and a set of noise to signal ratios. The displayed curves were obtained using artificial 640 × 640 data for Gaussian TTF and point noise. However, the results were similar for other cases we studied, in particular local scan line errors instead of point noise (as simulated by Gwyddion Line noise function) and tetrahedral TTF, which has sharp features and is more sensitive to correct phase than a Gaussian. Figure 3b shows the evolution of w ttf (σ) (plotted as inverse value for clearer comparison) -and the similarity to Fig. 3a is striking. We can also see that LSM led to systematically smaller errors in the optimal TTF than www.nature.com/scientificreports www.nature.com/scientificreports/ frequency domain filtering. In Fig. 3a the improvement is between about 20% and a factor of 2. Furthermore, it is evident that LSM behaves considerably better for underestimated σ as it is less ill-conditioned. In fact, for low noise there may not be any discernible minimum of σ −   p p ( ) and σ → 0 is a also suitable choice. In assessing the consequences of replacing the unknown minimum of σ −   p p ( ) with measurable minimum of w ttf (σ), we must therefore consider how much the TTF itself changes with respect to the optimal σ-comparing just σ estimates would be misleading. Figure 4a shows the ratio of error obtained from the width-based estimate to the smallest error possible for given algorithm:

61The ratios are plotted for all combinations of two TTF shapes (Gaussian and tetrahedral), noise types (point and scars) and algorithms (least squares and filtering). Individual values are rather scattered, even though a difference between TTF shapes is observable. The important observation is that the highest ratios are below 1.6 and the typical increase is about 1.3, only a moderate increase.

62A closer comparison of σ values reveals a small systematic offset between optimal σ and position of w ttf minimum. The minimum overestimates optimum σ slightly. Noting that the cost of overestimation and underestimation differ, the correction factor can be estimated as approximately 0.4. A larger-scale numerical experiment consisting of 23,760 deconvolutions covering wide ranges of image resolutions, noise levels, TTF sizes, and domain widths led to optimum factor of approximately 0.35. The results for σ wttf replaced by 0.35σ wttf are plotted in Fig. 4b. The error is quite close to minimal for all algorithm and parameter permutations.

63The TTF width criterion, as presented above, is therefore a simple and robust way how to optmise the regularisation parameter in TTF reconstruction for all typical MFM image sizes and noise to signal ratios. We should however note that for very large input images with very low noise the method sensitivity is low, i.e. it is not able to differentiate well between a very good TTF and even better one.

Data Resolution

64While measuring the reference sample we need to decide how to set the scan area and pixel resolution of the data. Even if we could search for the best pixel resolution for the TTF reconstruction this would be useless in practice. The goal of TTF estimation is to use it for further calculations, making measurements on some other sample quantitative. Therefore the pixel size of measurement on the multilayer sample used for TTF estimation should be same as real pixel size of the data on unknown sample that we want to quantitatively measure. Fortunately, for most of the probes the TTF is smooth and influence of pixel resolution and scan area (if we can see reasonably the domains on the MFM data) on TTF reconstruction is relatively small.

Ideal Image Estimation and Instrumentation Errors

65Most of the previous discussion was based on numerical experiments with artificial data for which we also knew all the unperturbed images exactly. This allowed isolation of particular aspects and quantification of errors instead of mere estimation. In real MFM measurements, however, the blind deconvolution situation is more messy and there are several image artefacts specific to scanning probe techniques we must deal with.

66Switching of the tip magnetisation at particular part of the sample is caused by combination of tip magnetisation instability and local magnetic field variations from the sample and is observed relatively often. As a result, the values in entire scan lines are approximately inverted (Fig. 5a). The defect can span several scan lines, or a part of a scan line. It is easy to detect in the data by calculating the discrete covariance of each pair of neighbour lines. Negative values indicate tip magnetisation switch between the two lines. Line inversions must be corrected, otherwise they would wreak havoc on the TTF reconstruction. Interpolation, for instance by solution of Laplace's equation, is a suitable method. Its Gwyddion implementation gives the result shown in Fig. 5b. A conservative estimate of uncertainty originating from the correction can be based on the fraction of pixels replaced. If all scan lines in the image are replaced by the averages of their neighbours, it results in a distortion in the range 0.5 to 3% under typical conditions. A more specific value can be derived from particular data. By multiplying it with the fraction of replaced pixels we obtain an estimate of additional 'noise' introduced by the interpolation.

67Even with no inversions present, other line artefacts frequently make the features slightly misaligned between individual scan lines, also visible in Fig. 5. Consequently, each scan line is less correlated to its neighbours than it should be, resulting in a 'strike-through' TTF defect, illustrated in Fig. 5c, where a prominent central horizontal stripe is surrounded by suppressed regions. Larger λ makes the defect less prominent, at the expense of more blurred result. A surprisingly simple remedy is to utilise two independent scans, one for H z and one for force gradient. This means to repeat the scan after we see line artefacts present in our data. The line artefacts in the two scans are uncorrelated and thus do not give the horizontal stripe. See Fig. 5d, which was calculated with the same λ, only utilising two different scans. Of course, drift must be under control to minimise shifts between the scans. The origin of the line artefacts can be a fault in the feedback loop while measuring the surface topography, similar to the defect observed in purely topographic measurements. It can be also related to the MFM signal measurement in the Lift mode, where two scenarios can lead to line artefacts.

68Either the probe stays attached to the surface due to adhesion forces, producing virtually no contrast in MFM data; or the lift height is wrong for the entire scan line, which can be caused by an inaccuracy of the z-position www.nature.com/scientificreports www.nature.com/scientificreports/ sensor. To prevent the former, manufacturers typically retract the probe further from the sample before starting the data acquisition in the Lift mode. For the latter, acquired MFM data are still valid, but acquired closer to or further from the sample surface than requested. Since MFM data decay quickly when moving farther from the sample, the signal in these lines have visually the same shape, but different scale.

69In order to simulate the effect of wrong lift height on TTF reconstruction we used a volume MFM dataset and created a virtual experimental data set from MFM signal acquired at different heights. The resulting stripe artefacts are shown in Fig. 5e. The lift height defects can be in principle corrected in the image similarly to magnetisation switches. However, it is much more difficult to mark areas of affected pixels. To avoid excessive correction of experimental data, we should ideally perform a new measurement.

70An effect of similar nature can appear for large lift heights, where the signal to noise ratio decreases and the TTF width increases. When there is considerable noise in the measured force gradient, simple thresholding leads to 'hairy' edges in the surface charge map. Again, the correlated errors between the images cause artefacts, in this case a sharp single-pixel peak in the TTF centre (essentially representing a δ-function). It is depicted in Fig. 5f, calculated from quite noisy data measured at lift height of 250 nm. It is again eliminated by using two scans, a scan with small lift height for the H z image and the possibly large lift height where we intend to measure TTF for the force gradient image.

71This brings us to the final point, the fact that thresholding a force gradient image does not recover the sharp image representing magnetic domains perfectly. Even at small lift heights the shape of reconstructed domain edges is deformed by convolution with TTF. This is illustrated in Fig. 6 using artificial data. Figure 6a displays the actual magnetic domains. The result of convolution and subsequent thresholding is shown in Fig. 6b,c for two different Gaussian TFs, wide 1/6 and 1/3 of domain width, respectively. Differences between Fig. 6b and original are barely noticeable, but in Fig. 6c we can see that finer features were lost. Under typical circumstances, the deformation is moderate and can be to a large degree removed by deconvolving the force gradient image with the obtained TTF and using the result of the deconvolution for thresholding and computation of a second, final TTF.

72In Fig. 6d, which illustrates the result of this procedure, we can see the original features were not recovered perfectly, but the distortion was still reduced. Note that the procedure was carried out with 1% noise in the 'measured' image. Deconvolution with the first TTF produces artefacts close to image edges (not visible in the selected detail). Fortunately, these regions are suppressed by windowing and even considerable artefact are not detrimental.

Volume MFM data handling

73When the procedure of TTF estimation is robust enough for automated work we can use it for more complex dataset processing. This is namely the case for volume data. Present SPMs allow magnetic signal measurements in the whole volume above the sample, with high resolution in all the axes and within reasonable time. Such data can be useful for analysing the stray field decay from the sample surface, e.g. to distinguish between magnetic signal and other probe-sample forces. The volume data interpretation is beyond the scope of this paper, we only demonstrate the performance of TTF estimation algorithm, as shown in Fig. 7.

74The first step is to obtain the best H z from the point of view experimental errors, then apply to all lift heights. The lift height for H z is selected to be sufficiently high to prevent feedback errors and short range interactions from affecting the data and simultaneously low enough to get good signal to noise ratio. The TTF can be estimated using either constant σ or σ optimised for each level independently. From Fig. 7a we can see that there is a range in which the estimated σ is nearly constant. Therefore, in this region we can use a constant value. However, to cover a wider range of lift heights and still get well reconstructed TTF in each of the lift heights one has to optimise σ at each level.

75The choice of σ has an impact on TTF shape. This is illustrated in Fig. 7b on the plot of TTF width as a function of lift height for different choices of σ. A resulting 3D plot of TTFs evaluated at different lift heights is shown in Fig. 7c.

Conclusion

76We considered aspects of tip transfer function (TTF) reconstruction in magnetic force microscopy using measurements on perpendicular domain multilayer structures specially designed for quantitative MFM imaging. With the goal of providing procedures, suitable parameter choices and best practice for measuring the TTF effectively and efficiently, numerical experiments with large sets of simulated data (for which a procedure is outlined) were used to ensure the recommendations hold. Two different classes of deconvolution approaches were studied, regularised frequency domain filtering and solution of least-squares problem. Frequency domain filtering certainly has the advantage of implementation simplicity and while we found it can provide adequate results, the least squares method achieved TTF reconstruction with lower errors and brought other benefits, such as natural extension to multiple input images. We also addressed the tangled issue of regularisation parameter choice for the reconstruction. Noting that in this particular application under-and oversmoothing have the same effect of widening the result, finding TTF with the minimal dispersion was suggested as a simple yet effective regularisation parameter optimisation method. It was verified by a numerical study that it leads to consistently good choices for the regularisation parameter under a variety of conditions covering a range of MFM applications. A robust and automated regularisation parameter estimation has also a benefit that it can be used for volume MFM data analysis, either for cross-checking of data consistency or for estimating the influence of other probe-sample interactions.

77Since measurements with a scanning probe bring a specific types of image defects, the effects of most common ones were illustrated alongside measures to avoid them. From analysis of data from numerical experiments and real measurements we can give the following recommendations:

78• When possible, measure the experimental data that will be used for TTF estimation twice. Use one of the measurements to simulate the ideal response and another one to estimate the TTF on these data. • Choose resolution and range of the measurement used for TTF estimation to match the resolution and range of data on the unknown sample on which we want to do quantitative MFM. Use a different resolution only in cases when resulting TTF would be too small or the characterisation sample would be not sufficiently statistically covered. • Always use windowing when performing the TTF. Based on numerical studies, we recommend the Welch window for TTF reconstruction, for which the error originating from windowing is about 1% or below for typical image dimensions. • Report TTF and related quantities only as sampled physical fields. We advocate for this even where it might depart from current practice. • A simple TTF width-based criterion can be used for estimation of the regularisation parameter. Other approaches can be used as well, however be wary when comparing regularisation parameters coming from different methods.

79Even if these rules are not exhaustive and there are many experimental conditions that need to be still chosen, following them can signifincantly reduce the TTF errors and potential misunderstandings in TTF interpretation.

Methods

80MFM Samples and Measurements. Experimental data measured on a reference sample based on Si/SiO x / Pt(5 nm)/[Pt(0.9 nm)/Co(0.4 nm)] 100 /Pt(2 nm) multilayer are provided within this paper to illustrate the TTF estimation procedure and to point out different instrumentation related errors that we can observe in the measurements. Data were obtained using Dimension Icon microscope with MESP-RC probes in the Lift mode (2D data) or in Force Volume mode (3D data), with typical settings used in routine microscope operation. Figure 7. Lift height-dependent reconstruction for volume MFM data: (a) evolution of estimated optimal regularisation parameter σ; (b) TTF width measured using formula (21) for σ estimated at each lift height and three fixed values within the range of more or less constant optimal σ; (c) evolution of TTF with lift height calculated from volume MFM data with slices at selected heights (colour ranges are adapted to full range of each individual slice).

81www.nature.com/scientificreports www.nature.com/scientificreports/ 2. The corresponding spatial-domain image is obtained by inverse FFT (Fig. 9a). They are calculated by erosion and dilation morphological filters with flat disk structuring elements. The neighbourhood size is proportional to 1/f 0 (Fig. 9b). 4. A binary image is formed by thresholding v at level ≥ v 1/2 n . The binary image is then thinned. All pixels corresponding to local maxima in v are set to 1 in the thinned binary image (this is essentially to compensate their possible removal by thinning). Euclidean distance transform of 0-valued pixels in the binary image produces image t + . 5. The previous step is repeated with binary image formed by < v 1/2 n and local minima in v, obtaining t − . 6. Difference image = − + − d t t (Fig. 9c) is thresholded at ≥ d 0, obtaining a new binary image representing the two domains. 7. Alternating sequential filter with disk structuring elements is applied to the binary image to ensure smoothness of the domain boundaries. The maximum kernel size is again proportional to 1/f 0 , but only a small fraction of the stripe width.

82The binary image is then used to obtain the stray field image in the same manner as the thresholded image in TTF calculation. The effect of varying frequency spread ∆f is illustrated in Fig. 9d-f. Efficient algorithms were utilised for all operations in this procedure. If the number of image pixels is N and linear domain size is W (also in pixels), the inverse FFT complexity is O (N log N). The dilation and erosion filters have complexity O(NW) if decomposed into operations with smaller structuring elements 43 and the same holds for thinning. Euclidean distance transform has complexity just O(N) 43 . Therefore, the operation with largest asymptotic complexity of O(NW 2 ) is the alternating sequential filter 43 which is, however, only executed with much smaller structuring elements and does not dominate the total computation time.

Data Availability

83The algorithms are available as a part of open source software Gwyddion. All the experimental and generated data are available at http://nanometrologie.cz/ttf/.

(제목 없음)

84is considered a major step for a routine application of quantitative MFM (qMFM) and will accelerate its use in numerous problems in nanomagnetism.

85The approach used for calculating the transfer function and namely its normalisation in different areas of Scanning Probe Microscopy varies, which makes mutual comparison of TTFs obtained by different groups complicated. Even though TTF reconstruction has been applied successfully to various MFM measurements 5,6,[10][11][12][13][14] the behaviour of the reconstruction methods for MFM data has never been systematically studied. This article aims to suggest suitable procedures and parameters for the TTF calculation, based mostly on numerical studies. In addition, we discuss common pitfalls while calculating the TTF from real data and we present resulting 2D and 3D TTFs obtained on magnetic perpendicular media.

86Contrast in dynamic mode MFM is proportional to the probe-sample force gradient, which itself depends on both the probe and sample's magnetic state. The Tip Transfer Function approach for MFM probe characterisation is based on using a well characterised reference sample for which the stray field pattern is calculable as it consists of magnetic domains of known orientation and possesses magnetic properties, which are measurable or known from literature. One possibility for such a reference sample are thin films with perpendicular magnetic anisotropy, such as the Co/Pd multilayers suggested in ref. 11 . They form striped domains with perpendicular orientation, so called band domains, and knowing the global magnetic properties a pure qualitative MFM image allows estimating the stray field pattern from domain theory. The high perpendicular magnetisation anisotropy of this sample guarantees a magnetisation alignment in the z direction (perpendicular to sample plane) greater than 92%, permitting to consider in-plane magnetisation components equal to zero 6 . This calibration sample thus provides a strong and readily calculable stray field above the surface and also a large span of spatial frequencies, which are all helpful in TTF calculation. A calibration measurement of this sample allows to determine the unique TTF which is characteristic to the particular MFM probe.

87The estimated TTF can be then used to make quantitative measurements on an unknown sample. Its magnetic properties can be arbitrary, assuming it does not change the magnetic state of the probe. Most commonly the TTF from the reference sample is applied to calculated quantitative values from an unknown sample by convolving the TTF with a simulated charge map and quantifying the deviation from the experimental MFM image 12 . Alternatively, experimental MFM data are deconvolved with the TTF-this corresponds to the classical use of deconvolution for image deblurring 15 . The issue with the latter method is that it is more sensitive to noise and is considerably more erroneous than using a simulated charge map and modelling.

Theory

88In many data acquisition methods the measured signal m can be expressed as the convolution of an ideal (actual, sharp) signal s with a transfer function (instrument function, point spread function) p in presence of additive noise t: = * + . m s p t (1) Here * denotes the convolution operator. In the case of SPM this is a two-dimensional convolution since all the quantities are images, i.e. functions of spatial coordinates x and y (in signal processing the convolution is usually in the time domain).

89The convolution with p blurs the signal and there is a vast literature dedicated to deblurring, i.e. reconstruction of s from m and known p [15][16][17] . Techniques have also been developed for blind deconvolution, in which the TTF and deconvolved data are estimated simultaneously, usually in a Bayesian framework 18 .

90The problem we face in MFM is that MFM probes are regularly changed (either due to tip wear or to adapt them to the sample under investigation) and each probe possesses individual properties. This therefore requires a calibration routine, which can be routinely applied to each MFM probe. The above mentioned multilayer reference sample possesses a balanced up-down magnetisation structure with smooth boundaries between the two domains and a power spectrum with one prominent spatial frequency. The magnetic surface charge distribution can be estimated by thresholding the measured image, and the stray field can be calculated based on the known saturation magnetisation, film thickness and domain transition width. These and similar samples are thus very suitable for TTF recovery 5,10,11 . Even though the deconvolution is in principle still blind, the ideal signal can be assumed known and we deal with a problem complementary to deblurring, i.e. the derivation of TTF p from m and the-presumably-known s.

91Since convolution is commutative, the signal and TTF are interchangeable in (1). However, s and p differ substantially in character. Many deconvolution algorithms popular in various fields, such as CLEAN 19 in radio astronomy, are geared towards deblurring and less appropriate in our case. We will describe two approaches suitable for MFM.

Frequency Domain Filtering

92If noise were not present, the problem would be theoretically trivial in the frequency domain. Denoting the Fourier transforms by uppercase letters M, P and S, the convolution = M SP would be inverted by = P M S / . In the presence of noise, however, this procedure would greatly amplify the noise at frequencies where |S| is small. Therefore, regularisation (or some other constraint) is necessary, leading to formulae for an estimate P of P of the form 2 where the fraction replaces 1/S (superscript star denotes complex conjugation). For given stationary noise and signal, the Wiener deconvolution

Least Squares Method (LSM)

93Instead of filtering we can explicitly look for the TTF which minimises the squared norm of the difference between reconstruction and measured data (residual) denoted = − * R m s p 2 . Noting that Fourier transform is unitary, R can be equivalently calculated from the frequency components as = − R M PS 2 , which is useful in practical calculations.

94In this formulation p is described by a vector of parameters ξ and we seek the vector which minimises R ξ ( ). The two elementary choices of parameter sets are (i) entire p, with the value of each p pixel being an independent parameter, and (ii) prescribing an explicit function form ξ = p f ( ). It is advantageous to parametrise the Fourier transform P instead of p itself, because then   ξ − ξ M P S min ( ) 2 is a straightforward non-linear least-squares problem, which can be solved entirely in the frequency domain. No convolutions are necessary. Fourier transforms are only required to calculate M and S and then to transform the final fitted P back to the spatial domain.

95We note that frequency-domain filtering inherently produces p images as large as m and s, even if only a small fraction contains useful information. Thus it may seem that choosing individual p pixels as the fitting parameters (ξ = p) would lead to number of degrees of freedom comparable to number of data, i.e. pixels of m. However, here the p image can be chosen to be much smaller; and it should be if the (effective) support of p is much smaller than the scan size. The corresponding linear least squares problem is therefore reasonable and better conditioned than frequency domain filtering, although regularisation can be still useful. For the Tikhonov regularisation 24 the residual is expressed as

96By introducing matrix u which implements the linear operation s *, i.e. discrete convolution with s

97n k n k , the convolution can be formally written as a matrix multiplication * = s p up. Note that all indices and array sizes are two-dimensional multi-indices, i.e. each consists of row and column index. The least squares problem is a standard linear problem with normal equations www.nature.com/scientificreports www.nature.com/scientificreports/

98T T where I is the identity matrix (depending on the chosen discretisation, which we will discuss in Discretisation and Units, λ parameters in (8) and (11) may differ). Matrix u is Toeplitz-like. In one dimension it is Toeplitz, in two dimensions it is block Toeplitz, and in higher dimensions it has more deeply nested block Toeplitz structure. Hence u T u and consequently a are also Toeplitz-like. Specifically,

99where c is the unnormalised cyclic autocorrelation function of s where N is image pixel dimension. However, c is cut to the size of p to form the matrix.

100The vectors and matrices in the equations can be seen as images. This is obvious for vectors such as m, which we introduced as images. Writing out the multi-index n as (n x , n y ) makes clear that m n has rows and columns. In the case of matrices, this is enabled by their Toeplitz-like structure. Matrix u is formed by elements of image s, only organised differently-see Eq. (9). Similarly, matrix a is formed by elements of the cyclic autocorrelation image c, only organised differently and cut to a region around the origin-see Eq. (12). The addition of λI corresponds to the modification of the single pixel at the origin. Representing the matrices as corresponding images is convenient for computer implementation because multiplication by a matrix is then equivalent to image convolution (or correlation for transposed matrices).

101Overall, all vectors and matrices involved in the system of Eq. (11), although relatively large, are only of size comparable to p, much smaller than the full images. The system can be solved easily using the conjugate gradients 24,25 method. The only costly operation involved is multiplication of p-sized vectors with a, which is realised as image convolution, utilising the fast Fourier transform (FFT).

102The LSM extends naturally to multiple input images. If the same tip and lift height are used in several measurements (distinguished by index μ), the least squares problem (10) becomes

103The normal equations remain the same, except with a being replaced by the sum of matrices corresponding to individual measurements ∑ μ μ a . Similarly in the right hand side u T m is replaced by the sum ∑ μ μ μ u m T . The images combined in (14) must have the same sampling steps, but their dimensions may differ. We can even construct the normal equations for non-rectangular data, for example images with some regions excluded. The correlations and convolutions entering the equations can be easily computed for irregular regions 26 , unlike Fourier transforms. This can certainly be seen as an advantage. The disadvantage of LSM is larger complexity of implementation compared with frequency domain filtering.

Discretisation and Units

104In practical calculations all the operations written using functions and integrals in Theory and Non-periodicity and Image Boundaries are realised with discrete data. Hence, we replace a function f(x, y) with its sampled values in N discrete points f n . The real coordinates are related to the integer indices = x h n x x and = y h n y y , where h x and h y are the horizontal and vertical sampling steps. We then assume = f hn f ( ) n , writing formally the component-wise product (h x n x , h y n y ) as hn.

105In this paper we define the discrete norm

106The discrete convolution of f and g is the sum

107This is the operation usually provied by numerical software. However, when the integral in convolution (1) is approximated by Riemann sum

108In MFM the magnetic surface charge map is represented as H z , measured in A/m. Tip-sample force gradient, the quantity imaged by MFM, has unit of N/m. Conventionally it is divided by the permeability of vacuum μ 0 , resulting in 'force gradient' images in A 2 /m. The TTF then has to be measured in

1092 . Obviously, the factor h x h y must be applied somewhere when realising the convolution (19) using discrete operation (17), and the same holds for deconvolutions. One option is a meticulous normalisation of all intermediate data, Fourier transforms, norms and other quantities in the computation to ensure they always correspond to sampled continuous physical definitions. The other options, more convenient and thus much more popular, assimilate the factor h x h y into one of the images. Either the ideal signal s is pre-multiplied =  s h h s n x y n , allowing to write

110x y . Or a discrete deconvolution used to obtain a discrete TTF  p k , which is then transformed to sampled physical TTF by post-

111x y . Images modified for discrete operations can be used either internally or exposed to SPM software users. Pre-division is used for instance in the SigMath environment 6,11 , whereas post-division is used internally in Gwyddion 27 .

112As long as they are applied consistently, all the approaches provide physically equivalent final results. Nevertheless, the multitude of options invites misunderstanding and confusion in quantitative comparisons if the intermediate images are exchanged and presented. We strongly advocate for only exchanging and presenting images of sampled physical fields in units described above.

113Comparison of regularisation parameter λ requires even more care. It has different meanings and different physical units in the individual methods. Furthermore, its numerical value depends on convolution and FFT normalisation and other choices. For the definitions (15) and (16) and post-division of discrete TTF  p k we can introduce a dimensionless σ related to λ as follows:

114where N and K are the respective numbers of image and TTF pixels.

115Correct powers of ||s|| and ||m|| ensure that σ does not depend on the magnitude of values in either input image. The quadratic relation between σ and λ for pseudo-Wiener filter and linear for the other two methods ensure σ is approximately proportional to noise to signal ratio. Factor N in LSM comes from the number of u matrix rows 24 -σ then scales approximately with N 1/ for all methods (as expected for a least squares problem). The additional factor K 1/3 ensures a more or less consistent σ scaling with TTF support size across the methods. Nevertheless, we must note that consistent scaling does not mean σ values are directly comparable between different methods and that other choices are possible which lead to different but again consistent scaling.

Non-periodicity and Image Boundaries

116A point which cannot be overemphasised is that real-world samples are not periodic and SPM measurements do not produce periodic images. It was disregarded in the previous section for brevity. However, non-periodicity must be taken into account to have any hope of successful TTF recovery.

117Non-periodicity has two basic consequences. First, data measured close to image edges were influenced by sample regions beyond the boundaries of the scanned rectangle. Since these regions were not measured their content is unknown. In deblurring, this causes artefacts close to image edges. However, in the present study it is the least serious of the two problems. The second consequence is contamination of spectra by discontinuities across image edges (which have 1/f-like frequency response). The typical result is a 'cross' artefact in the reconstructed TTF illustrated in Fig. 1c, which occurs for all TTF calculation methods.

118The artefacts can be suppressed by mirror-extending m and s, which makes them at least C 0 -smooth (C k denoting the class of functions with k continuous derivatives). In one dimension a spatially-reversed copy of the signal is placed after it and the new double-sized signal is used instead of the original. In two dimensions this has to be done along both axes, resulting in quadruple-sized images, containing the original plus three differently mirrored copies. Unfortunately, it also means the input data now contain convolutions with p in four different positions. Deconvolution then produces p averaged over all the positions. If we do not know whether p is symmetrical, the result is not useful; whereas if p is known to be completely symmetrical, we are better off fitting an explicit symmetrical functional form.

119Instead, we utilise windowing 28 . In other words, before the deconvolution using either (2) or (10), both m and s are multiplied by a window function w which smoothly approaches zero at the boundaries. Hence the windowed images also smoothly approach zero at all boundaries and they can be considered periodic. The improvement is illustrated in Fig. 1b.

120We remark that both mentioned problems are more serious for two-dimensional images than for one-dimensional signals as comparably larger fractions of data lie close to the boundaries-and it becomes even more serious in higher dimensions as the fraction of hyper-volume lying within a fixed distance from the www.nature.com/scientificreports www.nature.com/scientificreports/ boundary approaches unity. This also means that windowing has to suppress an increasing portion of data as the dimension d grows.

121In the spatial domain, the linear relation = * m p s holds when m and s are multiplied by the same constant. The window w is a very slowly varying function and the support, or at least the effective support, of p is small; even though for instance Gaussian p has in principle infinite support. Intuitively, in the corresponding small area the window w is almost constant and the relation = * m p s is relatively unperturbed by windowing: = * mw p sw still holds relatively precisely. Nevertheless, windowing alters the reconstructed TTF. How much and which of the plethora of available window functions should be employed? It is not obvious how window function characteristics studied extensively in harmonic analysis translate to TTF reconstruction.

122How much w differs locally from a constant depends, in the first approximation, on its derivative (gradient ∇w). If we keep all other settings and only increase the scanned area, the linear dimension of TTF decreases with respect to the linear dimension of the entire area. Denote this ratio of the linear dimensions ε (ε  1). The L 2 norm of difference of w from a constant on TTF support, averaged over image area, is proportional to ε ∇

123. This is one characteristic of the influence. However, there are other effects to consider. Suppressing more data leaves less information to be utilised in the reconstruction; this is measured by ||w||. The window functions also make the data either C 0 or C 1 -smooth across the boundary, and this might play a role.

124We explored the effect of windowing by numerical simulations in one and two dimensions for several window functions implemented in Gwyddion. They included C 1 Hann, Blackman 28,29 and Kaiser 30 (α = .

1252 5) windows, C 0 Lanczos and Welch 31 windows, and C −1 Hamming 28 window, which is similar to Hann window but leaves a small discontinuity across the edge.

126The results for two-dimensional data (images) are plotted in Fig. 2. They are plotted for both periodic and non-periodic signal s consisting of random artificial domain-like images. The true TTF was tetragonal, 21 × 21 pixels and normalised ||p|| = 1. In order to isolate the effect of windowing no noise was added and λ was set to zero-which is optimal in the noise-free case if windowing is applied (as discussed in Optimum Regularisation Parameter). The TTF was obtained by LSM.

127With the exception of no windowing and the C −1 Hamming window, the results for periodic and non-periodic images were almost identical. Without windowing, the reconstruction is almost perfect in the periodic case. The error is essentially given by the conjugated gradients stopping criterion. However, it is poor for non-periodic images. It should be noted that the no-window curve for non-periodic images does not correspond to the best TTF that could be obtained without windowing. Increasing λ would lead to smaller errors. Nevertheless, as Fig. 1d illustrates, even the best case is rather poor.

128Any kind of windowing improves the results dramatically, but there are some systematic differences. The scaling behaviour with image size is essentially the same for all window functions which ensure at least C 0 smoothness (the C −1 Hamming window is clearly inferior). In one dimension the power of ε is approximately 1.62 while in two it is 2.06. This is not far off the + d 1 /2 powers obtained by considering ∇w which are 1.5 and 2, respectively. However, when we compare individual windows, the C 0 Welch and Lanczos functions perform best, while the smoother windows perform worse. In one dimension the differences are even more marked. In fact, for all tested windows, the error is strongly correlated to 1/||w|| (not ∇   w , which is quite similar for all windows) as also illustrated in Fig. 2. Smoothness seems to not matter beyond C 0 . The simple Welch window

1291]) appears to be a good choice. For a given windowing type the error essentially depends only on the ratio of image linear pixel size to TTF linear pixel size. Figure 2 thus provides an estimate how large a scan area must be to achieve a given error. When the ratio is at least 12-15, which is satisfied for typical image and TTF sizes, the TTF error due to windowing should be around or below 1%.

130We also tested the Tukey window function 32 , which is constant on a symmetrical interval around the centre. The interval width is tunable, with wider constant intervals corresponding to more rapidly changing function close to the edges. This window is used in qMFM in the SPM Toolbox 33 . If the parameter was chosen close to the optimum, the performance was slightly worse compared to the Welch window-see Fig. 2. The Tukey window transitions between rectangular and Hann windows as the limit cases. However, the Hann window did not www.nature.com/scientificreports www.nature.com/scientificreports/ perform particularly well. So there might be space for further optimisation if the tunable window has one of the best performing windows (Welch or Lanczos) as the limit case.

131Finally, we remark that in LSM the influence of boundaries can be avoided entirely in a logically consistent manner-at least in principle. If the norm in (8) is calculated only from pixels sufficiently far from the border (farther than TTF size), while the convolution is still done with full-sized images, then no unmeasured data or boundary discontinuities enter the residual R. The price is, however, high. The matrix of the corresponding normal equations, although still easy to express formally, has no longer Toeplitz structure; instead, it becomes a general symmetric positive definite matrix. Storage requirements and matrix multiplication complexity increase dramatically. In one dimension this may be still a reasonable trade off, in two and more dimensions the computational cost seems prohibitive.

Optimal Regularisation Parameter

132In the preceding, regularisation parameter was assumed 'chosen suitably' . When the goal is to measure the TTF corresponding to a particular tip and other parameters (lift height), a suitable choice means small error, expressed as norm of the difference between obtained and true TTF σ −   p p ( ) . There are several major contributions to this error:

133• Perturbation error, originating from noise and other artefacts in m (decreases with increasing σ).

134• Regularisation error, arising from the difference between regularised and exact problem (grows with σ).

135• Windowing error, caused by windowing. It can be sometimes avoided, e.g. for strictly periodic data. It can be also traded for an error caused by edge effects but, as shown in section Non-periodicity and Image Boundaries, this is not recommended. • Ideal data error, caused by our inability to obtain s exactly, even with carefully selected and measured samples of perpendicular structures. It will be discussed in section Ideal Image Estimation and Instrumentation Errors.

136The first two errors depend strongly on σ and we seek a compromise between them. Instead of σ −   p p ( ) , which requires to know the true TTF, a surrogate quantity must be optimised. A large number of methods detailing how to choose σ have been proposed.

137The discrepancy principle 34 relies on a good estimate of noise in measurement δ = −  m m noisefree . We then seek to achieve to match the estimated error, more precisely to achieve

138, where c is a constant, typically c = 2 − 5. The L-curve method 24 follows from the observation that the parametric curve

139is often L-shaped in logarithmic scale, with good compromise between the two errors corresponding to the corner. The generalised cross-validation (GCV) method 24,35 arises from the requirement that if a single measurement is omitted, it should be predicted well by the remaining data in a good solution. By All these methods work under certain assumptions or in a certain sense, but none work universally. They can suffer a variety of problems, including systematic bias, tricky shape of the minimum, poor behaviour in low-noise cases and instability-and sometimes they can even fail to provide any estimate at all 24,37-41 . One should always verify the suitability of a particular method for specific applications. After many numerical experiments attempting to identify a criterion which works well for this particular application in MFM, we had to ask: Why can a human fiddling with a σ slider recognise a near-optimal TTF just by looking at it, without studying eigenvalue spectra or even the residuum? The TTF is not an arbitrary image; it is a localised structure. The compromise we seek is between making it too blurry and too noisy. We observe that even though oversmoothing and noise act very differently-one smears the image, whereas the other increases distant values randomly-both widen the TTF. Therefore, a good TTF should be tight. A suitable tightness criterion should select good σ values.

140Define TTF function width w ttf simply as the standard deviation

141A ttf 2 2 where r is vector from the TTF centre of mass (or, alternatively, maximum -they usually almost coincide). For the LSM, the integration area A is simply the entire p image. For frequency domain filtering, best results are obtained if A again roughly corresponds to the estimated support of p. The course of w ttf (σ) is not sensitive to precise dimensions of A. It should be noted that evaluation of w ttf is particularly computationally cheap in LSM, because it only involves the small p image-no operations with full image-sized data are necessary.

142We can now check how well the minimum of w ttf (σ) approximates the minimum of the TTF error σ −   p p ( ) . Figure 3a shows the dependency of reconstruction error on σ for two algorithms and a set of noise to signal ratios. The displayed curves were obtained using artificial 640 × 640 data for Gaussian TTF and point noise. However, the results were similar for other cases we studied, in particular local scan line errors instead of point noise (as simulated by Gwyddion Line noise function) and tetrahedral TTF, which has sharp features and is more sensitive to correct phase than a Gaussian. Figure 3b shows the evolution of w ttf (σ) (plotted as inverse value for clearer comparison) -and the similarity to Fig. 3a is striking. We can also see that LSM led to systematically smaller errors in the optimal TTF than www.nature.com/scientificreports www.nature.com/scientificreports/ frequency domain filtering. In Fig. 3a the improvement is between about 20% and a factor of 2. Furthermore, it is evident that LSM behaves considerably better for underestimated σ as it is less ill-conditioned. In fact, for low noise there may not be any discernible minimum of σ −   p p ( ) and σ → 0 is a also suitable choice. In assessing the consequences of replacing the unknown minimum of σ −   p p ( ) with measurable minimum of w ttf (σ), we must therefore consider how much the TTF itself changes with respect to the optimal σ-comparing just σ estimates would be misleading. Figure 4a shows the ratio of error obtained from the width-based estimate to the smallest error possible for given algorithm:

143The ratios are plotted for all combinations of two TTF shapes (Gaussian and tetrahedral), noise types (point and scars) and algorithms (least squares and filtering). Individual values are rather scattered, even though a difference between TTF shapes is observable. The important observation is that the highest ratios are below 1.6 and the typical increase is about 1.3, only a moderate increase.

144A closer comparison of σ values reveals a small systematic offset between optimal σ and position of w ttf minimum. The minimum overestimates optimum σ slightly. Noting that the cost of overestimation and underestimation differ, the correction factor can be estimated as approximately 0.4. A larger-scale numerical experiment consisting of 23,760 deconvolutions covering wide ranges of image resolutions, noise levels, TTF sizes, and domain widths led to optimum factor of approximately 0.35. The results for σ wttf replaced by 0.35σ wttf are plotted in Fig. 4b. The error is quite close to minimal for all algorithm and parameter permutations.

145The TTF width criterion, as presented above, is therefore a simple and robust way how to optmise the regularisation parameter in TTF reconstruction for all typical MFM image sizes and noise to signal ratios. We should however note that for very large input images with very low noise the method sensitivity is low, i.e. it is not able to differentiate well between a very good TTF and even better one.

Data Resolution

146While measuring the reference sample we need to decide how to set the scan area and pixel resolution of the data. Even if we could search for the best pixel resolution for the TTF reconstruction this would be useless in practice. The goal of TTF estimation is to use it for further calculations, making measurements on some other sample quantitative. Therefore the pixel size of measurement on the multilayer sample used for TTF estimation should be same as real pixel size of the data on unknown sample that we want to quantitatively measure. Fortunately, for most of the probes the TTF is smooth and influence of pixel resolution and scan area (if we can see reasonably the domains on the MFM data) on TTF reconstruction is relatively small.

Ideal Image Estimation and Instrumentation Errors

147Most of the previous discussion was based on numerical experiments with artificial data for which we also knew all the unperturbed images exactly. This allowed isolation of particular aspects and quantification of errors instead of mere estimation. In real MFM measurements, however, the blind deconvolution situation is more messy and there are several image artefacts specific to scanning probe techniques we must deal with.

148Switching of the tip magnetisation at particular part of the sample is caused by combination of tip magnetisation instability and local magnetic field variations from the sample and is observed relatively often. As a result, the values in entire scan lines are approximately inverted (Fig. 5a). The defect can span several scan lines, or a part of a scan line. It is easy to detect in the data by calculating the discrete covariance of each pair of neighbour lines. Negative values indicate tip magnetisation switch between the two lines. Line inversions must be corrected, otherwise they would wreak havoc on the TTF reconstruction. Interpolation, for instance by solution of Laplace's equation, is a suitable method. Its Gwyddion implementation gives the result shown in Fig. 5b. A conservative estimate of uncertainty originating from the correction can be based on the fraction of pixels replaced. If all scan lines in the image are replaced by the averages of their neighbours, it results in a distortion in the range 0.5 to 3% under typical conditions. A more specific value can be derived from particular data. By multiplying it with the fraction of replaced pixels we obtain an estimate of additional 'noise' introduced by the interpolation.

149Even with no inversions present, other line artefacts frequently make the features slightly misaligned between individual scan lines, also visible in Fig. 5. Consequently, each scan line is less correlated to its neighbours than it should be, resulting in a 'strike-through' TTF defect, illustrated in Fig. 5c, where a prominent central horizontal stripe is surrounded by suppressed regions. Larger λ makes the defect less prominent, at the expense of more blurred result. A surprisingly simple remedy is to utilise two independent scans, one for H z and one for force gradient. This means to repeat the scan after we see line artefacts present in our data. The line artefacts in the two scans are uncorrelated and thus do not give the horizontal stripe. See Fig. 5d, which was calculated with the same λ, only utilising two different scans. Of course, drift must be under control to minimise shifts between the scans. The origin of the line artefacts can be a fault in the feedback loop while measuring the surface topography, similar to the defect observed in purely topographic measurements. It can be also related to the MFM signal measurement in the Lift mode, where two scenarios can lead to line artefacts.

150Either the probe stays attached to the surface due to adhesion forces, producing virtually no contrast in MFM data; or the lift height is wrong for the entire scan line, which can be caused by an inaccuracy of the z-position www.nature.com/scientificreports www.nature.com/scientificreports/ sensor. To prevent the former, manufacturers typically retract the probe further from the sample before starting the data acquisition in the Lift mode. For the latter, acquired MFM data are still valid, but acquired closer to or further from the sample surface than requested. Since MFM data decay quickly when moving farther from the sample, the signal in these lines have visually the same shape, but different scale.

151In order to simulate the effect of wrong lift height on TTF reconstruction we used a volume MFM dataset and created a virtual experimental data set from MFM signal acquired at different heights. The resulting stripe artefacts are shown in Fig. 5e. The lift height defects can be in principle corrected in the image similarly to magnetisation switches. However, it is much more difficult to mark areas of affected pixels. To avoid excessive correction of experimental data, we should ideally perform a new measurement.

152An effect of similar nature can appear for large lift heights, where the signal to noise ratio decreases and the TTF width increases. When there is considerable noise in the measured force gradient, simple thresholding leads to 'hairy' edges in the surface charge map. Again, the correlated errors between the images cause artefacts, in this case a sharp single-pixel peak in the TTF centre (essentially representing a δ-function). It is depicted in Fig. 5f, calculated from quite noisy data measured at lift height of 250 nm. It is again eliminated by using two scans, a scan with small lift height for the H z image and the possibly large lift height where we intend to measure TTF for the force gradient image.

153This brings us to the final point, the fact that thresholding a force gradient image does not recover the sharp image representing magnetic domains perfectly. Even at small lift heights the shape of reconstructed domain edges is deformed by convolution with TTF. This is illustrated in Fig. 6 using artificial data. Figure 6a displays the actual magnetic domains. The result of convolution and subsequent thresholding is shown in Fig. 6b,c for two different Gaussian TFs, wide 1/6 and 1/3 of domain width, respectively. Differences between Fig. 6b and original are barely noticeable, but in Fig. 6c we can see that finer features were lost. Under typical circumstances, the deformation is moderate and can be to a large degree removed by deconvolving the force gradient image with the obtained TTF and using the result of the deconvolution for thresholding and computation of a second, final TTF.

154In Fig. 6d, which illustrates the result of this procedure, we can see the original features were not recovered perfectly, but the distortion was still reduced. Note that the procedure was carried out with 1% noise in the 'measured' image. Deconvolution with the first TTF produces artefacts close to image edges (not visible in the selected detail). Fortunately, these regions are suppressed by windowing and even considerable artefact are not detrimental.

Volume MFM data handling

155When the procedure of TTF estimation is robust enough for automated work we can use it for more complex dataset processing. This is namely the case for volume data. Present SPMs allow magnetic signal measurements in the whole volume above the sample, with high resolution in all the axes and within reasonable time. Such data can be useful for analysing the stray field decay from the sample surface, e.g. to distinguish between magnetic signal and other probe-sample forces. The volume data interpretation is beyond the scope of this paper, we only demonstrate the performance of TTF estimation algorithm, as shown in Fig. 7.

156The first step is to obtain the best H z from the point of view experimental errors, then apply to all lift heights. The lift height for H z is selected to be sufficiently high to prevent feedback errors and short range interactions from affecting the data and simultaneously low enough to get good signal to noise ratio. The TTF can be estimated using either constant σ or σ optimised for each level independently. From Fig. 7a we can see that there is a range in which the estimated σ is nearly constant. Therefore, in this region we can use a constant value. However, to cover a wider range of lift heights and still get well reconstructed TTF in each of the lift heights one has to optimise σ at each level.

157The choice of σ has an impact on TTF shape. This is illustrated in Fig. 7b on the plot of TTF width as a function of lift height for different choices of σ. A resulting 3D plot of TTFs evaluated at different lift heights is shown in Fig. 7c.

Conclusion

158We considered aspects of tip transfer function (TTF) reconstruction in magnetic force microscopy using measurements on perpendicular domain multilayer structures specially designed for quantitative MFM imaging. With the goal of providing procedures, suitable parameter choices and best practice for measuring the TTF effectively and efficiently, numerical experiments with large sets of simulated data (for which a procedure is outlined) were used to ensure the recommendations hold. Two different classes of deconvolution approaches were studied, regularised frequency domain filtering and solution of least-squares problem. Frequency domain filtering certainly has the advantage of implementation simplicity and while we found it can provide adequate results, the least squares method achieved TTF reconstruction with lower errors and brought other benefits, such as natural extension to multiple input images. We also addressed the tangled issue of regularisation parameter choice for the reconstruction. Noting that in this particular application under-and oversmoothing have the same effect of widening the result, finding TTF with the minimal dispersion was suggested as a simple yet effective regularisation parameter optimisation method. It was verified by a numerical study that it leads to consistently good choices for the regularisation parameter under a variety of conditions covering a range of MFM applications. A robust and automated regularisation parameter estimation has also a benefit that it can be used for volume MFM data analysis, either for cross-checking of data consistency or for estimating the influence of other probe-sample interactions.

159Since measurements with a scanning probe bring a specific types of image defects, the effects of most common ones were illustrated alongside measures to avoid them. From analysis of data from numerical experiments and real measurements we can give the following recommendations:

160• When possible, measure the experimental data that will be used for TTF estimation twice. Use one of the measurements to simulate the ideal response and another one to estimate the TTF on these data. • Choose resolution and range of the measurement used for TTF estimation to match the resolution and range of data on the unknown sample on which we want to do quantitative MFM. Use a different resolution only in cases when resulting TTF would be too small or the characterisation sample would be not sufficiently statistically covered. • Always use windowing when performing the TTF. Based on numerical studies, we recommend the Welch window for TTF reconstruction, for which the error originating from windowing is about 1% or below for typical image dimensions. • Report TTF and related quantities only as sampled physical fields. We advocate for this even where it might depart from current practice. • A simple TTF width-based criterion can be used for estimation of the regularisation parameter. Other approaches can be used as well, however be wary when comparing regularisation parameters coming from different methods.

161Even if these rules are not exhaustive and there are many experimental conditions that need to be still chosen, following them can signifincantly reduce the TTF errors and potential misunderstandings in TTF interpretation.

Methods

162MFM Samples and Measurements. Experimental data measured on a reference sample based on Si/SiO x / Pt(5 nm)/[Pt(0.9 nm)/Co(0.4 nm)] 100 /Pt(2 nm) multilayer are provided within this paper to illustrate the TTF estimation procedure and to point out different instrumentation related errors that we can observe in the measurements. Data were obtained using Dimension Icon microscope with MESP-RC probes in the Lift mode (2D data) or in Force Volume mode (3D data), with typical settings used in routine microscope operation. Figure 7. Lift height-dependent reconstruction for volume MFM data: (a) evolution of estimated optimal regularisation parameter σ; (b) TTF width measured using formula (21) for σ estimated at each lift height and three fixed values within the range of more or less constant optimal σ; (c) evolution of TTF with lift height calculated from volume MFM data with slices at selected heights (colour ranges are adapted to full range of each individual slice).

163www.nature.com/scientificreports www.nature.com/scientificreports/ 2. The corresponding spatial-domain image is obtained by inverse FFT (Fig. 9a). They are calculated by erosion and dilation morphological filters with flat disk structuring elements. The neighbourhood size is proportional to 1/f 0 (Fig. 9b). 4. A binary image is formed by thresholding v at level ≥ v 1/2 n . The binary image is then thinned. All pixels corresponding to local maxima in v are set to 1 in the thinned binary image (this is essentially to compensate their possible removal by thinning). Euclidean distance transform of 0-valued pixels in the binary image produces image t + . 5. The previous step is repeated with binary image formed by < v 1/2 n and local minima in v, obtaining t − . 6. Difference image = − + − d t t (Fig. 9c) is thresholded at ≥ d 0, obtaining a new binary image representing the two domains. 7. Alternating sequential filter with disk structuring elements is applied to the binary image to ensure smoothness of the domain boundaries. The maximum kernel size is again proportional to 1/f 0 , but only a small fraction of the stripe width.

164The binary image is then used to obtain the stray field image in the same manner as the thresholded image in TTF calculation. The effect of varying frequency spread ∆f is illustrated in Fig. 9d-f. Efficient algorithms were utilised for all operations in this procedure. If the number of image pixels is N and linear domain size is W (also in pixels), the inverse FFT complexity is O (N log N). The dilation and erosion filters have complexity O(NW) if decomposed into operations with smaller structuring elements 43 and the same holds for thinning. Euclidean distance transform has complexity just O(N) 43 . Therefore, the operation with largest asymptotic complexity of O(NW 2 ) is the alternating sequential filter 43 which is, however, only executed with much smaller structuring elements and does not dominate the total computation time.

Data Availability

165The algorithms are available as a part of open source software Gwyddion. All the experimental and generated data are available at http://nanometrologie.cz/ttf/.

참고문헌 41건

  1. Image Processing and Mathematical Morphology: Fundamentals and Applications 2009
  2. Regularization for Applied Inverse and III-Posed Problems 1986 10.1007/978-3-322-93034-7
  3. Aperture Synthesis with a Non-Regular Distribution of Interferometer Baselines Astronomy & Astrophysics Supplement Series · EDP Sciences · 1974
  4. Optimization of perpendicular magnetic anisotropy tips for high resolution magnetic force microscopy by micromagnetic simulations Applied Physics A · Springer Science+Business Media · 2012 10.1007/s00339-012-7459-4
  5. Pitfalls in the Numerical Solution of Linear Ill-Posed Problems SIAM Journal on Scientific and Statistical Computing · Society for Industrial and Applied Mathematics · 1983 10.1137/0904012
  6. Study and Performance Evaluation of Two Iterative Frequency-Domain Deconvolution Techniques IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 1984 10.1109/tim.1984.4315225
  7. Generalized Cross-Validation as a Method for Choosing a Good Ridge Parameter Technometrics · Taylor & Francis · 1979 10.1080/00401706.1979.10489751
  8. One-dimensional autocorrelation and power spectrum density functions of irregular regions Ultramicroscopy · Elsevier BV · 2012 10.1016/j.ultramic.2012.08.002
  9. Non-convergence of the L-curve regularization parameter selection method Inverse Problems · IOP Publishing · 1996 10.1088/0266-5611/12/4/013
  10. Using the L--curve for determining optimal regularization parameters Numerische Mathematik · Springer Science+Business Media · 1994 10.1007/s002110050078
  11. Gwyddion: an open-source software for SPM data analysis Open Physics · De Gruyter Open · 2011 10.2478/s11534-011-0096-2
  12. Magnetic vortex observation in FeCo nanowires by quantitative magnetic force microscopy Applied Physics Letters · American Institute of Physics · 2014 10.1063/1.4900998
  13. A deconvolution method for evaluating indicator-dilution curves Physics in Medicine and Biology · IOP Publishing · 1994 10.1088/0031-9155/39/11/004
  14. Micromagnetic study of effect of tip-coating microstructure on the resolution of magnetic force microscopy Applied Physics A · Springer Science+Business Media · 2012 10.1007/s00339-012-7117-x
  15. Reconstruction of surface potential from Kelvin probe force microscopy images Nanotechnology · IOP Publishing · 2013 10.1088/0957-4484/24/29/295702
  16. A method for the calibration of magnetic force microscopy tips Journal of Applied Physics · American Institute of Physics · 2000 10.1063/1.373678
  17. Statistical estimation of point spread function applied to scanning near-field optical microscopy Optics Communications · Elsevier BV · 1994 10.1016/0030-4018(94)90649-1
  18. Deconvolution of ultrafast kinetic data with inverse filtering Radiation Physics and Chemistry · Elsevier BV · 2004 10.1016/j.radphyschem.2004.02.005
  19. Deconvolution processing for increasing the resolution of magnetic force microscopy measurements Nanotechnology · IOP Publishing · 2004 10.1088/0957-4484/15/10/014
  20. The “Minimum Reconstruction Error” Choice of Regularization Parameters: Some More Efficient Methods and Their Application to Deconvolution Problems SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 1995 10.1137/0916080
  21. The Measurement Of Power Spectra: From The Point Of View Of Communications Engineering 2012
  22. The Design and Implementation of FFTW3 Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 2005 10.1109/jproc.2004.840301
  23. The use of fast Fourier transform for the estimation of power spectra: A method based on time averaging over short, modified periodograms IEEE Transactions on Audio and Electroacoustics · Institute of Electrical and Electronics Engineers · 1967 10.1109/tau.1967.1161901
  24. Quantitative magnetic force microscopy on perpendicularly magnetized samples Journal of Applied Physics · American Institute of Physics · 1998 10.1063/1.367412
  25. Model-Free Deconvolution of Femtosecond Kinetic Data The Journal of Physical Chemistry A · American Chemical Society · 2006 10.1021/jp057486w
  26. Deconvolution of Kelvin probe force microscopy measurements—methodology and application Measurement Science and Technology · IOP Publishing · 2009 10.1088/0957-0233/20/8/084017
  27. On the use of windows for harmonic analysis with the discrete Fourier transform Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 1978 10.1109/proc.1978.10837
  28. Multiparameter optimization of inverse filtering algorithms IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 1996 10.1109/19.492758
  29. Quantitative Magnetic Force Microscopy Study of the Diameter Evolution of Bubble Domains in a $(\hbox{Co/Pd})_{80}$ Multilayer IEEE Transactions on Magnetics · IEEE Magnetics Society · 2011 10.1109/tmag.2011.2155630
  30. Methods of conjugate gradients for solving linear systems Journal of research of the National Bureau of Standards · US government · 1952 10.6028/jres.049.044
  31. Micromagnetic Studies of Ultrahigh Resolution Magnetic Force Microscope Tip Coated by Soft Magnetic Materials IEEE Transactions on Magnetics · IEEE Magnetics Society · 2014 10.1109/tmag.2014.2337835
  32. Blind Image Deconvolution: Problem Formulation and Existing Approaches CRC Press eBooks · Informa · 2017 10.1201/9781420007299-5
  33. Reconstruction of Kelvin probe force microscopy image with experimentally calibrated point spread function Review of Scientific Instruments · American Institute of Physics · 2017 10.1063/1.4978282
  34. V-Shaped Domain Wall Probes for Calibrated Magnetic Force Microscopy IEEE Transactions on Magnetics · IEEE Magnetics Society · 2017 10.1109/tmag.2017.2694324
  35. Halbach Effect at the Nanoscale from Chiral Spin Textures Nano Letters · American Chemical Society · 2018 10.1021/acs.nanolett.7b04802
  36. Calibration of multi-layered probes with low/high magnetic moments Scientific Reports · Nature Portfolio · 2017 10.1038/s41598-017-07327-0
  37. Choice of Smoothing Parameter in Deconvolution Problems Contemporary mathematics - American Mathematical Society · American Mathematical Society · 1986 10.1090/conm/059/10
  38. Image Processing and Mathematical Morphology CRC Press eBooks · Informa · 2010 10.1201/9781420089448
  39. Digital Image Processing 2002 10.1002/0471221325
  40. Matrices, Moments and Quadrature with Applications Princeton University Press eBooks · Princeton University Press · 2009 10.1515/9781400833887
  41. Common Structure of Techniques for Choosing Smoothing Parameters in Regression Problems Journal of the Royal Statistical Society Series B (Statistical Methodology) · Oxford University Press · 1987 10.1111/j.2517-6161.1987.tb01690.x