gray op• 데이터 종류: voxel → voxel
• 호출: import fullseye as fs; fs.ledger.vol_stretch(vol, p_low=1.0, p_high=99.0)(구현을 직접 호출하려면 import volgray; volgray.vol_stretch(vol, p_low=1.0, p_high=99.0), 원장에서 가져오려면 ops3d.get("vol_stretch"))
백분위수로 대비를 `[0, 1] 로 신장(강건판 scale_image_max`).
> 아래 상세 설명은 원문입니다 —— 요약과 제목은 번역되어 있습니다.
Computes the *p_low*-th and *p_high*-th intensity percentiles and maps
`[P(p_low), P(p_high)] linearly onto [0, 1]`, clipping outside — so a
handful of hot/cold outlier voxels (a metal artefact, a dead detector
element) no longer dictates the display range, unlike a plain min/max
normalisation. The defaults (1 % / 99 %) are the usual display-stretch
choice.
If the two percentile values coincide (a constant — or near-constant —
volume), the input is returned unchanged rather than divided by zero
(see the module docstring's flat-volume note).
Parameters
----------
vol : array_like, shape (D, H, W)
Input volume (coerced to float64; NaN/Inf rejected).
p_low, p_high : float
Percentiles in `[0, 100] with p_low < p_high` (fail-closed).
Returns
-------
ndarray, shape (D, H, W), float64
The stretched volume in `[0, 1]` (degenerate percentiles: the input
itself).
Raises
------
ValueError
Non-3-D / non-finite input, percentiles out of `[0, 100]`, or
`p_low >= p_high`.
• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL URL.
• 연산자의 내력·참고문헌 —— 이 연산자 족의 바탕이 된 연구/기법의 출처.
• gray_window_level — py -3.11 examples_3d/gray_window_level.py
voxel 를 입력으로 받는 것)voxel_to_mips · voxel_to_mesh · signed_distance_field · to_points · sobel3d · hessian3d · curvature_maps · edt_jfa
gray)vol_window_level · vol_equalize · vol_gamma
*Provenance: volgray.py — 3D 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.