#include "itkDeformationFieldJacobianDeterminantFilter.h"
int main( int argc, char * argv[] )
{
if( argc < 3 )
{
std::cerr << "Usage: " << std::endl;
std::cerr << argv[0] << " inputImageFile outputImageFile " << std::endl;
return EXIT_FAILURE;
}
using OutputPixelType = float;
using FilterType = itk::DeformationFieldJacobianDeterminantFilter< InputImageType >;
ReaderType::Pointer reader = ReaderType::New();
reader->SetFileName( argv[1] );
FilterType::Pointer filter = FilterType::New();
filter->SetInput( reader->GetOutput() );
filter->Update();
WriterType::Pointer writer = WriterType::New();
writer->SetFileName( argv[2] );
writer->SetInput( filter->GetOutput() );
try
{
writer->Update();
}
{
std::cerr << excp << std::endl;
}
return EXIT_SUCCESS;
}