]> Creatis software - creaVtk.git/commitdiff
#2711 creaVtk Feature New Normal new Box ReadMHDPlane
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Tue, 5 Dec 2017 08:04:57 +0000 (09:04 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Tue, 5 Dec 2017 08:04:57 +0000 (09:04 +0100)
bbtk_creaVtk_PKG/src/bbcreaVtkReadMHDPlane.cxx

index 4364ec6ee0f914a9ab2a270c179348bc6f8719bd..48b16035f6e37fc03ab52f1aff6c9413a54d0f1d 100644 (file)
@@ -245,8 +245,8 @@ vtkImageData* ReadMHDPlane::ChangeOrientation(vtkImageData* img)
                int yy;
                int dimY=ext[3]-ext[2]+1;
                int sizeByte=sizeLine*img->GetScalarSize();             
-               void *ptrDst=newImageOrinted->GetScalarPointer() + sizeByte*dimY;
-               void *ptrOrg=img->GetScalarPointer();
+               char *ptrDst=(char*)(newImageOrinted->GetScalarPointer()) + sizeByte*dimY;
+               char *ptrOrg=(char*)(img->GetScalarPointer());
                for (yy=0 ; yy<dimY; yy++)
                {
                        ptrDst=ptrDst-sizeByte;