return vv_image;
}
vtkImageData *image = vtkImageData::New();
- image->DeepCopy(connector->GetOutput());
+ image->ShallowCopy(connector->GetOutput());
vv_image->AddImage(image);
}
vv_image->SetTimeSpacing(input->GetSpacing()[Dim-1]);
return vv_image;
}
vtkImageData *image = vtkImageData::New();
- image->DeepCopy(connector->GetOutput());
+ image->ShallowCopy(connector->GetOutput());
vv_image->AddImage(image);
}
return vv_image;
//--------------------------------------------------------------------
vvImage::~vvImage()
{
+ DD("vvImage got deleted!");
Reset();
}
//--------------------------------------------------------------------
std::cerr << "Error while setting vvImage from ITK (MERGEDWITHTIME)"
<< " " << err << std::endl;
}
- vtkImageData *image = vtkImageData::New();
- image->DeepCopy(connector->GetOutput());
+ //vtkImageData *image = vtkImageData::New();
+ //image->ShallowCopy(connector->GetOutput());
+ vtkImageData *image = connector->GetOutput();
mImage->AddImage(image);
}
} else {