Motion Tracking cv.jit.

gammon's icon

Hi

I´m working on video tracking for a dance performance. Basically its working fine, but i still have a few things to solve. May someone can give me a help.

I think one of my basic problems is, how to view data out of the cv.jit objects.
(e.g. cv.jit.centroids, cv.jit. blob.sort, ...

I tried with Jit cellblock and switching through the planes, but how to get them out of jit.cellblock. For example in the helppatch of cv.jit.blobs.moments. How do i grab the xy coordinates for any further use. Problably some very easy solution which i just dont get.

another thing:
cv.jit. blobs.sort + cv.jit.blobs.color are giving random colors. How can i stop this and adjust certain colors to certain blobs ? e.g in size order.
How can i get xy coordinates out of the colors ?

color 1 = xy
color 2 = xy
color 3 = xy
...

As a work around i was thinking about combining tutorial 25 with jit.blobs.sort.
it works fine with one blob and one color, of course. But not with more than one color. And i could not find the way to select a certain color in tutorial 25. ???

... and the question which is asked a lot in this forum, but i could not find an answer. How to work wich cv.jit.blob.sort ? How to get data from the sorted Blobs ?
Like index + xy coordinates ?

Sorry for too many questions, its because i m thinking of several ways to get to the goal.
i would appreciate any help. ... feel free to choose the question ... :)

Thanks
gammon

gammon's icon

ok, i found jit.spil, to get the plane data as coordinates, i think this could be one answer ... am i right ?

Thanks
gammon

Anneke's icon

hey i dont know much about Max myself :P but maybe take a look at jit.iter as its used in cv.ji.track.. let me know if it works

ćwiek's icon
Max Patch
Copy patch and select New From Clipboard in Max.

that should work :)

cap10subtext's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here's my fav jit.iter trick. Easy sorting of multiple points/blobs/whatever.

Les Stuck's icon

There's a brand new build for Mac and Windows that’s 64-bit compatible
and tested on Max 7!

Download the cv.jit Starter Kit at http://www.maxology.club

Leave a comment and let us know how it's working for you!

Happy patching!