geom_transform op• 数据种类:voxel → voxel
• 调用: import fullseye as fs; fs.ledger.vol_rotate(vol, angle_deg, axes=(1, 2), order=1, reshape=False, mode='constant', cval=0.0)(要直接调用实现,import volxform; volxform.vol_rotate(vol, angle_deg, axes=(1, 2), order=1, reshape=False, mode='constant', cval=0.0);从台账取用则 ops3d.get("vol_rotate"))
在一对轴张成的平面内旋转体(scipy.ndimage.rotate)。
> 以下的详细说明为原文 —— 摘要与标题已翻译。
*axes* names the rotation plane and must be exactly one of (0, 1) (z-y plane, turning about the x-axis), (0, 2) (z-x, about y) or (1, 2) (y-x, about z — the axial-slice rotation; the default). Any other pair — including a reversed one like (2, 1) — raises ValueError, so the direction convention below is never silently flipped.
Direction (pinned): a positive *angle_deg* rotates from the first axis of *axes* toward the second — the same convention as np.rot90. Concretely, vol_rotate(v, 90, axes=a, reshape=False, order=0) equals np.rot90(v, 1, axes=a) bit-for-bit when the in-plane shape is square (the test pins this).
reshape=False (default) keeps the input shape (in-plane corners that leave the frame are lost, entering ones are filled with *cval* per *mode*); reshape=True grows the in-plane shape to contain the whole rotated frame — the grown output is cap-checked against MAX_VOXELS *before* the call. *order* is the spline degree (exact integer 0..5; >1 overshoots — module notes).
Returns a (D, H, W) float64 volume (same shape unless *reshape*).
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• vol_geometry_transform — py -3.11 examples_3d/vol_geometry_transform.py
voxel 作为输入)voxel_to_mips · voxel_to_mesh · signed_distance_field · to_points · sobel3d · hessian3d · curvature_maps · edt_jfa
geom_transform)*Provenance: volxform.py — 3D 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.