1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# A non regression test for the transform stack
Feature: transformstack
Scenario Outline: mtransformstack
When I launch videostitch-cmd with transformstack/<ptv>/<ptv>.ptv and "-d 0 -f 0 -l 0"
Then I expect the command to succeed
When I compare transformstack/<ptv>/<ptv>_output-0.jpg with transformstack/<ptv>/reference-1.jpg
Then I expect the comparison error to be less than 0.03
Examples:
| ptv |
| circular |
| elmo |
@slow
Scenario Outline: projections
When I launch videostitch-cmd with transformstack/regression/<in>_<out>.ptv and "-d 0 -l 0"
Then I expect the command to succeed
When I compare transformstack/regression/<in>_<out>-1.png with transformstack/regression/<in>_<out>-2-reference.png
Then I expect the comparison error to be less than 0.03
Examples:
| in | out |
| cf | cf |
| cf | erect |
| cf | ff |
| cf | rect |
| cf | stereo |
| erect | cf |
| erect | erect |
| erect | ff |
| erect | rect |
| erect | stereo |
| ff | cf |
| ff | erect |
| ff | ff |
| ff | rect |
| ff | stereo |
| rect | cf |
| rect | erect |
| rect | ff |
| rect | rect |
| rect | stereo |
@slow
Scenario Outline: pano parameters
When I launch videostitch-cmd with transformstack/regression/<in>_<out>_<param>_<value1>_<value2>.ptv and "-d 0 -l 0"
Then I expect the command to succeed
When I compare transformstack/regression/<in>_<out>_<param>_<value1>_<value2>-1.png with transformstack/regression/<in>_<out>_<param>_<value1>_<value2>-2-reference.png
Then I expect the comparison error to be less than 0.03
Examples:
| in | out | param | value1 | value2 |
| ff | erect | size | 64 | 128-v2 |
| ff | erect | size | 256 | 512 |
| ff | erect | size | 1024 | 2048 |
| ff | erect | size | 2048 | 4096 |
| ff | stereo | size | 128 | 1024 |
| ff | stereo | size | 1024 | 1024 |
| ff | erect | hfov | 2 | 0-v2 |
| ff | erect | hfov | 8 | 0-v2 |
| ff | erect | hfov | 45 | 0-v2 |
| ff | erect | hfov | 90 | 0 |
| ff | erect | hfov | 150 | 0 |
| ff | erect | hfov | 220 | 0 |
| ff | erect | hfov | 360 | 0 |
| ff | stereo | hfov | 2 | 0-v2 |
| ff | stereo | hfov | 8 | 0-v2 |
| ff | stereo | hfov | 45 | 0-v2 |
| ff | stereo | hfov | 90 | 0 |
| ff | stereo | hfov | 150 | 0 |
| ff | stereo | hfov | 220 | 0 |
| ff | stereo | hfov | 350 | 0 |
| ff | erect | crop | l500 | 0 |
| ff | erect | pad | t500 | 0 |
| ff | erect | pad | b500 | 0 |
| ff | erect | pad | t100b100 | 0 |
| ff | erect | yaw | 45 | 0 |
| ff | erect | yaw | 90 | 0 |
| ff | erect | yaw | 270 | 0 |
| ff | erect | pitch | 45 | 0 |
| ff | erect | pitch | 90 | 0 |
| ff | erect | pitch | 270 | 0 |
| ff | erect | roll | 45 | 0 |
| ff | erect | roll | 90 | 0 |
| ff | erect | roll | 270 | 0 |
# | ff | erect | crop | r500 | 0 |
# | ff | erect | crop | b500 | 0 |
# | ff | erect | crop | t500 | 0 |
# | ff | erect | crop | l200r200t200b200 | 0 |
Scenario Outline: input parameters
When I launch videostitch-cmd with transformstack/inputs/test_input_<setting>.ptv and "-d 0 -l 0"
Then I expect the command to succeed
When I compare transformstack/inputs/input_<setting>-1.png with transformstack/inputs/input_<setting>-1-reference-1.png
Then I expect the comparison error to be less than 0.03
Examples:
| setting |
# VSA-4791
#| crop |
| dist |
| hfov |
| roll |
| width_height |
Scenario Outline: projections board
When I launch videostitch-cmd with transformstack/regression/<in>_<out>_board.ptv and "-d 0 -l 0"
Then I expect the command to succeed
When I compare transformstack/regression/<in>_<out>_board-1.png with transformstack/regression/<in>_<out>_board-1-reference-1.png
Then I expect the comparison error to be less than 0.0004
Examples:
| in | out |
| erect | erect |
Scenario Outline: Stitching identity accuracy
When I launch videostitch-cmd with input_formats/<test>-<format>.ptv and "-d 0 -f 0 -l 0"
Then I expect the command to succeed
When I compare input_formats/<format>-out-0.<format> with input_formats/input.<format>
Then I expect the comparison error to be less than <expected_error>
Examples:
| test | format | expected_error |
| identity | jpg | 0.014 |
| identity | png | 0.013 |
| flip-unflip | png | 0.015 |