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>.
| Version: | 1.1.0 |
| Depends: | R (≥ 4.4.0) |
| Imports: | dplyr, sp |
| Suggests: | imager, png, jpeg, tiff, bmp, testthat (≥ 3.0.0) |
| Published: | 2026-01-19 |
| DOI: | 10.32614/CRAN.package.coglyphr |
| Author: | Hiroyuki Muto |
| Maintainer: | Hiroyuki Muto <mutopsy at omu.ac.jp> |
| BugReports: | https://github.com/mutopsy/coglyphr/issues |
| License: | GPL-3 |
| URL: | https://github.com/mutopsy/coglyphr, https://mutopsy.github.io/coglyphr/ |
| NeedsCompilation: | no |
| Citation: | coglyphr citation info |
| Materials: | README, NEWS |
| CRAN checks: | coglyphr results |
| Reference manual: | coglyphr.html , coglyphr.pdf |
| Package source: | coglyphr_1.1.0.tar.gz |
| Windows binaries: | r-devel: coglyphr_1.0.4.zip, r-release: coglyphr_1.0.4.zip, r-oldrel: coglyphr_1.0.4.zip |
| macOS binaries: | r-release (arm64): coglyphr_1.0.4.tgz, r-oldrel (arm64): coglyphr_1.0.4.tgz, r-release (x86_64): coglyphr_1.0.4.tgz, r-oldrel (x86_64): coglyphr_1.0.4.tgz |
| Old sources: | coglyphr archive |
Please use the canonical form https://CRAN.R-project.org/package=coglyphr to link to this page.