///Reads Images (Non Threaded)
void GimmickView::ReadImagesNotThreaded(std::vector<vtkImageData*>& s, std::vector<std::string> im, int dimension)
{
+ mReader.Stop();
/* remember!
// Create the output data
if (im.size()==1)
{
- // O0.
+ vtkImageData * out=vtkImageData::New();
+ out->ShallowCopy(mReader.GetImage(im.front()));
+ s.push_back(out);
}
else if (im.size()>1) // Test inutile ? JPR
{
{
// n*2D to 3D
vtkImageData* out = vtkImageData::New();
- out->CopyStructure(first);
+// out->CopyStructure(first);
out->SetScalarType(first->GetScalarType());
out->SetNumberOfScalarComponents(first->GetNumberOfScalarComponents());
int ext[6];
// Order the file name vector
double spc[3];
- out->GetSpacing(spc);
+ first->GetSpacing(spc);
spc[2]=OrderTheFileNameVector(im);
out->SetSpacing(spc);
int slice = 0;