1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-19 02:16:34 +08:00

ovis: add getCompositorTexture for reading custom render targets

This commit is contained in:
Pavel Rojtberg
2018-10-01 18:38:12 +02:00
parent ff9d3132b6
commit c4c2e85d89
2 changed files with 61 additions and 0 deletions

View File

@@ -161,6 +161,16 @@ public:
*/
CV_WRAP virtual void getScreenshot(OutputArray frame) = 0;
/**
* read back the texture of an active compositor
* @param compname name of the compositor
* @param texname name of the texture inside the compositor
* @param mrtIndex if texture is a MRT, specifies the attachment
* @param out the texture contents
*/
CV_WRAP virtual void getCompositorTexture(const String& compname, const String& texname,
OutputArray out, int mrtIndex = 0) = 0;
/**
* get the depth for the current frame.
*