random_scale — 3D augment op

数据种类:pointspoints

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

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

用法

绕原点施加均匀缩放 `s ~ U(lo, hi) 并返回 (scaled, s)`。

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

`scaled = points * s。bbox 対角長はちょうど s 倍になる(s > 0` なので

`max/min が共に s 倍 → 対角 ‖max-min‖s` 倍)。物体スケールの

ばらつき(距離/センサ倍率)を学習に注入する。`0 < lo <= hi` を要求(fail-closed)。

`lo <= 0 または hi < loValueError(lo == hi は許され常に s = lo`)。

原点まわりの拡大なので、雲が原点から離れていれば重心も `s` 倍の位置へ動く(位置と

大きさが同時に変わる)。大きさだけ変えたいなら事前に重心を原点へ寄せる。`s` は

Python float、返り値の点群は float64。`seed` で決定論的。空入力は空を返す。

参考(示例数据・文献)

• 示例数据目录(下载 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_dropout · elastic_deform · cutout


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

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