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

set min-max for output

parent 62212746
No related branches found
No related tags found
No related merge requests found
...@@ -221,8 +221,6 @@ namespace TRACT{ ...@@ -221,8 +221,6 @@ namespace TRACT{
x=xst;y=yst;z=zst; x=xst;y=yst;z=zst;
m_part.change_xyz(x,y,z); m_part.change_xyz(x,y,z);
//m_part.set_dir(dir(1),dir(2),dir(3));//Set the start dir so that we track inwards from cortex
if(opts.meshfile.value()!=""){ if(opts.meshfile.value()!=""){
m_part.set_dir(dir(1),dir(2),dir(3));//Set the start dir so that we track inwards from cortex m_part.set_dir(dir(1),dir(2),dir(3));//Set the start dir so that we track inwards from cortex
} }
...@@ -843,6 +841,7 @@ namespace TRACT{ ...@@ -843,6 +841,7 @@ namespace TRACT{
} }
void Counter::save_pathdist(){ void Counter::save_pathdist(){
m_prob.setDisplayMaximumMinimum(m_prob.max(),m_prob.min());
save_volume(m_prob,logger.appendDir("fdt_paths")); save_volume(m_prob,logger.appendDir("fdt_paths"));
} }
...@@ -850,6 +849,7 @@ namespace TRACT{ ...@@ -850,6 +849,7 @@ namespace TRACT{
string thisout=opts.outfile.value(); string thisout=opts.outfile.value();
make_basename(thisout); make_basename(thisout);
thisout+=add; thisout+=add;
m_prob.setDisplayMaximumMinimum(m_prob.max(),m_prob.min());
save_volume(m_prob,thisout); save_volume(m_prob,thisout);
} }
...@@ -875,6 +875,7 @@ namespace TRACT{ ...@@ -875,6 +875,7 @@ namespace TRACT{
imfill(seedcounts,m_seedcounts[m],m_seeds_mat2vol); imfill(seedcounts,m_seedcounts[m],m_seeds_mat2vol);
seedcounts.setDisplayMaximumMinimum(opts.nparticles.value(),0);
save_volume(seedcounts,logger.appendDir("seeds_to_"+tmpname)); save_volume(seedcounts,logger.appendDir("seeds_to_"+tmpname));
} }
......
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