Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
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
graintracking
DCT
Commits
81779d03
Commit
81779d03
authored
8 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
6D-Twin-Reconstruction: fixed a bug in the geometry assembling phase
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
65d2e378
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
zUtil_Deformation/Gt6DReconstructionAlgorithmFactory.m
+9
-6
9 additions, 6 deletions
zUtil_Deformation/Gt6DReconstructionAlgorithmFactory.m
with
9 additions
and
6 deletions
zUtil_Deformation/Gt6DReconstructionAlgorithmFactory.m
+
9
−
6
View file @
81779d03
...
...
@@ -119,6 +119,9 @@ classdef Gt6DReconstructionAlgorithmFactory < handle
blobs
=
cat
(
1
,
algo_params
(:)
.
blobs
);
psf
=
cat
(
1
,
algo_params
(:)
.
psf
);
% psf = fspecial('gaussian', 21, 0.75) + 2 * fspecial('gaussian', 21, 4);
% psf = psf / sum(psf(:));
% psf = { permute(psf, [1 3 2]) };
geometries
=
cat
(
1
,
algo_params
(:)
.
geometries
);
geometries_ss
=
cat
(
1
,
algo_params
(:)
.
geometries_ss
);
...
...
@@ -188,7 +191,7 @@ classdef Gt6DReconstructionAlgorithmFactory < handle
for
ii_b
=
1
:
numel
(
all_shared_blobs
)
% if they changed, let's enlarge them
if
(
to_be_changed
(
ii_b
))
proj_shift
=
rescaled_shared_blobs_w_lims
(
all_shared_blobs
(
ii_b
),
1
,
2
)
...
proj_shift
s
=
rescaled_shared_blobs_w_lims
(
all_shared_blobs
(
ii_b
),
1
,
2
)
...
-
rescaled_shared_blobs_w_lims
(
all_shared_blobs
(
ii_b
),
1
,
1
);
curr_blob_size
=
size
(
blobs
{
all_shared_blobs
(
ii_b
)});
...
...
@@ -196,7 +199,7 @@ classdef Gt6DReconstructionAlgorithmFactory < handle
% Creating the new blob
new_blob
=
zeros
(
new_size
,
'like'
,
blobs
{
all_shared_blobs
(
ii_b
)});
new_blob
=
gtPlaceSubVolume
(
new_blob
,
blobs
{
all_shared_blobs
(
ii_b
)},
[
0
,
proj_shift
,
0
]);
new_blob
=
gtPlaceSubVolume
(
new_blob
,
blobs
{
all_shared_blobs
(
ii_b
)},
[
0
,
proj_shift
s
,
0
]);
blobs
{
all_shared_blobs
(
ii_b
)}
=
new_blob
;
% Fixing the shift in parent's projection
...
...
@@ -206,15 +209,15 @@ classdef Gt6DReconstructionAlgorithmFactory < handle
inds_of_shared_blobs
=
offsets_ss
{
ii_o
}{
ii_ss
}
.
blob_offsets
==
all_shared_blobs
(
ii_b
);
offsets_ss
{
ii_o
}{
ii_ss
}
.
proj_offsets
(
inds_of_shared_blobs
)
...
=
offsets_ss
{
ii_o
}{
ii_ss
}
.
proj_offsets
(
inds_of_shared_blobs
)
+
proj_shift
;
=
offsets_ss
{
ii_o
}{
ii_ss
}
.
proj_offsets
(
inds_of_shared_blobs
)
+
proj_shift
s
;
end
end
else
for
ii_o
=
1
:
numel
(
offsets
)
inds_of_shared_blobs
=
offsets
{
ii_o
}
.
blob
_offsets
==
all_shared_blobs
(
ii_b
);
inds_of_shared_blobs
=
offsets
{
ii_o
}
.
proj
_offsets
==
all_shared_blobs
(
ii_b
);
offsets
{
ii_o
}
.
blob
_offsets
(
inds_of_shared_blobs
)
...
=
offsets
{
ii_o
}
.
blob
_offsets
(
inds_of_shared_blobs
)
+
proj_shift
;
offsets
{
ii_o
}
.
proj
_offsets
(
inds_of_shared_blobs
)
...
=
offsets
{
ii_o
}
.
proj
_offsets
(
inds_of_shared_blobs
)
+
proj_shift
s
;
end
end
end
...
...
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