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

颜色和原图不一致 #1

Open
kaich opened this issue Jul 22, 2021 · 3 comments
Open

颜色和原图不一致 #1

kaich opened this issue Jul 22, 2021 · 3 comments

Comments

@kaich
Copy link

kaich commented Jul 22, 2021

请问为什么会造成图片的颜色变深的问题呢?

@imxieyi
Copy link
Owner

imxieyi commented Jul 25, 2021

你是指的线条颜色变深吗?这应该是原本算法就有的效果。除线条之外看不出来颜色有什么区别。

@kaich
Copy link
Author

kaich commented Jul 26, 2021

我只是用它简单处理图片,没有处理视频。

不只是线条,整体颜色都变暗了, 下面是效果:

原图:

final

处理后效果图:

origin

@imxieyi
Copy link
Owner

imxieyi commented Jul 26, 2021

看起来像是颜色空间或者范围处理有问题。请检查一下你代码是否有保持输入输出色彩空间和范围一致。如果还有问题可以看看是不是把pixel format搞错了(RGB当成BGR)。

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