p.Fill(1);
SetRadius(p);
SetBoundaryToForegroundFlag(false);
+ VerboseFlagOff();
}
//--------------------------------------------------------------------
//--------------------------------------------------------------------
+//--------------------------------------------------------------------
+template<class ImageType>
+void clitk::MorphoMathFilter<ImageType>::
+SetRadius(int r)
+{
+ for(uint i=0; i<ImageType::ImageDimension; i++)
+ m_Radius[i] = r;
+ SetRadius(m_Radius);
+}
+//--------------------------------------------------------------------
+
+
//--------------------------------------------------------------------
template<class ImageType>
void clitk::MorphoMathFilter<ImageType>::
typename OutputCastImageFilterType::Pointer oCaster = OutputCastImageFilterType::New();
oCaster->SetInput(filter->GetOutput());
oCaster->Update();
+
this->SetNthOutput(0, oCaster->GetOutput());
+ //this->GraftOutput(oCaster->GetOutput()); // NO
}
//--------------------------------------------------------------------