Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
instance_segmentation_classic
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maciej Wielgosz
instance_segmentation_classic
Commits
b7d89714
Commit
b7d89714
authored
2 years ago
by
Maciej Wielgosz
Browse files
Options
Downloads
Patches
Plain Diff
added mapping of segmented files to *.las
parent
547f4052
No related branches found
Branches containing commit
Tags
v0.0.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run_all_fine_grained.sh
+23
-0
23 additions, 0 deletions
run_all_fine_grained.sh
with
23 additions
and
0 deletions
run_all_fine_grained.sh
+
23
−
0
View file @
b7d89714
...
...
@@ -241,5 +241,28 @@ for instance_segmented_point_cloud in $data_folder/instance_segmented_point_clou
--writers
.las.extra_dims
=
all
done
# map all the files the segmented point cloud to las file in $data_folder/results/segmented_point_clouds/
for
segmented_point_cloud_in_ply
in
$data_folder
/results/segmented_point_clouds/
*
;
do
# get the prefix of the point clouds
SEGMENTED_POINT_CLOUDS_PREFIX
=
"segmented."
# get the ending of the point clouds
SEGMENTED_POINT_CLOUDS_EXTENSION
=
"ply"
# get the name of the ply point cloud
segmented_point_cloud_in_ply_name
=
$(
basename
$segmented_point_cloud_in_ply
)
# got the name of the las file without the starting prefix and the .ply extension
segmented_point_cloud_in_las_name_no_prefix_no_extension
=
${
segmented_point_cloud_in_ply_name
#
$SEGMENTED_POINT_CLOUDS_PREFIX
}
segmented_point_cloud_in_las_name_no_extension
=
${
segmented_point_cloud_in_las_name_no_prefix_no_extension
%.
$SEGMENTED_POINT_CLOUDS_EXTENSION
}
# convert it to las and move it to the segmented point clouds folder
pdal translate
\
$segmented_point_cloud_in_ply
\
$data_folder
/results/segmented_point_clouds/
$segmented_point_cloud_in_las_name_no_extension
.las
\
--writers
.las.dataformat_id
=
3
\
--writers
.las.scale_x
=
0.01
\
--writers
.las.scale_y
=
0.01
\
--writers
.las.scale_z
=
0.01
\
--writers
.las.extra_dims
=
all
done
echo
"Done"
echo
"Results are in
$data_folder
/results"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment