Tutorial#
Note
To run this tutorial, environment variable $FINITEDEPTH_SAMPLES must be set:
export FINITEDEPTH_SAMPLES=$(finitedepth samples)
FOR /F %G IN ('finitedepth samples') DO SET FINITEDEPTH_SAMPLES=%G
$env:FINITEDEPTH_SAMPLES=$(finitedepth samples)
Check if the variable is properly set.
The output of finitedepth samples command should be same as the result of:
echo $FINITEDEPTH_SAMPLES
echo %FINITEDEPTH_SAMPLES%
echo $env:FINITEDEPTH_SAMPLES
Download example.yml file in your local directory.
The contents of this configuration file are:
entry1:
type: CoatingImage
referencePath: $FINITEDEPTH_SAMPLES/ref.png
targetPath: $FINITEDEPTH_SAMPLES/coat.png
reference:
parameters:
templateROI: [10, 10, 1250, 200]
substrateROI: [100, 100, 1200, 500]
layer:
draw:
layer_color: [69, 132, 182]
output:
layerImage: output/example1.png
Running the following command will analyze the files:
finitedepth analyze example.yml
Result (example1.png):