Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 TurboJpeg 或底层 libJpeg API 上 - 是否有一个简单的函数用于从 Ycbcr 中提取 Y 分量(在我已经阅读了图像之后)?
我知道我可以遍历数据并提取字节。这不是已经实现了吗?
解压缩/解码时,使用TJPF_GRAY格式,它会丢弃颜色信息,只保留 Y(发光)。
TJPF_GRAY
参考API 的这部分,如果你愿意转换它,那部分,如果你愿意直接解码成灰度图像,可以参考这个函数。