gray op• Data kinds: image → image
• Call: fullseye.apply(img, "banding_map", a=0.5, b=0.5) (the 2-D model is one image plus two scalar knobs a,b∈[0,1])

*The figure is the actual output on a synthetic 128×128 input. Left: input, right: output. Point clouds are drawn as a top-down scatter (brightness = z), 1-D series as a line plot, volumes as the maximum-intensity projection along z, videos as the middle frame, complex images as magnitude; return values that are not pictures are shown as the values themselves.*
Sweeping knob a (0.1 / 0.5 / 0.9, the other knob at its default):
▸ banding_map: knob a sweep (docs site)
*Knob b does not change the output (measured: identical at 0.1 / 0.5 / 0.9).*
On other images (synthetic scene / photo / coins. Top row: inputs, bottom row: their outputs. Knobs at default):
▸ banding_map: other inputs (docs site)
*The 4th column is a colour (H,W,3) input. This op handles colour without crossing channels (it does not convolve the colour channel as a third spatial axis).*
> This operator's description has not been translated yet. The original text follows as it is.
階調の段差(バンディング)が見えている場所を返す。`a がビット数、b` が窓。
段差が「見える」条件は 3 つそろったときで、この op はその 3 つを順に掛ける。
1. 刻みの上に乗っている —— 値が `k*Δ` の格子にある。量子化していない画像に
バンディングは無い(浮動小数の雑音はここで落ちる)。
2. 窓の中がちょうど 1 刻みだけ動く —— 窓内の最大と最小の差(peak-to-peak)が
`Δ` の 1 倍。0 倍(平坦)でも 2 倍以上(本物の輪郭)でもない。
3. まばらな線である —— 段差は等高線に沿った細い線として出る。広い範囲が一斉に
反応しているなら、それは段差ではなくディザや細かい模様。
`a` は量子化のビット数 1〜8(入力が既に量子化済みなら、その段数を指定する)。
`b` は窓の広さ(3〜9 画素)。
この 3 段にした理由(実測): peak-to-peak だけで判定したところ、白色雑音で
画素の 41.7 %、順序ディザ済みの画像で 97.7 % が「段差」と出た —— 局所の
ptp がたまたま `Δ` になるだけで条件を満たしてしまうため。条件 1 が雑音を、
条件 3 がディザを落とす。3-bit に量子化した傾斜では 7.0 %(段差の線そのもの)
が残る。
適用条件: (1) 入力のビット数を間違えると全く効かない —— 分からないときは
`effective_bit_depth` で先に測る。(2) 入力が一度でも滑らかに補間・再標本化
されていると条件 1 が崩れる(格子から外れる)。段差を測るなら**量子化した直後の
画像に当てる**こと。
• gallery2d_gray_arith family guide
• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).
• Operator provenance and references — the sources of the research/methods this op family came from.
• The canonical algorithm (author, year) and its uses are named in the family usage guide above.
The program below has been verified to run (same input as the figure). In Studio's help this block becomes buttons that load and run it on the spot.
banding_map 0.50 0.50
▸ Load this pipeline · Load & run
• gallery2d_gray_arith — py -3.11 examples/gallery2d_gray_arith.py
image as input)identity · gaussian · mean_box · bilateral · unsharp · median · min_filter · max_filter
gray)gamma · quantize_uniform · quantize_lloyd_max · quantization_error · dither_ordered · dither_floyd_steinberg · companding_mu_law · invert
*Provenance: ops.py — 2D operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.