mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
Fix crop obb masking in pointcloud generation (#3433)
This commit is contained in:
1 parent
106d427e80
commit
27b8e14798
1 file changed
+5
-5
@@ -165,11 +165,11 @@ def generate_point_cloud(
|
|||||||
|
|
||||||
if crop_obb is not None:
|
if crop_obb is not None:
|
||||||
mask = crop_obb.within(point)
|
mask = crop_obb.within(point)
|
||||||
point = point[mask]
|
point = point[mask]
|
||||||
rgb = rgb[mask]
|
rgb = rgb[mask]
|
||||||
view_direction = view_direction[mask]
|
view_direction = view_direction[mask]
|
||||||
if normal is not None:
|
if normal is not None:
|
||||||
normal = normal[mask]
|
normal = normal[mask]
|
||||||
|
|
||||||
points.append(point)
|
points.append(point)
|
||||||
rgbs.append(rgb)
|
rgbs.append(rgb)
|
||||||
|
|||||||
Reference in new issue
Block a user