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 CLITKBINARIZEIMAGEGENERICFILTER_H
-#define CLITKBINARIZEIMAGEGENERICFILTER_H
+#ifndef clitkBinarizeImageGenericFilter_h
+#define clitkBinarizeImageGenericFilter_h
#include "clitkIO.h"
#include "clitkImageToImageGenericFilter.h"
{
public:
-
- //--------------------------------------------------------------------
- BinarizeImageGenericFilter();
-
//--------------------------------------------------------------------
typedef BinarizeImageGenericFilter Self;
typedef itk::SmartPointer<Self> Pointer;
//--------------------------------------------------------------------
void SetArgsInfo(const args_info_type & a);
+ void SetPercentage(double p) { mPercentage = p; }
+ double GetPercentage() const { return mPercentage; }
//--------------------------------------------------------------------
// Main function called each time the filter is updated
template<class InputImageType>
void UpdateWithInputImageType();
+ template<class InputImageType>
+ void MaskOfIntegratedIntensity();
+
protected:
+ BinarizeImageGenericFilter();
template<unsigned int Dim> void InitializeImageType();
args_info_type mArgsInfo;
+ double mPercentage;
}; // end class
//--------------------------------------------------------------------
+//Implementation of the pair comparative function
+template <typename T> bool comparator ( const std::pair<T, size_t>& l, const std::pair<T, size_t>& r);
} // end namespace clitk
//--------------------------------------------------------------------