X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIOGimmickView.cpp;h=47aa9cb2f1b817e8ec386fae312d88481f139cf0;hb=refs%2Fheads%2Fvtk8itk4wx3-mingw64;hp=0a0dd0c13c18a557ff2cacf2c336472476f3e19b;hpb=5ce273b1e5a79911e2582e16adc02f0c9505d5d2;p=creaImageIO.git diff --git a/src/creaImageIOGimmickView.cpp b/src/creaImageIOGimmickView.cpp index 0a0dd0c..47aa9cb 100644 --- a/src/creaImageIOGimmickView.cpp +++ b/src/creaImageIOGimmickView.cpp @@ -143,6 +143,7 @@ namespace creaImageIO /// Finalize void GimmickView::Finalize() { + printf("EED GimmickView::Finalize \n"); } //====================================================================== @@ -527,7 +528,7 @@ void GimmickView::ReadImagesNotThreaded(std::vector& s, std::vect OutputAttr i_attr, double i_zspc) { OutStrGimmick out; - vtkImageData* first = mReader.GetImage( im.front()); + vtkImageData* first = mReader.GetImage( im.front() ); out.img = vtkImageData::New(); int ext[6]; //EED 2017-01-01 Migration VTK7 @@ -562,7 +563,6 @@ void GimmickView::ReadImagesNotThreaded(std::vector& s, std::vect out.img->AllocateScalars(first->GetScalarType(), first->GetNumberOfScalarComponents()); #endif - unsigned long imsize = dim[0] * dim[1]; imsize = imsize * dim[2] ; // deal with multiframes here // differents formats char , short, etc... @@ -572,12 +572,13 @@ void GimmickView::ReadImagesNotThreaded(std::vector& s, std::vect //!!!!out.img->SetSpacing(i_zspc); int slice = 0; std::vector::iterator it; + for (it=im.begin(); it!=im.end(); ++it) { vtkImageData* cur = mReader.GetImage( (*it) ); memcpy(out.img->GetScalarPointer(0,0,slice), cur->GetScalarPointer(0,0,0), imsize); slice++; - } + } // for it getAttributes(im.front(),out.infos, i_attr); o_output.push_back(out); @@ -766,7 +767,6 @@ void GimmickView::ReadImagesNotThreaded(std::vector& s, std::vect //EED UnMosaic step... //How to verifie if is a mosaic file , with how many images inside?? - }