X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkExtractPatientGenericFilter.txx;h=ae87cc8363afc36d6225d90cb36fef33505dec6b;hb=d7f456d86ca398a89ccf9de43ab68a2b50b8ca1f;hp=a8fbad81e227e2360e1b34b74e71233c85cebdac;hpb=573d80d0f7a17607d2ee883c21c940c0ba020282;p=clitk.git diff --git a/segmentation/clitkExtractPatientGenericFilter.txx b/segmentation/clitkExtractPatientGenericFilter.txx index a8fbad8..ae87cc8 100644 --- a/segmentation/clitkExtractPatientGenericFilter.txx +++ b/segmentation/clitkExtractPatientGenericFilter.txx @@ -36,6 +36,8 @@ template void clitk::ExtractPatientGenericFilter::InitializeImageType() { ADD_IMAGE_TYPE(Dim, short); + ADD_IMAGE_TYPE(Dim, unsigned short); + ADD_IMAGE_TYPE(Dim, float); // ADD_IMAGE_TYPE(Dim, int); // ADD_IMAGE_TYPE(Dim, float); } @@ -47,10 +49,10 @@ template void clitk::ExtractPatientGenericFilter::SetArgsInfo(const ArgsInfoType & a) { mArgsInfo=a; - SetIOVerbose(mArgsInfo.verbose_flag); + this->SetIOVerbose(mArgsInfo.verbose_flag); if (mArgsInfo.imagetypes_flag) this->PrintAvailableImageTypes(); - if (mArgsInfo.input_given) SetInputFilename(mArgsInfo.input_arg); - if (mArgsInfo.output_given) AddOutputFilename(mArgsInfo.output_arg); + if (mArgsInfo.input_given) this->SetInputFilename(mArgsInfo.input_arg); + if (mArgsInfo.output_given) this->AddOutputFilename(mArgsInfo.output_arg); } //-------------------------------------------------------------------- @@ -75,6 +77,7 @@ SetOptionsFromArgsInfoToFilter(FilterType * f) f->SetUpperThreshold(mArgsInfo.upper_arg); f->SetLowerThreshold(mArgsInfo.lower_arg); + f->SetPrimaryOpeningRadius(mArgsInfo.openingRadius_arg); f->SetDecomposeAndReconstructDuringFirstStep(mArgsInfo.erode1_flag);