]> Creatis software - clitk.git/blobdiff - common/clitkCommon.cxx
Change vv compilation settings for travis
[clitk.git] / common / clitkCommon.cxx
index 10f608e6ce8b7ba7c92d6085f4d1b1588a047e3d..57be29e5297f833d53769818b0aa097cb3d93a6c 100644 (file)
@@ -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)
 {