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
To this output 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
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 cdc-1.1.3.tar.gz.
File metadata
- Download URL: cdc-1.1.3.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dee0edb6915336950cb15c950191dae37ad56718d8c3c94371e2ec7ed9dc22e
|
|
| MD5 |
dde5b0d972ce0db3be1a0476b959f863
|
|
| BLAKE2b-256 |
5de681569c371531fdf7df7fb70df74a1393f70c48cd91f29257cdf11f4bdc70
|
Provenance
The following attestation bundles were made for cdc-1.1.3.tar.gz:
Publisher:
publish_pypi.yml on henrikmidtiby/CDC
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cdc-1.1.3.tar.gz -
Subject digest:
2dee0edb6915336950cb15c950191dae37ad56718d8c3c94371e2ec7ed9dc22e - Sigstore transparency entry: 910342447
- Sigstore integration time:
-
Permalink:
henrikmidtiby/CDC@9c6a4086fd116514e2d302f8a21c7293a6eb6321 -
Branch / Tag:
refs/tags/v1.1.3 - Owner: https://github.com/henrikmidtiby
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi.yml@9c6a4086fd116514e2d302f8a21c7293a6eb6321 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cdc-1.1.3-py3-none-any.whl.
File metadata
- Download URL: cdc-1.1.3-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b113e43edb7bab9590a49c5c5f1ff982c072be3d7e0a5da08d399c2392a421af
|
|
| MD5 |
e0ccc7c67fc1e880f331d2909114d4a9
|
|
| BLAKE2b-256 |
a038245d3e4dde1e17e3c752d1ae06f11a8adc78d666fdf787dca58fbbc4d199
|
Provenance
The following attestation bundles were made for cdc-1.1.3-py3-none-any.whl:
Publisher:
publish_pypi.yml on henrikmidtiby/CDC
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cdc-1.1.3-py3-none-any.whl -
Subject digest:
b113e43edb7bab9590a49c5c5f1ff982c072be3d7e0a5da08d399c2392a421af - Sigstore transparency entry: 910342456
- Sigstore integration time:
-
Permalink:
henrikmidtiby/CDC@9c6a4086fd116514e2d302f8a21c7293a6eb6321 -
Branch / Tag:
refs/tags/v1.1.3 - Owner: https://github.com/henrikmidtiby
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi.yml@9c6a4086fd116514e2d302f8a21c7293a6eb6321 -
Trigger Event:
push
-
Statement type: