Ostu threshold
Goal
Create a container and run the otsu
step in the container image tagged localhost/otsu:latest
.
Lab
This step has a dedicated lab available at /workspace/mastering-app-package/practice-labs/Containers/otsu.ipynb
Container
Each step has its own recipe to build the container image.
The otsu
step container image recipe is:
otsu/Dockerfile | |
---|---|
1 2 3 4 5 6 7 8 |
|
Build the container image with:
terminal | |
---|---|
1 2 3 |
|
Run the container
The command to run the otsu
step in the container is:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Step
Run the command to run the otsu
step with:
sh -x ${WORKSPACE}/scripts/podman-otsu.sh
Expected outcome
The folder /workspace/mastering-app-package/runs
contains:
(base) jovyan@coder-mrossi:~/runs$ tree .
.
├── crop_green.tif
├── crop_nir.tif
├── norm_diff.tif
└── otsu.tif
0 directories, 4 files