17 #include "SamplingSchemeQSpace1OptEstimationCLP.h" 24 main (
int argc,
char const* argv[])
32 typedef SamplingType::Pointer SamplingPointer;
34 EstimationType::Pointer estimator = EstimationType::New();
37 SamplingPointer initialSamples = SamplingType::New();
40 EstimationType::MatrixPointer fineOrientations(
new EstimationType::MatrixType());
44 estimator->SetTessellationOrder(_Order);
45 if (_Criteria==
"DISTANCE")
46 estimator->SetCriteriaType(EstimationType::DISTANCE);
47 else if (_Criteria==
"ELECTROSTATIC")
48 estimator->SetCriteriaType(EstimationType::ELECTROSTATIC);
49 if(_FineOrientationsArg.isSet())
52 estimator->SetFineOrientations(fineOrientations);
54 estimator->SetInitialOrientations(initialSamples);
55 estimator->SetWeightForSingleShell(_Weight);
59 estimator->UpdateOutputData();
61 std::cout <<
"Elapsed time : " << clock.GetTotal() << std::endl;
63 SamplingPointer output = estimator->GetOutputOrientations();
68 WriterType::Pointer writer = WriterType::New();
69 writer->SetSampling(output);
70 writer->SetOrientationFile(_OutputOrientations);
71 writer->SaveSingleShellOn();
72 writer->SaveAllShellsInOneFileOff();
helper functions specifically used in dmritool
used for debug information. this->GetDebug()
incremental estimation of single/multi-shell orientations
#define utlGlobalException(cond, expout)
this class describes sampling in Q space.
int main(int argc, char const *argv[])
incrementatl estimation for single and multiple shell sampling scheme
write orientations and b values (single/multiple shells) into text files