random_dropout — 3D augment op

数据种类:pointspoints

调用: import fullseye as fs; fs.ledger.random_dropout(points, ratio: 'float', seed: 'int' = 0) -> 'Tuple[np.ndarray, np.ndarray]'(要直接调用实现,import pcl_augment; pcl_augment.random_dropout(points, ratio: 'float', seed: 'int' = 0) -> 'Tuple[np.ndarray, np.ndarray]';从台账取用则 ops3d.get("random_dropout"))

经台账调用的返回值: fullseye.ledger.random_dropout(...) 只返回**声明的 out 类型 points 的值**(底层函数还会返回辅助信息)。需要被丢弃的部分时,使用 fullseye.ledger.random_dropout.raw(...),或直接调用 pcl_augment.random_dropout

用法

随机移除 `ratio 比例的点,返回 (kept, kept_idx)`(模拟缺失)。

> 以下的详细说明为原文 —— 摘要与标题已翻译。

残す点数は `round((1-ratio)*N)kept_idx` は元配列への昇順インデックスで、

`kept == points[kept_idx]` が厳密に成り立つ。オクルージョン/疎な視点による

点欠損を学習で再現する。`0 <= ratio <= 1` を要求。

`ratio が [0,1] の外なら ValueErrorratio=1 は空 (0,3)` と空インデックス、

`ratio=0 は全点(順序は元のまま)。残す点数は Python の round`(偶数丸め)で決まる

ので `.5 端では偶数側に寄る。seedpermutation` が決まり決定論的。返り値は

`(kept float64 (M,3), kept_idx int64 (M,))`。除去は空間的に一様なので、局所的な

欠損(遮蔽)を模すには `cutout` を使う。

参考(示例数据・文献)

• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。

• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。

可运行的示例(实际调用该算子并已验证的样例)

augment_pointcloudpy -3.11 examples_3d/augment_pointcloud.py

类型可衔接的下一个算子(可接受 points 作为输入)

points_to_voxel · gaussians_to_voxel · estimate_point_normals · to_points · match_points_ncc · match_pca · moment_axes · icp_point2point_3d

同类别(augment)

jitter · random_rotation · random_scale · elastic_deform · cutout


*Provenance: pcl_augment.py — 3D 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.