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.
我在 MAC OSX 上。
如何将灰度图像转换为 RGB 格式。我可以使用 CIFilters 进行转换吗?或任何其他方式
而且我想扭转操作。即,将 RGB 格式转换为灰度格式。
Regards, Dhanaraj.
您可以将灰度图像绘制到 RGB 颜色上下文中并导出该图像。当然,将灰度图像绘制到非灰度上下文中的能力意味着您可能不需要首先转换图像,因为它会即时为您完成。
Core Image 需要 RGB 图像作为输入并生成它们作为输出。我认为它会为您转换非 RGB 图像,因此您可以在其身份配置中使用一些简单的过滤器,但这是不必要的。
您真正想要做什么需要您转换图像?