This one is not fit for the job it seems, especially since the input data will often be only 6x6x6.
I'm probably gonna need a more linear than cubic interpolator here.
That's Apache Commons Math TricubicInterpolator, comparing 64x64x64 reference output with interpolated input from 2x2x2 to 16x16x16 sizes.
And solved! that's a bug Apache Commons Math TricubicInterpolator.
Genuinely curious. What is that data used for?
+Dhaiwat Patel color correction for display calibration purposes 🙂