]> Creatis software - clitk.git/blobdiff - registration/clitkMultipleBSplineDeformableTransformInitializer.txx
Let vvSlicer handle visibility
[clitk.git] / registration / clitkMultipleBSplineDeformableTransformInitializer.txx
index 1ee4be96f7d42740e6072131c3cde21a103167aa..7c9bd5a31ee67c846637308822552cf72f1c0ae5 100644 (file)
@@ -3,7 +3,7 @@
 
   Authors belong to:
   - University of LYON              http://www.universite-lyon.fr/
-  - Léon Bérard cancer center       http://oncora1.lyon.fnclcc.fr
+  - Léon Bérard cancer center       http://www.centreleonberard.fr
   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
 
   This software is distributed WITHOUT ANY WARRANTY; without even
@@ -14,7 +14,7 @@
 
   - BSD        See included LICENSE.txt file
   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-======================================================================-====*/
+===========================================================================**/
 #ifndef __clitkMultipleBSplineDeformableTransformInitializer_txx
 #define __clitkMultipleBSplineDeformableTransformInitializer_txx
 #include "clitkMultipleBSplineDeformableTransformInitializer.h"
@@ -197,6 +197,7 @@ namespace clitk
     typename CoefficientReaderType::Pointer coeffReader = CoefficientReaderType::New();
     std::vector<typename CoefficientImageType::Pointer> coefficientImages;
     unsigned nLabels = m_Transform->GetnLabels();
+    coefficientImages.resize(nLabels);
 
     int dotpos = s.length() - 1;
     while (dotpos >= 0 && s[dotpos] != '.')
@@ -208,7 +209,7 @@ namespace clitk
       osfname << s.substr(0, dotpos) << '_' << i << s.substr(dotpos);
       coeffReader->SetFileName(osfname.str());
       if (m_Verbose)
-        std::cout << "Reading initial coefficients from file: " << osfname << "..." << std::endl;
+        std::cout << "Reading initial coefficients from file: " << osfname.str() << "..." << std::endl;
       coeffReader->Update();
       coefficientImages[i] = coeffReader->GetOutput();
     }