fullseye

fly_lamina_filter — FLYVISION lamina op

使い方

Photoreceptor adaptation + the lamina’s band-pass: intensities in, contrast out.

The first thing the optic lobe does to a picture is throw away its brightness. A photoreceptor adapts to the running mean light level and the large monopolar cells (L1/L2) report the deviation from it, so the same scene at dawn and at noon arrives at the motion detectors as the same signal. Two closed-form stages, in that order:

  1. adaptation — a first-order low-pass of time constant tau_adapt_s per ommatidium is the adaptation state a(t). mode="divisive" returns the Weber contrast (x - a)/(a + eps) (eps = floor * mean(x), so it scales with the picture and a dark ommatidium cannot divide by zero); mode="subtractive" returns x - a, which is the same high-pass without the gain control.
  2. membrane — a first-order low-pass of time constant tau_lp_s, the cell’s own bandwidth.

movie: (T, n) intensities, rows = time. mode="divisive" refuses a negative entry (a negative light level is not a measurement) and an all-zero movie (its contrast is 0/0, which would be fabricated rather than measured). dt_s: sample interval, seconds. tau_adapt_s / tau_lp_s: the two time constants, seconds. floor: the divisive guard, relative to the mean intensity.

Returns (T, n) float64 contrast.

Ground truth, both exact rather than approximate:

Raises ValueError: a non-2-D / too-short / non-finite movie, a movie over :data:MAX_MOVIE_ELEMENTS, a non-positive dt_s / tau_adapt_s / tau_lp_s, a non-positive floor, an unknown mode, and (divisive only) a negative or all-zero movie.

詳しい使い方ガイド

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(matrix を入力に取れる)

fly_onoff_split · fly_t4t5_field · fly_flow_from_directions · fly_egomotion_from_flow · fly_hs_readout

同カテゴリ(lamina)

fly_onoff_split


Provenance: flyvision.py — FLYVISION operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

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