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);
for (iAxe=0 ; iAxe<sizeAxe; iAxe++)
{
- if (sizeLstPointR<iAxe)
+ if (iAxe<sizeLstPointR)
{
+ r = bbGetInputlstPointR()[ iAxe ]* invSpc[0];
+ } else {
if (bbGetInputlstPointR().size()>=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];