Jump to content
  • Advertisement
Sign in to follow this  
mlt

Computing the BSpline Kernel?

This topic is 3265 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!