int dimXMask = extMask[1]-extMask[0]+1;
int dimYMask = extMask[3]-extMask[2]+1;
int dimZMask = extMask[5]-extMask[4]+1;
-
double background = bbGetInputBackground();
double bgToAnalice = bbGetInputBackgroundToAnalice();
DEF_POINTER_IMAGE_VTK_CREA(vI,ssI,pI,stI, bbGetInputImage() );
DEF_POINTER_IMAGE_VTK_CREA(vM,ssM,pM,stM, bbGetInputMask() );
DEF_POINTER_IMAGE_VTK_CREA(vO,ssO,pO,stO, resultImage );
-
long int k1omp=(double)(size-1)*0.0;
long int k2omp=(double)(size-1)*0.2;
long int k3omp=(double)(size-1)*0.4;
double vMtmpOMP;
double vOtmpOMP;
GETVALUE2_VTK_CREA(vMtmpOMP,pM,stM,i);
-
if (bbGetInputType()==0) //Applay mask to new Image
{
GETVALUE2_VTK_CREA(vItmpOMP,pI,stI,i);
} // if vM
SETVALUE2_VTK_CREA(vOtmpOMP,pO,stO,i);
} // if Type==0
-
if (bbGetInputType()==1) //Modifiy the Input image with the Label value in Mask place
{
if (vMtmpOMP!=bgToAnalice)
SETVALUE2_VTK_CREA(vOtmpOMP,pO,stO,i);
}
} // if Type==1
-
if (bbGetInputType()==2) //Modifiy the Input image with the Mask value
{
if (vMtmpOMP!=bgToAnalice)
SETVALUE2_VTK_CREA(vOtmpOMP,pO,stO,i);
}
} // if Type==2
-
} // for
} //if dim
resultImage->Modified();