Package: snic 0.6.1

snic: Superpixel Segmentation with the Simple Non-Iterative Clustering Algorithm

Implements the Simple Non-Iterative Clustering algorithm for superpixel segmentation of multi-band images, as introduced by Achanta and Susstrunk (2017) <doi:10.1109/CVPR.2017.520>. Supports both standard image arrays and geospatial raster objects, with a design that can be extended to other spatial data frameworks. The algorithm groups adjacent pixels into compact, coherent regions based on spectral similarity and spatial proximity. A high-performance implementation supports images with arbitrary spectral bands.

Authors:Rolf Simoes [aut, cre], Felipe Souza [aut], Felipe Carlos [aut], Gilberto Camara [aut, rth]

snic_0.6.1.tar.gz
snic_0.6.1.zip(r-4.7-x86_64)snic_0.6.1.zip(r-4.7-arm64)snic_0.6.1.zip(r-4.6-x86_64)snic_0.6.1.zip(r-4.6-arm64)snic_0.6.1.zip(r-4.5-x86_64)
snic_0.6.1.tgz(r-4.6-x86_64)snic_0.6.1.tgz(r-4.6-arm64)snic_0.6.1.tgz(r-4.5-x86_64)snic_0.6.1.tgz(r-4.5-arm64)
snic_0.6.1.tar.gz(r-4.7-arm64)snic_0.6.1.tar.gz(r-4.7-x86_64)snic_0.6.1.tar.gz(r-4.6-arm64)snic_0.6.1.tar.gz(r-4.6-x86_64)
snic_0.6.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
snic/json (API)

# Install 'snic' in R:
install.packages('snic', repos = c('https://rolfsimoes.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/rolfsimoes/snic/issues

Pkgdown/docs site:https://rolfsimoes.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

5.68 score 8 stars 7 scripts 538 downloads 13 exports 0 dependencies

Last updated from:102f0b6d69. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK114
linux-devel-x86_64OK126
source / vignettesOK199
linux-release-arm64OK95
linux-release-x86_64OK124
macos-release-arm64OK223
macos-release-x86_64OK422
macos-oldrel-arm64OK240
macos-oldrel-x86_64OK234
windows-devel-arm64OK413
windows-devel-x86_64OK140
windows-release-arm64OK361
windows-release-x86_64OK119
windows-oldrel-x86_64OK90
wasm-releaseOK98

Exports:as_seeds_rcas_seeds_wgs84as_seeds_xysnicsnic_animationsnic_count_seedssnic_get_centroidssnic_get_meanssnic_get_segsnic_gridsnic_grid_manualsnic_plotterra_is_working

Dependencies:

SNIC Segmentation Pipeline - SpatRaster
Introduction | Sentinel-2 preparation with terra | Seeds creation | Run SNIC | Segments visualization | Comparative grid types and compactness values | Fixed hexagonal seeds across resolutions | References

Last update: 2025-12-14
Started: 2025-11-22

SNIC Segmentation Pipeline - Arrays
Introduction | Image preparation | Lab color space | Seeds creation | Run SNIC | Segments visualization | Comparative grid types and compactness values | References

Last update: 2025-11-28
Started: 2025-11-22

Readme and manuals

Help Manual

Help pageTopics
Convert seed coordinates between raster index, map, and WGS84 systemsas_seeds_rc as_seeds_wgs84 as_seeds_xy seeds_api
Simple Non-Iterative Clustering (SNIC) segmentationsnic
Animated visualization of SNIC seeding and segmentationsnic_animation
SNIC segmentation containerprint.snic snic_class snic_get_centroids snic_get_centroids.snic snic_get_means snic_get_means.snic snic_get_seg snic_get_seg.snic
Spatial grid seeding for SNIC segmentationsnic_count_seeds snic_grid
Interactive seed selection for SNIC segmentationsnic_grid_manual
Plot SNIC imagerysnic_plot
Check whether 'terra' CRS transformations are availableterra_is_working