rgb - 从图像中提取红色 channel

标签 rgb imagick

我有一个图像说“X”(RGB),我想使用 Imagick 从中获取红色 channel 的图像
我试过引用 http://www.imagemagick.org/Usage/quantize

最佳答案

您需要的命令可以在 ImageMagick 文档中找到 https://www.imagemagick.org/Usage/color_basics/#separate :

Separating Channel Images

The easiest way separating out the individual color channels is to use the "-separate" operator to extract the current contents of each channel as a gray-scale image.

convert rose: -channel R -separate separate_red.gif
convert rose: -channel G -separate separate_green.gif
convert rose: -channel B -separate separate_blue.gif

Rose ==> Rose Red Rose Green Rose Blue


(在这些示例中,rose: 参数使其使用小 built-in image 玫瑰作为输入。)

关于rgb - 从图像中提取红色 channel ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9919956/

相关文章:

php - 使用透明 PNG 作为剪贴蒙版

php - 如何使用 Imagick 合并和屏蔽图像?

php - 设置 PHP ImageMagick tmp 目录

css - sRGB 和跨浏览器颜色差异

go - 将 RGBA 图像转换为灰度 Golang

使用 RGB 颜色进行 MATLAB 绘图

iphone - iPhone 导航栏的默认 UIColor

php - xampp无法加载imagick-不兼容的库版本

php - 我的 Imagick 代码似乎从未调整大小,但仍然产生清晰的图像

swift - 如何更改不同 View Controller 上的文本颜色