Converting Stride texture into other color format

I was trying to get the pixel values from a VideoIn (MediaFoundation) using the “Texture ReadBack Spheres” example, but they are in different colorspaces. The goal would be to key the texture from the webcam with a color I pick from this texture.

Posted this initially in the chat, but wanted to leave the solution it here, in case others might find it useful. @ravazquez suggested to use the VideoIn from OpenCV, convert the color format and feed it into a Stride texture.


Full patch is here: KeyFromVideoIn.vl (48.8 KB)

Solution by @bjoern

image (1)

Solution by @urbandrone

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.