X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkBinarizeImageGenericFilter.h;h=4a919f5e7f80f51018358d74430159a551806210;hb=706d7e2dc69e12b3823cfae2f3be3f903e4d3c80;hp=fb5df78412fdef73a696232547a6f8a9d15ef1f4;hpb=5178b9c98f56e67d2b60ba85b9ff700d28d0051c;p=clitk.git diff --git a/tools/clitkBinarizeImageGenericFilter.h b/tools/clitkBinarizeImageGenericFilter.h index fb5df78..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 @@ -46,20 +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 //--------------------------------------------------------------------