X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkExtractPatientGenericFilter.txx;h=e2b2e976e501529c85150a346f0c74523154ae26;hb=164e784d773cef093f46b6aed156269fe46bf676;hp=f90c1c7992a0a7b900083a372251f4b6e4be2978;hpb=50c57f15fa84d140994a8239ce84191ded47a985;p=clitk.git diff --git a/segmentation/clitkExtractPatientGenericFilter.txx b/segmentation/clitkExtractPatientGenericFilter.txx index f90c1c7..e2b2e97 100644 --- a/segmentation/clitkExtractPatientGenericFilter.txx +++ b/segmentation/clitkExtractPatientGenericFilter.txx @@ -69,7 +69,7 @@ void clitk::ExtractPatientGenericFilter::UpdateWithInputImageType( typename ImageType::Pointer input = this->template GetInput(0); // Create filter - typedef clitk::ExtractPatientFilter FilterType; + typedef clitk::ExtractPatientFilter FilterType; typename FilterType::Pointer filter = FilterType::New(); // Set the filter (needed for example for threaded monitoring) @@ -81,13 +81,6 @@ void clitk::ExtractPatientGenericFilter::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();