Dependencies can be build from sources or obtained from package managers when available.
mkdir build && cd build
ccmake ../ (or cmake-gui)
make
NOTE : Only one OpenCV function (erode) is used by the egt algorithm. Linking statically to OpenCV is recommended for container distribution in order to reduce the size of the container.
A docker image can also be build from source.
The dist/Dockerfile
contains the description of the container.
Example:
./commandLineCli
-i "/path/to/images/pyramidal-tiled-image.tiff" \
-o "/path/to/output/" \
-d "16U"
--level "0"
--minhole "1000" --maxhole "inf" --minobject "3000"
The -e flag can be used for advanced controls :
-e "loader=2;tile=10;threshold=87;intensitylevel=0"
Environment variables can be set to generate logs.
GLOG_logtostderr=1; #print tostderr instead of log file GLOG_v=[0..4] #set log level between 0 and 4 for more detailed logs
Log Levels :
0/ no logs. 1/ basic info and execution time. 2/ algorithmic steps. 3/ detailed logs. 4/ very detailed logs.