Friday, June 3, 2022

web app: sparse spike convolution

sparse spikes convolution

Sparse spike convolution model

Let a:T→Ha : T\rightarrow H be a continuous function from a compact set T⊂RdT\subset \mathbb{R}^d to the Hilbert space HH, e.g. L2(Ω)L^2(\Omega). An observation vector b∈Hb\in H is said to be a sparse spike convolution of the discrete measure x=∑i=1nβiδtix = \sum_{i=1}^n \beta_i\delta_{t_i} if
b=∑i=1nβia(ti)=∫t∈Ta(t)dx(t)=:Axb = \sum_{i=1}^n \beta_i a(t_i) = \int_{t\in T} a(t) \text{d} x(t)=: Ax
Here δt\delta_t denotes a spike (a.k.a. Dirac mass) located at t∈Tt\in T. We may think of xx as a light sources with true location tit_i and amplitude βi\beta_i, and b=Axb=Ax as an acquisition image via a convolution kernel aa.

The following web application provides a visualization of above sparse spike convolution model. Click on the symbol > on the top left corner to modify the parameters. Here we consider T=[0,1]2⊂R2T=[0,1]^2\subset \mathbb{R^2} and H=L2(T)H=L^2(T) and a(t)(z)=2−∣∣z−t∣∣2/w2a(t)(z) = 2^{-||z-t||^2/w^2} for all z,t∈Tz, t\in T, i.e. the kernel aa is a shifted Gaussian-like function.

  • positions of spikes: t1,...,tnt_1, ..., t_n in TT
  • amplitudes of spikes: β1,...,βn\beta_1,..., \beta_n in R\mathbb R
  • half_width: ww

Links: blog post, github, streamlit web app

Popular Posts