geom_transform op• Data kinds: voxel → voxel
• Call: import fullseye as fs; fs.ledger.vol_affine(vol, matrix, offset=(0, 0, 0), order=1, output_shape=None, mode='constant', cval=0.0) (implementation को सीधे call करना हो तो import volxform; volxform.vol_affine(vol, matrix, offset=(0, 0, 0), order=1, output_shape=None, mode='constant', cval=0.0), registry से लेना हो तो ops3d.get("vol_affine"))
सामान्य affine resampling (scipy.ndimage.affine_transform)।
> नीचे का विस्तृत विवरण मूल text में है — सारांश और headings का अनुवाद हो चुका है।
Convention (pinned — read this before writing a matrix): this is scipy's pull (output -> input) resampler. For every output voxel at integer coordinate o = (z, y, x) the result is the input interpolated at matrix @ o + offset::
out[o] = vol[ matrix @ o + offset ] # (z, y, x) order, voxels
Consequences: matrix = 2*I makes the object appear half size (each output step strides two input voxels); offset = (1, 2, 3) moves the object by (-1, -2, -3). To *push* content through a forward transform T (the pose from a registration), pass the inverse of T. The test suite machine-pins this direction.
*matrix* is either a (3, 3) linear part (with *offset* a separate length-3 translation) or a (4, 4) homogeneous matrix [[A, t], [0, 0, 0, 1]] — then A / t are taken from the matrix, the bottom row must be exactly (0, 0, 0, 1), and *offset* must stay at its zero default (a second translation would be ambiguous). Any other shape raises ValueError.
*output_shape* defaults to the input shape; an explicit one is cap-checked against MAX_VOXELS before allocation. *order* is the spline degree (exact integer 0..5). Voxels whose source coordinate falls outside the input are filled per *mode*/*cval*.
Returns a float64 volume of *output_shape*.
• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।
• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।
• vol_geometry_transform — py -3.11 examples_3d/vol_geometry_transform.py
voxel को input के रूप में लेते हैं)voxel_to_mips · voxel_to_mesh · signed_distance_field · to_points · sobel3d · hessian3d · curvature_maps · edt_jfa
geom_transform)*Provenance: volxform.py — 3D operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.