X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImage.cxx;h=f75d3212267441b0ee75e2a0ffe221d00ad9066a;hb=d55f025b18f68066a52b8f33c2dc6481e82c2580;hp=9bed494922a99f3c285e37b0aada061676255d4f;hpb=a365564201d98b704f43e1f52124f55f5e110d2e;p=clitk.git diff --git a/common/vvImage.cxx b/common/vvImage.cxx index 9bed494..f75d321 100644 --- a/common/vvImage.cxx +++ b/common/vvImage.cxx @@ -261,6 +261,15 @@ const std::vector< vtkSmartPointer >& vvImage::GetTransform() //-------------------------------------------------------------------- +//-------------------------------------------------------------------- +void vvImage::InitializeTransform() +{ + for (int i = 0; i < mTransform.size(); i++) + mTransform[i]->Identity(); +} +//-------------------------------------------------------------------- + + //-------------------------------------------------------------------- std::vector< std::vector > vvImage::GetDirection() { @@ -281,7 +290,7 @@ std::vector< std::vector > 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);