Close

Bitmasks Are Awesome!

A project log for Occifer Bob Watcher

Vehicle-mounted camera with panoramic lens to look for emergency services and other vehicular lights.

glebiteglebite 10/06/2014 at 18:000 Comments

I simplified the maths behind matching the temporal and spatial positions of the lights. How? Well first of all, a quick check for light data in each quadrant of the circular image and then a rotating check of a bitmask for each of the "hours", comparison, and confirmation. This should prove to be faster than any trig functions to be calculated. The bitmasks can be defined well in advance and loaded into memory for comparison. This is a good thing. I'll have pictures later that will make more sense.

Discussions