Superpixel Image Segmentation

Image Segmentation using Superpixels, Affinity Propagation and Kmeans Clustering. The R code is based primarily on the article "Image Segmentation using SLIC Superpixels and Affinity Propagation Clustering, Bao Zhou, International Journal of Science and Research (IJSR), 2013" < https://pdfs.semanticscholar.org/6533/654973054b742e725fd433265700c07b48a2.pdf>.



The R / Rcpp code of the SuperpixelImageSegmentation package is based primarily on the article "Image Segmentation using SLIC Superpixels and Affinity Propagation Clustering", Bao Zhou, International Journal of Science and Research (IJSR), 2013.

I wrote a blog post explaining how to take advantage of the R / Rcpp code of the SuperpixelImageSegmentation package.


System / Software Requirements:

The SuperpixelImageSegmentation package can be installed from CRAN using,


 
install.packages("SuperpixelImageSegmentation")
 
 

or by using the install_github function of the devtools package,

 
devtools::install_github('mlampros/SuperpixelImageSegmentation')
 
 

or by directly downloading the .zip file using the Clone or download button in the repository page, extracting it locally (renaming it to SuperpixelImageSegmentation if necessary) and running,


 
#--------
# on Unix
#--------
 
setwd('/your_folder/SuperpixelImageSegmentation/')
Rcpp::compileAttributes(verbose = TRUE)
setwd('/your_folder/')
system("R CMD build SuperpixelImageSegmentation")
system("R CMD INSTALL SuperpixelImageSegmentation_1.0.0.tar.gz")
 
 
#-----------
# on Windows
#-----------
 
setwd('C:/your_folder/SuperpixelImageSegmentation/')
Rcpp::compileAttributes(verbose = TRUE)
setwd('C:/your_folder/')
system("R CMD build SuperpixelImageSegmentation")
system("R CMD INSTALL SuperpixelImageSegmentation_1.0.0.tar.gz")
 

Use the following link to report bugs/issues,

https://github.com/mlampros/SuperpixelImageSegmentation/issues

News

SuperpixelImageSegmentation 1.0.0

  • The spixel_segmentation method allows also the user to return the kmeans clusters too (in case that the kmeans_method is set to "kmeans" or "mini_batch_kmeans")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("SuperpixelImageSegmentation")

1.0.0 by Lampros Mouselimis, 5 months ago


Browse source code at https://github.com/cran/SuperpixelImageSegmentation


Authors: Lampros Mouselimis <[email protected]>


Documentation:   PDF Manual  


GPL-3 license


Imports Rcpp, R6, OpenImageR

Suggests testthat, covr, knitr, rmarkdown

Linking to Rcpp, RcppArmadillo, ClusterR, OpenImageR


See at CRAN