cv.jit.track mismatch plane

chachaching's icon

I am new to jitter.

How would I convert jit.lcd 4 char 600 400 as a matrix that can be tracked with cv.jit.track. As of right now I get the error message :mismatch plane. Basically I am trying to track movement of changing graphics from the jit.lcd.

thanks

Morgan's icon

The cv.jit objects nearly all work on a 1 plane incoming image. Kind of quirky how jit.lcd only works on 4 plane, but you can use a jit.rgb2luma object to convert the stream.

chachaching's icon

hmm I had jit.rgb2luma and it still gave me this error (see attached image)

Morgan's icon

can you post a copy-compressed patch? I don't know how to get that error.

chachaching's icon

tyring to modify Lsystem Garden.maxpat
Max Patch
I am trying to monitor and track the L-system growth, I figured this is the best way.

Morgan's icon

You should be able to just patch from the output of the jit.lcd into the rgb2luma like so. Is it not working for you?

Max Patch
Copy patch and select New From Clipboard in Max.

Morgan's icon

maybe the thing you're getting is that the l system doesn't draw over the 0. 0. area of the image? The cv.jit.track will only look right where the point already is. I made a quick thing using cv.jit.blobs.centroids to pick the starting point:

Max Patch
Copy patch and select New From Clipboard in Max.