photon_uncertainty — PHOTON counting op

資料種類:image2dimage2d

呼叫:import photoncount; photoncount.photon_uncertainty(counts, relative=False, zero_floor=0.0)(或 opsphoton.get("photon_uncertainty"))

用法

光子計數影格逐像素的卜瓦松誤差棒。

> 以下的詳細說明為原文 —— 摘要與標題已翻譯。

For a Poisson variable the variance *equals* the mean, so the one-sigma

uncertainty of a single measurement `N is sqrt(N)` — no calibration, no

noise model to fit. With `relative=True` the returned map is the relative

uncertainty `1/sqrt(N)` instead (its reciprocal is the per-pixel SNR).

*zero_floor* replaces counts below it before the square root. It exists

because `N = 0 gives sqrt(0) = 0`, i.e. "this pixel is exactly zero

with no uncertainty", which is wrong: the 95% Poisson upper limit for a

single observed zero is about 3 photons. Set `zero_floor=1.0` for the

common "one-count prior" convention. It is not applied silently — the

default is 0.0 and the absolute map really does return 0 there.

Returns a float64 `(H, W)` image.

Raises `ValueError`: negative, non-finite or non-2-D *counts*, a

negative *zero_floor*, and — instead of returning `inf` —

`relative=True` with any pixel at 0 after the floor (that is the division

`1/sqrt(0); pass zero_floor > 0` to say what a zero should mean).

詳細使用指南

photon_timeresolved 族使用指南

參考(範例資料・文獻)

• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。

• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。

• 演算法的正典(作者・年份)與用途見上面的族使用指南

可執行的範例(實際呼叫該運算子並已驗證的樣例)

photon_timeresolvedpy -3.11 examples/photon_timeresolved.py

型別可銜接的下一個運算子(可接受 image2d 作為輸入)

photon_sample · photon_statistics · anscombe_transform · anscombe_inverse

同類別(counting)

photon_sample · photon_statistics


*Provenance: photoncount.py — PHOTON 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

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