Skip to content

Commit

Permalink
Merge pull request #1154 from alicevision/dev/errorStmap
Browse files Browse the repository at this point in the history
bad computation for stmap output
  • Loading branch information
fabiencastan authored Mar 2, 2022
2 parents 4f06b6c + c9417b6 commit 37f818b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/software/pipeline/main_distortionCalibration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ image::Image<image::RGBfColor> undistortSTMAP(Vec2 & offset, const std::shared_p
if (dist.x() < 0 || dist.x() >= source.Width()) continue;
if (dist.y() < 0 || dist.y() >= source.Height()) continue;

result(i, j).r() = dist.x() / (float(width) - 1);
result(i, j).g() = (float(height) - 1.0f - dist.y()) / (float(height) - 1.0f);
result(i, j).r() = dist.x() / (float(w) - 1);
result(i, j).g() = 1.0 - (dist.y() / (float(h) - 1.0f));
result(i, j).b() = 0.0f;
}
}
Expand Down

0 comments on commit 37f818b

Please sign in to comment.