]> Creatis software - clitk.git/blobdiff - common/vvImage.cxx
Set Directions to CropImage Like
[clitk.git] / common / vvImage.cxx
index 9bed494922a99f3c285e37b0aada061676255d4f..f75d3212267441b0ee75e2a0ffe221d00ad9066a 100644 (file)
@@ -261,6 +261,15 @@ const std::vector< vtkSmartPointer<vtkTransform> >& vvImage::GetTransform()
 //--------------------------------------------------------------------
 
 
+//--------------------------------------------------------------------
+void vvImage::InitializeTransform()
+{
+  for (int i = 0; i < mTransform.size(); i++)
+    mTransform[i]->Identity();
+}
+//--------------------------------------------------------------------
+
+
 //--------------------------------------------------------------------
 std::vector< std::vector<double> > vvImage::GetDirection()
 {
@@ -281,7 +290,7 @@ std::vector< std::vector<double> > vvImage::GetDirection()
 #if VTK_MAJOR_VERSION <= 6
           direction1.push_back((*matrix)[i][j]);
 #else
-          direction1.push_back((*matrix).GetElement(i,j))
+          direction1.push_back((*matrix).GetElement(i,j));
 #endif
       }
       direction0.push_back(direction1);