Forums > MaxMSP

How to flip an image in jit.pwindow? (jit.freenect HELP!)

April 28, 2011 | 4:10 pm

Hi guys,

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.

Thanks



MIB
April 28, 2011 | 5:24 pm

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


April 29, 2011 | 12:06 pm

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)…


April 29, 2011 | 5:43 pm

jit.rota will also do the trick…


April 30, 2011 | 4:31 pm

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.

Thanks again.


March 26, 2014 | 7:01 pm

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.


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