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

Closed
runner111 opened this issue Jul 26, 2018 · 3 comments
Closed

误差扩散算法 #1

runner111 opened this issue Jul 26, 2018 · 3 comments

Comments

@runner111
Copy link

请问如何能支持RGB666?我在您的算法上做了些修改,但是总是偏色。而且有些地方也看不太明白。比如 inline long getBestRGB16_555Color( const long wantColor)
inline long getC8Color( const long rColor)
能详细讲一讲吗 @sisong

@sisong
Copy link
Owner

sisong commented Jul 27, 2018

颜色处理时需要注意颜色bit数,类似于模拟浮点数的定点数计算;
另外RGB666,意味着那保存这个值至少需要18bit颜色(或24bit、32bit都有可能),这里是否有误?

@runner111
Copy link
Author

感谢您的回答 RGB666的排列方式是按字排列,这样会节省空间。也就是RRRRRRGG GGGGBBBB BBRRRR 是工业上包括某些手机屏幕的显示方式,我现在就是在找问题,请问那这两个函数内容需不需要更改?我改成移位6字了,这么改对吗?

@sisong
Copy link
Owner

sisong commented Jul 27, 2018

用2分法定位bug

@sisong sisong closed this as completed Aug 4, 2018
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