Jump to content

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

Line 60: Line 60:




Next, configure the parameters to be manipulated using the properties of the Spherical Video PTZ. Instantiate them as showed in the code below. The initial parameters, represented as <code>{{0.0f, 0.0f}, 2.0f}</code>, control the panning, tilting, and zooming of the image in the format <code>{{pan, tilt}, zoom}</code>. Additionally, <code>{dst.GetSize()}</code> is used to define the output size in <code>{width, height}</code> format, while <code>{io.GetSize()}</code> is utilized to set the input size, also in <code>{width, height}</code> format.
Next, configure the parameters to be manipulated using the properties of the Spherical Video PTZ. Instantiate them as showed in the code below. The initial parameters, represented as <code>{{0.0f, 0.0f}, 2.0f}</code>, control the panning, tilting, and zooming of the image in the format <code>{{pan, tilt}, zoom}</code>. The panning and tilting values can are valid in the range: <code>[-π,π]</code> wile the zoom in the range: <code>[0.1, 10]</code>. Additionally, <code>{dst.GetSize()}</code> is used to define the output size in <code>{width, height}</code> format, while <code>{io.GetSize()}</code> is utilized to set the input size, also in <code>{width, height}</code> format.


<syntaxhighlight lang=cpp>
<syntaxhighlight lang=cpp>
102

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.