R中的图像分析 [英] Image analysis in R

查看:354
本文介绍了R中的图像分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在R中执行图像分析。我的目标是将图像转换为矩阵(像素信息),提取/量化颜色,估计形状的存在并基于此比较图像指标/模式。



我知道Python中提供的相关软件包(也欢迎与Python相关的建议),但我希望在R中完成这些任务。 / p>

感谢您的反馈。



-Harsh

解决方案

另请查看R-Forge网站上的RASTER包:



http://r-forge.r-project.org/projects/raster/



它还没有发布到CRAN,但它是一个很好的包,用于导入,分析,提取,子集图像并将它们转换为矩阵)。空间分析也是可能的。



您可以通过以下方式下载R中的软件包:

  install.packages(raster,repos =http://r-forge.r-project.org)
require(raster)

R的例子:

  #from file 
r< - raster(system.file(external / test.grd,package =raster))
logo< - raster(system.file(external / rlogo.grd,package =raster),值= TRUE)
plot(logo)

签出

 ?raster#并转到包的索引,以获得图像分析所有选项的概述。 


I would like to know how I would go about performing image analysis in R. My goal is to convert images into matrices (pixel-wise information), extract/quantify color, estimate the presence of shapes and compare images based on such metrics/patterns.

I am aware of relevant packages available in Python (suggestions relevant to Python are also welcome), but I am looking to accomplish these tasks in R.

Thank you for your feedback.

-Harsh

解决方案

Also check out the RASTER package on the R-Forge website:

http://r-forge.r-project.org/projects/raster/

It is not released to CRAN yet but it is an excellent package to import, analyse, extract, subset images and convert them to matrices). Spatial analysis is also possible.

You can download the package in R via:

install.packages("raster",repos="http://r-forge.r-project.org")
require(raster)

An example for R:

#from file
r <- raster(system.file("external/test.grd", package="raster"))
logo <- raster(system.file("external/rlogo.grd", package="raster"), values=TRUE) 
plot(logo)

Check out

?raster # and go to index of the package for an overview of all the options for image analysis.

这篇关于R中的图像分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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