Forums > Jitter

cv.jit.track: replacing box with image

July 14, 2010 | 10:23 am

hi!

I’ve modified a patch posted by nesa 1 year ago for nose tracking. I simply want to replace my cv.jit.track point on the nose with a black rectangle (pict). getting a box out of cv.jit.track is easy, so

this: http://jonaswolf.com/lcd_framerect.tiff

leads to that: http://jonaswolf.com/draw_rect.tiff

but when trying to replace my box by a black rectangle (pict)

this: http://jonaswolf.com/lcd_pict.tiff

leads to that: http://jonaswolf.com/draw_pict.tiff

bg turns white, the section that should replace my nose on the contrary the only thing visible..

what did I miss on?

cheers!

-jonas

version framerect:

– Pasted Max Patch, click to expand. –

version pict:

– Pasted Max Patch, click to expand. –

get black.pict here: http://jonaswolf.com/replace.zip


July 14, 2010 | 1:31 pm

Hi,

As I wrote in a previous thread, the documentation about the drawpict command isn’t perfectly clear or accurate, you have to format your message left, top, width, height instead of left, top, right, bottom as I think you’re doing.

http://cycling74.com/forums/topic.php?id=27417

Jean-Marc


July 14, 2010 | 1:39 pm

oops, didn’t pay attention to that one. thanks for the quick response!

all the best

-jonas


Viewing 3 posts - 1 through 3 (of 3 total)