Skip to content
Snippets Groups Projects
Commit 9ef9c484 authored by Mark Jenkinson's avatar Mark Jenkinson
Browse files

Made changes for neurological fix - DO NOT MAKE STABLE YET

parent 3903a602
No related branches found
No related tags found
No related merge requests found
...@@ -29,15 +29,23 @@ void track(){ ...@@ -29,15 +29,23 @@ void track(){
else{ else{
read_volume(seedref,opts.maskfile.value()); read_volume(seedref,opts.maskfile.value());
} }
Streamliner stline; Streamliner stline;
Counter counter(seedref,stline); Counter counter(seedref,stline);
counter.initialise(); counter.initialise();
Seedmanager seedmanager(counter); Seedmanager seedmanager(counter);
Matrix Seeds = read_ascii_matrix(opts.seedfile.value()); Matrix Seeds = read_ascii_matrix(opts.seedfile.value());
// convert coordinates from nifti (external) to newimage (internal)
// conventions - Note: for radiological files this should do nothing
for (int n=1; n<=Seeds.Nrows(); n++) {
ColumnVector v(4);
v << Seeds(n,1) << Seeds(n,2) << Seeds(n,3) << 1.0;
v = seedref.niftivox2newimagevox_mat() * v;
Seeds(n,1) = v(1); Seeds(n,2) = v(2); Seeds(n,3) = v(3);
}
int keeptot=0; int keeptot=0;
for(int SN=1; SN<=Seeds.Nrows();SN++){ for(int SN=1; SN<=Seeds.Nrows();SN++){
float xst=Seeds(SN,1); float xst=Seeds(SN,1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment