X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkBinarizeImageGenericFilter.h;h=4a919f5e7f80f51018358d74430159a551806210;hb=543b72e23ad001ac2a7743b9beacf48e2d0054ac;hp=db8956c01cd7df9dcc508f5ed6b43e2906104291;hpb=7654c7905093577cacc567814b4ae1687a96d5ae;p=clitk.git diff --git a/tools/clitkBinarizeImageGenericFilter.h b/tools/clitkBinarizeImageGenericFilter.h index db8956c..4a919f5 100644 --- a/tools/clitkBinarizeImageGenericFilter.h +++ b/tools/clitkBinarizeImageGenericFilter.h @@ -3,7 +3,7 @@ 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 @@ -14,7 +14,7 @@ - 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 @@ -32,10 +32,6 @@ namespace clitk { public: - - //-------------------------------------------------------------------- - BinarizeImageGenericFilter(); - //-------------------------------------------------------------------- typedef BinarizeImageGenericFilter Self; typedef itk::SmartPointer Pointer; @@ -50,19 +46,28 @@ namespace clitk //-------------------------------------------------------------------- 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 void UpdateWithInputImageType(); + template + void MaskOfIntegratedIntensity(); + protected: + BinarizeImageGenericFilter(); template void InitializeImageType(); args_info_type mArgsInfo; + double mPercentage; }; // end class //-------------------------------------------------------------------- +//Implementation of the pair comparative function +template bool comparator ( const std::pair& l, const std::pair& r); } // end namespace clitk //--------------------------------------------------------------------