Need Advice – Optimizing CV.Jit?
I’m currently working on a school project using CV.Jit to create a pair of ‘eyes’ that can track a person across a room. I have several questions:
Is it possible to load an image file into a matrix, whose co-ordinates can then be modified (something like using Adobe Premiere) so it ‘moves’ around on-screen?
If not, is there any way to optimize this code I have, because it’s a real CPU killer. T_T
I apologize in advance if I seem ignorant but I’d really appreciate any help you fine folks can give!
I’m sorry, that’s a biggish patch. If you want people to help you out, I think it would be better if you just isolated the part that you think is causing you problems and only posted that. I tried getting it to work, but it doesn’t seem to do anything and it’s not clear what it’s supposed to do.
Oh, I forgot to add… it only runs on PCs. (I’m using the PC download of CV.Jit, some objects don’t run the same on Mac as I’ve discovered, in particular cv.jit.track.draw) The object on the Mac ought to be different.
The problems I seem to be facing lies in:
1. Patches lefteye (p lefteye) and righteye (p righteye) – I got this code a while back from another helpful fellow here and I don’t know if I can use a single patch to co-ordinate both pupils (right now they’re individually controlled).
The pupils also come out white against a black matrix, and nothing I do seems to be able to invert the colour (wherein lies the crux of my problem), I’ve used jit.rgb2hsl to desaturate the colours (pink and green) but this plays havoc with the alpha channels. I know this has something to do with the ‘brush’ code I’m using but I don’t know what.
Thanks again for any help!
p.s – I’ve included the patch file sans graphics.