Locates and Counts Pixels Within Color Range(s) in Images
Overview
Counts colors within color range(s) in images, and provides a masked version of the image with targeted pixels changed to a different color. Output includes the locations of the pixels in the images, and the proportion of the image within the target color range with optional background masking. Users can specify multiple color ranges for masking.
Fixed some bugs with countColors accepting RGB matrices for indicator color specification. Fixed redundant vignette names.
From NEWS.md in the release
Install
Health
NOTEdependencies in R coder-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Namespace in Imports field not imported from: ‘jpeg’ All declared Imports should be used.
- NOTE11 OK, 2 NOTE2026-06-09
- ERROR10 OK, 2 NOTE, 1 ERROR2026-06-08
- NOTE9 OK, 5 NOTE2026-03-10
Documentation
- Help pages
- 6
- Examples that run
- 83%5 run in a plain check · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- Help pages citing references
- 0%
- Bat wing WNS HTML
- Introduction HTML
Downloads
Dependencies
Installing countcolors adds 83 packages (49 with compiled code, 77 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.9.1Latest
- 0.9.02018-11-02
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2018-11-02
- Total releases
- 2 / 8 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.4.0
- Download size
- 2.3 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("countcolors")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
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.