Compute Glyph Centers of Gravity from Image Data
Overview
Computes the center of gravity (COG) of character-like binary images using three different methods. This package provides functions for estimating stroke-based, contour-based, and potential energy-based COG. It is useful for analyzing glyph structure in areas such as visual cognition research and font development. The contour-based method was originally proposed by Kotani et al. (2004) https://ipsj.ixsq.nii.ac.jp/records/36793 and Kotani (2011) https://shonan-it.repo.nii.ac.jp/records/2000243, while the potential energy-based method was introduced by Kotani et al. (2006) doi:10.11371/iieej.35.296.
- Removed hard dependency on the 'imager' package; it is now optional.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 8
- Examples that run
- 67%4 run in a plain check (2 of them under a condition) · 2 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 25%
Downloads
Repository
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/mutopsy/coglyphr on 2026-10-18.
GitHub Pages site last deployed 2025-12-24
pkgdown site last built 2025-12-24, before release 1.1.0 (2026-01-19)
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.1.0Latest
- 1.0.42025-09-30
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-09-30
- Total releases
- 2 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.4.0
- Bundled data
- 34 KB / 2 files
- Download size
- 60 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("coglyphr")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.51094/jxiv.1531.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.