X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkFilterBase.txx;h=064f3bea8c9ef647190860dacf006d2f09e0be93;hb=4913590ba7e15aa2899fe6f9e403940d4e4ba7a1;hp=baee5700ac909d5176e97b281c2e4a18969c7ffb;hpb=868922dc773690f1be8f21159f10fc4702e5c09f;p=clitk.git diff --git a/common/clitkFilterBase.txx b/common/clitkFilterBase.txx index baee570..064f3be 100644 --- a/common/clitkFilterBase.txx +++ b/common/clitkFilterBase.txx @@ -17,12 +17,13 @@ ======================================================================-====*/ #include "clitkImageCommon.h" +#include "clitkMemoryUsage.h" //-------------------------------------------------------------------- template void clitk::FilterBase::VerboseOption(std::string name, OptionType value) { - if (!this->GetVerboseOption()) return; + if (!this->GetVerboseOptionFlag()) return; std::cout << "Set option '" << name << "' = " << value << std::endl; } //-------------------------------------------------------------------- @@ -32,7 +33,7 @@ void clitk::FilterBase::VerboseOption(std::string name, OptionType value) template void clitk::FilterBase::VerboseOption(std::string name, int nb, OptionType value) { - if (!this->GetVerboseOption()) return; + if (!this->GetVerboseOptionFlag()) return; if (nb==0) std::cout << "Set option '" << name << "' not given" << std::endl; else { std::cout << "Set option '" << name << "' = " << value << std::endl; @@ -45,7 +46,7 @@ void clitk::FilterBase::VerboseOption(std::string name, int nb, OptionType value template void clitk::FilterBase::VerboseOptionV(std::string name, int nb, OptionType * value) { - if (!this->GetVerboseOption()) return; + if (!this->GetVerboseOptionFlag()) return; if (nb==0) std::cout << "Set option '" << name << "' not given" << std::endl; else { std::cout << "Set option '" << name << "'[" << nb << "] "; @@ -61,11 +62,12 @@ template void clitk::FilterBase::StopCurrentStep(typename TInternalImageType::Pointer p) { StopCurrentStep(); - if (m_WriteStep) { + if (m_WriteStepFlag) { std::ostringstream name; name << "step-" << GetCurrentStepId() << ".mhd"; clitk::writeImage(p, name.str()); } + clitk::PrintMemory(GetVerboseMemoryFlag(), "End of step"); } //--------------------------------------------------------------------