Skip to main content

Color distance calculator.

Project description

CDC - Color Distance Calculator

CDC can be a useful tool if you want to locate objects in an image / orthomosaic with a certain color. The tool can be used to go from this input image

Image

To this output image

Image

To learn more about the tool, take a look at the tutorial.

Table of contents:

Installation

CDC is a python package and can be installed with pip.

pip install CDC

For more advanced installation, please visit the Documentation for more information.

Usage

For a tutorial of how to use CDC on a test dataset, please see Tutorial.

How to make a reference image and mask

The easiest way to make a reference image is to use your preferred GIS image tool (like QGIS) to extract a small region from the orthomosaic. To make the mask open the reference image in an image editor and use the pen tool to mark all the desired pixels with red ((255, 0, 0) in RGB).

Run CDC

To run CDC on an orthomosaic, run the following in a terminal window:

CDC path/to/orthomosaic path/to/reference_image path/to/mask_image

Run CDC --help for more information or see the Documentation.

Documentation

For a full list of command line arguments see CLI. For a reference manual, please visit Reference Manual

Contributing

For contribution guidelines, please see the Documentation.

License

The software is licensed under the BSD-3-Clause license, see License.

Acknowledgement

the CDC tool was developed by SDU UAS Center as part of the project Præcisionsfrøavl, that was supported by the Green Development and Demonstration Programme (GUDP) and Frøafgiftsfonden both from Denmark.

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

cdc-1.0.4.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdc-1.0.4-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file cdc-1.0.4.tar.gz.

File metadata

  • Download URL: cdc-1.0.4.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cdc-1.0.4.tar.gz
Algorithm Hash digest
SHA256 083a7e9a86ada7349013b49176991d92626e4e786926a5523c5cd4a145e1d3d0
MD5 baa388e6a30d6f88ea3f52d8f860cc4c
BLAKE2b-256 f5a70b2997745e4bc1367e486e2eb43243de20294adcb9c6c1dcee86bc66e749

See more details on using hashes here.

Provenance

The following attestation bundles were made for cdc-1.0.4.tar.gz:

Publisher: publish_pypi.yml on henrikmidtiby/CDC

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cdc-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: cdc-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cdc-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2e00247f7c178e93b124bfa103a5c33d34fa7ac6f5cfacf5bf5a39aa387f449a
MD5 b589944c8aa12b347bb8ede1c5839521
BLAKE2b-256 3c69eca59aa6dd1a11452f08eeffdc1fd1320294acdeaf072125bfb441b95196

See more details on using hashes here.

Provenance

The following attestation bundles were made for cdc-1.0.4-py3-none-any.whl:

Publisher: publish_pypi.yml on henrikmidtiby/CDC

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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