diff --git a/bash_helper_scripts/get_small_data_for_playground.sh b/bash_helper_scripts/get_small_data_for_playground.sh index 0b28e88bf288e32b310fccf784784699ee853d5b..3e096fb1a845bd2a80de14bade678c0e873668c7 100755 --- a/bash_helper_scripts/get_small_data_for_playground.sh +++ b/bash_helper_scripts/get_small_data_for_playground.sh @@ -1,4 +1,4 @@ -TARGET_FOLDER=/home/nibio/mutable-outside-world/code/gitlab_fsct/instance_segmentation_classic/maciek +TARGET_FOLDER=/home/nibio/mutable-outside-world/code/gitlab_fsct/instance_segmentation_classic/sample_playground rm -rf $TARGET_FOLDER/* cp /home/nibio/mutable-outside-world/data/small_file_pipeline_test/small_file_pipeline_test.las $TARGET_FOLDER @@ -6,11 +6,11 @@ cp /home/nibio/mutable-outside-world/data/small_file_pipeline_test/small_file_pi # change name of the file to first.laz mv $TARGET_FOLDER/small_file_pipeline_test.las $TARGET_FOLDER/first.las -# make a copy of the file -cp $TARGET_FOLDER/first.las $TARGET_FOLDER/second.las +# # make a copy of the file +# cp $TARGET_FOLDER/first.las $TARGET_FOLDER/second.las -# make a copy of the file -cp $TARGET_FOLDER/first.las $TARGET_FOLDER/third.las +# # make a copy of the file +# cp $TARGET_FOLDER/first.las $TARGET_FOLDER/third.las -# make a copy of the file -cp $TARGET_FOLDER/first.las $TARGET_FOLDER/fourth.las \ No newline at end of file +# # make a copy of the file +# cp $TARGET_FOLDER/first.las $TARGET_FOLDER/fourth.las \ No newline at end of file diff --git a/run_all_command_line.sh b/run_all_command_line.sh index 696c51614734c0418f63fe76fb68d0555d33ece6..2b7acbb13f91eb56d06ba3f1dcf0dbf778058205 100755 --- a/run_all_command_line.sh +++ b/run_all_command_line.sh @@ -14,10 +14,13 @@ FIND_STEMS_THICKNESS=0.5 GRAPH_MAXIMUM_CUMULATIVE_GAP=3 ADD_LEAVES_VOXEL_LENGTH=0.5 FIND_STEMS_MIN_POINTS=50 +GRAPH_EDGE_LENGTH=1.0 +ADD_LEAVES_EDGE_LENGTH=1.0 + ############################# end of parameters declaration ############################ # extract tiling parameters as command line arguments with the same default values -while getopts "d:n:s:h:t:g:l:m:" opt; do +while getopts "d:n:s:h:t:g:l:m:o:p:" opt; do case $opt in d) data_folder="$OPTARG" ;; @@ -35,6 +38,10 @@ while getopts "d:n:s:h:t:g:l:m:" opt; do ;; m) FIND_STEMS_MIN_POINTS="$OPTARG" ;; + o) GRAPH_EDGE_LENGTH="$OPTARG" + ;; + p) ADD_LEAVES_EDGE_LENGTH="$OPTARG" + ;; \?) echo "Invalid option -$OPTARG" >&2 ;; esac @@ -50,6 +57,8 @@ echo "t: FIND_STEMS_THICKNESS" echo "g: GRAPH_MAXIMUM_CUMULATIVE_GAP" echo "l: ADD_LEAVES_VOXEL_LENGTH" echo "m: FIND_STEMS_MIN_POINTS" +echo "o: GRAPH_EDGE_LENGTH" +echo "p: ADD_LEAVES_EDGE_LENGTH" echo " " # print values of the parameters @@ -62,6 +71,8 @@ echo "FIND_STEMS_THICKNESS: $FIND_STEMS_THICKNESS" echo "GRAPH_MAXIMUM_CUMULATIVE_GAP: $GRAPH_MAXIMUM_CUMULATIVE_GAP" echo "ADD_LEAVES_VOXEL_LENGTH: $ADD_LEAVES_VOXEL_LENGTH" echo "FIND_STEMS_MIN_POINTS: $FIND_STEMS_MIN_POINTS" +echo "GRAPH_EDGE_LENGTH: $GRAPH_EDGE_LENGTH" +echo "ADD_LEAVES_EDGE_LENGTH: $ADD_LEAVES_EDGE_LENGTH" # exit 0 @@ -240,7 +251,9 @@ for segmented_point_cloud in $data_folder/segmented_point_clouds/*.segmented.ply --graph-maximum-cumulative-gap $GRAPH_MAXIMUM_CUMULATIVE_GAP \ --save-diameter-class \ --ignore-missing-tiles \ - --find-stems-min-points $FIND_STEMS_MIN_POINTS + --find-stems-min-points $FIND_STEMS_MIN_POINTS \ + --graph-edge-length $GRAPH_EDGE_LENGTH \ + --add-leaves-edge-length $ADD_LEAVES_EDGE_LENGTH done done