i've also looked into the possibilities of performing motiontracking
using QC once, and (to a certain extend) it is possible.
as sam points not all operations are ideally done on the gpu, and
additionally, when you would implement it partly in code, and partly
on the GPU, you should be carefull about what's happening where, and
in what order. you can easilly choke the graphics bus and kill
performance if all data accidentally is pushed into and pulled from
the card several time in a cycle..

you should definitely check-out the project "Laser Tag" by
graffitiresearchlab.com:
http://graffitiresearchlab.com/?page_id=76#video

the complete source of this project is available here:
http://muonics.net/site_docs/work.php?id=40

it's implemented using the opensource c++ framework OpenFramework
( http://www.openframeworks.cc/ )

if you're not affraid off c++, Openframworks is very cool for easy and
fast development of all sort of projects, and for instance includes
intels' opensource computer-vision framwork OpenCV
(http://sourceforge.net/projects/opencvlibrary/)


gr
arri


> On Jan 19, 2008 3:23 AM, Sam Kass <[EMAIL PROTECTED]> wrote:
> > Probably the easiest way to do this in C code is to filter for red, do
> > a gaussian blur to create a smooth height map, then look for the two
> > local maxima.  They will be the center of the two dots.  Then do a
> > standard distance calculation to measure their distance.
> >
> > You're going to have to write SOME C code to do this in QC, because QC
> > does not have any patches that input an image and output user-
> > calculated data.
> >
> > It would take some experimentation to determine how much of this could
> > be done in the GPU.  Operations like filtering for red and gaussian
> > blurring tend to be good candidates.  Operations that search across
> > the input image domain -- such as finding two local maxima -- tend not
> > to be.
> >
> >         --Sam
> >
> > On Jan 18, 2008, at 4:59 PM, Tim Flynn wrote:
> >
> > > Hello,
> > > I am a noob and have been playing with QC. Very cool to say the least.
> > > To put it to work.
> > > Imagine 2 laser pointer on either side of a camera. With the 2 beams
> > > parallel and a know distance apart.
> > > I envision from the talk of tracking hands that I should be able to
> > > track the 2 laser dots. Yes? easy?
> > > Now How can I tell how far apart the dots are? units?
> > >
> > > Any help would be appreciated
> > >
> > > Tim
> > > _______________________________________________
> > > Do not post admin requests to the list. They will be ignored.
> > > Quartzcomposer-dev mailing list      ([email protected]
> > > )
> > > Help/Unsubscribe/Update your Subscription:
> > > http://lists.apple.com/mailman/options/quartzcomposer-dev/samkass%40samkass.com
> > >
> > > This email sent to [EMAIL PROTECTED]
> >
> >
> >  _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Quartzcomposer-dev mailing list      ([email protected])
> > Help/Unsubscribe/Update your Subscription:
> > http://lists.apple.com/mailman/options/quartzcomposer-dev/arritjeparretjenof%40gmail.com
> >
> > This email sent to [EMAIL PROTECTED]
> >
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to