int
main(int argc, char * argv[])
{
if (argc < 5)
{
std::cerr << "Usage: " << std::endl;
std::cerr << argv[0] << " inputImageFile outputImageFile";
std::cerr << " numberOfIterations noiseLevel" << std::endl;
return EXIT_FAILURE;
}
using InputValueType = float;
using OutputValueType = float;
using FilterType =
reader->SetFileName(argv[1]);
filter->SetInput(reader->GetOutput());
const unsigned int numberOfIterations = std::stoi(argv[3]);
const double noiseLevel = std::stod(argv[4]);
filter->SetIterationNum(numberOfIterations);
filter->SetNoiseLevel(noiseLevel);
filter->Update();
writer->SetFileName(argv[2]);
writer->SetInput(filter->GetOutput());
writer->Update();
return EXIT_SUCCESS;
}
This class computes a diffusion of the gradient vectors for graylevel or binary edge map derive from ...
Data source that reads image data from a single file.
Writes image data to a single file.
Templated n-dimensional image class.
A templated class holding a n-Dimensional vector.
constexpr unsigned int Dimension