Jump to content

Are you aware of any Catmull-Rom Spline implementations...


Recommended Posts

Specifically in LabVIEW.

We have an application for image correction that will make use of this class of splines.

Otherwise rolling our own based on DirectX, OpenGL, or implementing based on prior work:

// Interpolate() and PreCompute() are adapted from:

// NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING

// ISBN 0-521-43108-5, page 113, section 3.3.

Link to comment

The Catmull-Rom spline algorithm guarantees that the generated spline path passes through the provided points.

This brings back memories of a project I worked on 10-15 years ago. We bought a vision system solution that was to characterize the performance of an analog pressure gauge and calculate a custom non-linear dial. It appeared that their curve-fit forced the path to go through each measured point and the dials looked horrible - graduation marks bunched together in some points, spread way out in others. There was some inaccuracy in the measurements so the gauges weren't accurate. I changed to a polynomial fit and Bob was my uncle.

:)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.