Cross-image co-occurrence matrix (CICM) implementation in Python.
Project description
CICM
Implementation of a cross-image co-occurrence matrix (CICM) in python, which computes a version of the common gray-level co-ocurrence matrix (GLCM) between different images, or channels of the same image.
Python's package scikit-image implements the calculation of the GLCM matrix through method graycomatrix in the feature module. However, since this method only accepts one image as parameter, it is not possible to compare pixel co-occurrence between pixels from different images.
This repository provides a similar functionality as that of method graycomatrix, with the addition of a second image argument to compare pixels with. Run tests show average computation times in the order of O(n^5) as a function of the image size (constant gray level), and O(log(N)) as a function of the number of gray levels (for constant image size), which is fast enough for common image sizes.
Performance graphs for method cicm compared with scikit-image's graycomatrix. Computation times as a function of the number of gray levels (left), and image size (right).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cicm-0.1.0.tar.gz.
File metadata
- Download URL: cicm-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfad68b8dbe1f63974cda592dd6696503a48b34bcf45c993b8c9e70131e55ed7
|
|
| MD5 |
40eb3832df94a3e2bb2a2a5c11ed6fce
|
|
| BLAKE2b-256 |
fe9df9f5b596bd51f9d6a5a4c7091f6647e6a19158042f2a5312ce0901e32da5
|
File details
Details for the file cicm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cicm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3181b27b422f5956ad97695a73e664d1b6cbb16e1021852e9a9ed1f36ce5b2af
|
|
| MD5 |
4bfe448e1340e2c886711c7805f59b88
|
|
| BLAKE2b-256 |
8a5035afc1c240397c7da8b68dba205c3e3eaa27d074378b2abc170aa14f797f
|