]> Creatis software - clitk.git/commitdiff
Merge branch 'master' of git.creatis.insa-lyon.fr:clitk
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Fri, 1 Feb 2013 08:11:06 +0000 (09:11 +0100)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Fri, 1 Feb 2013 08:11:06 +0000 (09:11 +0100)
Conflicts:
vv/vvSlicer.cxx

vv/vvSlicer.cxx

index 0c7852ad12e83b2c31518b4b3e75e8f82cbcacdc..30a8f1034931e169815e884c2ada69129a72ae4c 100644 (file)
@@ -901,11 +901,13 @@ void vvSlicer::AdjustResliceToSliceOrientation(vtkImageReslice *reslice)
   // Step 1: from world coordinates to image coordinates
   origin[this->SliceOrientation] -= mImageReslice->GetOutput()->GetOrigin()[this->SliceOrientation];
   origin[this->SliceOrientation] /= mImageReslice->GetOutput()->GetSpacing()[this->SliceOrientation];
+
   // Step 2: round to nearest grid positionInc. This has been validated as the only
   // way to have something consistent with the thickness of a 2D slice visible on the
   // other slices. The thickness is accounted for so if the 2D slice is to thin and
   // between two slices, one will never be able to see this 2D slice (bug #1883).
   origin[this->SliceOrientation] = itk::Math::Round<double>(origin[this->SliceOrientation]);
+
   // Step 3: back to world coordinates
   origin[this->SliceOrientation] *= mImageReslice->GetOutput()->GetSpacing()[this->SliceOrientation];
   origin[this->SliceOrientation] += mImageReslice->GetOutput()->GetOrigin()[this->SliceOrientation];