Authors belong to:
- University of LYON http://www.universite-lyon.fr/
- - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
+ - Léon Bérard cancer center http://www.centreleonberard.fr
- CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
This software is distributed WITHOUT ANY WARRANTY; without even
- BSD See included LICENSE.txt file
- CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
- ======================================================================-====*/
+ ===========================================================================**/
#ifndef CLITKFILTERBASE_H
#define CLITKFILTERBASE_H
//--------------------------------------------------------------------
/*
- Convenient class to manage options from GGO (gengetopt) to filter
+ Convenient class to manage frequent options
*/
//--------------------------------------------------------------------
class FilterBase
itkGetConstMacro(VerboseMemoryFlag, bool);
itkBooleanMacro(VerboseMemoryFlag);
+ // Verbose ImageSize
+ itkSetMacro(VerboseImageSizeFlag, bool);
+ itkGetConstMacro(VerboseImageSizeFlag, bool);
+ itkBooleanMacro(VerboseImageSizeFlag);
+
// Steps management
itkSetMacro(NumberOfSteps, int);
itkGetConstMacro(NumberOfSteps, int);
protected:
FilterBase();
virtual ~FilterBase() {}
- void StartNewStep(std::string s);
+ void StartNewStep(std::string s, bool endl=true);
template<class TInternalImageType>
- void StopCurrentStep(typename TInternalImageType::Pointer p);
+ void StopCurrentStep(typename TInternalImageType::Pointer p, std::string txt="");
void StopCurrentStep();
bool m_VerboseFlag;
bool m_VerboseOptionFlag;
bool m_VerboseStepFlag;
bool m_VerboseMemoryFlag;
+ bool m_VerboseImageSizeFlag;
bool m_WriteStepFlag;
int m_CurrentStepNumber;
int m_NumberOfSteps;