X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkCommon.cxx;h=57be29e5297f833d53769818b0aa097cb3d93a6c;hb=99022c32419b46d28d0cb41837762549aeb1cfad;hp=10f608e6ce8b7ba7c92d6085f4d1b1588a047e3d;hpb=4db6b30d5a0c5b238c5561360265884c5e982df8;p=clitk.git diff --git a/common/clitkCommon.cxx b/common/clitkCommon.cxx index 10f608e..57be29e 100644 --- a/common/clitkCommon.cxx +++ b/common/clitkCommon.cxx @@ -104,6 +104,15 @@ float clitk::PixelTypeDownCast(const double & x) } //------------------------------------------------------------------ +//------------------------------------------------------------------ +// Convert a pixel type without casting +template<> +double clitk::PixelTypeDownCast(const double & x) +{ + return x; +} +//------------------------------------------------------------------ + //------------------------------------------------------------------ double clitk::rad2deg(const double anglerad) {