C++ openFrameworks addon with a set of template classes for doing various types of interpolations on data with any number of dimensions. You can feed the system an arbitrary number of data, then resample at any resolution, or ask for the value at any percentage along the data. Input data can be floats (for 1D splines, Vec2f (for 2D splines), Vec3f (for 3D splines), or even matrices, or custom data types (e.g. biped pose). Demo at www.memo.tv/msainterpolator
Forks
Forks pushed to more recently than memoakten/ofxMSAInterpolator itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.
README
MyAddon
Introduction
C++ openFrameworks addon with a set of template classes for doing various types of interpolations on data with any number of dimensions. You can feed the system an arbitrary number of data, then resample at any resolution, or ask for the value at any percentage along the data. Input data can be floats (for 1D splines, Vec2f (for 2D splines), Vec3f (for 3D splines), or even matrices, or custom data types (e.g. biped pose). Demo at www.memo.tv/msainterpolatorLicence
The code in this repository is available under the MIT License. Copyright (c) 2008-2012 Memo Akten, www.memo.tv The Mega Super Awesome Visuals CompanyInstallation
Copy to your openFrameworks/addons folder.Dependencies
- MSACore
Compatibility
openFrameworks 0072 I am generally testing only with openFrameworks, however it should work with Cinder too. If it doesn't, please file an issue.Known issues
noneVersion history
v2.1 23/09/2012
- compatible with OF0072
- renamed (uppercase) MSA namespace to (lowercase) msa. (kept MSA as an alias for backwards compatibility)
- interpolating by distance seems broken
v2.0
- move to centralized MSALibs (requires MSACore)
- everything is msa:: namespace
- renamed useDistance to useLength (and all relevant functions)
- using length now uses length of interpolated spline, not linear
- fixed rare crash bug
v1.1 07/04/2009
- changed license to revised BSD (a lot more more permissive than GPL)
v1.0 03/10/08
- initial version
ofxAddons