X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src2%2FcreaImageIOGimmickView.cpp;h=01f868ebc0342048e13961f4da10412843a205fb;hb=e4a54c9026a2a0c17e3be0b5915c34688a9385ad;hp=b0d9041e6c634c07dddcd73a808034aa172b77c3;hpb=9ae1b3a039da8e28aa41c6963744bfa86c382a35;p=creaImageIO.git diff --git a/src2/creaImageIOGimmickView.cpp b/src2/creaImageIOGimmickView.cpp index b0d9041..01f868e 100644 --- a/src2/creaImageIOGimmickView.cpp +++ b/src2/creaImageIOGimmickView.cpp @@ -309,7 +309,7 @@ void GimmickView::ReadImagesNotThreaded(std::vector& s,std::vecto out->SetScalarType(first->GetScalarType()); int ext[6]; first->GetExtent(ext); - ext[5] = im.size(); + ext[5] = im.size()-1; out->SetExtent(ext); // LG : TODO : Z Spacing ? @@ -320,10 +320,10 @@ void GimmickView::ReadImagesNotThreaded(std::vector& s,std::vecto int dim[3]; first->GetDimensions(dim); - unsigned long imsize = + unsigned long imsize = dim[0] * dim[1];/* ( (unsigned long)first->GetScalarPointer(0,1,0) - (unsigned long)first->GetScalarPointer(0,0,0)) - *dim[1]; + *dim[1];*/ int slice = 0; std::vector::iterator it; @@ -337,12 +337,13 @@ void GimmickView::ReadImagesNotThreaded(std::vector& s,std::vecto // std::cout << "src="<