X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkCommon.h;h=11a6255955e8b2185c25b49334bd64158d58a8dc;hb=6ab0361c289035b4ba8487fe074ea9b268341da9;hp=51258e66fc3abd5c418dfc480bdba43debd32442;hpb=0451c66d4a069d04db99c9d719e053c6019923d8;p=clitk.git diff --git a/common/clitkCommon.h b/common/clitkCommon.h index 51258e6..11a6255 100644 --- a/common/clitkCommon.h +++ b/common/clitkCommon.h @@ -42,6 +42,13 @@ # include #endif +#if ITK_VERSION_MAJOR < 4 +namespace itk +{ + typedef unsigned int ThreadIdType; +} +#endif + //-------------------------------------------------------------------- namespace clitk { @@ -227,6 +234,13 @@ namespace clitk { //-------------------------------------------------------------------- void PrintMemoryUsed(); + //-------------------------------------------------------------------- + // Convert a map to a vector + template + void MapToVecFirst(const M & m, V & v); + template + void MapToVecSecond(const M & m, V & v); + #include "clitkCommon.txx" } // end namespace