- Home /
Rendertexture memory pointer to opencv
Hi, I was wondering if it is possible to get a memory pointer to rendertexture, so I could use it and do image processing in opencv
Answer by Paulius-Liekis · May 30, 2012 at 01:54 PM
Unity has a function GetNativeTextureID for accessing textures from native code.
But it's address on the graphics card memory right? How I could access it from OpenCV? any ideas? I would like to write an application in which I could make some affine transformations on image for projection mapping so i could drag skew etc parts of the image based on a grid
If you don't have to get tour data into opencv per se, you could take the approach that Paul Bourke uses to render stereo pairs. (http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/stereographics/Unitystereo/) Then you can easilly manipulate the geometry that is textured with your rendertexture, before it is rerendered in the 2nd camera.
Your answer
Follow this Question
Related Questions
RenderTexture causes memory problems 2 Answers
How read Values from Memory, similar to Cheatengine? 0 Answers
Memory overflow using OpenCV Imported with dll 1 Answer
Custom _GetComponent( ) 2 Answers
How can I memset a Native Array from multiple threads? 0 Answers