Package: catsim 0.2.4

catsim: Binary and Categorical Image Similarity Index

Computes a structural similarity metric (after the style of MS-SSIM for images) for binary and categorical 2D and 3D images. Can be based on accuracy (simple matching), Cohen's kappa, Rand index, adjusted Rand index, Jaccard index, Dice index, normalized mutual information, or adjusted mutual information. In addition, has fast computation of Cohen's kappa, the Rand indices, and the two mutual informations. Implements the methods of Thompson and Maitra (2020) <doi:10.48550/arXiv.2004.09073>.

Authors:Geoffrey Thompson [aut, cre]

catsim_0.2.4.tar.gz
catsim_0.2.4.zip(r-4.7)catsim_0.2.4.zip(r-4.6)catsim_0.2.4.zip(r-4.5)
catsim_0.2.4.tgz(r-4.6-x86_64)catsim_0.2.4.tgz(r-4.6-arm64)catsim_0.2.4.tgz(r-4.5-x86_64)catsim_0.2.4.tgz(r-4.5-arm64)
catsim_0.2.4.tar.gz(r-4.7-arm64)catsim_0.2.4.tar.gz(r-4.7-x86_64)catsim_0.2.4.tar.gz(r-4.6-arm64)catsim_0.2.4.tar.gz(r-4.6-x86_64)
catsim_0.2.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
catsim/json (API)
NEWS

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

Bug tracker:https://github.com/gzt/catsim/issues

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

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

On CRAN:

Conda:

binary-databinary-image-classificationbinary-image-processingcategorical-datacategorical-imagesclassificationimage-processingcpp

4.40 score 5 stars 5 scripts 195 downloads 14 exports 24 dependencies

Last updated from:eceeb92f1b. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK143
linux-devel-x86_64OK153
source / vignettesOK262
linux-release-arm64OK143
linux-release-x86_64OK146
macos-release-arm64OK86
macos-release-x86_64OK284
macos-oldrel-arm64OK111
macos-oldrel-x86_64OK444
windows-develOK123
windows-releaseOK139
windows-oldrelOK112
wasm-releaseOK121

Exports:adj_randadjusted_mibinssimcatmssim_2dcatmssim_3d_cubecatmssim_3d_slicecatsimcohen_kappaginiginicorrnormalized_mirand_indexsqrtginisqrtginicorr

Dependencies:briocallrclicrayondescdiffobjevaluatefsgluejsonlitelifecyclemagrittrpkgbuildpkgloadpraiseprocessxpsR6Rcpprlangrprojroottestthatwaldowithr

Two-Dimensional Examples of CatSIM

Rendered fromtwo-dimensional-example.Rmdusingknitr::rmarkdownon Jun 02 2026.

Last update: 2024-09-30
Started: 2020-03-23

Readme and manuals

Help Manual

Help pageTopics
A hand-constructed image from Besag (1986)besag
Categorical Structural Similarity Index Metric (whole image)binssim
Multiscale Categorical Structural Similarity Index Measure (2D)catmssim_2d
Multiscale Categorical Structural Similarity Index Measure for a Cube (3D)catmssim_3d_cube
Multiscale Categorical Structural Similarity Index Measure by Slice (3D)catmssim_3d_slice
Multiscale Categorical Structural Similarity Index Measurecatsim
Diversity IndicesCorrected Gini-Simpson index gini ginicorr Modified Corrected Gini index Modified Gini-Simpson index sqrtgini sqrtginicorr
An example fMRI phantomhoffmanphantom
Similarity IndicesAdjusted Mutual Information Adjusted Rand Index adjusted_mi adj_rand Cohen's kappa cohen_kappa Normalized Mutual Information normalized_mi rand rand_index