]> Creatis software - bbtk.git/blobdiff - packages/itk/src/bbitkImageProperties.cxx
#3480 Bug typeid in Macos
[bbtk.git] / packages / itk / src / bbitkImageProperties.cxx
index 7e5f47dbd62272fd195bd9c26da125fb560b9abe..17b07cfc4ae520647d3d8b5dee96644c9fe2ee06 100644 (file)
@@ -68,7 +68,9 @@ namespace bbitk
 
   void ImageProperties::DoIt()
   {
+      printf("EED ImageProperties::DoIt Start \n");
     BBTK_TEMPLATE_ITK_IMAGE_SWITCH(bbGetInputIn().type(),DoIt);
+      printf("EED ImageProperties::DoIt End \n");
   }
 
   /** 
@@ -77,18 +79,25 @@ namespace bbitk
   template<class itkImageType>
   void ImageProperties::DoIt()
   {
+      printf("EED <template>ImageProperties::DoIt Start \n");
     bbtkDebugMessageInc("Core",9,"bbitk::ImageProperties::DoIt<"
                        <<bbtk::TypeName<itkImageType>()
                        <<">()"<<std::endl);
 
     itkImageType* im = bbGetInputIn().get<itkImageType*>();
+      
+      printf("EED <template>ImageProperties::DoIt 1 \n");
+
     unsigned int dim = im->GetImageDimension();
 
+      
     bbSetOutputTypeName(bbtk::TypeName<typename itkImageType::PixelType>());
     bbSetOutputDimension(dim);
     const typename itkImageType::RegionType& r =im->GetLargestPossibleRegion();
     bbSetOutputLargestPossibleRegion(r);
 
+      printf("EED <template>ImageProperties::DoIt 2 \n");
+
     const typename itkImageType::IndexType& ind = r.GetIndex();
     std::vector<int> vind;
     for (unsigned int i=0;i<dim;++i) 
@@ -99,7 +108,9 @@ namespace bbitk
     std::vector<int> vsz;
     for (unsigned int i=0;i<dim;++i) 
        vsz.push_back(sz[i]);
-    
+
+      printf("EED <template>ImageProperties::DoIt 3 \n");
+
   // brute hack to avoid failure of most black boxes that expects 3D images. // JPR
    if (dim==2)
         vsz.push_back(1);
@@ -115,6 +126,7 @@ namespace bbitk
        vog.push_back(1.0);
   
     bbSetOutputOrigin(vog);
+      printf("EED <template>ImageProperties::DoIt 4 \n");
 
     typename itkImageType::SpacingType sp = im->GetSpacing();
     std::vector<double> vsp;
@@ -137,10 +149,15 @@ namespace bbitk
          vminmax.push_back( (float) (minMaxCalculator->GetMinimum()) );
          vminmax.push_back( (float) (minMaxCalculator->GetMaximum()) );          
          bbSetOutputMinMax(vminmax);
-         
+      
+      printf("EED <template>ImageProperties::DoIt 5 \n");
+
+      
     bbtkDebugDecTab("Core",9);
+      printf("EED <template>ImageProperties::DoIt End \n");
   }
-}
-// eo namespace bbtk
+
+
+} // eo namespace bbtk
 
 #endif