]> Creatis software - clitk.git/blobdiff - segmentation/clitkExtractPatientGenericFilter.txx
better manage resizing roi tool
[clitk.git] / segmentation / clitkExtractPatientGenericFilter.txx
index 7fc07407b6c035762d5b8cc3ba0dd7a74997e720..e2b2e976e501529c85150a346f0c74523154ae26 100644 (file)
@@ -69,7 +69,7 @@ void clitk::ExtractPatientGenericFilter<ArgsInfoType>::UpdateWithInputImageType(
   typename ImageType::Pointer input = this->template GetInput<ImageType>(0);
 
   // Create filter
-  typedef clitk::ExtractPatientFilter<ImageType, OutputImageType> FilterType;
+  typedef clitk::ExtractPatientFilter<ImageType> FilterType;
   typename FilterType::Pointer filter = FilterType::New();
     
   // Set the filter (needed for example for threaded monitoring)
@@ -81,13 +81,6 @@ void clitk::ExtractPatientGenericFilter<ArgsInfoType>::UpdateWithInputImageType(
 
   // Go !
   filter->Update();
-  
-  // // Check if error
-  // if (filter->HasError()) {
-  //   SetLastError(filter->GetLastError());
-  //   // No output
-  //   return;
-  // }
 
   // Write/Save results
   typename OutputImageType::Pointer output = filter->GetOutput();