When a partially coherent X-ray source illuminates an object with an irregular surface, a near-field speckle pattern may appear at some distance downstream. Speckle-based X-ray, a relatively novel imaging technique, exploits this effect to extract information about attenuation, refraction, and small-angle scatter induced by a sample. Over the last ten years, different acquisition and image processing techniques have been developed to extract this information from the image data. One of these techniques, Unified Modulated Pattern Analysis (UMPA), uses a speckle-tracking approach, implemented by the least-squares minimization of a cost function that simultaneously models all three image modalities. We here present a new implementation of UMPA. By shifting from Python to C++ and Cython, execution speed was increased by a factor of about 125. Furthermore, a new acquisition modality, “sample-stepping”, was introduced. Finally, we discuss the origin and mitigation of two types of image artifacts that may arise during image processing with UMPA.

1.
A.
Snigirev
,
I.
Snigireva
,
V.
Kohn
,
S.
Kuznetsov
, and
I.
Schelokov
,
Rev. Sci. Instrum.
66
,
5486
5492
(
1995
).
2.
D.
Paganin
,
S. C.
Mayo
,
T. E.
Gureyev
,
P. R.
Miller
, and
S. W.
Wilkins
,
J. Microsc.
206
,
33
40
(
2002
).
3.
D.
Chapman
,
W.
Thomlinson
,
R. E.
Johnston
,
D.
Washburn
,
E.
Pisano
,
N.
Gmür
,
Z.
Zhong
,
R.
Menk
,
F.
Arfelli
, and
D.
Sayers
,
Phys. Med. Biol.
42
,
2015
2025
(
1997
).
4.
O.
Oltulu
,
Z.
Zhong
,
M.
Hasnah
,
M. N.
Wernick
, and
D.
Chapman
,
J. Phys. D: Appl. Phys.
36
,
2152
2156
(
2003
).
5.
A.
Momose
,
S.
Kawamoto
,
I.
Koyama
,
Y.
Hamaishi
,
K.
Takai
, and
Y.
Suzuki
,
Jpn. J. Appl. Phys.
42
,
L866
L868
(
2003
).
6.
F.
Pfeiffer
,
T.
Weitkamp
,
O.
Bunk
, and
C.
David
,
Nat. Phys.
2
,
258
261
(
2006
).
7.
A.
Olivo
,
F.
Arfelli
,
G.
Cantatore
,
R.
Longo
,
R. H.
Menk
,
S.
Pani
,
M.
Prest
,
P.
Poropat
,
L.
Rigon
,
G.
Tromba
,
E.
Vallazza
, and
E.
Castelli
,
Med. Phys.
28
,
1610
1619
(
2001
).
8.
P. R.
Munro
,
K.
Ignatyev
,
R. D.
Speller
, and
A.
Olivo
,
Proc. Natl. Acad. Sci. U.S.A.
109
,
13922
13927
(
2012
).
9.
R.
Cerbino
,
L.
Peverini
,
M. A. C.
Potenza
,
A.
Robert
,
P.
Bösecke
, and
M.
Giglio
,
Nat. Phys.
4
,
238
243
(
2008
).
10.
S.
Bérujon
,
E.
Ziegler
,
R.
Cerbino
, and
L.
Peverini
,
Phys. Rev. Lett.
108
,
158102
(
2012
).
11.
K. S.
Morgan
,
D. M.
Paganin
, and
K. K. W.
Siu
,
Appl. Phys. Lett.
100
,
124102
(
2012
).
12.
B.
Pan
,
K.
Qian
,
H.
Xie
, and
A.
Asundi
,
Meas. Sci. Technol.
20
,
062001
(
2009
).
13.
S.
Berujon
,
H.
Wang
, and
K.
Sawhney
,
Phys. Rev. A
86
,
063813
(
2012
).
14.
S.
Berujon
and
E.
Ziegler
,
Phys. Rev. A
92
,
013837
(
2015
).
15.
S.
Berujon
and
E.
Ziegler
,
Phys. Rev. Appl.
5
,
044014
(
2016
).
16.
M.-C.
Zdora
,
P.
Thibault
,
T.
Zhou
,
F. J.
Koch
,
J.
Romell
,
S.
Sala
,
A.
Last
,
C.
Rau
, and
I.
Zanette
,
Phys. Rev. Lett.
118
,
203903
(
2017
).
17.
D. M.
Paganin
,
H.
Labriet
,
E.
Brun
, and
S.
Berujon
,
Phys. Rev. A
98
,
053813
(
2018
).
18.
K. M.
Pavlov
,
D. M.
Paganin
,
H. T.
Li
,
S.
Berujon
,
H.
Rougé-Labriet
, and
E.
Brun
,
J. Opt.
22
,
125604
(
2020
).
19.
A. J.
Morgan
,
H. M.
Quiney
,
S.
Bajt
, and
H. N.
Chapman
,
J. Appl. Crystallogr.
53
,
760
780
(
2020
).
20.
A.
Gustschin
,
M.
Riedel
,
K.
Taphorn
,
C.
Petrich
,
W.
Gottwald
,
W.
Noichl
,
M.
Busse
,
S. E.
Francis
,
F.
Beckmann
,
J. U.
Hammel
,
J.
Moosmann
,
P.
Thibault
, and
J.
Herzen
,
Optica
8
,
1588
1595
(
2021
).
21.
F.
De Marco
,
S.
Savatović
,
R.
Smith
,
V.
Di Trapani
,
M.
Margini
,
G.
Lautizi
, and
P.
Thibault
, “
High-speed processing of speckle-based imaging data with Unified Modulated Pattern Analysis (UMPA)
” (submitted).
22.
R.
Smith
,
F.
De Marco
,
L.
Broche
,
M.-C.
Zdora
,
N. W.
Phillips
,
R.
Boardman
, and
P.
Thibault
, “
X-ray directional dark-field imaging using Unified Modulated Pattern Analysis
” (submitted).
This content is only available via PDF.