huedominance
Provides Hue Range Dominance Index (HRDI) algorithm — a new vegetation index proposed for PhenoCam plant phenology image analysis.
For comparison with Green Chromatic Coordinate (GCC), a gcc function is available, too.
To install:
pip3 install huedominance
To use from command line (example):
python3 -m huedominance 100 170 green_leaves.jpg
To use in your Python code:
from huedominance.hrdi import hrdi
from huedominance.gcc import gcc
from PIL import Image
image = Image.open('/path/to/your/image')
green_leaves_hrdi, hrdi_image = hrdi(image, 100, 170, make_illustration = True)
green_leaves_gcc, gcc_image = gcc(image, make_illustration = True)
hrdi_image.save('/path/to/hrdi/illustrative/signal/image', 'JPEG')
gcc_image.save('/path/to/gcc/illustrative/signal/image', 'JPEG')
red_leaves_hrdi, _ = hrdi(image, -30, 10)
Please refer to Python help on function hrdi for details about the algorithm.
Metadata
Release files for huedominance 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| huedominance-0.1.2.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| huedominance-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.5 kB
Release files / huedominance-0.1.2.tar.gz
| Download URL | huedominance-0.1.2.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9605bf4d7322f10eeabe0d7a51218fbe5d960849bf04044b847d1970592d1b19
|
|
BLAKE2b-256 checksum How to use checksums |
e93d9f671b7ff83d7722af800f8ac662f432aeae1f48844cb979e53102547812
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Release files / huedominance-0.1.2-py3-none-any.whl
| Download URL | huedominance-0.1.2-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ead3dc0b64ec91a048bbc2b52cce53eea96f28ee92885bf874b7e5c4059be90f
|
|
BLAKE2b-256 checksum How to use checksums |
8bfcbfce50e86dd798d0a32b9f7399f1b95da3494a02204bb031b63ef0342937
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|