JPEG算法如何用于设置较暗的颜色 [英] How JPEG Algorithm Used to Set Colors Darker

查看:102
本文介绍了JPEG算法如何用于设置较暗的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在JPEG压缩中使用算法以使设置的颜色更深和减去RGB代码
我的程序%100需要正确的原始RGB颜色代码,请帮助我
我的最后答案无法帮助我
我想要数学或绘图功能来还原我的颜色
非常感谢Mr.Deepak Jena的最后回答

How Algorithm Used In JPEG Compression For Set Colors Darker and Subtract RGB Codes
My Program %100 Need Correct and Original RGB Color Codes Please Help Me
My Last Answer Can''t Help Me
I Want a Math or Drawing Function to Restore My Colors
Very Thanks Mr.Deepak Jena For Last Answer

推荐答案

对不起,但是如果使用JPG格式,您将无法获得100%正确的原始颜色代码-这是一种有损压缩技术,使用像素相似度来丢弃信息,而不会显着影响图像质量.作为压缩的第一阶段,所有JPG处理都将从RGB转换为YCbCr,尽管电视犯罪电视剧可能会告诉您,也无法反转转换并恢复原始图像!

如果您想保留100%的原始颜色信息,请不要使用有损压缩文件格式-请使用完全不进行压缩的BMP或类似格式,并且(如有必要)之后再使用非有损压缩技术,例如ZIP.
Sorry, but you can''t get 100% correct and original color codes if you use JPG formats - it is a lossy compression technique which uses pixel similarity to discard information without significantly affecting image quality. All JPG processing converts from RGB to YCbCr as the first stage in the compression, and it is not possible to reverse the conversion and restore the original image, despite what TV crime dramas may tell you!

If you want to retain 100% original color information then do not use a lossy compression file format - use BMP or similar which does no compression at all, and (if necessary) use a non-lossy compression technique such as ZIP afterwards.


这篇关于JPEG算法如何用于设置较暗的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆