Skip to content

Commit f070b10

Browse files
Recreating image
1 parent 5b52425 commit f070b10

3 files changed

Lines changed: 174 additions & 5 deletions

File tree

doc/PTZ.xml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2294,11 +2294,22 @@ tns1:PTZController/PTZPresets/Left
22942294
<section>
22952295
<title>Example: Positions of a window on sensor</title>
22962296
<para>A window with VGA resolution (640x480) that is natively mapped to the same number of pixels of a cropped area on a 3MP (2048x1536) sensor, would have the pan and tilt range of:</para>
2297-
<para><inlinemediaobject>
2298-
<imageobject>
2299-
<imagedata fileref="media/Ptz/image10.png" contentwidth="135.64mm" />
2300-
</imageobject>
2301-
</inlinemediaobject></para>
2297+
<para>
2298+
<inlinemediaobject>
2299+
<imageobject>
2300+
<imagedata fileref="media/Ptz/image10.png" contentwidth="135.64mm" />
2301+
</imageobject>
2302+
</inlinemediaobject>
2303+
<inlinemediaobject>
2304+
<imageobject>
2305+
<imagedata fileref="equations/PTZ/zpositions_of_window_on_sensor_x.svg" contentdepth="12mm"/>
2306+
</imageobject>
2307+
</inlinemediaobject>
2308+
<inlinemediaobject>
2309+
<imageobject>
2310+
<imagedata fileref="equations/PTZ/zpositions_of_window_on_sensor_y.svg" contentdepth="12mm"/>
2311+
</imageobject>
2312+
</inlinemediaobject></para>
23022313
<para>As long as the aspect ratio of the window and the sensor are identical, the same ranges for pan and tilt are expected. The device will automatically adjust the ranges based on the amount of source pixels represented in the window of interest (its width and height configured in the VideoSourceConfiguration of the requested profile).</para>
23032314
</section>
23042315
</section>
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
2+
<msub>
3+
<mi>X</mi>
4+
<mi>min</mi>
5+
</msub>
6+
<mo>=</mo>
7+
<mfrac>
8+
<mrow>
9+
<mo>(</mo>
10+
<mfrac>
11+
<msub>
12+
<mi>W</mi>
13+
<mi>w</mi>
14+
</msub>
15+
<mn>2</mn>
16+
</mfrac>
17+
<mo>)</mo>
18+
</mrow>
19+
<msub>
20+
<mi>S</mi>
21+
<mi>w</mi>
22+
</msub>
23+
</mfrac>
24+
<mo>&#x21D2;</mo>
25+
<mfrac>
26+
<mrow>
27+
<mo>(</mo>
28+
<mfrac>
29+
<mn>640</mn>
30+
<mn>2</mn>
31+
</mfrac>
32+
<mo>)</mo>
33+
</mrow>
34+
<mn>2048</mn>
35+
</mfrac>
36+
<mo>=</mo>
37+
<mn>0.15625</mn>
38+
<mo separator="true">,</mo>
39+
<msub>
40+
<mi>X</mi>
41+
<mi>max</mi>
42+
</msub>
43+
<mo>=</mo>
44+
<mn>1</mn>
45+
<mo>&#x2212;</mo>
46+
<mfrac>
47+
<mrow>
48+
<mo>(</mo>
49+
<mfrac>
50+
<msub>
51+
<mi>W</mi>
52+
<mi>w</mi>
53+
</msub>
54+
<mn>2</mn>
55+
</mfrac>
56+
<mo>)</mo>
57+
</mrow>
58+
<msub>
59+
<mi>S</mi>
60+
<mi>w</mi>
61+
</msub>
62+
</mfrac>
63+
<mo>&#x21D2;</mo>
64+
<mn>1</mn>
65+
<mo>&#x2212;</mo>
66+
<mfrac>
67+
<mrow>
68+
<mo>(</mo>
69+
<mfrac>
70+
<mn>640</mn>
71+
<mn>2</mn>
72+
</mfrac>
73+
<mo>)</mo>
74+
</mrow>
75+
<mn>0.4375</mn>
76+
</mfrac>
77+
<mo>=</mo>
78+
<mn>0.843375</mn>
79+
</math>
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
2+
<msub>
3+
<mi>Y</mi>
4+
<mi>min</mi>
5+
</msub>
6+
<mo>=</mo>
7+
<mfrac>
8+
<mrow>
9+
<mo>(</mo>
10+
<mfrac>
11+
<msub>
12+
<mi>W</mi>
13+
<mi>w</mi>
14+
</msub>
15+
<mn>2</mn>
16+
</mfrac>
17+
<mo>)</mo>
18+
</mrow>
19+
<msub>
20+
<mi>S</mi>
21+
<mi>w</mi>
22+
</msub>
23+
</mfrac>
24+
<mo>&#x21D2;</mo>
25+
<mfrac>
26+
<mrow>
27+
<mo>(</mo>
28+
<mfrac>
29+
<mn>480</mn>
30+
<mn>2</mn>
31+
</mfrac>
32+
<mo>)</mo>
33+
</mrow>
34+
<mn>1536</mn>
35+
</mfrac>
36+
<mo>=</mo>
37+
<mn>0.15625</mn>
38+
<mo separator="true">,</mo>
39+
<msub>
40+
<mi>Y</mi>
41+
<mi>max</mi>
42+
</msub>
43+
<mo>=</mo>
44+
<mn>1</mn>
45+
<mo>&#x2212;</mo>
46+
<mfrac>
47+
<mrow>
48+
<mo>(</mo>
49+
<mfrac>
50+
<msub>
51+
<mi>W</mi>
52+
<mi>w</mi>
53+
</msub>
54+
<mn>2</mn>
55+
</mfrac>
56+
<mo>)</mo>
57+
</mrow>
58+
<msub>
59+
<mi>S</mi>
60+
<mi>w</mi>
61+
</msub>
62+
</mfrac>
63+
<mo>&#x21D2;</mo>
64+
<mn>1</mn>
65+
<mo>&#x2212;</mo>
66+
<mfrac>
67+
<mrow>
68+
<mo>(</mo>
69+
<mfrac>
70+
<mn>480</mn>
71+
<mn>2</mn>
72+
</mfrac>
73+
<mo>)</mo>
74+
</mrow>
75+
<mn>1536</mn>
76+
</mfrac>
77+
<mo>=</mo>
78+
<mn>0.84375</mn>
79+
</math>

0 commit comments

Comments
 (0)