FLARToolKit adaptive filter experiment sources

For those who asked about sources of my little experiment from last week, here they are. Make sure you are using FLARToolKit revision 2570 with these.

If you wasnt reading FLARToolKit mailing list, here is short summary: FLARToolKit converts color image to “binary” image before doing any magic on it, using fixed threshold filter. In fact, this threshold is simply hard-coded to be 80 in many examples, and you will need to write more code to detect good values for threshold if you want your application to run regardless of lighting settings. The filter in this experiment avoids the problem by using local average brightness as a threshold for every pixel; the downside is that it enables FLARToolKit to “see” far more details, thus wasting even more CPU time. As a work-around, I tried to narrow down search area in the image using last detected square, but this only helps when marker motion is limited.

Well, check it out, play with it, and let me know what you think.


11 Responses to “FLARToolKit adaptive filter experiment sources”

  1. 1 ericsoco May 5, 2009 at 07:46

    nice work, makc! any reason you didn’t commit your AdaptiveToBinFilter class too?

    definitely appreciate how you structured this to make it easy to swap the filter in and out.

  2. 2 makc3d May 5, 2009 at 07:53

    you mean to FLARToolKit? I wanted to keep my changes there as unintrusive as possible. besides, I only have GPL license to FLARToolKit, so adding new code there would turn it into a mess of files under different license terms :)

  3. 3 Akiles June 8, 2009 at 18:26

    Hi mack, i tried to implement this, but i get an error, you have changed this class “FLARSingleMarkerDetector”?

    1119: Access of possibly undefined property filter through a reference with static type org.libspark.flartoolkit.detector:FLARSingleMarkerDetector.


  1. 1 Starscream, Boba Fett and Jabba the Hut…er…Jasmine the Cat…FlarToolkit AND 3D Animated Models - Sunil’s Blog Trackback on May 6, 2009 at 04:26
  2. 2 The Lemonary » Joining the AR Club Trackback on May 16, 2009 at 12:17
  3. 3 JActionScripters » Blog Archive » Adaptive thresholding experiment Trackback on May 18, 2009 at 02:57
  4. 4 Augmented Reality made easy « Stewdio Blog Trackback on June 13, 2009 at 21:55
  5. 5 Alternative to adaptive thresholding « Dorking around 3D in Flash Trackback on July 3, 2009 at 16:27

Ask a Question

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Old stuff

May 2009
« Apr   Jun »

Oh, btw…


%d bloggers like this: