visual-clutter
Python Implementation of two measures of visual clutter (Feature Congestion and Subband Entropy), Matlab Version, + library dependency.
Pre-requisites
-
This utility is written in Python 3. You will need a Python 3 interpreter installed or you will have to package this into a self contained executable.
-
This utility uses Pyrtools. So you will need to run it on Linux or on OSX. Windows is NOT supported because of issues with the C compiler (gcc isn't necessarily installed).
How to Install visual_clutter
pip install visual-clutter
# install from git
pip install git+https://github.com/kargaranamir/visual-clutter
How to use (Examples)
from visual_clutter import Vlc
# make visual clutter object and load test map and set parameters
clt = Vlc('./tests/test.jpg', numlevels=3, contrast_filt_sigma=1, contrast_pool_sigma=3, color_pool_sigma=3)
# get Feature Congestion clutter of a test map:
clutter_scalar_fc, clutter_map_fc = clt.getClutter_FC(p=1, pix=1)
# get Subband Entropy clutter of the test map:
clutter_scalar_se = clt.getClutter_SE(wlevels=3, wght_chrom=0.0625)
print(f'clutter_scalar_fc: {clutter_scalar_fc}')
print(f'clutter_scalar_se: {clutter_scalar_se}')
# just compute and display color clutter map(s)
color_clutter = clt.colorClutter(color_pix=1)
# just compute and display contrast clutter map(s)
contrast_clutter = clt.contrastClutter(contrast_pix=1)
# just compute and display orientation clutter map(s)
orientation_clutter = clt.orientationClutter(orient_pix=1)
Reference
Ruth Rosenholtz, Yuanzhen Li, and Lisa Nakano. "Measuring Visual Clutter".
Journal of Vision, 7(2), 2007. http://www.journalofvision.com/7/2/
Ruth Rosenholtz, Yuanzhen Li, and Lisa Nakano, May 2007.
Citation
visual_clutter python package is now part of AIM2. If you use any part of this library in your research, please cite it using the following BibTex entry. Bibtex entry for AIM2 will be added once it is released.
@misc{visual_clutter,
author = {Kargaran, Amir Hossein},
title = {Visual Clutter Python Library},
year = {2021},
publisher = {GitHub},
journal = {GitHub Repository},
howpublished = {\url{https://github.com/kargaranamir/visual-clutter}},
}
Related Repositories
Studies Referencing Our Package
- Master Thesis: Unveiling the Inner Structures of the Montreux Jazz Festival Concert
Metadata
Release files for visual-clutter 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| visual_clutter-1.0.7.tar.gz | 17.2 kB | Without provenance | Details for visual_clutter-1.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| visual_clutter-1.0.7-py3-none-any.whl | Python 3 | none | any | Details for visual_clutter-1.0.7-py3-none-any.whl |
Total release size: 33.7 kB
Release files / visual_clutter-1.0.7.tar.gz
| Download URL | visual_clutter-1.0.7.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3ed9535d266a7c2f2cf32b2d2845296c9e21f8e652b1feb5b1ff1ef366fff05
|
|
BLAKE2b-256 checksum How to use checksums |
8177250df3cd5d1077cb3ae2114602c198aa3ccb780ec67cddc8c77dbc804a4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.17
|
Release files / visual_clutter-1.0.7-py3-none-any.whl
| Download URL | visual_clutter-1.0.7-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dff1328043ade67d4a0094a8de09f655cd5a184942e3de7c53b8f966d909c9cb
|
|
BLAKE2b-256 checksum How to use checksums |
0496d154232c9929bbf175aeca52e9533adc6547d6cb7453faa99fcdd0b8c4d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.17
|
Security for visual-clutter 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.