Skip to content

catsim

Binary and Categorical Image Similarity Index

v0.2.4 · Sep 30, 2024 · GPL-3

Description

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>.

Downloads

CRAN

304

Last 30 days

15232nd

766

Last 90 days

3.1K

Last year

Trend: +53.5% (30d vs prior 30d)

r2u CRAN

24

Last 30 days

117

Last 90 days

411

Last year

Trend: -41.5% (30d vs prior 30d)

autoCRAN

3

Last 7 days

17

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  6.6Mb
  sub-directories of 1Mb or more:
    libs   6.4Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  6.5Mb
  sub-directories of 1Mb or more:
    libs   6.3Mb
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/catsim.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

installed package size

installed size is  6.6Mb
  sub-directories of 1Mb or more:
    libs   6.4Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  6.5Mb
  sub-directories of 1Mb or more:
    libs   6.3Mb
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  6.6Mb
  sub-directories of 1Mb or more:
    libs   6.4Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  6.5Mb
  sub-directories of 1Mb or more:
    libs   6.3Mb

Code

Structure

Lines of code

3,163

Files

40

Compiled share

18.1%

Has compiled src

Yes

Language breakdown

R 1,359 (43%)C/C++/src 573 (18.1%)Tests 311 (9.8%)Docs 630 (19.9%)Vignettes 290 (9.2%)

API

Exported functions

14

Internal functions

26

Recent export changes

v0.2.0+14 adj_rand, adjusted_mi, binssim +11 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.23

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.6

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2020-04-28

Latest release

2024-10-01

Avg cadence

223 days

Cold removal rate

Dep drift

0

LOC over versions

v0.2.0: 3,165 LOCv0.2.1: 3,165 LOCv0.2.3: 3,168 LOCv0.2.4: 3,163 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies Rcpp catsim

Version History

5 tracked
new 0.2.4 Mar 10, 2026
updated 0.2.4 ← 0.2.3 diff Sep 30, 2024
updated 0.2.3 ← 0.2.1 diff Dec 15, 2020
updated 0.2.1 ← 0.2.0 diff May 5, 2020
new 0.2.0 Apr 27, 2020