I put together an add on to do slit scan and time delays.
It works as an object that you can feed video frames into and get distorted or delayed video frames out based on a gray scale distortion map. it works a bit like this AE plug in, but in real time: http://help.adobe.com/en-US/AfterEffect-…-7a52a.html
First, ofxMacFileDialog had to be replaced by ofxFileDialog (http://cya-alpha.googlecode.com/svn/tru-…-FileDialog). However I get a linker error “undefined reference to _GetOpenFileNameA@4”. My guess is that ofxFileDialog addon relies on windows libraries for the GetOpenFileName function, which are not available. An expert insight would be much appreciated.
@boba
Ahh, yeah the file dialog stuff is OS specific I forgot about that. I’ll take a look at doing a cross platform file dialog thing and putting that in. Unless there is one floating around?
@igoumeninja
the latest version of ofMath (.0061) the map function is:
By looking at the ofxFileDialog I mentioned, it seems its intent was to make it multiplatform (and it is based on ofxMacFileDialog) notwithstanding the fact that it is not (working on my windows machine).
I changed the file handling to ofxFileDialog that should work for both windows + mac. (Thanks to Brett @ the Rockwell Group lab for putting that together). Should be windows ready now – still no machine to test on ~
I’ve also added a 4th parameter to ofxSlitScan::setup that allows you specify image type of (grayscale, rgb, or rgba) to make it more flexible.