20 #include "ODFNormalizationCLP.h" 30 main (
int argc,
char const* argv[])
35 typedef double FloatType;
37 typedef itk::VectorImage<FloatType,3> InputImageType;
38 typedef itk::VectorImage<FloatType,3> OutputImageType;
40 InputImageType::Pointer input = InputImageType::New();
45 FilterType::Pointer filter = FilterType::New();
47 filter->SetInput(input);
50 filter->SetODFType(FilterType::FunctorType::SH);
51 else if (_Type==
"SAMPLE")
52 filter->SetODFType(FilterType::FunctorType::SAMPLE);
56 OutputImageType::Pointer output = filter->GetOutput();
bool SaveImage(const SmartPointer< ImageType > &image, const std::string &filename, const std::string &printInfo="Writing Image:")
bool ReadImage(const std::string &filename, SmartPointer< ImageType > &image, const std::string &printInfo="Reading Image:")
Normalize the input ODF such that the output ODF has unit integral. The input ODF can be represented ...
int main(int argc, char const *argv[])
Normalize ODF represented by SH basis or uniform spherical samples.