Skip to content
Snippets Groups Projects
Commit 25e4aa1f authored by Saad Jbabdi's avatar Saad Jbabdi
Browse files

meshes in probtrackx

parent 6dac9181
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ VECREG=vecreg ...@@ -30,7 +30,7 @@ VECREG=vecreg
DTIFITOBJS=dtifit.o dtifitOptions.o DTIFITOBJS=dtifit.o dtifitOptions.o
CCOPSOBJS=ccops.o ccopsOptions.o CCOPSOBJS=ccops.o ccopsOptions.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 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
PTXOBJS=probtrackx.o probtrackxOptions.o streamlines.o ptx_simple.o ptx_seedmask.o ptx_twomasks.o ptx_nmasks.o PTXOBJS=probtrackx.o probtrackxOptions.o streamlines.o ptx_simple.o ptx_seedmask.o ptx_twomasks.o ptx_nmasks.o ptx_meshmask.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
......
...@@ -43,7 +43,8 @@ int main ( int argc, char **argv ){ ...@@ -43,7 +43,8 @@ int main ( int argc, char **argv ){
else{ seedmask(); } else{ seedmask(); }
} }
else if(opts.network.value()){ nmasks(); } else if(opts.network.value()){ nmasks(); }
else {}; else if(opts.meshfile.value()!=""){meshmask();}
else {cout << "exit without doing anything"<<endl;return 0;};
//else if(fopen(tmpin.c_str(),"r")!=NULL ){ track();} //else if(fopen(tmpin.c_str(),"r")!=NULL ){ track();}
......
...@@ -8,3 +8,4 @@ ...@@ -8,3 +8,4 @@
#include "ptx_seedmask.h" #include "ptx_seedmask.h"
#include "ptx_twomasks.h" #include "ptx_twomasks.h"
#include "ptx_nmasks.h" #include "ptx_nmasks.h"
#include "ptx_meshmask.h"
...@@ -69,7 +69,7 @@ namespace TRACT{ ...@@ -69,7 +69,7 @@ namespace TRACT{
pop_waymasks(); pop_waymasks();
} }
const Tractvolsx& get_vols() const {return vols;}
inline int nfibres() const {return vols.nfibres();} inline int nfibres() const {return vols.nfibres();}
inline const float get_x_seed() const {return m_x_s_init;} inline const float get_x_seed() const {return m_x_s_init;}
inline const float get_y_seed() const {return m_y_s_init;} inline const float get_y_seed() const {return m_y_s_init;}
......
...@@ -204,7 +204,7 @@ namespace TRACTVOLSX{ ...@@ -204,7 +204,7 @@ namespace TRACTVOLSX{
return th_ph_f; return th_ph_f;
} }
ColumnVector dimensions(){ ColumnVector dimensions() const{
ColumnVector dims(3); ColumnVector dims(3);
dims << (*thsamples[0]).xdim() <<(*thsamples[0]).ydim() << (*thsamples[0]).zdim(); dims << (*thsamples[0]).xdim() <<(*thsamples[0]).ydim() << (*thsamples[0]).zdim();
return dims; return dims;
......
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