X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=bbtk%2Fsrc%2FbbmaracasvisuAxeVolume.cxx;h=79e5ac0cf0fbfb4ccbed8ce1268a661ec33599f3;hb=a7017a8ade695bd14a4c7ee70b197d63b5e76765;hp=53c5d385544f9480f72a17e724c35ffcfce68719;hpb=bb69ea7be3f8baa4122fb51d04b4ec6ce906c809;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuAxeVolume.cxx b/bbtk/src/bbmaracasvisuAxeVolume.cxx index 53c5d38..79e5ac0 100644 --- a/bbtk/src/bbmaracasvisuAxeVolume.cxx +++ b/bbtk/src/bbmaracasvisuAxeVolume.cxx @@ -69,13 +69,15 @@ void AxeVolume::Process() int i,j,k; - int sizeLstPointR = bbGetInputlstPointR().size(); - int iAxe,sizeAxe=bbGetInputlstPointX().size(); + int sizeLstPointR = bbGetInputlstPointR().size(); + int iAxe,sizeAxe = bbGetInputlstPointX().size(); double rx,ry,rz; double r,rr; unsigned short *p; - int sizeImage = sizeX*sizeY*sizeZ; - double px,py,pz,px1,py1,pz1,px2,py2,pz2; + int sizeImage = sizeX*sizeY*sizeZ; + double px,py,pz; + double px1,py1,pz1; + double px2,py2,pz2; // Clean image p = (unsigned short*)mimage->GetScalarPointer (0, 0, 0); @@ -87,16 +89,16 @@ void AxeVolume::Process() for (iAxe=0 ; iAxe=1) { r = bbGetInputlstPointR()[ bbGetInputlstPointR().size()-1 ] * invSpc[0]; } else { r = 1; } - } else { - r = bbGetInputlstPointR()[ iAxe ]* invSpc[0]; } px = bbGetInputlstPointX()[iAxe] * invSpc[0]; py = bbGetInputlstPointY()[iAxe] * invSpc[1];