int main(int argc, char * argv[])
{
if( argc < 2 )
{
std::cerr << argv[0] << " InputImageFile" << std::endl;
return EXIT_FAILURE;
}
UnsignedCharImageType, UnsignedCharImageType >;
ReaderType::Pointer reader = ReaderType::New();
reader->SetFileName( argv[1] );
filterType::Pointer meanFilter = filterType::New();
meanFilter->SetInput( reader->GetOutput() );
SubtractType::Pointer diff = SubtractType::New();
diff->SetInput1(reader->GetOutput());
diff->SetInput2(meanFilter->GetOutput());
reader->GetOutput(),true,
itksys::SystemTools::GetFilenameName(argv[1]));
std::stringstream desc;
desc << "Mean";
meanFilter->GetOutput(),
true,
desc.str());
std::stringstream desc2;
desc2 << "Original - Mean";
diff->GetOutput(),
true,
desc2.str());
return EXIT_SUCCESS;
}