Hello,
I have a mono channel depth image coming from a Kinect (512x424 pixels).
I created a 512x424 grid.
I want to add a custom attribute “kinect” to each point of the grid where “kinect” is the value of the “corresponding pixel” (same row, same column).
I try to use pointwrangle and write something like :
@kinect = @pixel.r;
But I have no idea how :
- connect the COP output as the second input ?
- how to get the pixel value in VEX (I am aware that @pixel.r is “pseucode” VEX) ?
I'd rather avoid uvtexture or something similar in order to avoid any filtering (I need a perfect 1 to 1 mapping between pixels and points).
Thank you for any help or clue possible :-)
Nicolas.
add a custom point attribute to a grid from pixel values
4367 5 2-
- nicoalter
- Member
- 6 posts
- Joined: Aug. 2016
- Offline
-
- bonsak
- Member
- 459 posts
- Joined: Oct. 2011
- Offline
-
- nicoalter
- Member
- 6 posts
- Joined: Aug. 2016
- Offline
Hi
Thanks a lot, it looks like it does the job :-)
I feel I just need to be carefull with all the options to avoid any resampling or post process.
Just in case, this is waht I did :
In Color settings :
- Source Color Space = Linear
- Do Remap = false
Filter Settings :
- Filter = Point
if somebody thinks I messed up with the parameters, you're very welcome to let me know.
Thanks again Bonsak,
Nicolas.
Thanks a lot, it looks like it does the job :-)
I feel I just need to be carefull with all the options to avoid any resampling or post process.
Just in case, this is waht I did :
In Color settings :
- Source Color Space = Linear
- Do Remap = false
Filter Settings :
- Filter = Point
if somebody thinks I messed up with the parameters, you're very welcome to let me know.
Thanks again Bonsak,
Nicolas.
-
- nicoalter
- Member
- 6 posts
- Joined: Aug. 2016
- Offline
-
- bonsak
- Member
- 459 posts
- Joined: Oct. 2011
- Offline
-
- nicoalter
- Member
- 6 posts
- Joined: Aug. 2016
- Offline
-
- Quick Links

