X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkCommon.cxx;h=57be29e5297f833d53769818b0aa097cb3d93a6c;hb=e91d72049a4a9aa2faabd8add7f04732fe8eedcc;hp=10f608e6ce8b7ba7c92d6085f4d1b1588a047e3d;hpb=cfdbc14b4bab30ca503d590006f5ba1bfc85f372;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) {