Package: coglyphr 1.1.0

Hiroyuki Muto
coglyphr: Compute Glyph Centers of Gravity from Image Data
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>.
Authors:
coglyphr_1.1.0.tar.gz
coglyphr_1.1.0.zip(r-4.7)coglyphr_1.1.0.zip(r-4.6)coglyphr_1.1.0.zip(r-4.5)
coglyphr_1.1.0.tgz(r-4.6-any)coglyphr_1.1.0.tgz(r-4.5-any)
coglyphr_1.1.0.tar.gz(r-4.7-any)coglyphr_1.1.0.tar.gz(r-4.6-any)
coglyphr_1.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
coglyphr/json (API)
| # Install 'coglyphr' in R: |
| install.packages('coglyphr', repos = c('https://mutopsy.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/mutopsy/coglyphr/issues
Pkgdown/docs site:https://mutopsy.github.io
Last updated from:a56eb7fe12. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 142 | ||
| source / vignettes | OK | 148 | ||
| linux-release-x86_64 | OK | 165 | ||
| macos-release-arm64 | OK | 120 | ||
| macos-oldrel-arm64 | OK | 118 | ||
| windows-devel | OK | 117 | ||
| windows-release | OK | 110 | ||
| windows-oldrel | OK | 103 | ||
| wasm-release | OK | 175 |
Exports:cog_contourcog_potentialcog_strokedraw_contourdraw_potentialdraw_stroke
Dependencies:clidplyrgenericsgluelatticelifecyclemagrittrpillarpkgconfigR6rlangsptibbletidyselectutf8vctrswithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Compute Contour-Based Center of Gravity (COG) | cog_contour |
| Compute Potential Energy-Based Center of Gravity (COG) | cog_potential |
| Compute Stroke-Based Center of Gravity (COG) | cog_stroke |
| Visualize Contour-Based Region and Center of Gravity (COG) | draw_contour |
| Visualize Potential-Based Center of Gravity (COG) and Potential Field | draw_potential |
| Visualize Stroke Region and Center of Gravity (COG) | draw_stroke |
| Example Image A | img_A |
| Example Image B | img_B |