if ( (p2[0]>=0) && (p2[0]<maxX) && (p2[1]>=0) && (p2[1]<maxY) &&(p2[2]>=0) && (p2[2]<maxZ) )
{
- gl = bbGetInputImage()->GetScalarComponentAsDouble(p2[0], p2[1], p2[2],0);
+ gl = bbGetInputImage()->GetScalarComponentAsDouble(round(p2[0]), round(p2[1]), round(p2[2]),0);
} else {
gl=0;
}
bbSetInputColorLevel(500);
bbSetInputColorWindow(500);
bbSetInputTransform(NULL);
+ bbSetInputExternalLookupTable(NULL);
firsttime = true;
colors = NULL;