We need to properly mount host directories and then we need to provide pyramid building arguments. Additional environment variables can be set to enable logging.
docker run -v $INPUT_DIR_HOST:$CONTAINER_DIR_INPUTS -v $OUTPUT_DIR_HOST:$CONTAINER_DIR_OUTPUTS \
-e GLOG_v=3 -e GLOG_logtostderr=1 $CONTAINER_IMAGE \
/tmp/main -i $IMAGES_PATH -v $STITCHING_VECTOR_PATH -o $CONTAINER_DIR_OUTPUTS \
-n pyramid -t 1024 -d 8U
Input and Output directories on the host should be mounted as volumes in the container, for example in /tmp/ :
INPUT_DIR_HOST=/path/on/host/to/inputDirectory
OUTPUT_DIR_HOST=path/on/host/to/outputDirectory
CONTAINER_DIR_INPUTS=/path/in/container/to/inputs
CONTAINER_DIR_OUTPUTS=/path/in/container/to/outputs
Now we provide the path to the images and stitching vector within the container
IMAGES_PATH=$CONTAINER_DIR_INPUTS/tiled-images
STITCHING_VECTOR_PATH=$CONTAINER_DIR_INPUTS/stitching_vector/img-global-positions-1.txt
CONTAINER_IMAGE=wipp/pyramid-building:0.0.2
-i $IMAGES_PATH : path to the images in the container-v $STITCHING_VECTOR_PATH : path to the stitching vector in the container-o $OUTPUT_DIR_HOST : path to the ouput directory in the container-n name: name of the pyramid created-d depth : depth and encoding of the ouput images : 8U or 16U (8bits or 16bits unsigned intergers)-t tilesize : size (in pixels) on the pyramid tilesEnvironment variables can be set to generate logs.
GLOG_logtostderr=1 : print tostderr instead of log fileGLOG_v=[0..4] : set log level between 0 and 4 for more detailed logsLog Levels :
Content type
Image
Digest
sha256:9214e9042…
Size
236.9 MB
Last updated
almost 4 years ago
docker pull wipp/wipp-pyramid-plugin