I’m in the process of creating a patch using the jit.freenect.grab object.
All I’m trying to work out is how to horizontally flip the RGB image. Currently the RGB image is being sent into a jit.pwindow object. I have searched the forums for a message command to do this but so far have only been able to find commands for the jit.window object.
Any help would be much appreciated.
I don’t have a kinect (yet!), but if it is just a standard RGB matrix, have a look at jit.dimmap to flip the matrix any which way you like
jit.pwindow, like jit.matrix, uses srcdimstrt srcdimend and dstdimstrt, etc. messages. You can (among other transformations) flip the image horizontally using these. Check Jitter tutorial 14 – part of which explicitly describes how to flip a matrix – and then the jit.pwindow help file (that is the place to start, rather than the forums)…
jit.rota will also do the trick…
Thanks a lot guys. This info was a massive help. jit.dimmap is what I went for. If any of you are interested I will be sharing my patch once its finished. It is basically just a synth you play using kinect. For the most part the presets are designed for applications in ambient music.
though this question has been solved, i would like very much to share my method about how to flip image horizontally.hope it is useful.
C74 RSS Feed | © Copyright Cycling '74