17#ifndef __dwi_tractography_tracking_write_kernel_h__
18#define __dwi_tractography_tracking_write_kernel_h__
41 namespace Tractography
52 const std::string& output_file,
55 writer (output_file, properties),
64 const auto p = properties.find (
"seed_output");
65 if (p != properties.end()) {
68 (*output_seeds) <<
"#Track_index,Seed_index,Pos_x,Pos_y,Pos_z,\n";
80 &&
S.max_num_tracks &&
writer.count <
S.max_num_tracks) {
81 WARN (
"less than desired streamline number due to implicit maximum number of seeds; set -seeds 0 to override");
84 (*output_seeds) <<
"\n";
93 bool complete()
const {
return ((
S.max_num_tracks &&
selected >=
S.max_num_tracks) || (
S.max_num_seeds &&
seeds >=
S.max_num_seeds)); }
const bool warn_on_max_seeds
std::unique_ptr< File::OFStream > output_seeds
const bool always_increment
class to handle writing tracks to file, with RAM buffer
open output files for writing, checking for pre-existing file if necessary
implements a progress meter to provide feedback to the user
void set_text(const std::string &new_text)
std::string command_history_string
std::string printf(const char *format,...)