【发布时间】:2016-11-15 12:27:31
【问题描述】:
我正在尝试获取协方差图以计算其上的一些值。这是之前完成的工作; Quantitative Analysis of Banded Structures in Dual-Phase Steels
只需阅读2.页面,就足以理解该方法。
你可以看到作者在情节的例子中使用了一张图片,然后他们得到了那个情节。
我只想通过使用我的图像来获得该图。
代码:
setwd(".../Project/R/Workspace/Task1")
library("EBImage", lib.loc="~/R/win-library/3.2")
img <- readImage(".../Project/Beispielbilder/example.jpg")
display(img, title='Image')
M <- img_ithr
plot(cov(M),xlim=c(0,1), ylim=c(0,300))
感谢您的帮助和时间,各位。
【问题讨论】:
标签: r image-processing covariance covariogram