What software exists for digitizing video to quantify the motion of specific features in the image? I might be willing to use something that's NOT in R, though I'd prefer something in R (or at least with an R intereface). Thanks, Spencer Graves
On Sep 5, 2009, at 5:07 PM, spencerg wrote:> What software exists for digitizing video to quantify the motion > of specific features in the image? I might be willing to use > something that's NOT in R, though I'd prefer something in R (or at > least with an R intereface).A few options that I can think of (2 non-R, 1 R): - If you have access to Matlab, Ty Hedrick (UNC Chapel Hill) has a good digitizing program that can handle 3d digitizing with DLT (but works fine for 2D), automatic point tracking, reads/writes csv. http://www.unc.edu/~thedrick/software1.html - James Rholf's tpsDig (Windows only; http://life.bio.sunysb.edu/ee/rohlf/software.html ) can be used as a general point digitizer. I think you would have to save the videos as image sequences first and reformat the data after. I haven't tried this, but I think it would work. - For one-off, small digitizing projects in R, I have exported videos to jpg sequences, loaded them with read.jpeg(), and used locator() for digitizing. Negatives: (1) lack of flexibility, (2) very hard to go back and fix mistakes, (3) plotting jpeg images is slow unless the image dimensions are reduced. But it's a native R solution. Kevin ------------------------------------------------- Kevin M. Middleton Department of Biology California State University San Bernardino
On Sun, Sep 6, 2009 at 1:07 AM, spencerg<spencer.graves at prodsyse.com> wrote:> ? ? What software exists for digitizing video to quantify the motion of > specific features in the image? ?I might be willing to use something that's > NOT in R, though I'd prefer something in R (or at least with an R > intereface).The 'Motion' project seems to do quite a bit: http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome Specifically it will capture frames from a video device, detect movement, and write jpeg or mpeg files when it detects movement. You can control it via http commands (which you can send from R) or it can start external commands on events (such as starting to detect motion) - these commands could trigger things in R. Motion is GPL licensed which means you can take the code and do stuff with it - it might be possible to link R directly to the underlying motion detection algorithms. So what's left for R to do? Or do you want to use it to develop new motion detection algorithms? Barry
In my application you can transfer images or single frames from ImageJ to R very efficiently and easily. http://www.uni-bielefeld.de/biologie/Oekosystembiologie/bio7app/flashtut/processavis.htm http://www.uni-bielefeld.de/biologie/Oekosystembiologie/bio7app/flashtut/processavis.htm However, there are also several plugins for http://rsbweb.nih.gov/ij/ ImageJ available to detect and quantify motion in images. Another option would be to link and use the http://opencv.willowgarage.com/wiki/ OpenCV library with R which embedds algorithm to detect motion and more. With kind regards M. Austenfeld -- View this message in context: http://www.nabble.com/Video-Analysis--tp25313450p25315904.html Sent from the R help mailing list archive at Nabble.com.