Jump to content
  • Advertisement
Sign in to follow this  
mlt

Computing the BSpline Kernel?

This topic is 3343 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

On wiki in the section: Uniform cubic B-splines http://en.wikipedia.org/wiki/B-spline the matrix form of a cubic BSpline is given. I have found the following implementation for this kernel: BSplineKernel( double u) { double absValue = vnl_math_abs( u ); double sqrValue = vnl_math_sqr( u ); if ( absValue < 1.0 ) { return ( 4.0 - 6.0 * sqrValue + 3.0 * sqrValue * absValue ) / 6.0; } else if ( absValue < 2.0 ) { return ( 8.0 - 12 * absValue + 6.0 * sqrValue - sqrValue * absValue ) / 6.0; } else { return 0.0; } } But the only resemblence I see is the division with 6. Out of curiosity does the above implementation relate to the formula on the wiki page or is it another way of expressing a cubic BSpline kernel??

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!