int
main(int argc, char * argv[])
{
if (argc != 2)
{
std::cerr << "Usage: " << std::endl;
std::cerr << argv[0];
std::cerr << " <NumberOfThreads>";
std::cerr << std::endl;
return EXIT_FAILURE;
}
const auto numberOfThreads = static_cast<unsigned int>(std::atoi(argv[1]));
using PixelType = float;
const auto filterDefaultThreads = filter->GetMultiThreader()->GetGlobalDefaultNumberOfThreads();
std::cout << "Filter's default number of threads: " << filterDefaultThreads << std::endl;
if (filterDefaultThreads != numberOfThreads)
{
std::cerr << "Filter does not have expected default number of threads." << std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}