Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nabu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Vincent
Nabu
Commits
d2dffafd
Commit
d2dffafd
authored
4 years ago
by
Pierre Paleo
Browse files
Options
Downloads
Patches
Plain Diff
Fix Paganin documentation, use one convention
parent
038060f6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nabu/preproc/phase.py
+2
-7
2 additions, 7 deletions
nabu/preproc/phase.py
with
2 additions
and
7 deletions
nabu/preproc/phase.py
+
2
−
7
View file @
d2dffafd
...
...
@@ -29,8 +29,6 @@ def lmicron_to_db(Lmicron, energy, distance):
.. math::
L^2 =
\\
pi
\\
lambda D
\\
frac{
\\
delta}{
\\
beta}
The PyHST2 normalization differs from the one used by other softwares
like tomopy by a factor :math:`1/(4\pi^2)`
"""
L2
=
Lmicron
**
2
wavelength
=
1.23984199e-3
/
energy
...
...
@@ -144,7 +142,7 @@ class PaganinPhaseRetrieval(object):
The radio is divided, in the Fourier domain, by the original
"
Paganin filter
"
`[1]`.
.. math::
F = 1 +
\\
frac{
\\
delta}{
\\
beta}
\\
lambda D
\\
rho
|k|^2
F = 1 +
\\
frac{
\\
delta}{
\\
beta}
\\
lambda D
\\
pi
|k|^2
where k is the wave vector, computed as
...
...
@@ -154,8 +152,6 @@ class PaganinPhaseRetrieval(object):
where P is the pixel size, N the number of pixels in one direction,
and :math:`l
\\
in [0, N-1]`.
The factor :math:`
\\
rho` is either :math:`
\\
pi` or :math:`1/(4
\\
pi^2)`
depending on the convention (default is the former).
References
...
...
@@ -275,8 +271,7 @@ class PaganinPhaseRetrieval(object):
D
=
self
.
distance_micron
L
=
self
.
wavelength_micron
db
=
self
.
delta_beta
self
.
paganin_filter
=
1.0
/
(
1
+
db
*
L
*
D
*
pi
*
k2
)
# HST / savu
#~ self.paganin_filter = 1.0 / (1 + db * L * D * k2/ (4*pi)) # Paganin / tomopy
self
.
paganin_filter
=
1.0
/
(
1
+
db
*
L
*
D
*
pi
*
k2
)
def
pad_with_values
(
self
,
data
,
top_val
=
0
,
bottom_val
=
0
,
left_val
=
0
,
right_val
=
0
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment