vol_crop_domain — 3D domain op

데이터 종류: voxelvoxel

호출: import fullseye as fs; fs.ledger.vol_crop_domain(vol, domain=None, margin=0)(구현을 직접 호출하려면 import volops; volops.vol_crop_domain(vol, domain=None, margin=0), 원장에서 가져오려면 ops3d.get("vol_crop_domain"))

원장 경유의 반환값: fullseye.ledger.vol_crop_domain(...) 는 **선언된 out 형 voxel 의 값만** 반환합니다(실제 함수는 보조 정보도 반환). 버려진 쪽이 필요하면 fullseye.ledger.vol_crop_domain.raw(...) 를 쓰거나 volops.vol_crop_domain 를 직접 호출하세요.

• 실제 반환: (part, offset)

사용법

볼륨을 domain 의 밀착 경계 상자로 자릅니다(HALCON `crop_domain`).

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

This is the memory lever of the domain family: a 512**3 CT scan whose

part of interest fits in 128**3 costs 64x less memory and compute once

cropped — and the Hessian operators (:func:vol_frangi / :func:vol_sato),

capped at `MAX_EIGEN_VOXELS`, often become *possible* only after this

step. Gray values inside the box are kept verbatim (the box, not the mask,

defines the crop — pair with :func:vol_reduce_domain first if voxels

outside the mask but inside the box must read 0).

*domain* defaults to the volume's own non-zero support (`vol != 0` —

a gray volume is cropped to wherever it has any signal; note this differs

from the `> 0.5` convention used when an explicit binary *domain* is

passed). *margin* is forwarded to :func:vol_bounding_box.

Returns `(cropped, offset) — the (d, h, w)` float64 sub-volume and the

`(z0, y0, x0)` voxel offset of its origin in the input frame. Keep the

offset: :func:vol_uncrop maps results back, and

:func:vol_boundary_points accepts it as *origin* so point coordinates stay

in the uncropped frame. An empty domain raises `ValueError` (fail-closed).

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

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

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

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

roi_domain_boundarypy -3.11 examples_3d/roi_domain_boundary.py

타입이 이어지는 다음 연산자(voxel 를 입력으로 받는 것)

voxel_to_mips · voxel_to_mesh · signed_distance_field · to_points · sobel3d · hessian3d · curvature_maps · edt_jfa

같은 카테고리(domain)

vol_reduce_domain · vol_bounding_box · vol_uncrop · vol_tiled_map


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

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