]> Creatis software - bbtk.git/commitdiff
Spacing type changed to double
authorEsteban Correa <correa@EI-MO-349.creatis.insa-lyon.fr>
Mon, 15 Apr 2013 15:15:52 +0000 (17:15 +0200)
committerEsteban Correa <correa@EI-MO-349.creatis.insa-lyon.fr>
Mon, 15 Apr 2013 15:15:52 +0000 (17:15 +0200)
packages/itk/src/bbitkImageProperties.cxx
packages/itk/src/bbitkImageProperties.h

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)
index a1c90dfd8b6a3d80b10fdbb2ff2a6676d84f5773..5782da9dd03d3f8b35f2ebb8b7969bbf253d1818 100644 (file)
@@ -69,7 +69,7 @@ namespace bbitk
     BBTK_DECLARE_OUTPUT(LargestPossibleRegion,anyImageRegion);
     BBTK_DECLARE_OUTPUT(Index,std::vector<int>);
     BBTK_DECLARE_OUTPUT(Size,std::vector<int>);
-    BBTK_DECLARE_OUTPUT(Spacing,std::vector<float>);
+    BBTK_DECLARE_OUTPUT(Spacing,std::vector<double>);
        BBTK_DECLARE_OUTPUT(MinMax,std::vector<float>);
     BBTK_PROCESS(DoIt);
     void DoIt();
@@ -93,7 +93,7 @@ namespace bbitk
   BBTK_OUTPUT(ImageProperties,LargestPossibleRegion,"Global extent of the image",anyImageRegion,"");
   BBTK_OUTPUT(ImageProperties,Index,"Origin of the image",std::vector<int>,"image index");
   BBTK_OUTPUT(ImageProperties,Size,"Size in each dimension",std::vector<int>,"image size");
-  BBTK_OUTPUT(ImageProperties,Spacing,"Size of the voxels",std::vector<float>,"voxel size");
+  BBTK_OUTPUT(ImageProperties,Spacing,"Size of the voxels",std::vector<double>,"voxel size");
   BBTK_OUTPUT(ImageProperties,MinMax,"Minimum and the maximum intensity values of an image",std::vector<float>,"");
   BBTK_END_DESCRIBE_BLACK_BOX(ImageProperties);
   //=================================================================