Re: convert matrix – draw pixels on y-axis using brightness-values as new y-position
thank you very much – that’s exactly what i want to do, but i already got that far by the help of dtr in this thread:
what i want to do is more or less this:
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 554.3oc0V1saaBCE.9Z3ovxWNkg7OfYz65ywTUEA7VcKXPfyV1p5697OPFYJ oXBIpZJRw5XNN9yewGadML.tsYOuGBtC7UPPvqgAA1tLcDLDG.qy2WTk2aSC J4+rY6yvMtGo36U1teVnhpyUch8.LnTTCnDDfDiFSrMWU7jP98G63EJ27Qne IBsAPyvlFLMwzPPQHvCCCpYmphqT+pk6FgYVdzMKvM.H7PhhRKDZv9b53L9s FoRlWaGJ79NQd03Sj6pER8OrcAgmjdu321zwDMJGx0QgMYhoy2BCMesYcBqs i2xkkfdtpfWU4gmRPllLx7Z5jhgcKEC9JJl7hW.B8mejWAHIIdXFKVfLzEZl jEZl3OHyrsQV1LuNHo1l3XOzw4phhWnRHePUQeBfQu2YLTTp0BwH2QMyqDgT cRiPukF4JtIYmbr.xicJNsvv9okMm2Nj+SN00bMkPw6l2MX2AswLOqhNWkD9 VZF5DyXmbXkP9u2maWil9OVW8M65JFWBCWP.96prj2qDxbknQNImzix4IQYI 293Q7pEksM5MICHPhSiRz0cotKslDAd3j+o5KqIdvJ6xXkRmxpIZkrpOKU+N QuOqIGky7rpUngNj6JuTbDlwXIrgttB.i7.3KPtC.OIZkrR8f03kIWJlYnij 51H3TsMZkrR7j0k6UxvQ3ShVIqXOXkdYrhybuzF6PzUf04JvHKj0AgRFtmL6 DQzzoN2Dcz5PG7V3eHZ9GjB -----------end_max5_patcher-----------
it works, but this is horribly slow!
there must be some more elegant solution than to set each pixel manually. do you have any advice for me?
btw. i realized i can use the 3 planes of dtr’s calculation results, as values "r g b" represent the real x y z of points measured by kinect in space (much better than using the x coordinate of the actual image).
still, that doesn’t solve my issue:
i need to generate a new matrix from the values of another one.
in the 3-plane case this would be
matrix1 x1 y1 r1 g1 b1
matrix2 r1 b1 255 255 255
(i’m using white as i just need to see the "on" pixels — i want to process this image further with cv.jit)
if you have any advice for me i’d be very very happy!!
ps: attached a screenshot of my status as is – i use clicking on the depth image to locate a point and draw the position of that in the lcd on the right. the blue trapezoid represents the camera angle. i will of course dump this lcd in the end, as i need a 2d matrix with all movement of people visible in it.
(also i’m running in 640*480 in this screenshot)