X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkBinarizeImageGenericFilter.h;h=4a919f5e7f80f51018358d74430159a551806210;hb=1512c37902327dde2650268e1fbd7fbc085b7a89;hp=c21e31e2b4de1c7548f3301522cb5498b3c0f54e;hpb=765020625fbc092d283e221e36c83e60a1844cb7;p=clitk.git diff --git a/tools/clitkBinarizeImageGenericFilter.h b/tools/clitkBinarizeImageGenericFilter.h index c21e31e..4a919f5 100644 --- a/tools/clitkBinarizeImageGenericFilter.h +++ b/tools/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 //--------------------------------------------------------------------