]> Creatis software - bbtk.git/blobdiff - packages/itk/src/bbitkImageProperties.cxx
3480 Bug typeid in Macos
[bbtk.git] / packages / itk / src / bbitkImageProperties.cxx
index 17b07cfc4ae520647d3d8b5dee96644c9fe2ee06..d2f8890faafc347cdaee1b8d20a66f61b87fa467 100644 (file)
@@ -68,9 +68,7 @@ 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");
   }
 
   /** 
@@ -79,25 +77,17 @@ 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) 
@@ -109,8 +99,6 @@ namespace bbitk
     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);
@@ -126,7 +114,6 @@ 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;
@@ -149,12 +136,8 @@ 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");
+      bbtkDebugDecTab("Core",9);
   }