Skip to content

Commit

Permalink
Merge pull request #17 from Yarroudh/final
Browse files Browse the repository at this point in the history
Version 0.2.0
  • Loading branch information
Yarroudh authored Nov 24, 2023
2 parents c7c051a + fb00543 commit 591eaf7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 22 deletions.
17 changes: 0 additions & 17 deletions docs/_config.yaml

This file was deleted.

6 changes: 4 additions & 2 deletions docs/_sources/tutorial.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ The pinhole view can be defined either by providing the intrinsic and extrinsic
viewpoint = view.PinholeView(intrinsic=K, rotation=R, translation=T)
K is a 3x3 intrinsic matrix, R is a 3x3 rotation matrix and T is a 3x1 translation vector.

or by using the interactive mode:

.. code-block:: python
Expand Down Expand Up @@ -99,7 +101,7 @@ labels `labels`:

.. code-block:: python
labels, *_ = model.segment(points=cloud, image_path="raster.tif", labels_path="labeled.tif")
labels, *_ = model.segment(points=cloud, view=view, image_path="raster.tif", labels_path="labeled.tif")
7. Save results to **.las/.laz** file using the **write** method of the SamLidar instance:

Expand All @@ -126,7 +128,7 @@ Now, the entire code should look like this:
cloud, non_ground, ground = model.csf(points)
# Segment the point cloud
labels, *_ = instance.segment(points=cloud, image_path="raster.tif", labels_path="labeled.tif")
labels, *_ = instance.segment(points=cloud, view=view, image_path="raster.tif", labels_path="labeled.tif")
# Save results
model.write(points=points, non_ground=non_ground, ground=ground, segment_ids=labels, save_path="segmented.las")
Expand Down
Loading

0 comments on commit 591eaf7

Please sign in to comment.