X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkMorphoMathFilter.txx;h=81356df1c808a66cebda79e307746c6710258524;hb=dacff874d9d3cc4cf26429dc677832d221b963c3;hp=1267583929e0ceac1cf6faee0debc3be08139dc5;hpb=573d80d0f7a17607d2ee883c21c940c0ba020282;p=clitk.git diff --git a/segmentation/clitkMorphoMathFilter.txx b/segmentation/clitkMorphoMathFilter.txx index 1267583..81356df 100644 --- a/segmentation/clitkMorphoMathFilter.txx +++ b/segmentation/clitkMorphoMathFilter.txx @@ -30,6 +30,7 @@ clitk::MorphoMathFilter::MorphoMathFilter(): p.Fill(1); SetRadius(p); SetBoundaryToForegroundFlag(false); + VerboseFlagOff(); } //-------------------------------------------------------------------- @@ -67,6 +68,18 @@ SetRadius(SizeType & p) //-------------------------------------------------------------------- +//-------------------------------------------------------------------- +template +void clitk::MorphoMathFilter:: +SetRadius(int r) +{ + for(uint i=0; i void clitk::MorphoMathFilter:: @@ -276,7 +289,9 @@ GenerateData() typename OutputCastImageFilterType::Pointer oCaster = OutputCastImageFilterType::New(); oCaster->SetInput(filter->GetOutput()); oCaster->Update(); + this->SetNthOutput(0, oCaster->GetOutput()); + //this->GraftOutput(oCaster->GetOutput()); // NO } //--------------------------------------------------------------------