refocus op• 데이터 종류: 없음 → image2d(인자만으로 정해지는 연산자 —— 이미지나 데이터 입력을 받지 않습니다)
• 호출: import lightfield; lightfield.lf_aperture_mask(angular=(5, 5), shape='circle', *, radius=None, inner=0.0, sigma=None, normalize=True)(또는 opslightfield.get("lf_aperture_mask"))
각도 방향 가중 마스크 —— 조이거나 모양을 바꾸는 합성 조리개 그 자체.
> 아래 상세 설명은 원문입니다 —— 요약과 제목은 번역되어 있습니다.
Returns a `(V, U)` 2-D array of per-view weights, indexed the same way as
the light field's angular axes, for :func:lf_synthetic_aperture. The
radius is measured in angular steps from the centre ``((V-1)/2,
(U-1)/2)`, so radius=0` selects the single centre view (an infinitely
small aperture: everything in focus, no light) and the default
`radius = max(V-1, U-1)/2` is the largest circle that fits.
• `circle` — hard-edged disc, the physical iris.
• `square` — Chebyshev disc; separable, the cheapest to reason about.
• `gaussian — apodised pupil (sigma` in angular steps, default
`radius/2`); no ringing in the defocus PSF.
• `annulus` — ring between *inner* and *radius*; a coded aperture whose
defocus PSF has more high-frequency content, which is what makes
depth-from-defocus work better.
With `normalize=True` (default) the weights sum to exactly 1, so a masked
reduction is a weighted mean and its result is directly comparable with
:func:lf_refocus. Set it to `False` to keep 0/1 selection weights.
Raises `ValueError: an angular shape outside [1, MAX_ANGULAR]`, a
negative *radius* / *inner* / *sigma*, `inner >= radius`, an unknown
*shape*, and — explicitly rather than returning a field of zeros — a mask
that selects no view at all (an opaque aperture), which would make every
downstream weighted mean a 0/0.
• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL URL.
• 연산자의 내력·참고문헌 —— 이 연산자 족의 바탕이 된 연구/기법의 출처.
• 알고리즘의 정전(저자·연도)과 용도는 위의 패밀리 사용 가이드에 적혀 있습니다.
• lightfield_depth — py -3.11 examples/lightfield_depth.py
image2d 를 입력으로 받는 것)lf_from_mla · lf_disparity_to_depth · lf_all_in_focus
refocus)lf_refocus · lf_focal_stack · lf_synthetic_aperture
*Provenance: lightfield.py — LIGHTFIELD 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.