random_scale — 3D augment op

Data kinds: pointspoints

Call: import fullseye as fs; fs.ledger.random_scale(points, lo: 'float', hi: 'float', seed: 'int' = 0) -> 'Tuple[np.ndarray, float]' (to call the implementation directly, import pcl_augment; pcl_augment.random_scale(points, lo: 'float', hi: 'float', seed: 'int' = 0) -> 'Tuple[np.ndarray, float]'; from the registry, ops3d.get("random_scale"))

Return value through the ledger: fullseye.ledger.random_scale(...) returns **only the declared out type points** (the underlying function also returns auxiliary values). When you need what was dropped, use fullseye.ledger.random_scale.raw(...) or call pcl_augment.random_scale directly.

Usage

Apply a uniform scale `s ~ U(lo, hi) about the origin and return (scaled, s)`.

> The detailed description below is the original text — the summary and the headings are translated.

`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` で決定論的。空入力は空を返す。

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

Runnable examples (verified samples that actually call this op)

augment_pointcloudpy -3.11 examples_3d/augment_pointcloud.py

Ops the type connects to (they accept points as input)

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

Same category (augment)

jitter · random_rotation · random_dropout · elastic_deform · cutout


*Provenance: pcl_augment.py — 3D operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

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