int
main(int argc, char * argv[])
{
if (argc < 4)
{
std::cerr << "Usage: " << std::endl;
std::cerr << argv[0] << " inputImageFile outputVectorImageFile sigma"
<< std::endl;
return EXIT_FAILURE;
}
using InputPixelType = float;
using OutputComponentPixelType = float;
using OutputPixelType =
using FilterType =
OutputImageType>;
reader->SetFileName(argv[1]);
filter->SetInput(reader->GetOutput());
const double sigma = std::stod(argv[3]);
filter->SetSigma(sigma);
filter->Update();
writer->SetFileName(argv[2]);
writer->SetInput(filter->GetOutput());
writer->Update();
return EXIT_SUCCESS;
}
A templated class holding a n-Dimensional covariant vector.
Computes the gradient of an image by convolution with the first derivative of a Gaussian.
Data source that reads image data from a single file.
Writes image data to a single file.
Templated n-dimensional image class.
constexpr unsigned int Dimension