From: Eduardo DAVILA Date: Wed, 6 Nov 2013 13:10:31 +0000 (+0100) Subject: 2163 BBTK Bug New High vtk package concatImage box not support 3D input images X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=ef004bb3e47e63c6d41aebcb6c4d8954167ab832;p=bbtk.git 2163 BBTK Bug New High vtk package concatImage box not support 3D input images --- diff --git a/packages/vtk/src/bbvtkConcatImages.cxx b/packages/vtk/src/bbvtkConcatImages.cxx index 04d3e8f..1367ec7 100644 --- a/packages/vtk/src/bbvtkConcatImages.cxx +++ b/packages/vtk/src/bbvtkConcatImages.cxx @@ -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