선정목록으로
STEMax_PF: accurate and fast peak-finding for atom quantitative analysis
간접 관련 수소연료전지 · (7) MEA(막전극접합체) (6) PEM(고분자전해질막)(21) 에폭시수지
기본 정보
- 저자
- DOI
- 10.20517/microstructures.2025.29
- 저널
- Microstructures
- 발행년도
- 2025
- 발행기관
- –
- 피인용수
- 0
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.20517/microstructures.2025.29
- 토픽
- Electron and X-Ray Spectroscopy Techniques
- OpenAlex ID
- W7106650707
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 수소연료전지 · (7) MEA(막전극접합체)
- 부 분야
- (6) PEM(고분자전해질막), (21) 에폭시수지
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- STEM, quantitative atomic analysis, microstructural analysis, Gaussian fitting, image processing
- 판단 근거
- 본 논문은 STEM(주사 투과 전자 현미경) 이미지를 활용하여 원자 단위의 구조를 정밀하게 분석하는 소프트웨어 알고리즘에 관한 연구입니다. 이는 코오롱인더스트리의 수소연료전지용 PEM(6)이나 고분자/에폭시(21) 소재의 미세 구조 및 계면 분석을 위한 분석 기법으로 응용 가능합니다.
- R&D 활용 포인트
- 연료전지용 이온전도성 고분자막(PEM)의 결정 구조 분석이나 화학 수지의 미세 구조 및 결함 분석 시, 고해상도 전자현미경 데이터의 정량적 분석 효율을 높이는 데 활용할 수 있습니다.
- 평가 입력
- 본문 63,145자 중 30,032자 발췌
초록
Aberration-Corrected Scanning Transmission Electron Microscopy (AC-STEM) offers sub-ångström resolution and has become the most microscopic and advanced tool in the field of materials science, yet its quantitative image analysis has been constrained by high computational demands, uneven background illumination, and challenges in resolving overlapping point spread functions. In this work, we introduce STEMax_PF, a novel software tool that integrates and improves multiple advanced techniques - including an adaptive threshold-enhanced centroid method, rapid normalized cross-correlation for detecting light atoms, and an improved weighted overdetermined regression algorithm - to effectively address these issues. In the two-dimensional Gaussian fitting process, STEMax_PF adopts a unique strategy by individually estimating the initial fitting parameters for each atomic column using several approaches, ensuring accurate fitting for materials comprising any elements. The integration of these methods dramatically reduces computational resource usage and enables extremely fast processing. Furthermore, STEMax_PF is universally applicable to any crystal structure and STEM image format, paving the way for reliable quantitative atomic analysis and its connection to phenomena such as ferroelectric polarization, piezoelectric/dielectric responses, and electron-phonon interactions.
본문 63,145자
본문 펼치기
## Zhao et al. Microstructures 2025, 5, 20250100 Microstructures
DOI: 10.20517/microstructures.2025.29
Research Article Open Access
# STEMax_PF: accurate and fast peak-finding for atom quantitative analysis
Zhihao Zhao1, Wanbo Qu1, Yuxuan Yang1, Guyang Peng1, Xianghong Zhou1, Tong Song1, Yang Zhang1,2,3,
Shengwu Guo1, Fei Li1,2, Xiangdong Ding1, Jun Sun1, Haijun Wu1
Zhihao Zhao
1, Fei Li1,2, Xiangdong Ding1, Jun Sun1, Haijun Wu1
1State Key Laboratory for Mechanical Behavior of Materials, Xi’an Jiaotong University, Xi’an 710049, Shaanxi, China.
2Electronic Materials Research Laboratory (Key Lab of Education Ministry), and School of Electronic and Information
Engineering, Xi’an Jiaotong University, Xi’an 710049, Shaanxi, China.
3Instrumental Analysis Center of Xi’an Jiaotong University, Xi'an Jiaotong University, Xi’an 710049, Shaanxi, China.
Correspondence to: Yang Zhang, Instrumental Analysis Center of Xi’an Jiaotong University, Xi'an Jiaotong University, Xi’an
710049, Shaanxi, China. Email: zhangyang2020@xjtu.edu.cn; Prof. Haijun Wu, State Key Laboratory for Mechanical Behavior of
Materials, Xi’an Jiaotong University, Xi’an 710049, Shaanxi, China. wuhaijunnavy@xjtu.edu.cn
How to cite this article: Zhao, Z.; Qu, W.; Yang, Y.; Peng, G.; Zhou, X.; Song, T.; Zhang, Y.; Guo, S.; Li, F.; Ding, X.; Sun, J.; Wu, H.
STEMax_PF: accurate and fast peak-finding for atom quantitative analysis. _Microstructures_ 2025, _5_ [, 20250100. https://dx.doi.](https://dx.doi.org/10.20517/microstructures.2025.29)
[org/10.20517/microstructures.2025.29](https://dx.doi.org/10.20517/microstructures.2025.29)
Received: 5 Mar 2025 First Decision: 9 Apr 2025 Revised: 14 May 2025 Accepted: 21 May 2025 Published: 26 Nov 2025
Academic Editor: Shiqing Deng Copy Editor: Shu-Yuan Duan Production Editor: Shu-Yuan Duan
Abstract
Aberration-Corrected Scanning Transmission Electron Microscopy (AC-STEM) offers sub-ångström resolution and
has become the most microscopic and advanced tool in the field of materials science, yet its quantitative image
analysis has been constrained by high computational demands, uneven background illumination, and challenges in
resolving overlapping point spread functions. In this work, we introduce STEMax_PF, a novel software tool that
integrates and improves multiple advanced techniques - including an adaptive threshold-enhanced centroid
method, rapid normalized cross-correlation for detecting light atoms, and an improved weighted overdetermined
regression algorithm - to effectively address these issues. In the two-dimensional Gaussian fitting process,
STEMax_PF adopts a unique strategy by individually estimating the initial fitting parameters for each atomic
column using several approaches, ensuring accurate fitting for materials comprising any elements. The integration
of these methods dramatically reduces computational resource usage and enables extremely fast processing.
Furthermore, STEMax_PF is universally applicable to any crystal structure and STEM image format, paving the way
for reliable quantitative atomic analysis and its connection to phenomena such as ferroelectric polarization,
piezoelectric/dielectric responses, and electron-phonon interactions.
Keywords: STEM, peak finding, quantitative atomic analysis
© The Author(s) 2025. Open Access This article is licensed under a Creative Commons Attribution 4.0
[International License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, sharing,](https://creativecommons.org/licenses/by/4.0/)
adaptation, distribution and reproduction in any medium or format, for any purpose, even commercially, 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.
[www.oaepublish.com/microstructures](https://www.oaepublish.com/microstructures)
Page 2 of 18 Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29
## INTRODUCTION
Aberration-corrected scanning transmission electron microscopy (AC-STEM), with its stable sub-ångström
spatial resolution, has emerged as an advanced and practical characterization tool suitable for a wide range
of materials <sup>[1,2]</sup> . In recent years, the rapid development of computational technologies has driven the
increasing importance of specialized software and algorithms throughout the entire electron microscopy
characterization process. By applying advanced image processing algorithms, not only can image distortions
be effectively corrected, but the overall image quality can also be significantly enhanced. Building on this
foundation, extracting and converting high-resolution, pixel-level discrete data into atomic-level
information, followed by quantitative analysis for statistical calculations of the material systems of interest,
has become an effective strategy to maximize the value of electron microscopy images <sup>[1,2]</sup> . Consequently, the
efficient and precise quantitative analysis of electron microscopy images has become a core focus for
materials scientists and electron microscopy researchers.
In the study of functional materials such as perovskite oxides, the critical physical properties are often
closely linked to the quantitative analysis of microscopic structures, including atomic displacements and
lattice distortions. Accurate identification and localization of atomic scattering peaks in atomic-level
imaging are essential prerequisites for understanding these microstructures <sup>[3]</sup> . To address this, researchers
have developed various automatic and semi-automatic peak-finding methods that balance computational
efficiency and localization precision to different extents. In contemporary scanning transmission electron
microscopy (STEM) image analysis, existing packages such as Oxygen Picker and Atomap offer robust
functionality and high performance and are widely adopted by practitioners. Nevertheless, these tools
exhibit limitations in terms of accessibility and generalizability <sup>[4,5]</sup> .
Among these, the centroid method is the most commonly used and relatively easy to implement <sup>[6]</sup> . This
method treats the grayscale distribution of atoms in an image as a “mass distribution” and calculates the
centroid position to determine the coordinates of atomic peaks. Its simplicity and rapid computation make
it suitable for preliminary analysis of a limited number of images or high-quality samples. However, the
centroid method is sensitive to noise and variations in background intensity, particularly at atomic
resolution, where even minor image fluctuations can introduce significant deviations. When high
measurement precision is required or when experimental data contain substantial noise, the centroid
method often falls short. In contrast, Gaussian fitting methods for locating atomic peaks can substantially
enhance accuracy. This approach fits the grayscale distribution around atomic peaks with Gaussian
functions and iteratively optimizes parameters such as peak position, width, and intensity <sup>[7,8]</sup> . It effectively
reduces noise interference and more accurately approximates the actual scattering peak shapes, thereby
providing more reliable data for subsequent analyses like assessing local strain or fine structural distortions.
However, the superior accuracy of Gaussian fitting typically comes with higher computational costs,
necessitating powerful computing hardware to handle the fitting of large-scale image datasets individually.
Additionally, Gaussian fitting is highly dependent on the initial parameter settings; significant deviations in
initial guesses can lead to slow convergence or trapping in local minima, requiring experience or auxiliary
algorithms to select reasonable initial values. Even today, some researchers still rely on the traditional least
squares method for fitting due to its straightforward implementation and historical precedence. Beyond
these methods, other peak detection techniques based on traditional image processing, such as filtering and
edge detection, or those utilizing deep learning models like convolutional neural networks, are also gaining
attention <sup>[9,10]</sup> . Traditional image processing methods can suppress background noise and enhance peak
signals to some extent, while deep learning approaches offer greater adaptability in handling complex noisy
backgrounds or anisotropic peak shapes <sup>[9,10]</sup> . However, artificial intelligence methods often require large
amounts of labeled data for training, have limited interpretability, and impose higher demands on hardware
Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29 Page 3 of 18
and software environments. Therefore, there is an urgent need to develop more efficient peak-finding
methods that can quickly obtain accurate initial values and fitting parameters while enhancing overall
analysis efficiency and precision.
Processing STEM images with uneven background illumination also presents significant challenges. Such
non-uniformity may arise from variations in sample thickness or complex factors like material interfaces.
Bradley _et al._ proposed the use of adaptive thresholding based on integral images as a feasible technique to
address this issue <sup>[11]</sup> . However, this method is more effective for atoms with strong scattering atomic
columns and struggles to accurately identify light elements, such as oxygen atoms, which exhibit weaker
signals in high-angle annular dark-field (HAADF) images. Consequently, these light atoms still require
specialized processing methods <sup>[12]</sup> .
In STEM imaging, due to aberrations and diffraction effects, a point source does not appear as an ideal
point but rather expands into a spot with a certain shape, typically resembling a Gaussian distribution.
When the distance between two spots is less than or approximately equal to the width of their point spread
functions (PSFs), the signals of these spots overlap, making it difficult to clearly resolve them <sup>[13]</sup> . In such
cases, accurately locating atomic positions becomes exceedingly challenging, necessitating more precise
algorithms and image processing methods to address this issue.
In light of the aforementioned needs and challenges, we have developed a software tool named STEMax_PF.
This innovative tool integrates and improves multiple image processing methods to effectively address these
issues. Specifically, STEMax_PF combines the Enhanced Centroid Method for Atomic Row Localization which incorporates an adaptive thresholding approach to accurately segment each atomic column and
determine initial positions - with the Rapid Identification of weak scattering atomic columns via
Normalized Cross-Correlation, and the Enhanced Weighted Overdetermined Regression algorithm, which
automatically estimates the initial fitting parameters for each atomic column to ensure universal
applicability even in materials containing multiple elements. STEMax_PF is equipped with a user-friendly
graphical interface, enabling the accurate calibration of atomic positions with varying intensities while
outputting relevant information in TXT format. Furthermore, the software achieves exceptional
computational efficiency by requiring minimal computing resources and delivering rapid image processing.
In addition, it is universally applicable to a wide range of structures and compatible with various STEM
image formats, thereby providing robust support for quantitative analyses and practical applications.
Through this software, we aim to assist scientists in conducting in-depth structural analyses of various
materials. For instance, it enables systematic investigations of atomic-scale phenomena such as the
correlation between polarization distribution in ferroelectric materials and their macroscopic piezoelectric
response/dielectric energy storage characteristics, as well as the relationship between lattice distortion
patterns in thermoelectric materials and their coupled electron-phonon transport dynamics.
## MATERIALS AND METHODS
Algorithm
_Algorithms used in the script_
In the software, the primary algorithms encompass the centroid method for position determination, the
normalized cross-correlation method for locating weak scattering atomic columns, and two-dimensional
(2D) Gaussian fitting for refining atomic positions. For each algorithm, we have provided a schematic
diagram illustrating its operation, as shown in Figure 1.
Page 4 of 18 Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29
Figure 1. Schematic representations of the three main algorithms. (A) Extraction of individual atomic clusters via an adaptivethreshold
method, followed by application of the centroid method to each cluster to obtain preliminary atomic positions; (B) Generation of an
average template and its use to locate matching positions within the raw image; (C) For each peak, extraction of Imax, full width at
halfmaximum (FWHM), background noise, and centroid coordinates to estimate all Gaussianfitting parameters, thereby yielding
highprecision atomic coordinates. HWHM: Half width at half maximum.
Enhanced centroid method for atomic row localization algorithm
In the conventional centroid method, for a set of n d-dimensional vectors x i = (xi1, xi2, …, xid), the centroid C
is defined as <sup>[14]</sup> :
- _?_
_?_ =1
_??_ 1 _,_ <sup><u>1</u></sup>
_?_
_?_ = <sup><u>1</u></sup>
_?_
- _?_
_?_ =1
- _?_
_?_ =1
_??_ 2 _, . . .,_ <sup><u>1</u></sup>
_?_
- _?_
_?_ =1
_??_ =
<u>1</u>
_?_
_???_
(1)
For the application to STEM images, the vectors are typically the three-dimensional coordinates of the
image pixels, denoted as <sup>[14]</sup>
x _?_ = ( _??, ??, ??_ ) (2)
where x _i_ and y _i_ represent the pixel positions and z _i_ denotes the pixel contrast. In practical data processing, it
is common to use the x _i_ and y _i_ coordinates as the fitting components while employing the contrast z _i_ as the
weight for each pixel.
Therefore, for each atomic column in the STEM image, the fitting region (denoted as Ω) in the conventional
centroid method is defined by the following equation <sup>[14]</sup> :
- <sup>�</sup>
( _??_ _,??_ )∈Ω <sup>_?_</sup> _?_ <sup>_?_</sup> i
~~�~~
( _??_ _,??_ )∈Ω <sup>_?_</sup> _?_
( _??_ _,??_ )∈Ω <sup>_?_</sup> _?_ <sup>_?_</sup> i
~~�~~
( _??_ _,??_ )∈Ω <sup>_?_</sup> _?_
(3)
c =
( _??_ _,??_ )∈Ω <sup>_?_</sup> <sup>(</sup> <sup>_?_</sup> _?_ <sup>_, ?_</sup> _?_ <sup>) x</sup> _?_
~~�~~ =
( _??_ _,??_ )∈Ω <sup>_?_</sup> <sup>(</sup> <sup>_?_</sup> _?_ <sup>_, ?_</sup> _?_ <sup>)</sup>
_,_
Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29 Page 5 of 18
However, in image processing, different regions are typically governed by a combination of features such as
texture, color, brightness, and gradient. When these features exhibit significant heterogeneity in their
distributions, traditional centroid methods - which rely solely on the mean value of features to represent
class centers - may fail to adequately capture the intrinsic characteristics of each class <sup>[15]</sup> . This limitation can
adversely affect clustering accuracy and robustness. In grayscale STEM images, such heterogeneity primarily
arises from variations in brightness across different regions. As a result, the problem transforms into the
following: conventional centroid approaches often struggle to define an optimal fitting region for each
atomic column - one that captures the main signal of the column without interference from neighboring
columns - particularly under conditions of non-uniform background thickness or image noise. To address
this, thresholding techniques are typically employed. The most basic thresholding method involves selecting
a fixed threshold and comparing each pixel value against it. However, in images with substantial brightness
variation between regions, fixed thresholds are often inadequate. In such cases, adaptive thresholding
becomes necessary to ensure accurate segmentation. Therefore, the present software introduces an
enhanced centroid method, developed on the basis of traditional centroid algorithms, specifically tailored to
improve atomic column localization in complex STEM imaging conditions.
The core of the algorithm is to establish an adaptive threshold matrix. The idea is to first identify a
neighborhood for each pixel (x _i_, y _i_ ) in the image, then perform local statistical analysis on that
neighborhood, and finally compute the adaptive threshold A _ij_ at (x _i_, y _i_ ) based on a user-defined sensitivity
parameter k with values ranging between 0 and 1 (where 1 corresponds to the minimum threshold and 0 to
the maximum threshold) <sup>[11]</sup> . Next, the specific implementation methods are described in detail.
To further expedite the computational process, the entire image is first converted into its integral image _II_
(x, y) and its integral squared image _II_ <sup>_2_</sup> (x, y) <sup>[16]</sup> :
- _?_
_?_ =0
- _?_
_?_ 0
_??_ ( _?, ?_ ) =
_??_ <sup>2</sup> ( _?, ?_ ) =
- _?_
_?_ =0
- _?_
_?_ 0
_???_ (4)
_???_ <sup>2</sup> (5)
In this context, I _ij_ denotes a grayscale image normalized within the range [0, 1]. Subsequently, the integral
image allows us to efficiently identify a 9 × 9 neighborhood for each pixel (x _i_, y _i_ ). Owing to the advantages of
the integral image, it is sufficient for each neighborhood to locate only the coordinates of the upper-left
corner (x _i_ 1, y _i_ 1) and the lower-right corner (x _i_ 2, y _i_ 2) <sup>[17,18]</sup> :
_??_ 1 = max ( _??_ - 4 _,_ 0) _, ??_ 1 = max ( _??_ - 4 _,_ 0) (6)
_??_ 2 = min ( _??_ + 4 _, ?_ - 1) _, ??_ 2 = min ( _??_ + 4 _, ?_ - 1) (7)
Here, W and H represent the width and height of the image, respectively. Subsequently, the integral image is
utilized to compute the local statistical measures. Firstly, for each local neighborhood, the pixel sum S _ij_ and
the sum of squared pixel values S2 _ij_ are calculated as follows <sup>[17,18]</sup> :
_???_ = _??_ ( _??_ 2 _, ??_ 2) − _??_ ( _??_ 1 − 1 _, ??_ 2) − _??_ ( _??_ 2 _, ??_ 1 − 1) + _??_ ( _??_ 1 − 1 _, ??_ 1 − 1) (8)
_?_ 2 _??_ = _??_ <sup>2</sup> ( _??_ 2 _, ??_ 2) − _??_ <sup>2</sup> ( _??_ 1 − 1 _, ??_ 2) − _??_ <sup>2</sup> ( _??_ 2 _, ??_ 1 − 1) + _??_ <sup>2</sup> ( _??_ 1 − 1 _, ??_ 1 − 1) (9)
Page 6 of 18 Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29
For each 9 × 9 window, which contains a total of 81 pixels, the local mean m _ij_, the local variance σ <sup>2</sup> _ij_ <sup>, and the</sup>
local standard deviation s _ij_ can be computed as follows <sup>[17,18]</sup> :
_???_ = <sup>_???_</sup> (10)
81
_?_ <sup>2</sup> _??_ = <sup>_?_</sup> <sup>2</sup> <sup>_??_</sup> (11)
81 <sup>−</sup> <sup>_???_</sup> <sup>2</sup>
_???_ =
_?_ <sup>2</sup> _??_ (12)
Finally, by combining the local statistical parameters with the user-selected threshold κ, we derive the
following adaptive threshold formula <sup>[11]</sup> :
_???_ = _???_
1 + _?_ <sup>�</sup> _???_ - 1 <sup>��</sup> (13)
Once the adaptive threshold matrix A _ij_ is obtained, regions where ( _Iij_ - A _ij_ ≤ 0) an be masked. This process
transforms each atomic column into an atomic cluster, which can be regarded as an “island”. Each “island”
serves as our summation region. By combining this approach with the traditional centroid method, we can
further derive an improved formula for the centroid method; specifically, Equation (14) is derived from
Equations (3) and (13):
_?_ <sup>_?_</sup> _?_
- _???_ - _???_
_?_ <sup>_?_</sup> _?_
- _???_ - _???_
_?_
~~�~~
_?_
_??_ =
_?_
~~�~~
_?_
~~�~~
_?_
~~�~~ _???_ - _???_ ~~�~~ _, ??_ =
~~�~~
_?_
~~�~~ _???_ - _???_ ~~�~~ (14)
The centroid coordinates obtained via this method can be considered as the initial positions of the atomic
columns, which are subsequently refined using further Gaussian fitting. Notably, its adaptivethresholding
scheme renders the method agnostic to material periodicity, enabling analyses that periodicitydependent
tools like OO Picker cannot perform. The schematic of these algorithms is shown in Figure 1A.
However, due to thresholding, very weak scattering atomic column sites, such as oxygen atoms, may be lost.
To recover these points, the software additionally incorporates a supplementary template matching module.
Rapid identification of weak scattering atomic columns via normalized cross-correlation
The Normalized Cross-Correlation (NCC) method is employed to locate the positions of weak scattering
atomic columns. Initially, an atomic row is selected as a template, which is then utilized to generate a
correlation map. This approach has proven to be highly effective in accurately determining the positions of
weak scattering atomic columns. After each iteration, the user is required to designate templates from three
distinct locations within the image. The correlated atomic positions are then aligned based on crosscorrelation calculations using the templates selected from these three different atomic positions by the
user <sup>[19]</sup> :
_?_ <sup>�</sup> _??,??_ - = - _??_ ( _?, ?_ ) · _??_ ( _?_ + Δ _?, ?_ + Δ _?_ ) (15)
where T _i_ and T _j_ are both pre-designated templates. _Δx_, _Δy_ are displacement parameters determined by
maximizing the cross-correlation value to achieve optimal alignment <sup>[19]</sup> . Subsequently, an average template
Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29 Page 7 of 18
is generated by performing a pixel-wise average of the three aligned templates. This step is crucial for
accurately locating atomic positions in high-resolution microscopic images of interfaces. It is noteworthy
that, in certain cases, there may be multiple standard templates for determining atomic positions. In such
scenarios, the process can be repeated multiple times to identify all relevant templates.
Once the templates are established, the cross-correlation map _γ_ ( _u_, _v_ ) determined using the following
formula:
_?_ _?,?_
_?_ ( _?, ?_ ) −
[ _?_ ( _?_ - _?, ?_ - _?_ ) −
_?_ ( _?, ?_ ) =
- _?,?_ _?_ ( _?, ?_ ) − _?_ _?,?_ [ _?_ ( _?_ - _?, ?_ - _?_ ) − _?_ -]
~~�~~ - ~~�~~ - ~~�~~ 2 _?,?_ _?_ ( _?, ?_ ) − _?_ _?,?_ _?,?_ <sup>[</sup> <sup>_?_</sup> <sup>(</sup> <sup>_?_</sup> <sup>−</sup> <sup>_?, ?_</sup> <sup>−</sup> <sup>_?_</sup> <sup>) −</sup>
_?,?_
~~�~~
_?_ ( _?, ?_ ) −
-
_?_ _?,?_
~~�~~ 2 _?,?_ <sup>[</sup> <sup>_?_</sup> <sup>(</sup> <sup>_?_</sup> <sup>−</sup> <sup>_?, ?_</sup> <sup>−</sup> <sup>_?_</sup> <sup>) −</sup>
_?_ -]2
~~�~~ (16)
where _f_ represents the image, is the mean of the template, and denotes the mean of _?_ - _?_ - _?,?_ _f_ ( _x_, _y_ ) within the
template region.
The cross-correlation map effectively amplifies weak signals, making them more discernible. Subsequently,
the improved centroid method is utilized to accurately determine the position of each spot generated in the
correlation map <sup>[20,21]</sup> . The schematic of these algorithms is shown in Figure 1B.
Enhanced 2D Gaussian fitting
In STEM images, the intensity of atoms approximates the intensity distribution of Airy disks. The central
intensity is indicative of the scattering strength of the electron beam at the atomic position. 2D Gaussian
functions provide the most computationally efficient representation of Airy disks and exhibit minimal
deviation from the actual Airy disk profiles in practical applications.
To achieve more precise determination of atomic positions, a 2D Gaussian fitting procedure is employed
prior to finalizing the output results. This fitting process enhances the accuracy of the atomic localization by
refining the initial positions obtained through centroid and cross-correlation methods. Traditional
approaches to 2D Gaussian fitting include least-squares Gaussian iterative fitting, nine-point regression, and
fast Fourier transform (FFT)-based methods. Among these, the least-squares Gaussian iterative fitting offers
the highest precision; however, it is associated with significant computational costs and extended processing
times due to its iterative nature. Conversely, methods such as nine-point regression and FFT-based fitting,
while faster, do not achieve the necessary level of accuracy required for precise atomic localization <sup>[22,23]</sup> .
To balance accuracy and computational efficiency, optimization techniques based on least-squares Gaussian
iterative fitting, such as iterative optimization, are typically employed. Nonetheless, these optimized
methods tend to exhibit reduced robustness in the presence of noise, which can compromise the reliability
of atomic position determination in noisy STEM images. Consequently, there is a continual need for the
development of more efficient and robust 2D Gaussian fitting algorithms that can maintain high precision
while mitigating the impact of noise.
Finally, the software adopts a method known as enhanced weighted overdetermined regression, which
maintains precision comparable to least-squares Gaussian iterative fitting even at lower signal-to-noise
ratios (SNRs), while achieving a speed increase of two orders of magnitude and demonstrating robustness
against noise. The method is formulated as follows <sup>[24]</sup> :
Page 8 of 18 Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29
��
_???_ = _?_ - exp
<u>(</u> _<u>?</u>_ <u>−</u> _<u>?</u>_ <u>0)</u> <sup>2</sup>
<u>−</u> _<u>?</u>_ <u>0)</u> <sup>2</sup> + <sup><u>(</u></sup> <sup>_<u>?</u>_</sup> <sup><u>−</u></sup> <sup>_<u>?</u>_</sup> <sup><u>0)2</u></sup>
2 · _?_ <sup>2</sup> _?_ 2 · _?_ <sup>2</sup> _?_
2 · _?_ <sup>2</sup> _?_
+ _?_ _??_ (17)
where _Ixy_ represents the pixel intensity, _A_ is the peak amplitude, _x_ and _y_ denote the coordinates of an
individual pixel, _x0_ and y0 are the coordinates of the Gaussian center obtained initially via the centroid
method, _wx_ and _wy_ is the standard deviation or width of the Gaussian distribution, and _εxy_ corresponds to the
noise <sup>[24]</sup> .
Nevertheless, this approach has inherent limitations. Its most significant drawback is the requirement for
relatively accurate initial coordinates and a set of parameters - such as peak intensity, the standard deviation
(or width) of the Gaussian distribution, and background noise - which is common to all 2D Gaussian fitting
algorithms. Typically, users must manually input and adjust these parameters to obtain sufficiently precise
values. In STEM images containing hundreds or thousands of 2D Gaussian distribution points with varying
characteristics, identifying parameter values that ensure convergence for all points is particularly
challenging, making the process time-consuming and demanding considerable patience and expertise. This
challenge has motivated subsequent improvements in the methods for preliminary fitting parameter
estimation. To streamline the process while ensuring optimal fitting for each atom, the software presets
these parameters automatically. Considering the influence of noise, the maximum intensity of the Gaussian
distribution is typically set slightly higher than the peak intensity. Therefore, A is set to 90% of the
maximum contrast _Imax_ within the fitting region. The standard deviation or width _wx_ and _wy_ is automatically
estimated using the full width at half maximum (FWHM) method, approximated by _?_ ≈ <sup><u>FWHM</u></sup> 2 _._ 355, where
FWHM is the distance between two symmetric points corresponding to half the peak height, determined via
interpolation. To estimate the noise _εxy_, a background region statistics method is employed. For each point,
the software automatically searches for a region within two to four w units away from the initially estimated
centroid position. It identifies the area with the lowest average intensity, presumed to be an informationfree region, and calculates the standard deviation of the intensity within this region to estimate the
background noise. For the final fitting region, a width of w is selected. This approach ensures that, even in
STEM images with significant background noise fluctuations, the parameters can be individually adjusted
for each atom. Consequently, the overdetermined nature of the fitting process for all atoms results in more
precise coordinates, effectively replacing the initial estimates with highly accurate atomic positions. The
schematic of these algorithms is shown in Figure 1C.
_?_ ≈ <sup><u>FWHM</u></sup> 2 _._ 355
2 _._ 355
Steps of analysis
The software is developed using the MATLAB (M) programming language and is organized into several
distinct modules, as illustrated in the flowchart of Figure 2. The user interface of the software is depicted in
Figure 3.
The workflow begins by launching the main program of STEMax_PF and utilizing the ”Load Image” script
to import images. The software supports a variety of mainstream image formats, including JPEG, PNG,
BMP, and TIFF. Given that the primary application of this software targets STEM images, it additionally
supports the simultaneous reading of DM3 and DM4 file formats and outputs the actual size of each pixel in
the image <sup>[25]</sup> . Users have the option to select between HAADF images and annular bright field (ABF)
images, with support for both modalities, as shown in the enlarged figure in Figure 3A. Subsequently, by
selecting an appropriate threshold, the software separates each atomic cluster. This step is verified through
the “Preview” function, which employs the enhanced centroid method to determine and save the positions
of atoms.
Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29 Page 9 of 18
Figure 2. Workflow diagram of software usage. The software consists of three main components: the main program, the weak
scattering atomic columns find program, and the Tools program. The Main program is executed first, followed by the selective use of
the weak scattering atomic columns find program as needed, and finally, the tools program is employed.
Figure 3. Schematic diagram of the software interface. (A) Interface pages for the three main programs; (B) Operational interface after
clicking the “Select Template” button, where users sequentially select three templates using the crosshair; (C) Operational interface
after clicking the “separate atoms” button, allowing users to categorize atoms by contrast into desired types and view the positions of
atoms in each category.
Page 10 of 18 Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29
The “weak scattering atomic columns find” script is designed to identify atoms with very weak intensities
that could not be detected in the initial step. If no such atoms are present, this script can be skipped. During
this process, users are required to select three templates of identical size, with the template size determined
by the “radius” parameter. Based on the average of these three templates, the software identifies similar
regions within the image, thereby locating atoms with very weak intensities. The specific page is shown in
the Figure 3B. This approach necessitates that the templates contain information about different types of
atoms, allowing the software to determine the positions of extremely weakly intense atoms by leveraging the
positional relationships between different types of atoms.
Upon obtaining satisfactory atomic positions, the final processing is conducted using the “tools” script.
Users can select an appropriate “cut edge” option to truncate incomplete lattice regions at the edges of the
image, followed by Gaussian fitting. In comparison to other widely used software packages <sup>[4,5]</sup>,
STEMax_Peaks does not require the selection of initial parameters, as it can automatically estimate the
initial fitting values for each atom. This significantly reduces the complexity of the operation. It is important
to note that during the initial use, the software necessitates the configuration file to initiate a parallel pool
(parpool). This setup process takes approximately a few minutes but is justified by the substantial
performance gains achieved. MATLAB’s built-in Parallel Computing Toolbox enhances the speed of
Gaussian fitting by an order of magnitude. Finally, the “save” button allows users to save all atomic
information, including the X and Y coordinates and intensities of atoms, in a TXT file format within the
directory of the first image loaded.
When calibrating multiple types of atoms simultaneously, the software also provides a distinguishing
function. It will plot the contrast for all atoms, and subsequently allow the user to separate different atoms
based on the numerical input of “types of atoms”. The positions of each type of atom can then be viewed
using the “display” function below. The information of different types of atoms is also stored in separate
TXT files, facilitating detailed structural analysis. The specific page is shown in the Figure 3C.
Compared to commonly used open-source software such as Atomap, our software significantly reduces the
complexity of operation. All tasks can be executed through the interface depicted in Figure 3, with
immediate feedback provided at every stage. Users can quickly calibrate parameters using simple
mechanisms such as sliding controls and numerical input adjustments, thereby considerably lowering the
entry threshold and enhancing the user experience. This design enables researchers to dedicate more time to
data analysis and scientific investigation rather than to complex parameter tuning and algorithm selection.
Experimental section
The preparation of STEM samples followed standard protocols, encompassing wire cutting, mechanical
grinding, polishing, pitting grinding, and argon ion beam milling under liquid nitrogen cooling. Prior to
conducting STEM experiments, the samples underwent plasma cleaning for 30 min in an argon atmosphere
using an EC-52000IC plasma cleaner. This step was essential to eliminate surface contamination from
hydrocarbons. STEM investigations were performed using a JEM-ARM300F2 (Grand ARM) scanning
transmission electron microscope.
During the STEM experiments, the rapid scanning direction was aligned parallel to the horizontal axis of
the resulting images. To enhance the SNR of the HAADF and ABF images and to minimize image
distortion, a sequence of 10 frames was continuously captured with short dwell times. The frame sequences
were subsequently aligned using the Gatan image alignment plugin, “SmartAlign”, within the digital
micrograph software. This alignment process included diagnosing and correcting for sample drift between
Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29 Page 11 of 18
frames for both HAADF and ABF images, effectively removing drift-induced artifacts. Moreover, summing
multiple frames can effectively enhance the signal, thereby preserving the material’s unique properties.
Following alignment, the frames were overlaid to construct a composite image with improved SNR and
reduced distortions. The resulting STEM images were further processed for noise reduction using the Radial
Wiener Filter plugin available in Digital Micrograph. This denoising step ensured the clarity and accuracy of
the atomic-scale features observed in the final images.
By adhering to these meticulous preparation and imaging procedures, the software-averaged STEM images
achieved high precision and reliability, facilitating detailed analysis of complex material systems.
## RESULTS AND DISCUSSION
Method accuracy and precision
To validate the accuracy of the software, specifically designed simulated images were generated for
verification purposes. The simulation diagram is presented in Figure 4A. In these simulated images, a 50 ×
50 array of A-site atoms with high intensity and a perfect lattice structure was first created. Subsequently, Bsite atoms were simulated to represent the [100] crystallographic phase of the perovskite ABO3 structure
within STEM images and were inserted between the A-site atoms. For the Bsite atoms, those in the upper
half of the image are shifted by one pixel toward the left-up direction (135°), while those in the lower half
are shifted by one pixel toward the right-down direction (315°). These positional shifts emulate different
orientations of ferroelectric domains. In the generated images, each pixel corresponds to an actual size of 1
pixel = 5.49 pm <sup>[26]</sup> . For the Bsite atoms, those in the upper half of the image are shifted by one pixel toward
the northwest (135°), while those in the lower half are shifted by one pixel toward the southeast (315°).
Since the variance of Poisson noise is equal to the mean of the signal, the brightness of the image was first
normalized. Subsequently, the brightness was adjusted so that its mean equals (SNR) <sup>2[25]</sup> . Random noise was
then introduced using a Poisson distribution, thereby generating Poisson noise. Simulated images with
SNRs of 5, 15, and 50 were produced to validate the software’s performance; different SNRs exert varying
effects on the signal, as illustrated in Figure 4B. Poisson noise is the predominant noise source in STEM
imaging, thereby effectively simulating the noise present in actual STEM images <sup>[28,29]</sup> . According to the study
by Bals _et al._, the precision in image measurements was defined as the standard deviation of the measured
displacement distances <sup>[30]</sup> .
The final atomic positions and their corresponding displacement images are illustrated in the accompanying
figure. To quantify the deviation between the obtained displacements and the theoretical displacements, the
Euclidean distance was employed. The advantage of using Euclidean distance lies in its ability to
comprehensively reflect both the directional and magnitude components of the deviation. This metric
allows for an effective comparison with the Gaussian-distributed displacements introduced by varying
SNRs, thereby accurately representing the final displacement errors.
The precision of the software was validated using specifically generated simulated images. Testing was
conducted on a computer without a graphics processing unit, equipped with an Intel® Core <sup>TM</sup> i5-8400 CPU
running at 2.80 GHz and 7.8 GB of RAM. By initiating eight parallel pools for computation, Gaussian fitting
for approximately 5,000 atoms was completed in approximately 36 s. Notably, this hardware configuration
is considered relatively outdated, indicating that the software is capable of processing nearly all STEM
images on almost any standard computer.
Page 12 of 18 Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29
Figure 4. Simulation of HAADF images with B-site/A-site intensity at 10% of A-site/B-site intensity of perovskite ABO3, e.g.,
ferroelectric LaAlO3 or NaNbO3, and SNR values of 50, 15, and 5 to validate precision. (A) Schematic of a simulated 50 × 50 image and
enlarged views of a single lattice for SNR values of 50, 15, and 5; (B) Average templates obtained using the Cross-Correlation method
for images with different SNRs; (C) Final point detection results for images with varying SNRs; (D) Schematic illustration of atomic
displacements measured by the software at the simulated interface for images with different SNRs, with the color bar indicating colors
corresponding to different displacement directions; (E) Scatter plots of the differences between measured displacements and
theoretical displacements for images with different SNRs, where the distance from the origin represents the Euclidean distance and the
standard deviation indicates precision. HAADF: High-angle annular dark-field; SNR: signal-to-noise ratio. SD: standard deviation.
Initially, as can be seen from Figure 4, the precision of the proposed method was compared across different
SNRs, with the intensity of B-site atoms set to 10% of that of A-site atoms, a condition that is relatively rare
in real-world scenarios. We deliberately made this choice in order to evaluate our software under the most
challenging conditions. It is important to emphasize that achieving a tenfold contrast difference between the
A-site and B-site atoms in HAADF images is extremely demanding in real materials. This strict requirement
can only be met in specific perovskite systems where the atomic number (Z) ratio between the A- and B-site
elements exceeds at least 3:1. Exemplary systems include NaNbO3 (A-site: Na, Z = 11; B-site: Nb, Z = 41),
LaAlO3 (A-site: La, Z = 57; B-site: Al, Z = 13), NdAlO3 (A-site: Nd, Z = 60; B-site: Al, Z = 13), _etc._ Although
materials satisfying this condition are relatively rare, their scarcity makes them an ideal test bed for
validating our method under extreme contrast conditions. Moreover, the rigor of these conditions serves to
Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29 Page 13 of 18
underscore the broad applicability of our software. The final statistical results are presented below.
Figure 4A displays the simulated images, magnified lattice structures, and Figure 4B-D shows the
effectiveness of template matching when locating B-site atoms, zoomed-in views of point-finding results,
and zoomed-in views of polarization effects. The color bar on the right corresponds to polarization in
various directions. Figure 4E presents an error analysis, wherein the X and Y coordinates in the scatter plot
represent the deviations of the measured polarization from the theoretical polarization in the X and Y
directions, respectively. The distance from each point to the origin of the coordinate axes quantifies the
error, measured in picometers (pm).
The results revealed that for images with an SNR of 5, the standard deviation of all displacement Euclidean
distances was 0.827 pixels; for an SNR of 15, it was 0.423 pixels; and for an SNR of 50, it was 0.206 pixels.
Considering that the simulated image scale is 1 pixel = 5.49 pm, the corresponding precisions of the method
are 4.5418 pm, 2.3267 pm, and 1.1326 pm for SNRs of 5, 15, and 50, respectively. These findings
demonstrate that the software consistently achieves precision at the single-picometer level across varying
SNRs. This high level of precision, even at lower SNRs, underscores the software's robustness and its
suitability for detailed analysis of STEM images under diverse experimental conditions.
Furthermore, we observed a pronounced preferred direction in the bias at an SNR of 15, and slight
orientation biases were also present at SNR values of 5 and 50. We think that under the same SNR, the noise
associated with strong atoms at position A is significantly higher than that for the weaker atoms at position
B. In cases of very weak peaks, if a B atom tends to approach an A atom from a specific direction particularly when it is closer to one side, as illustrated in our displacement scenario - the noise contributions
from the A atoms in the four surrounding directions can induce a slight asymmetry in the background
fitting. This effect only becomes evident when the B peak is extremely weak. When the SNR is low, the
elevated noise levels obscure these subtle asymmetries; conversely, at very high SNRs, the noise is too
minimal to generate any significant asymmetry. Consequently, this directional bias is most apparent at an
SNR of 15, whereas it is less pronounced at SNR values of 5 or 50.
Subsequently, the proposed method was compared with commonly employed traditional calibration
techniques, utilizing both commercial software and the software developed by Mitchell <sup>[31]</sup>, including the
centroid method and 2D Gaussian fitting. Experimental findings revealed that for B-site atoms with
extremely weak intensities - for instance, when B-site atom intensity is set to 10% of that of A-site atoms traditional methods fail to accurately determine atomic positions. Therefore, to facilitate comparison under
different SNRs and methods, the intensity of the B-site atoms was increased to 50% of that of the A-site
atoms. Figure 5A shows the magnified atomic lattice. Figure 5B presents the detailed experimental results
regarding precision. In the scatter plot, the X and Y coordinates denote deviations between the measured
displacement and the theoretical polarization in each respective direction, while each point’s distance from
the coordinate origin quantifies the error in pm. The results indicate that at an SNR of 5, the centroid
method attains a precision of 4.3217 pm, the 2D Gaussian method achieves 2.2355 pm, and the proposed
software yields 2.3782 pm. At an SNR of 15, the centroid method offers a precision of 2.6851 pm, the 2D
Gaussian method 1.2589 pm, and the proposed software 1.2846 pm. At an SNR of 50, the centroid method
attains a precision of 1.9797 pm, the 2D Gaussian method 1.1076 pm, and the proposed software 1.1897 pm.
Figure 5C employs a radar chart to illustrate the precision, processing speed, and robustness of the three
methods. Different colors represent different methods. Precision is quantified by taking the reciprocal of the
average precision measured under various SNR conditions (in units of pm <sup>-1</sup> ). Robustness is represented by
the reciprocal of the standard deviation of the precision under the same conditions (also in units of pm <sup>-1</sup> ).
Page 14 of 18 Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29
Figure 5. Simulation of HAADF images with B-site intensity at 50% of A-site intensity. (A) Enlarged views of a single lattice for SNR
values of 50, 15, and 5; (B) Comparison of measurement precision among the proposed software, the centroid method, and the 2D
Gaussian fitting method under SNR values of 50, 15, and 5, illustrated by scatter plots of the differences between the observed and
theoretical displacements; (C) Radar map comparing the three methods in terms of speed, precision, and robustness. HAADF: Highangle annular dark-field; SNR: signal-to-noise ratio; 2D two-dimensional.
Speed is conveyed by the reciprocal of the processing time (in units of s <sup>-1</sup> ). As shown in the figure, the
proposed software achieves roughly half the processing speed of the centroid method, yet both methods are
two orders of magnitude faster than the 2D Gaussian method. At the same time, the precision and noise
robustness of the proposed software are close to those of the 2D Gaussian method, clearly demonstrating its
advantages.
Additionally, it was found that the centroid method exhibited clustering at fixed symmetrical positions,
likely due to the influence of noise introduced by the fixed pattern on the centroid calculations.
Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29 Page 15 of 18
The simulated images used in this study do not account for scanning noise, as most low-frequency scan
distortions can be effectively corrected using the “SmartAlign” procedure applied in the experimental
section. In cases where such correction is not performed, the accuracy of this software may be reduced due
to inherent limitations of the Gaussian fitting algorithm.
We plan to extend our software in future updates by incorporating a module for generating distortioncorrected images, in order to further enhance the accuracy and universality of our analysis.
These results demonstrate that the proposed software significantly outperforms the centroid method in
terms of precision and maintains only a minor difference in precision compared to the 2D Gaussian
method. Furthermore, at higher SNR levels, the precision gap between the proposed method and the 2D
Gaussian method even decreased, potentially because the software individually estimates fitting parameters
for each atom, thereby reducing the impact of varying peak intensities among different atoms. When
compared to the precision achieved for simulated images of weak scattering B-site atoms, it was observed
that although there is a reduction in precision under extremely weak signal conditions (where the peak
intensity of the Gaussian distribution is very low), the method still maintains precision at the picometer
level.
Potential applications
In addition to the ABO3 perovskite structure image peak detection discussed in previous studies, this
software can also be utilized to locate atomic positions in specialized structures.
For certain specialized materials, the presence of difficult-to-identify atoms is common. These atoms may
exhibit extremely weak signals or occupy closely adjacent positions, resulting in numerous atoms within a
single image that are challenging to detect directly. In such cases, the ‘Weak Scattering Atomic Columns
Find’ script of the software can be employed to assist in the calibration process.
In this study, we selected a structure known as anti-fluorite, a highly complex cubic phase. Its structural
diagram is illustrated in Figure 6A. For this structure, Figure 6B presents a STEM image acquired along the
[110] crystallographic zone axis, it is evident that within each column of atoms situated between two strong
scattering atomic columns, there are four atoms with relatively weaker intensities. However, due to the
proximity of two of these weaker atoms to the strong scattering atomic columns and the limitations
imposed by atomic distance and signal intensity, conventional calibration methods struggle to accurately
determine the positions of all four atoms while maintaining precision, as illustrated in Figure 6C <sup>[32]</sup> . This
often results in missing peaks and superfluous peaks. In contrast, the proposed software overcomes this
challenge by establishing two independent templates, as shown in Figure 6D, enabling the accurate
calibration of all four weak scattering atomic columns. The final calibration results presented in Figure 6E
demonstrate that the software successfully identifies the positions of all four weak scattering atomic
columns without introducing any extraneous or erroneous atoms. This capability highlights the software’s
effectiveness in calibrating atoms within materials that present significant calibration difficulties.
## CONCLUSION
This study introduces a novel software tool designed for the oriented analysis of STEM images. By
implementing an enhanced centroid method, template matching, and an improved Gaussian fitting
approach, the software effectively determines the precise positions and contrasts of various atoms within
STEM images. Validation using simulated HAADF images with different SNRs revealed that the software
consistently achieves picometer-level precision across a range of SNRs, while also demonstrating
Page 16 of 18 Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29
Figure 6. Illustration of the software’s template-based point detection performance for atoms with extremely weak signals. (A)
Structure of anti-fluorite; (B) STEM image of the material and its structural schematic; (C) Point detection results obtained using
Tempas, displaying missing peaks and superfluous peaks; (D) Effectiveness of template selection within the software; (E) Final point
detection outcomes. STEM: Scanning transmission electron microscopy.
exceptionally rapid processing speeds. In practical applications, this software can be employed to calibrate
the atomic positions in various materials, thereby enabling comprehensive microstructural analysis.
Moreover, by utilizing the acquired atomic position and intensity data in conjunction with quantitative
measures such as polarization, strain mapping, and octahedral tilting, the software facilitates a precise
elucidation of the complex relationships between microstructural features and macroscopic performance <sup>[33]</sup> .
Furthermore, by extracting critical indicators - such as variations in local lattice parameters, point defect
densities, distributions of bond lengths and bond angles, as well as the characteristics of grain boundaries
and phase interfaces - the approach offers valuable insights that can support the design of novel functional
materials, process optimization, and multidimensional performance studies.
## DECLARATIONS
Acknowledgement
The authors acknowledge the Instrumental Analysis Center of Xi’an Jiaotong University for its support, and
thank Chuansheng Ma for assistance with aberrationcorrected STEM.
Authors’ contributions
Conceived and designed the study: Wu, H.; Zhang, Y.
Developed the code: Zhao, Z.; Qu, W.
Conducted the software reliability testing: Yang, Y.; Peng, G.; Zhou, X.; Song, T. Assisted with sample
preparation: Guo, S.
Provided valuable suggestions: Wu, H.; Li, F.; Sun, J. Ding, X.
Drafted the manuscript: Zhao, Z.; Zhang, Y.; Wu, H.
All authors reviewed and edited the final version.
Availability of data and materials
It is expected that the code will be released after publication, either as commercial software or as
noncommercial software requiring citation and acknowledgment. Once the article is published, interested
researchers may obtain access by contacting the corresponding authors.
Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29 Page 17 of 18
Financial support and sponsorship
This work was supported by the National Key R&D Program of China (Grant No. 2021YFB3201100), the
National Natural Science Foundation of China (Grant Nos. 52172128 and 52472250), and the Top Young
Talents Programme of Xi’an Jiaotong University.
Conflicts of interest
Li F. is a Senior Editorial Board member of the journal _Microstructures_ . Wu H. is the Guest Editor of the
Special Issue _Role of Microstructures in the High-performance of Advanced Dielectric Materials and Devices_ .
They are not involved in any steps of editorial processing, notably including reviewer selection, manuscript
handling, or decision making. The other authors declared that there are no conflicts of interest.
Ethical approval and consent to participate
Not applicable.
Consent for publication
Not applicable.
Copyright
© The Author(s) 2025.
## REFERENCES
1. Pennycook, S. J.; Jesson, D. E. High-resolution incoherent imaging of crystals. _Phys. Rev. Lett._ 1990, _64_ [, 938-41. DOI](https://dx.doi.org/10.1103/physrevlett.64.938) [PubMed](http://www.ncbi.nlm.nih.gov/pubmed/10042119)
2. Pennycook, S.; Jesson, D. Atomic resolution Z-contrast imaging of interfaces. _Acta. Metallurgica. et. Materialia._ 1992, _40_, S149-59.
[DOI](https://dx.doi.org/10.1016/0956-7151%0x2892%0x2990275-j)
3. Qu, W.; Zhao, Z.; Yang, Y.; et al. Atomic-level quantitative analysis of electronic functional materials by aberration-corrected STEM.
_Chinese. Phys. B.33_ [, 116802. DOI](https://dx.doi.org/10.1088/1674-1056/ad7afc)
4. Wang, Y.; Salzberger, U.; Sigle, W.; Eren, S. Y.; van, A. P. A. Oxygen octahedra picker: a software tool to extract quantitative
information from STEM images. _Ultramicroscopy_ 2016, _168_ [, 46-52. DOI](https://dx.doi.org/10.1016/j.ultramic.2016.06.001)
5. Nord, M.; Vullum, P. E.; MacLaren, I.; Tybell, T.; Holmestad, R. Atomap: a new software tool for the automated analysis of atomic
resolution images using two-dimensional Gaussian fitting. _Adv. Struct. Chem. Imag._ 2017, _3_ [, 9. DOI](https://dx.doi.org/10.1186/s40679-017-0042-5) [PubMed](http://www.ncbi.nlm.nih.gov/pubmed/28251043) [PMC](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5306439)
6.
Rekik, A.; Zribi, M.; Benjelloun, M.; ben, H. A. A k-Means clustering algorithm initialization for unsupervised statistical satellite
image segmentation. _2006. 1ST. IEEE. International. Conference. on. E-Learning. in. Industrial. Electronics.IEEE Publishers_,
[Piscataway, New Jersey, USA, 2006; pp 11-6. DOI](https://dx.doi.org/10.1109/ICELIE.2006.347204)
7. Boyat, A. K.; Joshi, B. K. A review paper: noise models in digital image processing. arXiv: arXiv:1505.03489v1 [Preprint]. 2015
[[cited 2017 Feb 9]: [13 p.]. Available from: https://doi.org/10.48550/arXiv.1505.03489.](https://doi.org/10.48550/arXiv.1505.03489)
8. Cheezum, M. K.; Walker, W. F.; Guilford, W. H. Quantitative comparison of algorithms for tracking single fluorescent particles.
_Biophys. J._ 2001, _81_ [, 2378-88. DOI](https://dx.doi.org/10.1016/s0006-3495%0x2801%0x2975884-5) [PubMed](http://www.ncbi.nlm.nih.gov/pubmed/11566807) [PMC](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1301708)
9. Lin, R.; Zhang, R.; Wang, C.; Yang, X. Q.; Xin, H. L. TEMImageNet training library and AtomSegNet deep-learning models for highprecision atom segmentation, localization, denoising, and deblurring of atomic-resolution images. _Sci. Rep._ 2021, _11_ [, 5386. DOI](https://dx.doi.org/10.1038/s41598-021-84499-w)
10. Nan, H.; Lu, L.; Ma, X. Application of sliding window algorithm with convolutional neural network in high-resolution electron
microscope image. _J. Chin. Electr. Microsc. Soc._ 2021, _40_ [, 242-50. (in Chinese). DOI](https://dx.doi.org/10.3969/j.issn.1000-6281.2021.03.005)
11. Bradley, D.; Roth, G. Adaptive thresholding using the integral image. _J. Graphics. Tools._ 2007, _12_ [, 13-21. DOI](https://dx.doi.org/10.1080/2151237x.2007.10129236)
12. Okunishi, E.; Ishikawa, I.; Sawada, H.; Hosokawa, F.; Hori, M.; Kondo, Y. Visualization of light elements at ultrahigh resolution by
STEM annular bright field microscopy. _Microsc. Microanal._ 2009, _15_ [, 164-5. DOI](https://dx.doi.org/10.1017/s1431927609093891)
13. Born, M.; Wolf, E. _Principles of Optics: Electromagnetic Theory of Propagation, Interference and Diffraction of Light,_ 7th ed.;
Cambridge University Press; 1999.
14. Hu, M. K. Visual pattern recognition by moment invariants. _IRE. Trans. Inf. Theory._ 1962, _8_ [, 179-87. DOI](https://dx.doi.org/10.1109/TIT.1962.1057692)
15. Sneath, P. H. A. _Numerical Taxonomy (by) Peter H.A. Sneath (and) Robert R. Sokal: The Principles and Practice of Numerical_
_Classification;_ W.H. Freeman and Company, 1973.
16. Viola, O.; Jones, M. Robust real-time face detection. _Int. J. Comput. Vis._ 2004, _57_ [, 137-54. DOI](https://dx.doi.org/10.1023/B:VISI.0000013087.49260.fb)
17. Lewis, J. P.
[18. Shafait, F.; Keysers, D.; Breuel, T. M. DOI](https://dx.doi.org/10.1117/12.767755)
19. Frank, J.; Goldfarb, W.; Eisenberg, D.; Baker, T. S. Reconstruction of glutamine synthetase using computer averaging.
_Ultramicroscopy_ 1978, _3_ [, 283-90. DOI](https://dx.doi.org/10.1016/s0304-3991%0x2878%0x2980038-2) [PubMed](http://www.ncbi.nlm.nih.gov/pubmed/32653) [PMC](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4167717)
Page 18 of 18 Zhao _et al. Microstructures_ 2025, _5_, 20250100 https://dx.doi.org/10.20517/microstructures.2025.29
20. Lewis,JP. Fast normalized crosscorrelation. San Rafael, CA: Industrial Light & Magic; 1995. [https://www.researchgate.net/](https://www.researchgate.net/publication/2378357_Fast_Normalized_Cross-Correlation)
[publication/2378357_Fast_Normalized_Cross-Correlation (accessed 2025-6-4).](https://www.researchgate.net/publication/2378357_Fast_Normalized_Cross-Correlation)
21. Shapiro, L. G. _Computer and Robot Vision;_ Vol 2 Reading, MA: AddisonWesley Publishing Company, 1992
22. Teukolsky, S. A.; Vetterling, W. T.; Flannery, B. P. _Numerical Recipes: The Art of Scientific Computing,_ 3rd ed.; Cambridge
University Press; 2007
23. Nobach, H.; Honkanen, M. Two-dimensional Gaussian regression for sub-pixel displacement estimation in particle image velocimetry
or particle position estimation in particle tracking velocimetry. _Exp. Fluids._ 2005, _38_ [, 511-5. DOI](https://dx.doi.org/10.1007/s00348-005-0942-3)
24. Anthony, S. M.; Granick, S. Image analysis with rapid and accurate two-dimensional gaussian fitting. _Langmuir_ 2009, _25_, 8152-60.
[DOI](https://dx.doi.org/10.1021/la900393v) [PubMed](http://www.ncbi.nlm.nih.gov/pubmed/19419178)
25. Sigworth, F. Read .dm3 and .dm4 image files. MATLAB Central File Exchange. Accessed December 23, 2024. [https://www.](https://www.mathworks.com/matlabcentral/fileexchange/43005-read-dm3-and-dm4-image-files)
[mathworks.com/matlabcentral/fileexchange/43005-read-dm3-and-dm4-image-files (accessed 2025-6-4).](https://www.mathworks.com/matlabcentral/fileexchange/43005-read-dm3-and-dm4-image-files)
[26. Mitchell, D. R. G. Create a Synthetic HAADF Image. Version 20211129, v1.2 [Source code] http://dmscripting.com/create_a_](http://dmscripting.com/create_a_synthetic_haadf_image.html)
[synthetic_haadf_image.html (accessed 2025-6-4).](http://dmscripting.com/create_a_synthetic_haadf_image.html)
27. Bosman, M.; Keast, V. J.; García-Muñoz, J. L.; D'Alfonso, A. J.; Findlay, S. D.; Allen, L. J. Two-dimensional mapping of chemical
information at atomic resolution. _Phys. Rev. Lett._ 2007, _99_ [, 086102. DOI](https://dx.doi.org/10.1103/physrevlett.99.086102) [PubMed](http://www.ncbi.nlm.nih.gov/pubmed/17930958)
28. Mevenkamp, N.; Binev, P.; Dahmen, W.; Voyles, P. M.; Yankovich, A. B.; Berkels, B. Poisson noise removal from high-resolution
STEM images based on periodic block matching. _Adv. Struct. Chem. Imag._ 2015, _1_ [, 4. DOI](https://dx.doi.org/10.1186/s40679-015-0004-8)
29. Jones, L.; Nellist, P. D. Identifying and correcting scan noise and drift in the scanning transmission electron microscope. Microsc
[Microanal 2013;19:1050-60. DOI](https://dx.doi.org/10.1017/s1431927613001402) [PubMed](http://www.ncbi.nlm.nih.gov/pubmed/23673234)
30. Bals, S.; Van, A. S.; Van, T. G.; Avila-Brande, D. Statistical estimation of atomic positions from exit wave reconstruction with a
precision in the picometer range. _Phys. Rev. Lett._ 2006, _96_ [, 096106. DOI](https://dx.doi.org/10.1103/physrevlett.96.096106) [PubMed](http://www.ncbi.nlm.nih.gov/pubmed/16606285)
[31. Mitchell, D. R. G. Atomic Displacement. Version 20230104, v2.1 [Source code] http://dmscripting.com/atomic_displacement.html](http://dmscripting.com/atomic_displacement.html)
(accessed 2025-6-4).
[32. Total Resolution. *Tempas* (Version 3.0.42) [Software]. 2023. https://www.totalresolution.com/Tempas.htm.](https://www.totalresolution.com/Tempas.htm)
33. Zhang, Y.; Peng, G.; Li, S.; et al. Phase interface engineering enables state-of-the-art half-Heusler thermoelectrics. _Nat. Commun._
2024, _15_ [, 5978. DOI](https://dx.doi.org/10.1038/s41467-024-50371-4) [PubMed](http://www.ncbi.nlm.nih.gov/pubmed/39013905) [PMC](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC11252142)
섹션 본문
섹션 본문이 없습니다.
참고문헌 21건
- Atomic resolution Z-contrast imaging of interfaces Acta Metallurgica et Materialia · Elsevier BV · 1992 10.1016/0956-7151(92)90275-j
- High-resolution incoherent imaging of crystals Physical Review Letters · American Physical Society · 1990 10.1103/physrevlett.64.938
- Poisson noise removal from high-resolution STEM images based on periodic block matching Advanced Structural and Chemical Imaging · Springer Science+Business Media · 2015 10.1186/s40679-015-0004-8
- Adaptive Thresholding using the Integral Image Journal of Graphics Tools · Taylor & Francis · 2007 10.1080/2151237x.2007.10129236
- <title>Efficient implementation of local adaptive thresholding techniques using integral images</title> Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2007 10.1117/12.767755
- Reconstruction of glutamine synthetase using computer averaging Ultramicroscopy · Elsevier BV · 1978 10.1016/s0304-3991(78)80038-2
- Visualization of Light Elements at Ultrahigh Resolution by STEM Annular Bright Field Microscopy Microscopy and Microanalysis · Oxford University Press · 2009 10.1017/s1431927609093891
- Image Analysis with Rapid and Accurate Two-Dimensional Gaussian Fitting Langmuir · American Chemical Society · 2009 10.1021/la900393v
- Two-dimensional Gaussian regression for sub-pixel displacement estimation in particle image velocimetry or particle position estimation in particle tracking velocimetry Experiments in Fluids · Springer Science+Business Media · 2005 10.1007/s00348-005-0942-3
- Statistical Estimation of Atomic Positions from Exit Wave Reconstruction with a Precision in the Picometer Range Physical Review Letters · American Physical Society · 2006 10.1103/physrevlett.96.096106
- Two-Dimensional Mapping of Chemical Information at Atomic Resolution Physical Review Letters · American Physical Society · 2007 10.1103/physrevlett.99.086102
- Identifying and Correcting Scan Noise and Drift in the Scanning Transmission Electron Microscope Microscopy and Microanalysis · Oxford University Press · 2013 10.1017/s1431927613001402
- Quantitative Comparison of Algorithms for Tracking Single Fluorescent Particles Biophysical Journal · Elsevier BV · 2001 10.1016/s0006-3495(01)75884-5
- Visual pattern recognition by moment invariants IRE Transactions on Information Theory · Institute of Electrical and Electronics Engineers · 1962 10.1109/tit.1962.1057692
- Oxygen octahedra picker: A software tool to extract quantitative information from STEM images Ultramicroscopy · Elsevier BV · 2016 10.1016/j.ultramic.2016.06.001
- A k-Means Clustering Algorithm Initialization for Unsupervised Statistical Satellite Image Segmentation 2006 10.1109/icelie.2006.347204
- Atomap: a new software tool for the automated analysis of atomic resolution images using two-dimensional Gaussian fitting Advanced Structural and Chemical Imaging · Springer Science+Business Media · 2017 10.1186/s40679-017-0042-5
- Robust Real-Time Face Detection International Journal of Computer Vision · Springer Science+Business Media · 2004 10.1023/b:visi.0000013087.49260.fb
- TEMImageNet training library and AtomSegNet deep-learning models for high-precision atom segmentation, localization, denoising, and deblurring of atomic-resolution images Scientific Reports · Nature Portfolio · 2021 10.1038/s41598-021-84499-w
- Phase interface engineering enables state-of-the-art half-Heusler thermoelectrics Nature Communications · Nature Portfolio · 2024 10.1038/s41467-024-50371-4
- Atomic-level quantitative analysis of electronic functional materials by aberration-corrected STEM Chinese Physics B · IOP Publishing · 2024 10.1088/1674-1056/ad7afc