]> Creatis software - creaContours.git/commitdiff
2309 creaContours Bug New High Conflict with OFFSET mhd parameter
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Tue, 18 Feb 2014 16:11:04 +0000 (17:11 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Tue, 18 Feb 2014 16:11:04 +0000 (17:11 +0100)
lib/kernel_ManagerContour_NDimensions/KernelManagerContour.cxx

index 5f06fb8a41bc66236aa37f9b676a249cba92f671..3f4a144a4ba9afb48eead9f98a17b6835b497922 100644 (file)
@@ -114,12 +114,15 @@ void KernelManagerContour::setVectImages(std::vector<vtkImageData*> 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]);