Getting pixel data over TUIO
Posted: 06 October 2008 03:26 AM   [ Ignore ]
Rank
Joined  2008-10-02
Total Posts:  7
New Member

I need to get the bitmap data (for want of a better explanation) from one of the touch libraries over TUIO. That is, I need to see which pixels are ‘on’ or touched, not just the centre point and bounding box.

I may be being blind, but I can’t see a provision to do this over TUIO?

Do any of the libs support it? Does TUIO? If so, how?

Thanks a lot,

Mark

Profile
 
 
Posted: 06 October 2008 05:41 AM   [ Ignore ]   [ # 1 ]
Avatar
RankRank
Joined  2007-04-03
Total Posts:  241
Moderator

The TUIO specifications only describe packets containing touch information in a 2D, 2.5D and 3D. It does not include any camera image data at all.

If you use touchlib, you can easily request a frame from one of the touchlib functions (using c++)

 Signature 

My multitouch blog: http://www.multigesture.net
Howto: Compile touchlib on windows XP/Vista
Howto: Compile touchlib on Ubuntu Linux
Downloads: Touchlib SVN builds

Profile
 
 
Posted: 06 October 2008 05:52 AM   [ Ignore ]   [ # 2 ]
Rank
Joined  2008-10-02
Total Posts:  7
New Member

Hi Falcon4ever,

I don’t think I explained what I need very well.

I don’t need the actual image captured by the camera. However, I do need to know what pixels a blob consists of so that I know the shape of the blob. This is for cases where I’m not just wanting a centre point of a blob and the bounding box isn’t detailed enough.

Does that make sense?

Mark

Profile
 
 
Posted: 06 October 2008 05:57 AM   [ Ignore ]   [ # 3 ]
Avatar
RankRank
Joined  2007-04-03
Total Posts:  241
Moderator
Spakman - 06 October 2008 05:52 AM

Hi Falcon4ever,

I don’t think I explained what I need very well.

I don’t need the actual image captured by the camera. However, I do need to know what pixels a blob consists of so that I know the shape of the blob. This is for cases where I’m not just wanting a centre point of a blob and the bounding box isn’t detailed enough.

Does that make sense?

Mark

I understand what you want to do but the problem is that the TUIO specification does not handle such kind of properties. In order to send additional data the sender (touchlib) needs to include additional properties. So your best option is to make a C++ app and access touchlib directly.

 Signature 

My multitouch blog: http://www.multigesture.net
Howto: Compile touchlib on windows XP/Vista
Howto: Compile touchlib on Ubuntu Linux
Downloads: Touchlib SVN builds

Profile
 
 
Posted: 06 October 2008 06:09 AM   [ Ignore ]   [ # 4 ]
Rank
Joined  2008-10-02
Total Posts:  7
New Member
Falcon4ever - 06 October 2008 05:57 AM

Spakman - 06 October 2008 05:52 AM
Hi Falcon4ever,
I understand what you want to do but the problem is that the TUIO specification does not handle such kind of properties. In order to send additional data the sender (touchlib) needs to include additional properties. So your best option is to make a C++ app and access touchlib directly.

OK, I suspected as much. Thanks a lot.

Mark

Profile
 
 
Posted: 06 October 2008 06:28 AM   [ Ignore ]   [ # 5 ]
RankRankRankRank
Joined  2007-07-14
Total Posts:  819
Elite

Provocative question: why is TUIO is a standard if it can’t do such a usefull thing? smile

 Signature 

HID Multitouch driver for Windows 7 http://multitouchvista.codeplex.com/

Profile
 
 
Posted: 06 October 2008 08:13 AM   [ Ignore ]   [ # 6 ]
Avatar
Rank
Joined  2007-03-30
Total Posts:  45
New Member

TUIO is a standard since there is no better alternative as of yet. There are a lot of possibilities one could think of that are simply not implementable within this framework. But ofcourse you are free to think up a new protocol just like Martin Kaltenbrunner did when he designed TUIO.

 Signature 

"An idea is salvation by imagination.”
Frank Lloyd Wright

SITE: Intactlab, multi-touch systems

Profile
 
 
Posted: 06 October 2008 01:55 PM   [ Ignore ]   [ # 7 ]
Avatar
RankRankRankRankRankRank
Joined  2007-04-08
Total Posts:  2539
Dedicated

We’ve talked about sending the contour data through TUIO as you can send custom parameters. This won’t be till the future though, so the best bet is to use c++ or add in the code needed to send contour points through OSC.

 Signature 

MTmini, MTbiggie, & Audiotouch creator & Community Core Vision Co-founder

Follow on:
My Blog | Facebook | Twitter | Youtube

Profile