【发布时间】:2018-10-11 19:56:45
【问题描述】:
如何在 R 中显示多个 2d 图像的堆栈以形成 3d 图像?如果有人可以与示例共享代码,那将非常有帮助。enter link description here
【问题讨论】:
如何在 R 中显示多个 2d 图像的堆栈以形成 3d 图像?如果有人可以与示例共享代码,那将非常有帮助。enter link description here
【问题讨论】:
请参阅 magick 包的小插图。
https://github.com/ropensci/magick/blob/master/vignettes/intro.Rmd
在 Image Vectors - Combining 下,它显示了如何使用偏移量组合多个图层。听起来你会做这样的事情:
library(magick)
combo <- image_composite(layer1, layer2, offset = "+0+50")
combo <- image_composite(combo , layer3, offset = "+0+50")
combo <- image_composite(combo , layer4, offset = "+0+50")
【讨论】: