Attack of the Dark Blobs!

Soo… since the CIImage conversion was such a letdown, i decided to at least do something productive today.

Commenter thescreamingdrills alerted me to the fact that users of the very cool MTMini couldnt use BBTouch since BBTouch was looking for light colored blobs and the MTMini generates dark colored blobs.

I came up with a brilliant on the spot fix, only to find out it wasn’t so brilliant after all.

That said, the fix is actually very simple, all you need to do s reverse the order that the bytes are being compared (light blobs: foreground – background > threshold, dark blobs: background – foreground > threshold) and bob’s your uncle!

So, i did that, and tested it (by shutting off the IR illumination on my surface, removing my visible light filter and shining a big light from above). It seemed to work well.

I added a ‘find dark blobs’ config switch to the interface so that you can choose your method of detection.

The new code is on the repository.
Also, at Pawel’s suggestion, I uploaded a binary version to the opentouch downloads page for those of you who dont want to hassle with the code compiling and whatnot:
http://code.google.com/p/opentouch/downloads/list

So, now all you MTMini guys can use the MTMini on your mac now :-)
groovy!
-b

This entry was posted in BBTouch, code, multitouch. Bookmark the permalink.

2 Responses to Attack of the Dark Blobs!

  1. thescreamingdrills says:

    looks like I won’t be getting anything done at work today. the dark blobs works like a charm! Well done!

  2. Ben says:

    Excellent! I am glad to hear it.

    My tests were, shall we say.. less than rigorous. (since i dont actually have a dark-blob kinda surface).

    have fun!

Leave a Reply