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

resize算法求解 #4

Open
Airbala opened this issue Mar 1, 2024 · 4 comments
Open

resize算法求解 #4

Airbala opened this issue Mar 1, 2024 · 4 comments

Comments

@Airbala
Copy link

Airbala commented Mar 1, 2024

大佬请问一下你实现的 U8 的 resize 算法和 opencv 能做到 bit对齐吗?

@Airbala
Copy link
Author

Airbala commented Mar 1, 2024

我按照公式实现一版 resize,结果有大概30%左右的 pixel误差,整的人头有点大

@fengbingchun
Copy link
Owner

应该是和opencv 3.1 c++的实现对齐的,有单元测试

@Airbala
Copy link
Author

Airbala commented Mar 6, 2024

哥 我读了你实现的双线性插值 resize 基本上和opencv的一模一样,我个人感觉opencv的可读性有点不太强,不太好定点打印出某个位置的值,如果你有相应的ref代码实现,那就非常完美了。我现在需要实现一版能和opencv完全对齐的向量化版本的算法,出师未捷啊,第一步就卡了

@fengbingchun
Copy link
Owner

@Airbala 我就是按照opencv 3.1中的源码提取的,关闭掉simd, openmp等与加速相关的code,仅执行纯c++ code

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

2 participants