fix: use optical flow levels from config

This commit is contained in:
dominikmuhle 2021-10-09 20:04:22 +02:00
parent 1b8a855c43
commit 285cfe2878
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ class PatchOpticalFlow : public OpticalFlowBase {
Vector2 pos = kd.corners[i].cast<Scalar>();
for (int l = 0; l < 4; l++) {
for (int l = 0; l <= config.optical_flow_levels; l++) {
Scalar scale = 1 << l;
Vector2 pos_scaled = pos / scale;
p.emplace_back(pyramid->at(0).lvl(l), pos_scaled);