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
db40e542
Commit
db40e542
authored
7 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
Fix to previous commit about gtMatchGetSampleShifts
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
d97e1347
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
3_pairmatchingGUI/gtMatchGetSampleShifts.m
+6
-6
6 additions, 6 deletions
3_pairmatchingGUI/gtMatchGetSampleShifts.m
with
6 additions
and
6 deletions
3_pairmatchingGUI/gtMatchGetSampleShifts.m
+
6
−
6
View file @
db40e542
...
...
@@ -18,20 +18,20 @@ function [shifts_lab, shifts_sam, abspos, relpos] = gtMatchGetSampleShifts(param
base_dir
=
fullfile
(
acq_dir
,
'0_rawdata'
,
'Orig'
);
filename
=
sprintf
(
'%s/%s%04d.edf'
,
base_dir
,
acq_name
,
conf
.
offset_pos
);
info
=
edf_info
(
filename
);
offset
=
[
info
.
motor
.
samtx
,
info
.
motor
.
samty
,
info
.
motor
.
samtz
];
% Let's handle some special case
if
(
~
exist
(
filename
,
'file'
))
if
(
~
exist
(
'omega_values'
,
'var'
)
||
isempty
(
omega_values
))
omega_values
=
0
;
end
shifts_lab
=
zeros
(
numel
(
omega_values
,
3
)
)
;
shifts_sam
=
zeros
(
numel
(
omega_values
,
3
)
)
;
abspos
=
zeros
(
numel
(
omega_values
,
3
)
)
;
relpos
=
zeros
(
numel
(
omega_values
,
3
)
)
;
shifts_lab
=
zeros
(
numel
(
omega_values
)
,
3
);
shifts_sam
=
zeros
(
numel
(
omega_values
)
,
3
);
abspos
=
zeros
(
numel
(
omega_values
)
,
3
);
relpos
=
zeros
(
numel
(
omega_values
)
,
3
);
return
end
info
=
edf_info
(
filename
);
offset
=
[
info
.
motor
.
samtx
,
info
.
motor
.
samty
,
info
.
motor
.
samtz
];
shifts_lab
=
zeros
(
tot_proj
,
3
);
shifts_sam
=
zeros
(
tot_proj
,
3
);
...
...
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