+
+
+void KernelManagerContour::setVectImages(std::vector<vtkImageData*> vectimg)
+{
+ double spc[3];
+ std::vector<double> vectspc;
+
+ for(int i = 0; i < (int)(vectimg.size()); i++){
+ vtkImageData* img = vectimg[i];
+ vtkImageChangeInformation* change = vtkImageChangeInformation::New();
+ change->SetInformationInput(img);
+ change->SetInputConnection(img->GetProducerPort());
+
+ img->GetSpacing(spc);
+ change->SetOutputSpacing(1,1,1);
+ change->Update();
+
+ vectspc.clear();
+ vectspc.push_back(spc[0]);
+ vectspc.push_back(spc[1]);
+ vectspc.push_back(spc[2]);
+ vectimagesSpacing.push_back(vectspc);
+ vectimg[i] = change->GetOutput();
+ }
+