2d.imageData.object.nan

ImageData.data converts NaN to 0