Commit cea2b14
committed
Fix for #97: handle correctly flow rotations
The flow ought to be transformed with respect to the coordinates where
it lands.
Also, small angle approximation is not used here. This adds a few more
computations but should be manageable in terms of execution time.
Moreover, this opens up the door for general linear transforms only by
tweaking the coefficients.
I measured about +30% execution time increase with this version. That
seems needed, however, if we look at how off the transformed flow is
with large displacements (eg. FlyingChairs dataset).1 parent 79894dc commit cea2b14
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
188 | | - | |
189 | | - | |
| 189 | + | |
| 190 | + | |
190 | 191 | | |
191 | | - | |
192 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
193 | 201 | | |
194 | 202 | | |
195 | 203 | | |
| |||
0 commit comments