Skip to content

Commit

Permalink
fix the interpolation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Like4Schnitzel committed May 13, 2024
1 parent 0818e59 commit 51a56e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/img-viewer/imgviewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ cv::Vec3b meanColWithSubPixels(cv::Mat mat, double x, double y, double width, do
if (y == maxH - 1)
pixelPercent *= y1Percent;

auto pixel = slice.at<cv::Vec3b>(x, y);
auto pixel = slice.at<cv::Vec3b>(y, x);
result += pixel * pixelPercent;
pixelCount += pixelPercent;
}
Expand Down

0 comments on commit 51a56e6

Please sign in to comment.