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

answer_10.cpp 中值问题 #24

Open
EvanZhao1003 opened this issue Mar 6, 2020 · 0 comments
Open

answer_10.cpp 中值问题 #24

EvanZhao1003 opened this issue Mar 6, 2020 · 0 comments

Comments

@EvanZhao1003
Copy link

// get and assign median
std::sort(vs, vs + (kernel_size * kernel_size));
out.atcv::Vec3b(y, x)[c] = (uchar)vs[int(floor(count / 2)) + 1];
既然取的是中值,索引从0开始,不应该+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