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/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]