量化图像,保存剩余颜色列表 [英] Quantize Image, Save List of Remaining Colors

查看:137
本文介绍了量化图像,保存剩余颜色列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用哪个库可以让我在iPhone上量化图像?

Is there a library I can use that will allow me to quantize images on an iPhone?

我想将图像量化为8种颜色并记录量化后剩余的每种颜色的十六进制或rgb值。

I want to quantize the images down to maybe 8 colors and record either hex or rgb values for each color remaining after the quantization.

推荐答案

您可以使用ImageMagick执行此任务: https://github.com/marforic/imagemagick_lib_iphone
MagickQuantizeImage和相关功能将为您提供帮助。

You can use ImageMagick for this task: https://github.com/marforic/imagemagick_lib_iphone MagickQuantizeImage and related function will help you.

这篇关于量化图像,保存剩余颜色列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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