Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PATCH: Fix unclustered_candidates_mask for building completion #66

Merged
merged 2 commits into from
Sep 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions lidar_prod/tasks/building_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,6 @@ def update(self, src_las_path: str = None, target_las_path: str = None) -> None:
infos = self._extract_cluster_info_by_idx(las, pts_idx)
las[dim_clf][pts_idx] = decision_func(infos)

# Candidate that were not clustered get their "candidate flag" set back to 0 so that they are considered
# in building completion/identification steps.
unclustered_mask = cluster_id_dim == 0
unclustered_candidates_mask = candidates_mask & (unclustered_mask)
las[dim_flag][unclustered_candidates_mask] = 0

self.pipeline = pdal.Pipeline(arrays=[las])

if target_las_path:
Expand Down
2 changes: 1 addition & 1 deletion package_metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__: "1.7.0"
__version__: "1.7.1"
__name__: "lidar_prod"
__url__: "https://github.com/IGNF/lidar-prod-quality-control"
__description__: "A 3D semantic segmentation production tool to augment rules-based Lidar classification with AI and databases."
Expand Down