From: Eduardo DAVILA Date: Tue, 18 Feb 2014 16:11:04 +0000 (+0100) Subject: 2309 creaContours Bug New High Conflict with OFFSET mhd parameter X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=6c905248260709012e018c112dab06da8deecede;p=creaContours.git 2309 creaContours Bug New High Conflict with OFFSET mhd parameter --- diff --git a/lib/kernel_ManagerContour_NDimensions/KernelManagerContour.cxx b/lib/kernel_ManagerContour_NDimensions/KernelManagerContour.cxx index 5f06fb8..3f4a144 100644 --- a/lib/kernel_ManagerContour_NDimensions/KernelManagerContour.cxx +++ b/lib/kernel_ManagerContour_NDimensions/KernelManagerContour.cxx @@ -114,12 +114,15 @@ void KernelManagerContour::setVectImages(std::vector vectimg) vtkImageChangeInformation* change = vtkImageChangeInformation::New(); change->SetInformationInput(img); change->SetInputConnection(img->GetProducerPort()); - img->GetSpacing(spc); change->SetOutputSpacing(1,1,1); - change->Update(); +//EED 18 fev 2014 + change->SetOutputOrigin (0, 0, 0); + + change->Update(); vectspc.clear(); + vectspc.push_back(spc[0]); vectspc.push_back(spc[1]); vectspc.push_back(spc[2]);