Hue Range Dominance Index (HRDI) algorithm
Project description
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, makeIllustration = True)
green_leaves_gcc, gcc_image = gcc(image, makeIllustration = 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.
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
huedominance-0.1.1.tar.gz
(14.6 kB
view details)
Built Distribution
File details
Details for the file huedominance-0.1.1.tar.gz
.
File metadata
- Download URL: huedominance-0.1.1.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f19c797b4f05e7ebd94df923935b29b77ceabc1553116042f20fa7e411e1bf5b |
|
MD5 | ce9b02d68992badf6ed34d3d18397ff7 |
|
BLAKE2b-256 | ac2a6db9f03bcb86f71b72b9a8a975f1716f9484fd09ce7ffa73616de0397a1a |
File details
Details for the file huedominance-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: huedominance-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f616e256f12ecb9534899aa4c6d4c1d9099a45b0cab824c51a1444618e5d0bd |
|
MD5 | 4e099c95cb2006559bcaa6ebf98e528c |
|
BLAKE2b-256 | b9a32b86ac234068fd991450e8c453f98303bf28b4bc7cebb3ba816384585f2b |