X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkExtractLungGenericFilter.txx;h=e942dcf857bd7423f78eb603b2bd85cfe727747f;hb=d9fd52d40d5cca76523750c95547bd594c2b7f50;hp=2fa40b124b965eb33f6dda6456f29e00c04f2ce0;hpb=e0464c9f7bdde185755d60e9dead188291fc3550;p=clitk.git diff --git a/segmentation/clitkExtractLungGenericFilter.txx b/segmentation/clitkExtractLungGenericFilter.txx index 2fa40b1..e942dcf 100644 --- a/segmentation/clitkExtractLungGenericFilter.txx +++ b/segmentation/clitkExtractLungGenericFilter.txx @@ -84,7 +84,6 @@ void clitk::ExtractLungGenericFilter::UpdateWithInputImageType() this->SetFilterBase(filter); // Set global Options - filter->SetStopOnError(this->GetStopOnError()); filter->SetArgsInfo(mArgsInfo); filter->SetInput(input); filter->SetInputPatientMask(patient, mArgsInfo.patientBG_arg); @@ -92,17 +91,11 @@ void clitk::ExtractLungGenericFilter::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(); this->template SetNextOutput(output); this->template SetNextOutput(filter->GetTracheaImage()); + filter->WriteAFDB(); } //--------------------------------------------------------------------