diff --git a/examples/referenceCubicTexture3D/cubicPrefilter3D.hpp b/examples/referenceCubicTexture3D/cubicPrefilter3D.hpp index 893dea1..d1e212d 100644 --- a/examples/referenceCubicTexture3D/cubicPrefilter3D.hpp +++ b/examples/referenceCubicTexture3D/cubicPrefilter3D.hpp @@ -32,7 +32,7 @@ policies, either expressed or implied. When using this code in a scientific project, please cite one or all of the following papers: -* Daniel Ruijters and Philippe Thévenaz, +* Daniel Ruijters and Philippe Thévenaz, GPU Prefilter for Accurate Cubic B-Spline Interpolation, The Computer Journal, vol. 55, no. 1, pp. 15-20, January 2012. http://dannyruijters.nl/docs/cudaPrefilter3.pdf @@ -82,7 +82,7 @@ void SamplesToCoefficients3DZ( // process lines in z-direction const uint startIdx = y * width + x; const uint slice = height * width; - ConvertToInterpolationCoefficients(volume + startIdx, height, slice * sizeof(float)); + ConvertToInterpolationCoefficients(volume + startIdx, depth, slice * sizeof(float)); } //--------------------------------------------------------------------------