Skip to main content

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


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.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

huedominance-0.1.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file huedominance-0.1.0.tar.gz.

File metadata

  • Download URL: huedominance-0.1.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for huedominance-0.1.0.tar.gz
Algorithm Hash digest
SHA256 432fdeec00c7fb7c07e1597a5158cd96df0228daea98307eae0e122353b554ab
MD5 0935e2b84ab39073ebd7347f1855d830
BLAKE2b-256 2ee640faf148f873883bdb4bd6d0e5b63b9b914e7f6b9c254ef2159170fdba9e

See more details on using hashes here.

File details

Details for the file huedominance-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for huedominance-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be6c6893aae83c8e94c1e64dbbd5505cd35a5268ac3b492179493efdc1e22c53
MD5 1cc17538bed9017b9a3019e640b068b7
BLAKE2b-256 ed0134e39696cf05c82a3b89acf1a897415a06555fe1714868fee087c58a5156

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page