From: Eduardo DAVILA Date: Wed, 8 Mar 2017 09:08:47 +0000 (+0100) Subject: #3070 creaMaracasVisu Feature New Normal - bbmaracasvisuAxeVolume with fopenmp X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=85e081cab1f60fcb91d3c6dcd4bf2ad3a0b97f36;p=creaMaracasVisu.git #3070 creaMaracasVisu Feature New Normal - bbmaracasvisuAxeVolume with fopenmp --- diff --git a/bbtk/src/bbmaracasvisuAxeVolume.cxx b/bbtk/src/bbmaracasvisuAxeVolume.cxx index 5cb228e..24d2ef0 100644 --- a/bbtk/src/bbmaracasvisuAxeVolume.cxx +++ b/bbtk/src/bbmaracasvisuAxeVolume.cxx @@ -93,27 +93,32 @@ void AxeVolume::Process() mimage->SetOrigin(bbGetInputIn()->GetOrigin()); mimage->SetScalarType( outputformat ); mimage->AllocateScalars(); - int i,j,k; + int sizeLstPointR = bbGetInputlstPointR().size(); int iAxe,sizeAxe = bbGetInputlstPointX().size(); - double rx,ry,rz; - double r,rr; - unsigned short *p; + int ii; int sizeImage = sizeX*sizeY*sizeZ; - double px,py,pz; - double px1,py1,pz1; - double px2,py2,pz2; + unsigned short *p; + // Clean image p = (unsigned short*)mimage->GetScalarPointer (0, 0, 0); - for ( i=0 ; i