I am trying to figure out a way to track multiple objects in jitter. Basically what I want to be able to get is the xy coordinates of a center point to an object, and if posssible, the area or perimeter of the object in pixels. I have found the cv.jit extensions, and the centroids extension finds the center point of everything it considers an object and gives the areas as circles. the cv.cjit.blobs.bound object gives the areas as squares, which might be easier to calculate. I am working on a way to get just the circles/crosses/squares as output, without the actual movie (see previous post).

I am trying to extract the x and y coordinates for each center point I want the x to serve as pan position for a note, y as the pitch, probably as a midi note, but maybe and/or as an MSP signal , and then if possible calculate the area blobs as volume.

Basically, what I want to do is like the use of jit.findbounds in tutorial 25, but for multiple locations rather than a single location, and in a greatly simplified color environment…red crosses, or green perimeters, over a black background, that is it, so really it is a question of just pulling / the non-zero coordinates out of the matrix, but I have not been able to figure out how. Any help would be appreciated.

~Rich