Package: thinr 0.2.0

Bill Denney

thinr: Binary Image Thinning Algorithms

Thinning (skeletonization) algorithms for binary raster images. Provides seven algorithms behind a single dispatching function: Zhang-Suen (Zhang and Suen 1984) <doi:10.1145/357994.358023>, Guo-Hall (Guo and Hall 1989) <doi:10.1145/62065.62074>, a 2-D adaptation of Lee (Lee, Kashyap, and Chu 1994) <doi:10.1006/cgip.1994.1042>, K3M (Saeed, Tabedzki, Rybnik, and Adamski 2010) <doi:10.2478/v10006-010-0024-4>, the parallel form commonly attributed to Hilditch (1969, in 'Machine Intelligence 4'), OPTA / SPTA (Naccache and Shinghal 1984), and Holt and colleagues (1987) <doi:10.1145/12527.12531>. Also provides the medial axis transform (Blum 1967) and a distance transform implementation following Felzenszwalb and Huttenlocher (2012) <doi:10.4086/toc.2012.v008a019>. The drop-in thinImage() matches the signature of thinImage() in the 'EBImage' package on Bioconductor so existing code can switch parsers without changes. The wider thin() API selects the algorithm by name.

Authors:Bill Denney [aut, cre]

thinr_0.2.0.tar.gz
thinr_0.2.0.tar.gz(r-4.7-arm64)thinr_0.2.0.tar.gz(r-4.7-x86_64)thinr_0.2.0.tar.gz(r-4.6-arm64)thinr_0.2.0.tar.gz(r-4.6-x86_64)
thinr_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
thinr/json (API)
NEWS

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

Bug tracker:https://github.com/humanpred/thinr/issues

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

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

On CRAN:

Conda:

cpp

2.70 score 4 exports 1 dependencies

Last updated from:1b1907b82b. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK144
linux-devel-x86_64OK163
source / vignettesOK239
linux-release-arm64OK183
linux-release-x86_64OK151
wasm-releaseOK131

Exports:distance_transformmedial_axisthinthinImage

Dependencies:Rcpp

Choosing a thinning method

Rendered fromchoosing-a-method.Rmdusingknitr::rmarkdownon May 27 2026.

Last update: 2026-05-27
Started: 2026-05-27