Image analysis in R

眉间皱痕 提交于 2019-12-02 22:57:08

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.

I'd start with EBImage - check out the vignette which demonstrates many of the tasks you mention.

I believe the CRAN Task View on Medical Imaging should have something for you.

You may also be interested in Rpy which allows you to call R functions and use R packages from Python. This may allow you to have your cake (Python's imaging libraries) and eat it too (R's statistical analysis capabilities).

Try the rgdal package. You will be able to read (import) and write (export) GeoTiff image files from/to R.

Marcio Pupin Mello

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!