Skip to content
Snippets Groups Projects
Commit e603fcac authored by Maciej Wielgosz's avatar Maciej Wielgosz
Browse files

addedd two new parameters from points2trees to run_all_command_line.sh

parent ffe16c69
No related branches found
No related tags found
No related merge requests found
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/* rm -rf $TARGET_FOLDER/*
cp /home/nibio/mutable-outside-world/data/small_file_pipeline_test/small_file_pipeline_test.las $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 ...@@ -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 # change name of the file to first.laz
mv $TARGET_FOLDER/small_file_pipeline_test.las $TARGET_FOLDER/first.las mv $TARGET_FOLDER/small_file_pipeline_test.las $TARGET_FOLDER/first.las
# make a copy of the file # # make a copy of the file
cp $TARGET_FOLDER/first.las $TARGET_FOLDER/second.las # cp $TARGET_FOLDER/first.las $TARGET_FOLDER/second.las
# make a copy of the file # # make a copy of the file
cp $TARGET_FOLDER/first.las $TARGET_FOLDER/third.las # cp $TARGET_FOLDER/first.las $TARGET_FOLDER/third.las
# make a copy of the file # # make a copy of the file
cp $TARGET_FOLDER/first.las $TARGET_FOLDER/fourth.las # cp $TARGET_FOLDER/first.las $TARGET_FOLDER/fourth.las
\ No newline at end of file \ No newline at end of file
...@@ -14,10 +14,13 @@ FIND_STEMS_THICKNESS=0.5 ...@@ -14,10 +14,13 @@ FIND_STEMS_THICKNESS=0.5
GRAPH_MAXIMUM_CUMULATIVE_GAP=3 GRAPH_MAXIMUM_CUMULATIVE_GAP=3
ADD_LEAVES_VOXEL_LENGTH=0.5 ADD_LEAVES_VOXEL_LENGTH=0.5
FIND_STEMS_MIN_POINTS=50 FIND_STEMS_MIN_POINTS=50
GRAPH_EDGE_LENGTH=1.0
ADD_LEAVES_EDGE_LENGTH=1.0
############################# end of parameters declaration ############################ ############################# end of parameters declaration ############################
# extract tiling parameters as command line arguments with the same default values # 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 case $opt in
d) data_folder="$OPTARG" d) data_folder="$OPTARG"
;; ;;
...@@ -35,6 +38,10 @@ while getopts "d:n:s:h:t:g:l:m:" opt; do ...@@ -35,6 +38,10 @@ while getopts "d:n:s:h:t:g:l:m:" opt; do
;; ;;
m) FIND_STEMS_MIN_POINTS="$OPTARG" m) FIND_STEMS_MIN_POINTS="$OPTARG"
;; ;;
o) GRAPH_EDGE_LENGTH="$OPTARG"
;;
p) ADD_LEAVES_EDGE_LENGTH="$OPTARG"
;;
\?) echo "Invalid option -$OPTARG" >&2 \?) echo "Invalid option -$OPTARG" >&2
;; ;;
esac esac
...@@ -50,6 +57,8 @@ echo "t: FIND_STEMS_THICKNESS" ...@@ -50,6 +57,8 @@ echo "t: FIND_STEMS_THICKNESS"
echo "g: GRAPH_MAXIMUM_CUMULATIVE_GAP" echo "g: GRAPH_MAXIMUM_CUMULATIVE_GAP"
echo "l: ADD_LEAVES_VOXEL_LENGTH" echo "l: ADD_LEAVES_VOXEL_LENGTH"
echo "m: FIND_STEMS_MIN_POINTS" echo "m: FIND_STEMS_MIN_POINTS"
echo "o: GRAPH_EDGE_LENGTH"
echo "p: ADD_LEAVES_EDGE_LENGTH"
echo " " echo " "
# print values of the parameters # print values of the parameters
...@@ -62,6 +71,8 @@ echo "FIND_STEMS_THICKNESS: $FIND_STEMS_THICKNESS" ...@@ -62,6 +71,8 @@ echo "FIND_STEMS_THICKNESS: $FIND_STEMS_THICKNESS"
echo "GRAPH_MAXIMUM_CUMULATIVE_GAP: $GRAPH_MAXIMUM_CUMULATIVE_GAP" echo "GRAPH_MAXIMUM_CUMULATIVE_GAP: $GRAPH_MAXIMUM_CUMULATIVE_GAP"
echo "ADD_LEAVES_VOXEL_LENGTH: $ADD_LEAVES_VOXEL_LENGTH" echo "ADD_LEAVES_VOXEL_LENGTH: $ADD_LEAVES_VOXEL_LENGTH"
echo "FIND_STEMS_MIN_POINTS: $FIND_STEMS_MIN_POINTS" 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 # exit 0
...@@ -240,7 +251,9 @@ for segmented_point_cloud in $data_folder/segmented_point_clouds/*.segmented.ply ...@@ -240,7 +251,9 @@ for segmented_point_cloud in $data_folder/segmented_point_clouds/*.segmented.ply
--graph-maximum-cumulative-gap $GRAPH_MAXIMUM_CUMULATIVE_GAP \ --graph-maximum-cumulative-gap $GRAPH_MAXIMUM_CUMULATIVE_GAP \
--save-diameter-class \ --save-diameter-class \
--ignore-missing-tiles \ --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
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment