Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
instance_segmentation_classic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
2b8f08fc
Commit
2b8f08fc
authored
2 years ago
by
Maciej Wielgosz
Browse files
Options
Downloads
Patches
Plain Diff
bit of cleaning in the attach lables script
parent
fba0fa91
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nibio_postprocessing/attach_labels_to_las_file.py
+0
-9
0 additions, 9 deletions
nibio_postprocessing/attach_labels_to_las_file.py
with
0 additions
and
9 deletions
nibio_postprocessing/attach_labels_to_las_file.py
+
0
−
9
View file @
2b8f08fc
...
...
@@ -16,7 +16,6 @@ class AttachLabelsToLasFile():
gt_label_name
=
'
gt_label
'
,
target_label_name
=
'
target_label
'
,
verbose
=
False
):
self
.
gt_las_file_path
=
gt_las_file_path
...
...
@@ -32,12 +31,6 @@ class AttachLabelsToLasFile():
gt_las
=
laspy
.
read
(
self
.
gt_las_file_path
)
target_las
=
laspy
.
read
(
self
.
target_las_file_path
)
# get size of both las files
gt_las_size
=
gt_las
.
x
.
shape
[
0
]
target_las_size
=
target_las
.
x
.
shape
[
0
]
# pick the smaller las file size as the number of points to sample
# read x, y, z and gt_label from gt las file to variables and set a size of sample_size
gt
=
gt_las
.
xyz
target
=
target_las
.
xyz
...
...
@@ -77,8 +70,6 @@ class AttachLabelsToLasFile():
new_las
.
z
=
target_las
.
z
# copy contents of extra dimensions from target las file to the new las file
# target_extra_dimensions.append(self.target_label_name)
for
item
in
target_extra_dimensions
:
new_las
[
item
]
=
target_las
[
item
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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