]> Creatis software - bbtk.git/blobdiff - packages/itk/src/bbitkImageProperties.cxx
Spacing type changed to double
[bbtk.git] / packages / itk / src / bbitkImageProperties.cxx
index 458531f91ed39e83a063441cf44a87c2732d8bf6..8004f5c087e3e01f73baa2417314eb9d14094707 100644 (file)
@@ -106,9 +106,9 @@ namespace bbitk
     bbSetOutputSize(vsz);
 
     typename itkImageType::SpacingType sp = im->GetSpacing();
-    std::vector<float> vsp;
+    std::vector<double> vsp;
     for (unsigned int i=0;i<dim;++i) 
-       vsp.push_back(sp[i]);
+       vsp.push_back(double(sp[i]));
        
  // brute hack to avoid failure of most black boxes that expects 3D images. // JPR
     if (dim==2)