Image analysis in R

后端 未结 5 1775
渐次进展
渐次进展 2021-02-05 13:28

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 t

5条回答
  •  渐次进展
    2021-02-05 13:43

    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.
    

提交回复
热议问题