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.