Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
HoloceneSampling
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
Maria Engel
HoloceneSampling
Commits
af66fa01
Commit
af66fa01
authored
1 year ago
by
Maria Engel
Browse files
Options
Downloads
Patches
Plain Diff
Make units consistent (metres)
parent
09f98e80
No related branches found
Branches containing commit
No related tags found
1 merge request
!9
Make units consistent (metres)
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ComputeMostHexagonalSampling.m
+8
-12
8 additions, 12 deletions
ComputeMostHexagonalSampling.m
MakeExampleGridsPlot.m
+2
-2
2 additions, 2 deletions
MakeExampleGridsPlot.m
MakeGridAndAlpGif.m
+1
-1
1 addition, 1 deletion
MakeGridAndAlpGif.m
MakeOptDvsRPlot.m
+2
-2
2 additions, 2 deletions
MakeOptDvsRPlot.m
with
13 additions
and
17 deletions
ComputeMostHexagonalSampling.m
+
8
−
12
View file @
af66fa01
...
...
@@ -8,14 +8,12 @@ function [packingDensity, L_optimum, isDegenerate, L_CAIPI_A, packingDensityCAIP
% IN
% R_inplane in-plane undersampling factor
%
% FOV_inplane in-plane FOV
% [same unit as sliceSpacing, sliceThickness & sliceGap]
% FOV_inplane in-plane FOV [m]
%
% sliceSpacing distance between simultaneously excited slices
% sliceSpacing distance between simultaneously excited slices
[m]
% (only used if either of the other input arguments
% {nSlicesSimultaneously, nSlicesTotal, sliceThickness, sliceGap}
% unavailable)
% [same unit as FOV_inplane, sliceThickness & sliceGap]
%
% nSlicesSimultaneously number of simultaneously excited slices
% (only needed if sliceSpacing empty or blipped-CAIPIRINHA options are required)
...
...
@@ -23,13 +21,11 @@ function [packingDensity, L_optimum, isDegenerate, L_CAIPI_A, packingDensityCAIP
% nSlicesTotal total number of slices
% (only needed if sliceSpacing empty)
%
% sliceThickness slice thickness
% sliceThickness slice thickness
[m]
% (only needed if sliceSpacing empty)
% [same unit as FOV_inplane, sliceSpacing & sliceGap]
%
% sliceGap gap between slices
% sliceGap gap between slices
[m]
% (only needed if sliceSpacing empty)
% [same unit as FOV_inplane, sliceSpacing & sliceThickness]
%
% doPlot Plot grid and packing density curve {false}
%
...
...
@@ -63,8 +59,8 @@ function [packingDensity, L_optimum, isDegenerate, L_CAIPI_A, packingDensityCAIP
% figure (fh{2})
%
%
% Example: [packingDensity, L_optimum] = ComputeMostHexagonalSampling(1, 192, 19.2, 3);
% [packingDensity, L_optimum] = ComputeMostHexagonalSampling(1, 192, [], 3, 3, 4, 15.2)
% Example: [packingDensity, L_optimum] = ComputeMostHexagonalSampling(1, 192
e-3
, 19.2
e-3
, 3);
% [packingDensity, L_optimum] = ComputeMostHexagonalSampling(1, 192
e-3
, [], 3, 3, 4
e-3
, 15.2
e-3
)
%
% Author: Maria Engel
% (c) Cardiff University Brain Research Imaging Centre (CUBRIC), Cardiff University, United Kingdom
...
...
@@ -97,8 +93,8 @@ if nargout>7
end
% in-plane spacing of lines in k-space
deltak_inplane
=
2
*
pi
*
R_inplane
/
FOV_inplane
;
kzSlabThickness
=
2
*
pi
/
sliceSpacing
;
deltak_inplane
=
2
*
pi
*
R_inplane
/
FOV_inplane
;
% in rad/m
kzSlabThickness
=
2
*
pi
/
sliceSpacing
;
% in rad/m
if
nargin
<
4
nSlicesSimultaneously
=
ceil
(
kzSlabThickness
*
R_inplane
/
deltak_inplane
);
...
...
This diff is collapsed.
Click to expand it.
MakeExampleGridsPlot.m
+
2
−
2
View file @
af66fa01
...
...
@@ -2,7 +2,7 @@ clear all;
baseFolder = pwd;
doSave =
tru
e;
doSave =
fals
e;
saveFolder = pwd;
if doSave
dfws = get(0,'DefaultFigureWindowStyle');
...
...
@@ -11,7 +11,7 @@ end
Nsim = 5;
R = 4.4/Nsim;
FOVinplane = 22
0
;
FOVinplane =
0.
22;
sliceSpacing = FOVinplane/2/Nsim;
...
...
This diff is collapsed.
Click to expand it.
MakeGridAndAlpGif.m
+
1
−
1
View file @
af66fa01
...
...
@@ -13,7 +13,7 @@ end
Nsim = 6;
R = 1;
FOVinplane = 22
0
;
FOVinplane =
0.
22;
sliceSpacing = FOVinplane/2/Nsim;
...
...
This diff is collapsed.
Click to expand it.
MakeOptDvsRPlot.m
+
2
−
2
View file @
af66fa01
...
...
@@ -8,9 +8,9 @@ Rtot_start = 1;
Rtot_end
=
12
;
Rtot_increment
=
0.001
;
FOVinplane
=
22
0
;
FOVinplane
=
0.
22
;
doSave
=
tru
e
;
doSave
=
fals
e
;
saveFolder
=
pwd
;
if
doSave
dfws
=
get
(
0
,
'DefaultFigureWindowStyle'
);
...
...
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