X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicer.cxx;h=89ea9786e61598739c934d84dc06e31632e7e2df;hb=f57924a2649534451ac1ae5a2bdc63e0b6a0092d;hp=abed78cc58b9fdf8444ff039f8c466762455fdc6;hpb=48d89d66788d01a4fcce97bd58681e0e9e1ce057;p=clitk.git diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index abed78c..89ea978 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -748,7 +748,7 @@ void vvSlicer::AdjustResliceToSliceOrientation(vtkImageReslice *reslice) origin[this->SliceOrientation] -= mImageReslice->GetOutput()->GetOrigin()[this->SliceOrientation]; origin[this->SliceOrientation] /= mImageReslice->GetOutput()->GetSpacing()[this->SliceOrientation]; // Step 2: round to superior grid positionInc - origin[this->SliceOrientation] = itk::Math::Ceil(origin[this->SliceOrientation]); + origin[this->SliceOrientation] = itk::Math::Ceil(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]; @@ -896,7 +896,7 @@ void vvSlicer::ConvertImageToImageDisplayExtent(vtkImageData *sourceImage, const dExtents[i] = (dExtents[i]- targetImage->GetOrigin()[i/2]) / targetImage->GetSpacing()[i/2]; // Round to nearest - targetExtent[i] = itk::Math::Round(dExtents[i]); + targetExtent[i] = itk::Math::Round(dExtents[i]); } } //----------------------------------------------------------------------------