Pass Inf and NaN pixel values through to 3D image code
3D image with pixel value in 4th column