17#ifndef __dwi_tractography_tracking_early_exit_h__
18#define __dwi_tractography_tracking_early_exit_h__
22#if EIGEN_VERSION_AT_LEAST(3,3,0)
23#define TCKGEN_EARLY_EXIT_USE_FULL_BINOMIAL
24#include <unsupported/Eigen/SpecialFunctions>
25#define TCKGEN_EARLY_EXIT_PROB_THRESHOLD 0.001
27#define TCKGEN_EARLY_EXIT_PROB_THRESHOLD 1e-6
28#define TCKGEN_EARLY_EXIT_ZVALUE -4.753408
34#define TCKGEN_EARLY_EXIT_STOP_TESTING_PERCENTAGE 0.20
41 namespace Tractography
51 max_num_seeds (shared.max_num_seeds),
52 max_num_tracks (shared.max_num_tracks),
54 next_test ((max_num_seeds && max_num_tracks) ? (10 * max_num_seeds / max_num_tracks) : 0) { }
59 const size_t max_num_seeds, max_num_tracks;
60 size_t counter, next_test;
bool operator()(const size_t, const size_t)
EarlyExit(const SharedBase &shared)