Spherical Video PTZ/User Guide/Quick Start Guide: Difference between revisions

Line 39: Line 39:
=== Spherical Video PTZ Engine  ===
=== Spherical Video PTZ Engine  ===


The Video PTZ Engine abstracts the usage of the PTZ usage to facilitate its usage. To use it, include the wrapper on your code and then make an instantiation of the class as it is shown here:
The Video PTZ Engine simplifies the use of PTZ controls, making it easier to integrate into your code. To get started, include the wrapper in your code and instantiate the class as demonstrated below:


<syntaxhighlight lang=cpp>
<syntaxhighlight lang=cpp>
Line 52: Line 52:
</syntaxhighlight>
</syntaxhighlight>


Finally process the input image with the '''Process''' method
Finally process the input image with the '''Process''' method:
<syntaxhighlight lang=cpp>
<syntaxhighlight lang=cpp>
#include "lp/allocators/cudaimage.hpp"
#include "lp/image.hpp"
lp::Image<RGBA<uint8_t>> img;
lp::allocators::CudaImage<RGBA<uint8_t>> dst;
engine.Process(img, dst);
engine.Process(img, dst);
</syntaxhighlight>
</syntaxhighlight>
Please note that the Engine supports both '''CudaImages''' and '''Images''' for processing. However, if you choose to use an Image, the Engine will internally allocate a Cuda buffer and copy the Image content into it, potentially affecting the application performance.


==GstRrPanoramaptz==
==GstRrPanoramaptz==
102

edits