]> Creatis software - clitk.git/commitdiff
UseBorder off by default -> seems buggy ?
authordsarrut <david.sarrut@gmail.com>
Wed, 25 May 2011 06:00:58 +0000 (08:00 +0200)
committerdsarrut <david.sarrut@gmail.com>
Wed, 25 May 2011 06:00:58 +0000 (08:00 +0200)
itk/clitkAutoCropFilter.txx

index 0005eb8665b2d2c2626ea34ab54a55bddff37d1e..71f9ab08b0f07e93e3c3ec3495cef208e104c563 100644 (file)
@@ -38,7 +38,7 @@ namespace clitk {
   AutoCropFilter():itk::ImageToImageFilter<ImageType, ImageType>() {
     this->SetNumberOfRequiredInputs(1);
     m_BackgroundValue  = 0;
-    UseBorderOn();
+    UseBorderOff();
   }
   //--------------------------------------------------------------------
 
@@ -97,6 +97,8 @@ namespace clitk {
     autoCropFilter->SetInput(imageToLabelFilter->GetOutput());
     //    autoCropFilter->ReleaseDataFlagOff(); 
     if (GetUseBorder()) {
+      DD("UseBorder seems buggy ?");
+      exit(0);
       typename ImageType::SizeType s;
       for(uint i=0; i<ImageType::ImageDimension; i++) s[i] = 1;
       autoCropFilter->SetCropBorder(s);