int
main(int argc, char * argv[])
{
if (argc < 3)
{
std::cerr << "Usage: inputImage outputImage [sigma] [alpha_1] [alpha_2]"
<< std::endl;
}
using InputPixelType = double;
using OutputPixelType = float;
using HessianFilterType =
using VesselnessMeasureFilterType =
reader->SetFileName(argv[1]);
hessianFilter->SetInput(reader->GetOutput());
if (argc >= 4)
{
hessianFilter->SetSigma(static_cast<double>(std::stod(argv[3])));
}
vesselnessFilter->SetInput(hessianFilter->GetOutput());
writer->SetInput(vesselnessFilter->GetOutput());
writer->SetFileName(argv[2]);
if (argc >= 5)
{
vesselnessFilter->SetAlpha1(static_cast<double>(std::stod(argv[4])));
}
if (argc >= 6)
{
vesselnessFilter->SetAlpha2(static_cast<double>(std::stod(argv[5])));
}
writer->Update();
return EXIT_SUCCESS;
}