X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkMorphoMathFilter.txx;h=81356df1c808a66cebda79e307746c6710258524;hb=2127f466c1a06d8bc6eec5f6ba6ae16a1aa00412;hp=1267583929e0ceac1cf6faee0debc3be08139dc5;hpb=765020625fbc092d283e221e36c83e60a1844cb7;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 } //--------------------------------------------------------------------