Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

双线性插值和数学理论公式差别大 #137

Open
Ichiruchan opened this issue Jul 11, 2024 · 2 comments
Open

双线性插值和数学理论公式差别大 #137

Ichiruchan opened this issue Jul 11, 2024 · 2 comments

Comments

@Ichiruchan
Copy link

我保存了c++和py在双线性插值后的图片,发现预测图片实际有所偏差
image
,目标点(122,147)根据数学公式算出核心点应该是(121.30397727272727,138.20738636363635),而在kernel中
image
w我输出了结果,
image
在填充方向y上有较大的误差,对于x方向的误差为scale在python和c++的精度不同,在pose模型上没有太大问题,但是在我写的obb的部署中发现预测结果有较大误差

@Ichiruchan Ichiruchan changed the title 双线性插值和数学理论公式差别过大 双线性插值和数学理论公式差别大 Jul 11, 2024
@Ichiruchan
Copy link
Author

Ichiruchan commented Jul 12, 2024

目前我是自己重新写了一下坐标转换,目前和python的resize结果最多差3个像素值

@Ichiruchan
Copy link
Author

目前我是自己重新写了一下坐标转换,目前和python的resize结果最多差3个像素值

更新,看了opencv的源码改写完后只有边界部分有1个像素值的误差

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant