Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fdt
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
Container Registry
Model registry
Operate
Environments
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
FSL
fdt
Commits
b6924a31
Commit
b6924a31
authored
20 years ago
by
Tim Behrens
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
360c1248
No related branches found
No related tags found
No related merge requests found
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Makefile
+1
-1
1 addition, 1 deletion
Makefile
diff_pvm.cc
+9
-10
9 additions, 10 deletions
diff_pvm.cc
probtrack.cc
+8
-2018
8 additions, 2018 deletions
probtrack.cc
probtrack.h
+1
-0
1 addition, 0 deletions
probtrack.h
pt_twomasks.cc
+1
-1
1 addition, 1 deletion
pt_twomasks.cc
with
20 additions
and
2030 deletions
Makefile
+
1
−
1
View file @
b6924a31
...
@@ -20,7 +20,7 @@ DIFF_PVM=diff_pvm
...
@@ -20,7 +20,7 @@ DIFF_PVM=diff_pvm
RV
=
replacevols
RV
=
replacevols
DTIFITOBJS
=
dtifit.o dtifitOptions.o
DTIFITOBJS
=
dtifit.o dtifitOptions.o
PTOBJS
=
probtrack.o probtrackOptions.o pt_alltracts.o pt_matrix.o pt_seeds_to_targets.o pt_simple.o pt_twomasks.o
PTOBJS
=
probtrack.o probtrackOptions.o pt_alltracts.o pt_matrix.o pt_seeds_to_targets.o pt_simple.o pt_twomasks.o
pt_matrix_mesh.o
FTBOBJS
=
find_the_biggest.o
FTBOBJS
=
find_the_biggest.o
PJOBJS
=
proj_thresh.o
PJOBJS
=
proj_thresh.o
MEDOBJS
=
medianfilter.o
MEDOBJS
=
medianfilter.o
...
...
This diff is collapsed.
Click to expand it.
diff_pvm.cc
+
9
−
10
View file @
b6924a31
...
@@ -36,7 +36,6 @@ const float maxfloat=1e10;
...
@@ -36,7 +36,6 @@ const float maxfloat=1e10;
const
float
minfloat
=
1e-10
;
const
float
minfloat
=
1e-10
;
const
float
maxlogfloat
=
23
;
const
float
maxlogfloat
=
23
;
const
float
minlogfloat
=-
23
;
const
float
minlogfloat
=-
23
;
const
int
maxint
=
1000000000
;
inline
float
min
(
float
a
,
float
b
){
inline
float
min
(
float
a
,
float
b
){
...
@@ -81,7 +80,7 @@ inline Matrix Cross(const Matrix& A,const Matrix& B)
...
@@ -81,7 +80,7 @@ inline Matrix Cross(const Matrix& A,const Matrix& B)
float
mod
(
float
a
,
float
b
){
float
mod
(
float
a
,
float
b
){
while
(
a
>
b
){
a
=
a
-
b
;}
while
(
a
>
b
){
a
=
a
-
b
;}
while
(
a
<
0
){
a
=
a
+
b
;}
while
(
a
<
0
){
a
=
a
+
b
;}
return
a
;
return
a
;
}
}
...
@@ -179,7 +178,7 @@ class Diff_pvmModel : public ForwardModel
...
@@ -179,7 +178,7 @@ class Diff_pvmModel : public ForwardModel
~
Diff_pvmModel
(){}
~
Diff_pvmModel
(){}
virtual
void
setparams
(
float
pstd
);
virtual
void
setparams
();
ReturnMatrix
nonlinearfunc
(
const
ColumnVector
&
paramvalues
)
const
;
ReturnMatrix
nonlinearfunc
(
const
ColumnVector
&
paramvalues
)
const
;
void
initialise
(
const
ColumnVector
&
S
);
void
initialise
(
const
ColumnVector
&
S
);
...
@@ -194,7 +193,7 @@ class Diff_pvmModel : public ForwardModel
...
@@ -194,7 +193,7 @@ class Diff_pvmModel : public ForwardModel
int
debuglevel
;
int
debuglevel
;
};
};
void
Diff_pvmModel
::
setparams
(
float
pstd
)
void
Diff_pvmModel
::
setparams
()
{
{
Tracer_Plus
tr
(
"Diff_pvmModel::setdata"
);
Tracer_Plus
tr
(
"Diff_pvmModel::setdata"
);
if
(
debuglevel
>
2
){
if
(
debuglevel
>
2
){
...
@@ -203,15 +202,15 @@ void Diff_pvmModel::setparams(float pstd)
...
@@ -203,15 +202,15 @@ void Diff_pvmModel::setparams(float pstd)
clear_params
();
clear_params
();
SinPrior
thtmp
(
1
);
SinPrior
thtmp
(
1
);
add_param
(
"th"
,
0.2
,
thtmp
,
true
);
add_param
(
"th"
,
0.2
,
0.02
,
thtmp
,
true
);
UnifPrior
phtmp
(
0.2
,
2000
*
M_PI
);
UnifPrior
phtmp
(
0.2
,
2000
*
M_PI
);
add_param
(
"ph"
,
0
,
phtmp
,
true
);
add_param
(
"ph"
,
0
,
0.02
,
phtmp
,
true
);
UnifPrior
ftmp
(
0
,
1
);
UnifPrior
ftmp
(
0
,
1
);
add_param
(
"f"
,
0.5
,
ftmp
,
true
);
add_param
(
"f"
,
0.5
,
0.02
,
ftmp
,
true
);
GammaPrior
dtmp
(
4
,
1.0
/
0.0003
);
//test this out,
GammaPrior
dtmp
(
4
,
1.0
/
0.0003
);
//test this out,
add_param
(
"d"
,
0.005
,
dtmp
,
true
);
add_param
(
"d"
,
0.005
,
0.00005
,
dtmp
,
true
);
UnifPrior
S0tmp
(
0
,
100000
);
UnifPrior
S0tmp
(
0
,
100000
);
add_param
(
"S0"
,
10000
,
S0tmp
,
true
);
//false);
add_param
(
"S0"
,
10000
,
100
,
S0tmp
,
true
);
//false);
}
}
...
@@ -360,7 +359,7 @@ int main(int argc, char *argv[])
...
@@ -360,7 +359,7 @@ int main(int argc, char *argv[])
Diff_pvmModel
model
(
bvecs
,
bvals
,
Diff_pvmOptions
::
getInstance
().
debuglevel
.
value
());
Diff_pvmModel
model
(
bvecs
,
bvals
,
Diff_pvmOptions
::
getInstance
().
debuglevel
.
value
());
LSMCMCManager
lsmcmc
(
Diff_pvmOptions
::
getInstance
(),
model
,
data
,
mask
);
LSMCMCManager
lsmcmc
(
Diff_pvmOptions
::
getInstance
(),
model
,
data
,
mask
);
LSLaplaceManager
lslaplace
(
Diff_pvmOptions
::
getInstance
(),
model
,
data
,
mask
,(
Diff_pvmOptions
::
getInstance
().
inference
.
value
()
==
"full"
)
);
LSLaplaceManager
lslaplace
(
Diff_pvmOptions
::
getInstance
(),
model
,
data
,
mask
);
if
(
Diff_pvmOptions
::
getInstance
().
inference
.
value
()
==
"mcmc"
)
if
(
Diff_pvmOptions
::
getInstance
().
inference
.
value
()
==
"mcmc"
)
...
...
This diff is collapsed.
Click to expand it.
probtrack.cc
+
8
−
2018
View file @
b6924a31
This diff is collapsed.
Click to expand it.
probtrack.h
+
1
−
0
View file @
b6924a31
...
@@ -6,3 +6,4 @@
...
@@ -6,3 +6,4 @@
#include
"pt_seeds_to_targets.h"
#include
"pt_seeds_to_targets.h"
#include
"pt_alltracts.h"
#include
"pt_alltracts.h"
#include
"pt_matrix.h"
#include
"pt_matrix.h"
#include
"pt_matrix_mesh.h"
This diff is collapsed.
Click to expand it.
pt_twomasks.cc
+
1
−
1
View file @
b6924a31
...
@@ -245,7 +245,7 @@ void twomasks_asymm(){
...
@@ -245,7 +245,7 @@ void twomasks_asymm(){
loopcheck
=
0
;
loopcheck
=
0
;
}
}
volume
<
int
>
Seeds
,
mask2
;
volume
<
int
>
Seeds
,
mask2
;
read_volume
(
Seeds
,
opts
.
seedfile
.
value
());
read_volume
(
Seeds
,
opts
.
seedfile
.
value
());
...
...
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