CLI Documentation
General Usage
To use the LEDSA CLI, the general structure is as follows:
python -m ledsa [ARGUMENT] [OPTIONS]
Arguments
Data Extraction
Argument |
Description |
Options |
---|---|---|
|
Create the data extraction configuration file. |
– |
|
Step 1: Analyze a reference image to find the LEDs and create a labeled plot with the search areas. |
– |
|
Step 2: Match the LEDs to the arrays according to the line edge indices in the config file. |
– |
|
Step 3: Analyse all images to extract pixel values inside the search areas and fit them to an LED model (SLOW!). |
|
|
Step 3: Analyse all images to extract pixel values and calculate the accumulated values inside the search areas (FAST!). |
– |
|
Restart step 3 if it was previously interrupted. Only the images that have not been analysed are taken into account. |
– |
Analysis
Argument |
Description |
Options |
---|---|---|
|
Creates the analysis configuration file. |
– |
|
Computes the extinction coefficients. |
– |
|
Applies the color correction matrix before calculating the extinction coefficients. Use only if the reference property is not already color corrected. |
– |
|
Specifies the channels to which color correction gets applied. |
Can extend the list of channels, Multiple values allowed. |
Warning
Color Correction is in a test state and has not yet been sufficiently evaluated. The application may lead to incorrect results.
Coordinates
Argument |
Description |
Options |
---|---|---|
|
Calculate the 3D coordinates of the LEDs based on the calculated pixel positions and the physical edge coordinates of the LED arrays. |
– |
Testing
Argument |
Description |
Options |
---|---|---|
|
Run the acceptance test suite. |
– |
|
Run the acceptance test suite in debug mode. |
– |
Demo
Argument |
Description |
Options |
---|---|---|
|
Flag to indicate that the LEDSA demo should be run. |
Must be used with |
|
Create the required directories for the simulations and download images and config files. |
Optional: Path to setup simulation and image directories. Default to |
|
Run the LEDSA demo in the current working directory. |
– |