]> Creatis software - clitk.git/commitdiff
slightly decrease template compilation time
authordsarrut <dsarrut>
Tue, 2 Mar 2010 13:28:42 +0000 (13:28 +0000)
committerdsarrut <dsarrut>
Tue, 2 Mar 2010 13:28:42 +0000 (13:28 +0000)
common/clitkImageToImageGenericFilter.txx
vv/vvToolCropImage.h

index 6febe19f9440d515c27f2e527eee2e82b3d781b8..6d2a7cd32df402039a9487b4c00a27b46c5e72b0 100644 (file)
@@ -3,8 +3,8 @@
   Program:   vv
   Module:    $RCSfile: clitkImageToImageGenericFilter.txx,v $
   Language:  C++
-  Date:      $Date: 2010/03/01 15:37:41 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2010/03/02 13:28:42 $
+  Version:   $Revision: 1.8 $
   Author :   Joel Schaerer <joel.schaerer@creatis.insa-lyon.fr>
   David Sarrut <david.sarrut@creatis.insa-lyon.fr>
 
 
   =========================================================================*/
 
-//--------------------------------------------------------------------
-template<class ImageType> 
-void clitk::ImageToImageGenericFilterBase::SetNextOutput(typename ImageType::Pointer output) {
-  if (mOutputFilenames.size())
-    {
-      clitk::writeImage<ImageType>(output, mOutputFilenames.front(), mIOVerbose);
-      mOutputFilenames.pop_front();
-    }
-  if (mInputVVImages.size()) //We assume that if a vv image is set as input, we want one as the output
-    mOutputVVImages.push_back(vvImageFromITK<ImageType::ImageDimension,typename ImageType::PixelType>(output));
-}
-//--------------------------------------------------------------------
-
-
-//--------------------------------------------------------------------
-template<class ImageType> 
-typename ImageType::Pointer clitk::ImageToImageGenericFilterBase::GetInput(unsigned int n) {
-  if (mInputFilenames.size() > n) {
-    return clitk::readImage<ImageType>(mInputFilenames[n], mIOVerbose);
-  }
-  else if (mInputVVImages.size() > n)
-    return typename ImageType::Pointer(const_cast<ImageType*>(vvImageToITK<ImageType>(mInputVVImages[n]).GetPointer()));
-  else
-    {
-      assert(false); //No input, this shouldn't happen
-      return typename ImageType::Pointer(NULL);
-    }
-}
-//--------------------------------------------------------------------
+// //--------------------------------------------------------------------
+// template<class ImageType> 
+// void clitk::ImageToImageGenericFilterBase::SetNextOutput(typename ImageType::Pointer output) {
+//   if (mOutputFilenames.size())
+//     {
+//       clitk::writeImage<ImageType>(output, mOutputFilenames.front(), mIOVerbose);
+//       mOutputFilenames.pop_front();
+//     }
+//   if (mInputVVImages.size()) //We assume that if a vv image is set as input, we want one as the output
+//     mOutputVVImages.push_back(vvImageFromITK<ImageType::ImageDimension,typename ImageType::PixelType>(output));
+// }
+// //--------------------------------------------------------------------
+
+
+// //--------------------------------------------------------------------
+// template<class ImageType> 
+// typename ImageType::Pointer clitk::ImageToImageGenericFilterBase::GetInput(unsigned int n) {
+//   if (mInputFilenames.size() > n) {
+//     return clitk::readImage<ImageType>(mInputFilenames[n], mIOVerbose);
+//   }
+//   else if (mInputVVImages.size() > n)
+//     return typename ImageType::Pointer(const_cast<ImageType*>(vvImageToITK<ImageType>(mInputVVImages[n]).GetPointer()));
+//   else
+//     {
+//       assert(false); //No input, this shouldn't happen
+//       return typename ImageType::Pointer(NULL);
+//     }
+// }
+// //--------------------------------------------------------------------
 
 
 //--------------------------------------------------------------------
index ebd5b8311593a2a32717365d5944a25226f34d1d..2a233c28932a37ccfdc30278a59992b42301a0af 100644 (file)
@@ -3,8 +3,8 @@
   Program:   vv
   Module:    $RCSfile: vvToolCropImage.h,v $
   Language:  C++
-  Date:      $Date: 2010/03/01 15:38:09 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2010/03/02 13:28:43 $
+  Version:   $Revision: 1.4 $
   Author :   David Sarrut (david.sarrut@creatis.insa-lyon.fr)
 
   Copyright (C) 2010
@@ -67,7 +67,7 @@ public slots:
   static void Initialize() {
     SetToolName("Crop");
     SetToolMenuName("Crop");
-    SetToolIconFilename(":/new/prefix1/icons/binarize.png");
+    SetToolIconFilename(":/new/prefix1/icons/crop.png");
     SetToolTip("Crop image.");
   }