Skip to content
Snippets Groups Projects
Commit 4616d0c7 authored by Tim Behrens's avatar Tim Behrens
Browse files

*** empty log message ***

parent e1a89377
No related branches found
No related tags found
No related merge requests found
......@@ -38,10 +38,12 @@ void twomasks()
}
}
}
cout<<"finished a"<<endl;
stline.pop_waymasks();
cout<<"popped"<<endl;
stline.add_waymask(seeds);
for(int z=0;z<seeds2.zsize();z++){
for(int y=0;y<seeds2.ysize();y++){
for(int x=0;x<seeds2.xsize();x++){
......@@ -52,7 +54,7 @@ void twomasks()
}
}
counter.save();
}
......
......@@ -124,22 +124,25 @@ namespace TRACT{
int x_s =(int)round((float)xyz_seeds(1));
int y_s =(int)round((float)xyz_seeds(2));
int z_s =(int)round((float)xyz_seeds(3));
if(opts.rubbishfile.value()!=""){
if(m_rubbish(x_s,y_s,z_s)>0) break;
}
//update every passed_flag
for( unsigned int wm=0;wm<m_waymasks.size();wm++ ){
if( (*m_waymasks[wm])(x_s,y_s,z_s)>0 ) {
m_passed_flags[wm]=true;
}
}
m_path.push_back(xyz_seeds);
// m_path(it,1)=x_s;
// m_path(it,2)=y_s;
// m_path(it,3)=z_s;
partlength++;
//update every passed_flag
for( unsigned int wm=0;wm<m_waymasks.size();wm++ ){
if( (*m_waymasks[wm])(x_s,y_s,z_s)>0 )
m_passed_flags[wm]=true;
if(opts.rubbishfile.value()!=""){
if(m_rubbish(x_s,y_s,z_s)>0) break;
}
if(opts.skipmask.value() == ""){
th_ph_f=vols.sample(m_part.x(),m_part.y(),m_part.z(),m_part.rx(),m_part.ry(),m_part.rz());
......@@ -188,8 +191,8 @@ namespace TRACT{
}
return accept_path;
}
void Counter::initialise(){
if(opts.simpleout.value()||opts.matrix1out.value()){
initialise_path_dist();
......@@ -554,7 +557,7 @@ namespace TRACT{
m_stline.reset();
bool forwardflag=false,backwardflag=false;
if(!onewayonly){
if(m_stline.streamline(x,y,z,m_seeddims,fibst)){
if(m_stline.streamline(x,y,z,m_seeddims,fibst)){ //returns whether to count the streamline or not
forwardflag=true;
m_counter.store_path();
m_counter.count_streamline();
......
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