int main(int argc, char * argv[])
{
if( argc < 2 )
{
std::cerr << "Usage: " << std::endl;
std::cerr << argv[0] << " inputImageFile" << std::endl;
return EXIT_FAILURE;
}
std::string inputFilename = argv[1];
readerType::Pointer reader = readerType::New();
reader->SetFileName(inputFilename);
LaplacianSharpeningImageFilterType::Pointer laplacianSharpeningImageFilter =
LaplacianSharpeningImageFilterType::New();
laplacianSharpeningImageFilter->SetInput( reader->GetOutput() );
SubtractType::Pointer diff = SubtractType::New();
diff->SetInput1(reader->GetOutput());
diff->SetInput2(laplacianSharpeningImageFilter->GetOutput());
reader->GetOutput(),true,
itksys::SystemTools::GetFilenameName(argv[1]));
std::stringstream desc;
desc << "LaplacianSharpeningImageFilter";
laplacianSharpeningImageFilter->GetOutput(),
true,
desc.str());
std::stringstream desc2;
desc2 << "Original - LaplacianSharpening";
diff->GetOutput(),
true,
desc2.str());
return EXIT_SUCCESS;
}