magick::image_get_artifact()函数artifact参数的可选值有哪些?
magick::image_get_artifact() 参数疑问及图像颜色提取测试
artifact:字符串,指定要提取的artifact名称,可参考image_deskew的示例。
我不清楚该参数的可选值,目前想要提取图像中的颜色,测试代码如下:
library(magick) #> 已链接到ImageMagick 6.9.12.3 #> 启用特性:cairo, freetype, fftw, ghostscript, heic, lcms, pango, raw, rsvg, webp #> 禁用特性:fontconfig, x11 img <- image_read('https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png') image_get_artifact(img, 'colorspace') #> [1] ""
于2023-12-06使用reprex v2.0.2生成
内容的提问来源于stack exchange,提问作者joshbrows
相关产品推荐
相关产品推荐

