vol_affine — 3D geom_transform op

데이터 종류: voxelvoxel

호출: import fullseye as fs; fs.ledger.vol_affine(vol, matrix, offset=(0, 0, 0), order=1, output_shape=None, mode='constant', cval=0.0)(구현을 직접 호출하려면 import volxform; volxform.vol_affine(vol, matrix, offset=(0, 0, 0), order=1, output_shape=None, mode='constant', cval=0.0), 원장에서 가져오려면 ops3d.get("vol_affine"))

사용법

일반 아핀 재표본화(`scipy.ndimage.affine_transform`).

> 아래 상세 설명은 원문입니다 —— 요약과 제목은 번역되어 있습니다.

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*.

참고(샘플 데이터·문헌)

• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL URL.

• 연산자의 내력·참고문헌 —— 이 연산자 족의 바탕이 된 연구/기법의 출처.

실행 가능한 예제(이 연산자를 실제로 호출하는 검증된 샘플)

vol_geometry_transformpy -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)

vol_resize · vol_rotate


*Provenance: volxform.py — 3D 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*

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