]> Creatis software - bbtk.git/commitdiff
2163 BBTK Bug New High vtk package concatImage box not support 3D input images
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Wed, 6 Nov 2013 13:10:31 +0000 (14:10 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Wed, 6 Nov 2013 13:10:31 +0000 (14:10 +0100)
packages/vtk/src/bbvtkConcatImages.cxx

index 04d3e8f4e4d2fa7ce0a2ace4c66382a470b8977c..1367ec761bf1ad6fa23e6274539ac27d1cfde41c 100644 (file)
@@ -159,8 +159,8 @@ namespace bbvtk
 
           int blocksize;
           int scalarSize=bbGetInputIn()[0]->GetScalarSize();
-          void *pImage = mConcat->GetScalarPointer();
-          void *sourcePointer;
+          char *pImage = (char*)mConcat->GetScalarPointer();
+          char *sourcePointer;
 
 //EED     int index_lignes, index_colonnes, index_components;
        
@@ -173,9 +173,9 @@ namespace bbvtk
                }
              bbGetInputIn()[index_image]->GetDimensions(curDim);
              blocksize = curDim[0]*curDim[1]*curDim[2]*nbComponents*scalarSize;
-              sourcePointer = bbGetInputIn()[index_image]->GetScalarPointer();
+          sourcePointer = (char*)bbGetInputIn()[index_image]->GetScalarPointer();
              memcpy(pImage, sourcePointer,blocksize);
-              pImage = pImage+blocksize;
+          pImage = pImage+blocksize;
 
 //EED 2013 oct 29 
 //EED        for(index_lignes=0; index_lignes<dim[0];index_lignes++)