I need to implement cubic B spline in 3D in Matlab, I have a control point matrix in 104x54x104 size and my grid is 336x166x336
i know that B-Spline is defined by 64 control points (the data values within a 4X4X4 voxel neighborhood), and evaluated inside the unit cube bounded by the eight central voxels, with t, s and r representing distances in the x, y and z direction respectively. My problem is that i dont know how to get the distance between the control points and grid because this distance should be between 0 and 1.
Anybody can help me?
i know that B-Spline is defined by 64 control points (the data values within a 4X4X4 voxel neighborhood), and evaluated inside the unit cube bounded by the eight central voxels, with t, s and r representing distances in the x, y and z direction respectively. My problem is that i dont know how to get the distance between the control points and grid because this distance should be between 0 and 1.
Anybody can help me?