Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
irp
HoloTomoToolbox
Commits
f4111c66
Commit
f4111c66
authored
Jan 14, 2022
by
p.jhagema
Browse files
adapt parameters for mg wire exabple
parent
e3916c41
Pipeline
#266010
passed with stage
in 52 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
examples/MagnesiumWireRefractivePhaseRetrieval/algorithm_options.m
View file @
f4111c66
...
@@ -96,8 +96,8 @@ p.PMset.plotInterval = 10;
...
@@ -96,8 +96,8 @@ p.PMset.plotInterval = 10;
p
.
conSet
=
PConstraints
.
defaultSettings
();
p
.
conSet
=
PConstraints
.
defaultSettings
();
p
.
conSet
.
upperAmplitude
=
1.0101
;
p
.
conSet
.
upperAmplitude
=
1.0101
;
p
.
conSet
.
lowerAmplitude
=
0.553
;
p
.
conSet
.
lowerAmplitude
=
0.553
;
p
.
conSet
.
smoothAmplitudesBy
=
2
;
p
.
conSet
.
smoothAmplitudesBy
=
0
;
p
.
conSet
.
smoothPhasesBy
=
2
;
p
.
conSet
.
smoothPhasesBy
=
0
;
p
.
conSet
.
projectOnNegativity
=
0
;
p
.
conSet
.
projectOnNegativity
=
0
;
p
.
conSet
.
unwrapPhases
=
0
;
p
.
conSet
.
unwrapPhases
=
0
;
...
...
examples/MagnesiumWireRefractivePhaseRetrieval/reconstruction_conventional.m
View file @
f4111c66
...
@@ -24,16 +24,17 @@ seq_conv_hist{1} = reco.stats.convergenceHistory;
...
@@ -24,16 +24,17 @@ seq_conv_hist{1} = reco.stats.convergenceHistory;
%% we refinie the support from the final reconstruchtion
%% we refinie the support from the final reconstruchtion
if
(
1
)
if
(
1
)
p
.
supp
=
(
angle
(
reco
.
x
))
<
-
0.2
;
p
.
supp
=
abs
(
angle
(
reco
.
x
))
>
0.2
;
p
.
supp
=
padToSize
(
cropToCenter
(
p
.
supp
,
p
.
data_size
),
p
.
recSize
,
0
);
p
.
supp
=
padToSize
(
cropToCenter
(
p
.
supp
,
p
.
data_size
),
p
.
recSize
,
0
);
se
=
strel
(
'disk'
,
70
);
se
=
strel
(
'disk'
,
70
);
p
.
supp
=
p
.
supp
|
imdilate
(
supp
,
se
);
p
.
supp
=
p
.
supp
|
imdilate
(
supp
,
se
);
p
.
supp
=
bwareafilt
(
p
.
supp
,
1
,
'largest'
);
p
.
supp
=
bwareafilt
(
p
.
supp
,
1
,
'largest'
);
se
=
strel
(
'disk'
,
10
);
p
.
supp
=
imerode
(
p
.
supp
,
se
);
se
=
strel
(
'disk'
,
10
);
se
=
strel
(
'disk'
,
10
);
p
.
supp
=
imdilate
(
p
.
supp
,
se
);
p
.
supp
=
imdilate
(
p
.
supp
,
se
);
se
=
strel
(
'disk'
,
10
);
p
.
supp
=
imerode
(
p
.
supp
,
se
);
p
.
supp
=
imfill
(
p
.
supp
,
'holes'
);
p
.
supp
=
imfill
(
p
.
supp
,
'holes'
);
p
.
supp
=
bwareafilt
(
p
.
supp
,
1
,
'largest'
);
p
.
supp
=
bwareafilt
(
p
.
supp
,
1
,
'largest'
);
...
@@ -51,11 +52,13 @@ p.algSet.gamma = 0.9;
...
@@ -51,11 +52,13 @@ p.algSet.gamma = 0.9;
% set or unset phase unwrapping, be warned it take time...
% set or unset phase unwrapping, be warned it take time...
p
.
conSet
.
unwrapPhases
=
1
;
p
.
conSet
.
unwrapPhases
=
1
;
if
(
p
.
conSet
.
unwrapPhases
)
if
(
p
.
conSet
.
unwrapPhases
)
p
.
conSet
.
projectOnNegativity
=
1
;
p
.
conSet
.
smoothAmplitudesBy
=
0
;
p
.
conSet
.
smoothPhasesBy
=
0
;
p
.
conSet
.
projectOnNegativity
=
0
;
end
end
PS
=
PConstraints
(
p
.
conSet
)
*
PSupp
;
% * PStat;
PS
=
PConstraints
(
p
.
conSet
)
*
PSupp
;
% * PStat;
p
.
algSet
.
iterations
=
1000
;
p
.
algSet
.
iterations
=
1000
0
;
projAlg
=
projectionAlgorithm
(
PM
,
PS
,
guess
,
p
.
algSet
);
projAlg
=
projectionAlgorithm
(
PM
,
PS
,
guess
,
p
.
algSet
);
reco
=
projAlg
.
execute
(
p
.
algSet
.
iterations
);
reco
=
projAlg
.
execute
(
p
.
algSet
.
iterations
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment