New Processing Libraries

Hi Folks,

I have created two new Processing libraries, blob-tracker and color-palette. They have been posted to github.com and free for everyone to use. All source code is included. There are no licensing or usage restrictions whatsoever. They can be used by anyone for any purpose. Short descriptions follow.

Blob Tracker https://github.com/pschaeffer/blob-tracker

The blob tracker class is used to track blobs as they are created, destroyed, and change location in an image.

The basic idea is that blobs may move around to some extent, without becoming new blobs. In other words, just because a blob moves a bit, doesn't mean it should be treated as a new blob. The blob tracker class provides mechanisms for following blobs around and associating data with each blob. Typically the blob information will be obtained from a blob detector (such as Blob Detection}. However, this is not required and the blob data can be derived from any source.

Color Palette https://github.com/pschaeffer/color-palette

The ColorPalette class manages color pools allowing Processing applications (actually any Java application) to obtains colors (the next free color or a color by name), use them, and then return them to the pool.

The basic idea is that the ColorPalette class maintains a pool of unique colors (no duplicates). Each color in the pool has a name (from web standards) and an RGB value. Once a color has been pulled from the pool, it is deemed to be in use (busy) and will not returned again to a caller, until the original user return the color to the pool.

I would to make sure that these libraries are properly structured for general use in the Processing environment. Please reply with any suggestions you folks have as to how they can be improved.

Thank you

Sign In or Register to comment.