Skip to content

Commit

Permalink
Update cubicPrefilter3D.hpp
Browse files Browse the repository at this point in the history
small bug fix in SamplesToCoefficients3DZ
  • Loading branch information
DannyRuijters committed Feb 27, 2017
1 parent 6bf740e commit d52d23c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/referenceCubicTexture3D/cubicPrefilter3D.hpp
Expand Up @@ -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
Expand Down Expand Up @@ -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));
}

//--------------------------------------------------------------------------
Expand Down

0 comments on commit d52d23c

Please sign in to comment.