Notation
One notation is used across every page of these docs and every docstring of optix, whatever the algorithm and whatever the paper it comes from. This page states the rules, lists the symbols, and says how the quantities that the algorithms estimate relate to the physics of the microscope. Each algorithm page shows its equations in this notation and, in a second tab, in the notation of its paper.
Typography
| Kind | Style | Examples |
|---|---|---|
| scalar | italic, lowercase | \(g\), \(o\), \(\sigma^2\), \(\lambda\), \(b_n\) |
| vector: an image flattened over its pixels, or a set of per-frame values | bold lowercase | \(\mathbf{y}_n\), \(\mathbf{x}_n\), \(\mathbf{f}\), \(\mathbf{d}\), \(\mathbf{b}\) |
| matrix or linear operator | bold uppercase | \(\mathbf{A}\), \(\boldsymbol{\Phi}\), \(\mathbf{W}\), \(\mathbf{Y}\) |
| count, size | plain uppercase, or the size of a set | \(N\), \(K\), \(H\), \(W\), \(\lvert\Omega\rvert\) |
| Greek vector or matrix | bold Greek | \(\boldsymbol{\alpha}\), \(\boldsymbol{\pi}\), \(\boldsymbol{\eta}\) |
| set, distribution family | calligraphic or upright | \(\mathcal{N}\), \(\mathrm{Gamma}\), \(\mathcal{D}\) |
- Images are vectors. The pixels of a picture form the grid \(\Omega\), with \(\lvert\Omega\rvert = HW\) pixels in 2D (\(DHW\) in 3D); pixel \(i\) is written \(i \in \Omega\). A picture is a vector \(\mathbf{y}_n \in \mathbb{R}^{\lvert\Omega\rvert}\), and a stack of \(N\) frames is the matrix \(\mathbf{Y} = [\mathbf{y}_1, \ldots, \mathbf{y}_N] \in \mathbb{R}^{\lvert\Omega\rvert \times N}\), one frame per column. Pixel \(i\) of frame \(n\) is \(y_{ni}\).
- Products of images are pixel-wise and written \(\odot\); division of images is pixel-wise too. A scalar added to an image is broadcast: \(\mathbf{x}_n + b_n\) means \(\mathbf{x}_n + b_n \mathbf{1}\).
- The position of a pixel is rarely needed. When it is, it is written \(\mathbf{r}\), and a pixel of an image \(\mathbf{f}(\mathbf{r})\) or \(f_i\).
- Hats mark estimates (\(\hat{\mathbf{f}}\)), bars means (\(\bar{x}\)).
- Probability distributions follow Bishop's Pattern Recognition and Machine Learning (2006). Some letters therefore have a second meaning there (the rate \(b\) of a Gamma is not a baseline); the context always tells which is meant.
In docstrings
Docstrings write maths in UTF-8, not LaTeX, so that they read well in
help(), in an editor and in the API reference alike (see the
style guide). Bold is not available there, so the
case carries the meaning: yₙ = f ⊙ (xₙ + bₙ) + d, A x, Φ θ, and the
number of pixels is |Ω|. The
symbols are the same as on this page.
Indices and exponents use Unicode subscripts and superscripts wherever they
exist: xₙ, bₙ, fᵢ, σ², Φᵀ, τ⁻¹, x̂ₙ, rₙₖ, α₀, 10⁻⁶. Superscripts
cover the digits, ⁺ ⁻ ⁼ ⁽ ⁾, almost every lowercase letter and ᵀ.
Subscripts cover only the digits, ₊ ₋ ₌ ₍ ₎ and the letters
ₐ ₑ ₕ ᵢ ⱼ ₖ ₗ ₘ ₙ ₒ ₚ ᵣ ₛ ₜ ᵤ ᵥ ₓ; for any other index (y_{ng},
x_{max}, b_g), fall back to _ with braces when it spans several
characters. Do not mix the two styles within one symbol: r_{nk} or rₙₖ,
never rₙ_k.
Image formation
| Symbol | Meaning | Unit | In code |
|---|---|---|---|
| \(\mathbf{y}_n\), \(\mathbf{Y}\) | recorded frame \(n\); stack of frames | ADU | the data Y |
| \(\mathbf{x}_n\) | latent image: frame \(n\) without shading | ADU | result of apply |
| \(\mathbf{f}\) | flat field (multiplicative) | dimensionless | ShadingEstimate.flat |
| \(\mathbf{d}\) | dark field (additive, camera offset included) | ADU | ShadingEstimate.dark |
| \(\mathbf{s}_b\) | background profile, mean 1, when the background has its own profile | dimensionless | ShadingEstimate.dark ÷ its mean |
| \(\beta_n\), \(\bar\beta\) | mean background intensity of frame \(n\); its mean over frames | ADU | KaskFlatField.background_level_ |
| \(\kappa_{\text{n}}\) | noise constant of a channel: local variance over local mean on the background; it equals the gain \(g\) only when the offset \(o\) is 0, and is \(g\,(\bar y - o)/\bar y\) otherwise (written \(\kappa\) in docstrings) | ADU | meta["noise_constant"] |
| \(b_n\), \(\mathbf{b}\) | baseline of frame \(n\); all baselines | ADU | ShadingEstimate.baseline |
| \(\lambda\) | expected number of photoelectrons | e⁻ | signal of simulate_sensor |
| \(e\) | actual number of photoelectrons (Poisson) | e⁻ | |
| \(g\) | gain | ADU / e⁻ | SensorEstimate.gain |
| \(o\) | camera offset | ADU | SensorEstimate.offset |
| \(\sigma^2\) | read-noise variance | ADU² | SensorEstimate.variance |
| \(\varepsilon\) | read noise, \(\mathcal{N}(0, \sigma^2)\) | ADU | |
| \(\Delta\) | quantisation step (1 ADU) | ADU |
A camera model with one value per pixel, as for an sCMOS sensor, makes the camera parameters vectors: \(\mathbf{g}\), \(\mathbf{o}\), \(\boldsymbol{\sigma}^2\).
The two models are
and correcting a frame means
The baseline sits inside the flat field: it is a uniform background of the specimen (autofluorescence, fluorescence of the medium), lit by the same uneven illumination as the signal.
What the fields mean physically
The flat field, the dark field and the baseline are defined statistically: the flat field is whatever multiplies every frame alike, the dark field whatever is added to every frame alike, the baseline whatever is constant over one frame. Written out, the expected recorded value of pixel \(i\) of frame \(n\) is
and each physical quantity lands in one of the estimated terms:
| Physical quantity | Symbol | Lands in |
|---|---|---|
| illumination profile | \(s_i\) | flat \(\mathbf{f}\) |
| collection efficiency, vignetting | \(c_i\) | flat \(\mathbf{f}\) |
| quantum efficiency and gain of each pixel (photo-response non-uniformity) | \(\eta_i\), \(g_i\) | flat \(\mathbf{f}\) |
| specimen signal | \(u_{ni}\) | latent \(\mathbf{x}_n\) |
| autofluorescence, medium, out-of-focus haze | \(a_{ni}\) | baseline \(b_n\) where uniform, latent \(\mathbf{x}_n\) otherwise |
| stray or ambient light, outside the illumination path | \(\ell_i\) | dark \(\mathbf{d}\) |
| dark current, over exposure time \(t_{\text{exp}}\) | \(j_i\, t_{\text{exp}}\) | dark \(\mathbf{d}\) |
| camera offset, including its fixed pattern | \(o_i\) | dark \(\mathbf{d}\) |
| overall scale: lamp power, mean efficiency, mean gain | shared by \(\mathbf{f}\) and \(\mathbf{x}_n\); fixed by meta["flat_norm"] |
So the flat field is not the illumination: it is illumination × collection ×
pixel response, which is why it overlaps with the gain map of an sCMOS camera.
And the dark field is not the camera offset: it is offset + dark current +
stray light. This is the reason why corrections never subtract both
ShadingEstimate.dark and SensorEstimate.offset.
Optics
The symbols of the models of the optics (optix.psf), such as the
Gibson–Lanni and Richards–Wolf PSFs.
Lengths share one unit; the Gibson–Lanni defaults are in µm.
| Symbol | Meaning | Unit | In code | Used by |
|---|---|---|---|---|
| \(\mathrm{NA}\) | numerical aperture of the objective, \(n \sin\alpha\) | numerical_aperture |
both | |
| \(\lambda_0\) | wavelength of the light in vacuum | length | wavelength |
both |
| \(k_0\) | wave number in vacuum, \(2\pi/\lambda_0\) | 1 / length | Gibson–Lanni | |
| \(k\) | wave number in a medium of index \(n\), \(n k_0\) | 1 / length | Richards–Wolf | |
| \(n\) | refractive index of the medium in which the focus is formed | refractive_index |
Richards–Wolf | |
| \(n_s\), \(n_g\), \(n_i\) | refractive index of the specimen, the coverslip, the immersion medium | specimen_index, coverslip_index, immersion_index |
Gibson–Lanni | |
| \(n_g^*\), \(n_i^*\) | the same, under the design conditions of the objective | design_coverslip_index, design_immersion_index |
Gibson–Lanni | |
| \(t_s\) | depth of the source below the coverslip | length | depth |
Gibson–Lanni |
| \(t_g\), \(t_i\) | thickness of the coverslip, of the immersion layer | length | coverslip_thickness |
Gibson–Lanni |
| \(t_g^*\), \(t_i^*\) | the same, under the design conditions | length | design_coverslip_thickness, design_immersion_thickness |
Gibson–Lanni |
| \(\alpha\) | angular semi-aperture of the objective, \(\arcsin(\mathrm{NA}/n)\) | rad | Richards–Wolf | |
| \(\theta\), \(\varphi\) | angle of a ray to the optical axis; azimuth around the axis | rad | both | |
| \(\rho\) | radius in the pupil (back focal plane), normalised to 1 at the edge of the aperture: \(\rho = n \sin\theta / \mathrm{NA}\) | rho |
Gibson–Lanni | |
| \(r\) | lateral distance from the optical axis, in object space | length | radius; radial is \(k r\) |
both |
| \(z\) | position along the optical axis, from the Gaussian focus, positive away from the lens | length | axial is \(k z\) |
Richards–Wolf |
| \(\Delta z\) | defocus: displacement of the stage from the paraxial focus of the source, positive for a thicker immersion layer | length | defocus |
Gibson–Lanni |
| \(\mathrm{OPD}\) | optical path difference between the actual and the design ray | length | gibson_lanni_opd |
Gibson–Lanni |
| \(\psi\) | phase aberration of the pupil; \(\psi = k_0\,\mathrm{OPD}\) | rad | pupil_phase |
both |
| \(\mathbf{e}\) | electric field near the focus | richards_wolf_field |
Richards–Wolf | |
| \(I_0\), \(I_1\), \(I_2\) | the diffraction integrals of the focal field | richards_wolf_integrals |
Richards–Wolf | |
| \(u\), \(v\) | optical coordinates, \(u = kz\sin^2\alpha\), \(v = k r \sin\alpha\) | Richards–Wolf | ||
| \(\varphi_0\) | azimuth of the electric vector of the incident wave, from the \(x\) axis | rad | polarization |
Richards–Wolf |
| \(\mathbf{p}\) | orientation of an emitting dipole (unit vector) | emitter |
Richards–Wolf | |
| \(h\), \(\mathbf{h}\) | the PSF as a function, \(h(r, \varphi, z)\) or \(h(r, \Delta z)\); the PSF sampled on the grid, centred at index K // 2 |
the returned PSF | both | |
| \(K_z\), \(K_y\), \(K_x\) | shape of the PSF grid | shape |
both | |
| \(d_z\), \(d_y\), \(d_x\) | voxel size of the PSF grid | length | spacing |
both |
| \(W_0\), \(W(z)\) | waist radius of a Gaussian beam (\(1/e^2\) intensity half-width); beam radius at distance \(z\) from the waist | length | waist; beam_radius |
Light sheet |
| \(z_R\), \(\theta_0\) | Rayleigh range, \(\pi W_0^2 / \lambda\) with \(\lambda = \lambda_0 / n\); divergence half-angle, \(\lambda / (\pi W_0)\) | length; rad | rayleigh_range |
Light sheet |
| \(I(t, z)\) | intensity of the sheet at distance \(t\) from its central plane and \(z\) from the waist | sheet_intensity |
Light sheet | |
| \(t_0\), \(z_f\), \(z_p\) | position of the central plane of the sheet; of the waist; of the point source along the propagation axis | length | offset; focus; position |
Light sheet |
| \(\mathbf{n}\), \(\mathbf{p}\), \(\mathbf{R}\) | normal of the sheet and propagation direction (unit vectors, \(\mathbf{n} = \mathbf{R}\mathbf{e}_{\mathrm{det}}\), \(\mathbf{p} = \mathbf{R}\mathbf{e}_{\mathrm{prop}}\)); rotation of the sheet frame on the grid. \(\mathbf{p}\) is not the dipole of Richards–Wolf | rotation |
Light sheet | |
| \(h_{\mathrm{det}}\), \(h_{\mathrm{eff}}\) | detection PSF; effective PSF of light-sheet imaging, \(h_{\mathrm{det}}\,I\) | psf; the returned PSF |
Light sheet |
Some letters have another meaning elsewhere on this page: here \(n\) is a
refractive index, not a number of photoelectrons; \(\lambda_0\) is a wavelength,
where \(\lambda\) alone is the expected number of photoelectrons; \(\theta\),
\(\rho\), \(\psi\), \(\varphi\) and \(\alpha\) are not the basis coefficients, the Stirling
residual, the digamma function, the function \(\varphi(u)\) and the Dirichlet
concentration. A paper that writes the wavelength \(\lambda\) and the vacuum
wave number \(k\) is mapped to \(\lambda_0\) and \(k_0\) on its page. Docstrings
write λ₀, k₀.
Bases and regularisation
| Symbol | Meaning | In code |
|---|---|---|
| \(L\) | number of samples along an axis | |
| \(\boldsymbol{\Phi}\) | DCT basis matrix, one function per column | dct_basis |
| \(\boldsymbol{\theta}\), \(\boldsymbol{\Theta}\) | coefficients in the basis (1D, 2D) | project, reconstruct |
| \(\kappa_j\) | eigenvalue of the \(j\)-th basis function for the Laplacian | dct_bending |
| \(h\), \(\ell\) | grid spacing; order of the energy \(\mathbf{f}^\top(-\boldsymbol{\Delta}_h)^\ell \mathbf{f}\) | dct_bending(order=) |
| \(\mathbf{A}\) | forward operator (blur) | |
| \(\lambda_{\mathrm{TV}}\) | weight of the total-variation penalty \(\sum_p \lVert\nabla\mathbf{x}\rVert_p\) | lambda_tv |
| \(\nabla\), \(\operatorname{div}\) | gradient and divergence of an image (forward and backward differences) | tv_curvature |
| \(\mathbf{W}\) | pixel weights | |
| \(\lambda\) | weight of a regulariser (a subscript tells several apart: \(\lambda_f\), \(\lambda_d\)); distinct from the photoelectron count by context | regularization |
| \(\mathbf{L}_x\), \(\mathbf{L}_y\) | second-difference operators along \(x\) and \(y\) |
Shift-variant blur
| Symbol | Meaning | In code |
|---|---|---|
| \(S\), \(s\) | number of terms of the blur, term index | |
| \(\mathbf{h}_s\), \(\mathbf{H}_s\) | kernel of term \(s\); convolution with it | ShiftVariantPSF.kernels |
| \(\mathbf{w}_s\), \(\mathbf{W}_s\) | pixel weights of term \(s\); \(\operatorname{diag}(\mathbf{w}_s)\) | ShiftVariantConvolution.weights |
| \(\mathbf{r}_s\) | position of the grid node of term \(s\) | centres |
| \(\mathbf{K}\) | matrix of the un-shifted PSFs, one column per source pixel | |
| \(\boldsymbol{\varphi}_s\) | (multi)linear interpolation weights of node \(s\) | interpolation_weights |
| \(\mathbf{C}\) | matrix of the kernels \(\mathbf{h}_s\) of the optimal local approximation, one per column | DenisPSF.kernels |
| \(\tau\), \(\mathbf{C}_\tau\) | truncation level; block-circulant preconditioner of Nagy and O'Leary, not to be confused with \(\mathbf{C}\) | tau, RegionPreconditioner |
| \(\mathbf{e}_k\) | residual of the conjugate-gradient iteration \(k\) |
The letter \(\tau\) has a second meaning in the distributions below, the precision of a Normal; the context tells which is meant.
Morphology
| Symbol | Meaning | In code |
|---|---|---|
| \(\boldsymbol{\beta}\) | background of an image, the opening of \(\mathbf{y}\) | output="background" |
| \(\mathbf{u}\) | offset (integer displacement) within a structuring element | |
| \(B(\mathbf{u})\) | structuring element: its grey level at offset \(\mathbf{u}\), \(-\infty\) outside its support | ball, footprint |
| \(\rho\) | radius of the ball, in pixels and intensity units | radius |
| \(\ominus\), \(\oplus\) | grey-scale erosion and dilation | grey_erosion, grey_dilation |
Attenuation
Along the propagation axis \(z\) of the illumination, with the index \(j\) of the pixels of a profile (here, and only here, \(j\) counts depth pixels).
| Symbol | Meaning | In code |
|---|---|---|
| \(y(z)\), \(y_j\) | signal at depth \(z\); value of pixel \(j\) of a profile | the data of DepthResolved |
| \(y^{\mathrm{c}}_j\) | compensated signal, \(y_j\,\gamma_j\) | DepthResolved.apply, compensate |
| \(y^{\mathrm{r}}_j\) | signal after the restoration filter of Smith et al. | smith_attenuation |
| \(\mu(z)\), \(\mu_j\) | attenuation coefficient, in the inverse of the length unit of \(z\) | DepthResolved.attenuation, depth_resolved |
| \(\hat{\mu}_j\), \(\tilde{\mu}_q\) | estimate of \(\mu\) of Smith et al., before and after the lateral denoising | smith_attenuation, weighted_tv |
| \(s\) | number of times the light crosses the medium (2 for OCT, 1 for a light sheet); written \(p\) in the docstrings | passes |
| \(\Delta\) | pixel size along \(z\) (also the quantisation step above) | pixel_size |
| \(\xi\) | constant of the model: recorded fraction, conversion factor and incident irradiance | |
| \(T_j\) | sum of the intensities from pixel \(j\) to the end of the profile | tail_sums |
| \(\gamma_j\) | compensation gain of pixel \(j\) | compensate |
| \(q\), \(Q\) | lateral position and number of positions of the total-variation term | tv_axis |
| \(w_q\) | weight of the difference between positions \(q+1\) and \(q\) in the total variation, \(1/(y_q + \epsilon)\) | weighted_tv |
| \(\eta\), \(\epsilon\) | weight of the total variation, and floor of its weights; \(\eta\) is also the natural parameters of a distribution, and \(\epsilon\) (this glyph) differs from the read noise \(\varepsilon\) | eta, epsilon |
| \(\sigma^2\) | average noise power of the restoration filter (also the read-noise variance) | noise_power |
Tiles
| Symbol | Meaning | In code |
|---|---|---|
| \(I\) | number of tiles of a mosaic | T in docstrings |
| \(i\), \(j\) | tile indices (frame indices elsewhere) | |
| \(\mathbf{y}_i\), \(y_i(\mathbf{r})\) | tile \(i\); its value at grid pixel \(\mathbf{r}\) (the common pixel grid of the mosaic) | the tiles data |
| \(a_i\), \(c_i\) | scale and shift of tile \(i\), \(\hat{\mathbf{x}}_i = a_i \mathbf{y}_i + c_i\) | TileIntensityEstimate.scale, .shift |
| \(\gamma_i\), \(\omega_i\) | gain (dimensionless) and offset (ADU) of tile \(i\) in a simulation, \(\mathbf{y}_i = \gamma_i \mathbf{x} + \omega_i\); not the camera \(g\), \(o\) | simulate_tiles(tile_gain=, tile_offset=) |
| \(v\), \(w\) | a value of tile \(i\) and the transformed value of a neighbour at the same pixel | |
| \(a'_i\), \(c'_i\), \(c''_i\) | linear and additive sub-models of tile \(i\) | |
| \(\lambda_1\), \(\lambda_2\), \(\lambda_3\) | weights of the linear, additive and identity sub-models (not the photoelectron rate \(\lambda\)) | weights |
| \(O_{ij}\) | overlap of tiles \(i\) and \(j\) | overlap_box |
| \(F\) | set of fixed tiles | fixed |
| ## Intensity histograms |
| Symbol | Meaning | In code |
|---|---|---|
| \(G\) | number of grey levels | levels |
| \(h(n)\), \(p(n)\) | histogram of the grey levels \(n = 1 \ldots G\), and its normalisation; \(h\) is local to this section (it is the grid spacing elsewhere) | |
| \(H(\cdot)\) | Shannon entropy of a histogram, in nats; an operator name in upright type, not a set | meta["entropy"] |
| \(\mathbf{a}\), \(\mathbf{m}\) | coefficients of the polynomial dark and flat fields: the paper's notation, not to be confused with the mean \(m\) of a Normal | meta["coefficients"] |
Stripes
| Symbol | Meaning | In code |
|---|---|---|
| \(\mathbf{s}\) | stripe component of a frame, \(\mathbf{y} = \mathbf{x} + \mathbf{s}\) | |
| \(\theta\) | direction of the stripes, from the stripe axis towards the other in-plane axis | angle |
| \(\nabla\), \(\nabla_\theta\) | forward differences along the axes; along the stripe direction \(\theta\) | lattice_diff |
| \(\lVert \nabla \mathbf{x} \rVert_{2,1}\) | isotropic total variation: sum over pixels of the Euclidean norm of the gradient | |
| \(\mu_1\), \(\mu_2\) | weights of the total variation and of the sparsity of \(\mathbf{s}\) (the Gamma mean \(\mu\) is unrelated) | mu1, mu2 |
| \(\rho_z\) | weight of the differences along \(z\) | rho_z |
| \(\iota_{S}\) | indicator of a set \(S\): \(0\) inside, \(\infty\) outside | |
| \(t\), \(c\) | background/foreground threshold and crossover (intensity range of the transition) of the dual-band wavelet-FFT filter | threshold, crossover |
| \(\boldsymbol{\chi}\) | foreground fraction of the dual-band wavelet-FFT filter: smoothed sigmoid of \((\mathbf{y} - t) / c\) | |
| \(\sigma_{\text{fg}}\), \(\sigma_{\text{bg}}\) | foreground and background bandwidths of the dual-band wavelet-FFT filter | sigma, sigma_background |
Distributions
These follow Bishop (2006).
| Symbol | Meaning | In code |
|---|---|---|
| \(\mathcal{N}(m, \tau^{-1})\) | Normal with mean \(m\) and precision \(\tau = 1/v\) | Normal |
| \(\mathrm{Gamma}(a, b)\) | Gamma with shape \(a\) and rate \(b\) | Gamma |
| \(\mu\), \(\nu\) | Gamma mean \(a/b\) and shape, in the form \((\mu, \nu)\) | Gamma(mean=, shape=) |
| \(\boldsymbol{\alpha}\), \(\alpha_0\) | Dirichlet concentration, and \(\alpha_0 = \sum_k \alpha_k\) | Dirichlet |
| \(\boldsymbol{\pi}\) | class probabilities | Categorical.probs |
| \(z_n\), \(r_{nk}\) | class of observation \(n\); responsibility of class \(k\) for it | |
| \(T\), \(\boldsymbol{\eta}\), \(A\) | sufficient statistics, natural parameters, log-normaliser | expected_stats, natural_params, log_normalizer |
| \(\bar{x}\), \(M\) | weighted mean, and scatter about it | NormalStats.mean, .scatter |
| \(\chi(x)\) | base measure of an exponential family | |
| \(\psi\), \(\Gamma\) | digamma and gamma functions | |
| \(\rho(a)\), \(\delta(a)\), \(\varphi(u)\) | Stirling residual, \(\log a - \psi(a)\), \(u - 1 - \log u\) | stirling_residual, log_minus_digamma, ratio_minus_log |
| \(\theta\) | difference of two means, in the pairwise merge | |
| \(\mathbb{E}[\cdot]\), \(\mathrm{KL}(q \Vert p)\) | expectation; Kullback-Leibler divergence | kl_divergence(q, p) |
Pupil function
Used by the phase retrieval page, with the optics symbols above: the normalised pupil radius \(\rho\), the pupil phase \(\psi\), the PSF \(h\), the angles \(\theta\), \(\varphi\), the voxel size \(d_z, d_y, d_x\) and the indices \(n\), \(n_s\), \(n_i\). The symbols below are specific to it.
| Symbol | Meaning | Unit | In code |
|---|---|---|---|
| \(\boldsymbol{\nu}\), \(\nu_z\) | lateral spatial frequency \((\nu_x, \nu_y)\), and axial frequency \(\sqrt{(n/\lambda_0)^2 - \lvert\boldsymbol{\nu}\rvert^2}\), in cycles (not the wave number \(k\)) | 1 / length | |
| \(h_{\mathrm A}\) | amplitude PSF (complex), \(h = \lvert h_{\mathrm A}\rvert^2\) | pupil_psf |
|
| \(p(\boldsymbol{\nu})\), \(\mathbf{p}\) | complex pupil function, \(p = A\,e^{i\psi}\), non-zero for \(\lvert\boldsymbol{\nu}\rvert \le \mathrm{NA}/\lambda_0\); its samples | PupilEstimate.pupil |
|
| \(A\) | magnitude of the pupil | ||
| \(\mathbf{u}_j\) | defocus phase function \(e^{2\pi i \nu_z z_j}\) of the section \(z_j\) | ||
| \(Z_j\) | Zernike polynomial of Noll index \(j\), with radial order \(q\) and azimuthal frequency \(l\) | zernike |
|
| \(a_j\), \(b_j\) | Zernike coefficients of \(A\) and of \(\psi\) | rad (for \(b_j\)) | zernike_magnitude, zernike_phase |
| \(\delta\) | phase of the index-mismatch aberration, \(k_0\,\mathrm{OPD}\) | rad | index_mismatch_aberration |
| \(D\) | bead diameter | length | bead_diameter |
| ## Stationary noise |
Noise made of known patterns convolved with white noise, as in VSNR. The first rows are the stripe symbols shared with the other destriping pages.
| Symbol | Meaning | In code |
|---|---|---|
| \(\mathbf{s}\) | stripe or stationary noise component of a frame, \(\mathbf{y} = \mathbf{x} + \mathbf{s}\) | |
| \(\theta\) | direction of the stripes (in degrees in code), not the difference of two means nor the coefficients \(\boldsymbol{\Theta}\) | angle |
| \(\nabla\) | forward differences along the two axes of a frame | |
| \(\lVert \nabla \mathbf{x} \rVert_{2,1}\) | isotropic total variation: sum over pixels of the Euclidean norm of the gradient | |
| \(\iota_{S}\) | indicator of a set \(S\): \(0\) inside, \(\infty\) outside | |
| \(\mathbf{k}_i\) | known pattern \(i\) of the noise: a kernel centred on its middle pixel (unrelated to the digamma function \(\psi\)) | filters |
| \(\boldsymbol{\lambda}_i\) | white noise convolved with \(\mathbf{k}_i\), so that \(\mathbf{s} = \sum_i \boldsymbol{\lambda}_i * \mathbf{k}_i\) (unrelated to the photoelectrons \(\lambda\)) | VSNRSolution.weights |
| \(*\) | convolution with periodic boundaries | |
| \(\phi_i\), \(\alpha_i\) | prior of \(\boldsymbol{\lambda}_i\) and its weight | prior, alpha |
| \(\epsilon\), \(h_\epsilon\) | Huber parameter and function; \(\lVert \cdot \rVert_{2,1}^{\epsilon}\) is the total variation with \(h_\epsilon\) in place of the norm (unrelated to the read noise \(\varepsilon\)) | eps |
| \(\vartheta\) | over-relaxation of a primal-dual scheme (unrelated to \(\theta\)) |
Block-matching denoising
The symbols of BM3D and BM4D. A block is a square patch of an image, a cube a cubic patch of a volume; both are written as vectors of \(K\) values.
| Symbol | Meaning | In code |
|---|---|---|
| \(\mathbf{r}\), \(\mathbf{r}'\) | position (first corner) of a reference block and of a block of its group | |
| \(\mathbf{p}_{\mathbf{r}}\), \(\mathbf{P}_{\mathbf{r}}\) | block at \(\mathbf{r}\), \(\mathbf{p}_{\mathbf{r}} = \mathbf{P}_{\mathbf{r}}\mathbf{y}\); the operator that cuts it (\(\mathbf{P}_{\mathbf{r}}^\top\) puts it back) | patch_spectra |
| \(N\), \(K\) | side of a block (cube), and its number of values, \(N^2\) (\(N^3\)) | Stage.size |
| \(M\), \(m\) | largest size of a group; actual size of a group (a power of two) | Stage.group |
| \(N_{\text{step}}\), \(N_S\) | step between reference blocks; side of the search window | Stage.step, Stage.search, search=, step= |
| \(\tau\) | matching threshold on the distance between blocks | Stage.tau |
| \(d(\mathbf{r}, \mathbf{r}')\), \(S_{\mathbf{r}}\) | normalised squared distance between two blocks; positions of the blocks matched to \(\mathbf{r}\) | block_match |
| \(\mathbf{G}\) | group: the \(m\) matched blocks, as rows | |
| \(\mathbf{T}\), \(\mathbf{H}_m\) | separable block transform (bior1.5 or DCT); Haar transform across a group | transform_matrix, haar_matrix |
| \(\boldsymbol{\Theta}\) | spectrum of a group, \(\mathbf{H}_m\mathbf{G}\mathbf{T}^\top\), DC at \(\Theta_{00}\) | |
| \(\lambda_{\mathrm{ht}}\), \(\lambda_{\mathrm{pre}}\) | hard threshold of the spectrum and threshold of the pre-filter of the matching, in units of \(\sigma\) | Stage.lam, Stage.lam2d |
| \(N_{\mathrm{har}}\) | number of coefficients kept by the hard threshold | |
| \(\mathbf{W}\) | empirical Wiener gain of a group spectrum | wiener |
| \(w_{\mathbf{r}}\) | weight of the estimate of the group of \(\mathbf{r}\) in the aggregation | aggregate |
| \(\boldsymbol{\omega}\), \(\beta\) | window of the aggregation (Kaiser) and its parameter | kaiser_window, Stage.beta |
Here \(\mathbf{p}\) is a block, not a dipole orientation or an intermediate point of an iteration; \(\mathbf{W}\) is a gain, not the pixel weights; \(\lambda_{\mathrm{ht}}\) and \(\lambda_{\mathrm{pre}}\) are thresholds, not a photoelectron count or the weight of a regulariser; \(\beta\) is the Kaiser parameter, not a background level; \(\tau\) a distance threshold, not a precision or a penalty weight; \(\mathbf{T}\) is a matrix, not the PSF transform; \(m\) and \(M\) count blocks, not the mean of a Normal. The context tells which is meant.
sCMOS noise estimation
The symbols of ACsN, which removes the offset and gain of an sCMOS camera, estimates the noise level from the frequencies outside the OTF, and filters with the block matching of the previous section. The camera symbols \(\mathbf{g}\), \(\mathbf{o}\) and \(\boldsymbol{\varepsilon}\) (one value per pixel), \(\mathrm{NA}\), \(\lambda_0\) and \(\boldsymbol{\nu}\) are those of the sections above.
| Symbol | Meaning | Unit | In code |
|---|---|---|---|
| \(\mathbf{m}\) | frame corrected for offset and gain, \((\mathbf{y} - \mathbf{o}) / \mathbf{g}\) | e⁻ | _frame |
| \(\boldsymbol{\eta}\), \(\sigma_{\mathrm{N}}\) | white Gaussian noise of \(\mathbf{m}\), \(\mathbf{m} = \boldsymbol{\lambda} + \boldsymbol{\eta}\), and its standard deviation (read noise in electrons plus shot noise) | e⁻ | ACsN.sigma_, sigma= |
| \(d_{\mathrm{px}}\) | pixel size in the image plane: camera pixel divided by the magnification (written \(\Delta\) in docstrings) | length | pixel_size |
| \(\nu_c\), \(\bar\nu\) | cutoff of the OTF, \(2\,\mathrm{NA}/\lambda_0\); cutoff of the camera, camera_cutoff times the Nyquist frequency \(1/(2 d_{\mathrm{px}})\) |
1 / length | otf_cutoff, camera_cutoff |
| \(\mathbf{m}_{\mathrm{hp}}\), \(\sigma_{\mathrm{hp}}\) | high-pass image outside the OTF, and its standard deviation | e⁻ | highpass, sigma_from_highpass |
| \(\varrho\) | noise ratio \(\sigma_{\mathrm{N}} / \sigma_{\mathrm{hp}}\) | noise_ratio |
|
| \(S(\mathbf{a}, \mathbf{b})\) | local structure similarity of two images | quality_score |
|
| \(\mathbf{s}_{\mathrm{N}}\), \(\mathbf{s}_{\mathrm{P}}\), \(Q\) | structure maps of the Q-score (noisy image against the method noise, and against the denoised image); the score, \(-\operatorname{corr}(\mathbf{s}_{\mathrm{N}}, \mathbf{s}_{\mathrm{P}})\) | ACsN.quality_ |
The sparse filter uses the symbols of the previous section: \(N\), \(N_S\), \(M\), \(\lambda_{\mathrm{ht}}\), \(N_{\mathrm{har}}\) and \(\mathbf{W}\). The paper writes the gain \(\gamma\), the offset \(\beta\) and the patch size \(k\). Here \(\boldsymbol{\eta}\) is a noise, not a weight of the total variation, a natural parameter or an efficiency; \(\varrho\) is a ratio, not the pupil radius \(\rho\); and \(\nu_c\) is a frequency in cycles, as \(\boldsymbol{\nu}\) is.
Wavelet shrinkage
The symbols of PURE-LET. The data are normalised to photoelectrons, and the method estimates the mean squared error of its own output from the data (PURE) to choose the weights of a combination of thresholds.
| Symbol | Meaning | In code |
|---|---|---|
| \(\tilde{\mathbf{y}}\), \(\tilde\sigma^2\) | data in photoelectrons, \((\mathbf{y} - o)/g\); read-noise variance in photoelectrons², \(\sigma^2/g^2\) (as in Ikoma, without the flat field) | |
| \(\boldsymbol{\lambda}\) | noise-free intensity, a fixed vector of expected photoelectrons | |
| \(\mathcal{F}\), \(\mathcal{F}_k\), \(\mathcal{F}_{\mathrm{low}}\) | denoiser; \(k\)-th function of the linear expansion of thresholds (LET); its low-pass residual | pure_let, let_basis |
| \(\mathbf{1}_i\) | vector with 1 at pixel \(i\) and 0 elsewhere | |
| \(\hat\epsilon\) | PURE, the unbiased estimate of the mean squared error (Taylor form) | PureSums.risk |
| \(\mathbf{D}_{j,b}\), \(\bar{\mathbf{D}}_j\), \(\mathbf{R}_{j,b}\) | analysis by the wavelet band \(b\) and by the scaling filter of level \(j\) of the undecimated Haar transform; reconstruction | haar_uwt |
| \(\mathbf{w}\), \(\bar{\mathbf{w}}\) | wavelet and scaling coefficients of a level | haar_uwt |
| \(J\), \(j\), \(d\), \(b\) | number of levels, level, number of transformed axes, orientation band (\(1 \ldots 2^d - 1\)) | levels, ndim |
| \(M_j\), \(\beta_j\) | redundancy of level \(j\), \(2^{dj}\); scale \(M_j^{-1/2}\) that turns \(\bar w\) into a local mean | |
| \(t_j(\bar w)\), \(\theta_{j,k}\) | signal-dependent threshold; the two functions of \((w, \bar w)\) of a band | let_threshold |
| \(\kappa\) | sharpness of the smooth absolute value \(\tanh(\kappa\bar w)\bar w\) | sharpness |
| \(a_{j,b,k}\), \(K\) | LET coefficients; their number, \(2(2^d - 1)J\) | PureSums.solve |
| \(\mathbf{G}\), \(\hat{\mathbf{c}}\), \(\delta_k\) | matrix and right-hand side of the linear system of PURE; derivative terms of \(\hat c_k\) | PureSums.gram, .cross, .delta |
| \(T\), \(T_j\), \(E_{\text{mean}}\) | threshold of the reliability rule; statistic of level \(j\), \(M_j E_{\text{mean}}\); mean energy of the intensity | reliability, PureSums.active |
Here \(\mathcal{F}\) is a function, not the flat field \(\mathbf{f}\); \(\beta_j\) is a scale, not the Kaiser parameter or a background level; \(\theta\) is a function of coefficients, not the direction of stripes; \(b\) is a band, not a baseline; \(a\) a coefficient, not a Zernike coefficient; \(\mathbf{G}\) a Gram matrix, not a group of blocks; \(\kappa\) a sharpness, not a noise constant.
Non-local means
The symbols of Non-local means. A patch is a square (cubic) neighbourhood centred on a pixel, written as a vector of \(K\) values; unlike a block of BM3D, it is indexed by its centre.
| Symbol | Meaning | In code |
|---|---|---|
| \(\mathbf{p}_i\), \(\mathbf{P}_i\) | patch centred on pixel \(i\), \(\mathbf{p}_i = \mathbf{P}_i\mathbf{y}\); the operator that cuts it | |
| \(N\), \(K\) | side of a patch (odd) and its number of values, \(N^d\) (\(d\) = 2 or 3 spatial dimensions); the same symbols as for blocks | patch |
| \(N_S\), \(W_i\) | side of the search window; search window of pixel \(i\), clipped to the image | search |
| \(\boldsymbol{\omega}\), \(a\) | Gaussian window on the patch and its standard deviation in pixels; the sum of \(\boldsymbol{\omega}\) is \(K\) (kernel_norm="mean") or 1 ("sum") |
patch_kernel, a, kernel_norm |
| \(d_{ij}\) | \(\boldsymbol{\omega}\)-weighted squared distance between the patches at \(i\) and \(j\) | patch_distances |
| \(h\) | filtering parameter of the weights \(\exp(-d_{ij}/h^2)\), in the units of the data (default \(10\sigma\sqrt{K/49}\), \(10\sigma\) for \(7 \times 7\) patches); local to this section (the PSF or the grid spacing elsewhere) | h |
| \(w_{ij}\), \(Z_i\) | weight of pixel \(j\) (an index of pixels here, of basis functions elsewhere) in the estimate of \(i\), and its normalising constant, \(\sum_j w_{ij} = 1\) | |
| \(\mathbf{t}\) | offset in the search window, \(j = i + \mathbf{t}\) | search_offsets |
Here \(\boldsymbol{\omega}\) is a window on the patch, as the Kaiser window of the aggregation of BM3D is on a block, and not an angular frequency; \(w_{ij}\) is a weight between two pixels, not the pixel weights \(\mathbf{w}_s\) of a shift-variant model; \(\mathbf{t}\) is an offset, not an iteration.
Total-variation denoising
The symbols of ROF. The data, the image and the noise are \(\mathbf{y}\), \(\mathbf{x}\) and \(\boldsymbol\varepsilon\) as in the image formation section.
| Symbol | Meaning | In code |
|---|---|---|
| \(M\) | number of pixels of an image, \(M = \lvert\Omega\rvert\) | data.numel() |
| \(\mathrm{TV}(\mathbf{x})\) | isotropic total variation, \(\sum_j \lVert(\nabla\mathbf{x})_j\rVert_2\) | tv_denoise |
| \(\lambda\) | weight of the data term of the penalised problem \(\mathrm{TV}(\mathbf{x}) + \tfrac\lambda2\lVert\mathbf{x} - \mathbf{y}\rVert^2\); the Lagrange multiplier of the noise constraint \(\lVert\mathbf{x} - \mathbf{y}\rVert^2 \le M\sigma^2\) | lam, TVResult.lam |
| \(\omega_j\), \(w_a\) | pixel weights of the data term; weights of the differences along axis \(a\) in the total variation | weights, axis_weights |
| \(\mathbf{p}\) | dual field of the total variation, \(\lVert\mathbf{p}_j\rVert_2 \le 1\), with \(\lambda(\mathbf{x} - \mathbf{y}) = -\nabla^\top\mathbf{p}\) | duals of chambolle_pock |
| \(\mathbf{K}\), \(F\), \(G\), \(\mathbf{v}\), \(\bar{\mathbf{x}}\) | operator, dual and primal functions, dual variable and extrapolated iterate of \(\min_{\mathbf{x}} G(\mathbf{x}) + F(\mathbf{K}\mathbf{x})\) | op, dual, primal of chambolle_pock |
| \(\tau_{\mathrm{p}}\), \(\tau_{\mathrm{d}}\), \(\theta\) | primal and dual steps (written \(\tau\) and \(\sigma\) by Chambolle and Pock) and extrapolation parameter | tau, sigma |
| \(\kappa\) | scale of the data term in data units, that sets the split of the steps (\(\sigma/(8\sqrt{\bar\omega})\) for the noise constraint); not the constant of the default weights | |
| \(\gamma\) | strong-convexity modulus of \(G\) in chambolle_pock (not the step of primal_dual) |
strong_convexity |
Here \(\sigma\) is always the standard deviation of the noise, never the dual step, and
\(\mathbf{p}\) a dual field, not a block of block matching; \(\mathbf{v}\) is the dual variable
\(\mathbf{v}_r\) of primal_dual. The context tells which is meant.
Noise correction of sCMOS images
The symbols of NCS. The data in electrons \(\tilde{\mathbf{y}}\) and the read-noise variance in electrons² \(\tilde\sigma^2\) are those of the Optimisation section; the camera maps \(\mathbf{o}\), \(\mathbf{g}\), \(\boldsymbol\sigma^2\) and the optics \(\mathrm{NA}\), \(\lambda_0\) are those of the sections on image formation and optics.
| Symbol | Meaning | In code |
|---|---|---|
| \(\mathbf{x}\), \(\hat{\mathbf{x}}\) | image in electrons that the camera sees (the paper's \(\mu\), the effective photon count), and its estimate | the result of ncs, apply |
| \(d\) | pixel size in the object plane, in the unit of \(\lambda_0\) (the paper's \(\Delta\); not the dark field \(\mathbf{d}\)) | pixel_size |
| \(M\), \(L\) | side of a segment, and of the padded segment, \(L = M + 2\) (the paper also calls the mask \(M\)) | segment, segment_bounds |
| \(\mathbf{F}\), \(\mathbf{k} = (k_x, k_y)\), \(k_r\) | unitary 2-D discrete Fourier transform of a segment; spatial frequency in cycles per unit length and its modulus | ncs_mask |
| \(\mathbf{m}\), \(\mathbf{Q}\) | OTF mask on the frequency grid (the paper's \(M(k_x, k_y)\)), between 0 and 1; \(\mathbf{Q} = \mathbf{F}^{\dagger}\operatorname{diag}(\mathbf{m}^{\odot 2})\mathbf{F}\) | ncs_mask, mask= |
| \(\beta\), \(T\), \(k_{\mathrm{lo}}\), \(k_{\mathrm{hi}}\) | roll-off and period of the raised-cosine mask, and the edges of its transition band, \((1 \mp \beta)/(2T)\); local to this section | raised_cosine(beta, period) |
| \(\mathrm{LL}_{\mathrm{s}}\), \(E_{\mathrm{N}}\) | simplified negative log-likelihood (shifted Poisson) and noise contribution outside the OTF (the paper's \(LL_S\) and \(\sigma_N\)) | ncs_objective |
| \(J\), \(\alpha\) | cost \(\mathrm{LL}_{\mathrm{s}} + \alpha E_{\mathrm{N}}\) (the paper's \(f\)), and the weight of the noise contribution | ncs_objective, alpha |
Here \(\alpha\) is a weight, not the semi-aperture of the objective or a Dirichlet concentration; \(\beta\) is a roll-off, not a background level or the Kaiser parameter; \(E_{\mathrm{N}}\) is an energy, and \(\mathrm{LL}_{\mathrm{s}}\) a cost, not a distribution. The paper's \(\gamma\) is \(\tilde\sigma^2\) here, not a gain or a step size.
Views
| Symbol | Meaning | In code |
|---|---|---|
| \(v\), \(V\) | view index; number of views | MultiviewRL(psfs) |
| \(\mathbf{y}_v\) | recorded image of view \(v\) | the views data |
| \(\mathbf{h}_v\), \(\mathbf{A}_v\) | PSF of view \(v\); its blur | psfs |
| \(\check{\mathbf{h}}_v\) | mirrored PSF, \(\check{h}(\mathbf{r}) = h(-\mathbf{r})\) (kernel of \(\mathbf{A}_v^\top\)) | |
| \(\mathbf{h}_{b,v}\), \(\mathbf{B}_v\) | back-projection kernel of view \(v\) and its convolution | MultiviewRL.kernels |
| \(\mathbf{c}_v\) | multiplicative correction of view \(v\) | |
| \(\mathbf{w}_v\), \(k\) | weight image of view \(v\); sum of the weights over the views | weights, weight_sum |
| \(\rho_v\) | reach of view \(v\) on the margin of the object domain |
Optimisation
| Symbol | Meaning | In code |
|---|---|---|
| \(f_k\), \(\mathbf{A}_k\) | function and circulant operator of term \(k\) in \(\sum_k f_k(\mathbf{A}_k\mathbf{x})\) | Term.function, Term.operator |
| \(\mathbf{z}_k\) | split variable, \(\mathbf{z}_k = \mathbf{A}_k\mathbf{x}\) | AdmmResult.splits |
| \(\mathbf{u}_k\) | scaled dual variable of term \(k\) | AdmmResult.duals |
| \(\rho\) | ADMM penalty parameter | rho |
| \(\nu\) | weight of a regulariser, \(\nu\sum_j\lVert(\mathbf{H}\mathbf{x})_j\rVert_2\) | Ikoma.nu |
| \(t\) | step size of a proximity operator | t of prox |
| \(\mathrm{prox}_{tf}\), \(\iota_{\mathcal{S}}\) | proximity operator of \(f\); indicator function of a set (\(0\) inside, \(+\infty\) outside) | optix.optim |
| \(\mathbf{D}_a\), \(\mathbf{D}_{ab}\) | forward difference along axis \(a\); second difference \(\mathbf{D}_a\mathbf{D}_b\) | diff |
| \(\nabla\), \(\mathbf{H}\) | stacked first differences; Hessian, its distinct second differences with \(\sqrt{2}\) on the off-diagonal ones | Gradient, Hessian |
| \(\mathcal{C}\), \(\Omega\) | observed voxels, where the data term applies; voxels where the regulariser applies | Term.region |
| \(\tilde{\mathbf{y}}\), \(\tilde\sigma^2\) | data in electrons, \((\mathbf{y} - \mathbf{d}) / (\mathbf{f}\,g)\); read-noise variance in electrons² (shifted-Poisson and Poisson–Gaussian models), \(\sigma^2 / (g\,f)^2\) (pixel-wise, \(f \equiv 1\) without a flat field) | variance of ShiftedPoisson, PoissonGaussian |
| \(\kappa\) | constant of the default weight, \(\nu = \kappa \sum\mathbf{h} / q_{99.9}(\tilde{y})\) for Ikoma, \(\tau = \kappa / (q_{99.9}(\tilde{y}) - q_{50}(\tilde{y}))\) for HSPIRAL, and \(\lambda = \kappa / (q_{99.9}(\tilde{y}) - q_{50}(\tilde{y}))\) with \(\kappa_{\mathrm{TV}}\), \(\kappa_{\mathrm{H}}\) for Chouzenoux (a scalar; unrelated to the eigenvalues \(\kappa_j\) of the basis) |
default of nu, tau |
| \(\xi_a\) | frequency along axis \(a\), \(k_a / N_a\) | rfft_frequencies |
| \(\tau\) | weight of the Schatten penalty, \(\tau\sum_j\lVert\mathbf{X}_j\rVert_{S_p}\) (the role of \(\nu\) for HSPIRAL) |
HSPIRAL.tau |
| \(\varphi_i\), \(\bar\varphi_i\), \(\xi_i\), \(\eta_i\) | negative log-likelihood of pixel \(i\) of the exact Poisson–Gaussian model, and its continuation for \(u < 0\); its first and second derivative terms, \(\varphi_i' = 1 - \xi_i\), \(\varphi_i'' = \eta_i\) (\(\varphi\) is also the function \(\varphi(u)\) of the distributions section; \(\eta\) also the natural parameters) | PoissonGaussian, poisson_normal_ratio |
| \(h\), \(\mu\) | smooth term of a primal–dual problem and the Lipschitz constant of its gradient (not the PSF \(h\), nor the Gamma mean \(\mu\)) | Smooth.lipschitz, Chouzenoux.lipschitz |
| \(\psi_0\), \(\psi_r\), \(\mathbf{V}_r\), \(\mathbf{v}_r\) | constraint function, penalty \(r\), its linear operator and its dual variable in primal_dual (not the digamma \(\psi\)) |
constraint, terms, PrimalDualResult.duals |
| \(\mathbf{y}_1\), \(\mathbf{p}_1\), \(\mathbf{q}_1\), \(\mathbf{y}_2\), \(\mathbf{p}_2\), \(\mathbf{q}_2\) | intermediate points of one primal–dual iteration (not the data \(\mathbf{y}\)) | |
| \(\gamma\), \(\delta\), \(\epsilon\) | step of the primal–dual iteration, \(\delta = \mu + (\sum_r\lVert\mathbf{V}_r\rVert^2)^{1/2}\), and the margin in \(\gamma = (1 - \epsilon)/\delta\) (unrelated to the tile gain \(\gamma_i\) or the read noise \(\varepsilon\)) | step, primal_dual_step(eps=) |
| \(\lambda_{\mathrm{H}}\) | weight of the Frobenius norm of the Hessian, next to \(\lambda_{\mathrm{TV}}\) | Chouzenoux.hessian |
| \(C\), \(x_+\) | range of the image, \(C = [0, x_+]^N\), and its upper bound | upper |
| \(\mathbf{X}_j\) | symmetric Hessian matrix of the image at voxel \(j\), packed in \((\mathbf{H}\mathbf{x})_j\) | |
| \(\lVert\cdot\rVert_{S_p}\), \(\lVert\cdot\rVert_{1,p}\) | Schatten norm of order \(p \in \{1, 2, \infty\}\) of a \(2 \times 2\) or \(3 \times 3\) matrix: the \(\ell_p\) norm of the singular values (nuclear, Frobenius and spectral norm); the mixed norm \(\sum_j \lVert\mathbf{X}_j\rVert_{S_p}\) of a field | schatten_norm, Schatten, HessianSchatten |
| \(\mu_i\), \(\mu_\pm\), \(m\), \(r\) | eigenvalues of a symmetric \(2 \times 2\) or \(3 \times 3\) matrix; for \(2 \times 2\), \(\mu_\pm = m \pm r\), with \(m\) the mean of the diagonal and \(r \ge 0\) half the gap | prox_schatten |
| \(q\), \(\mathcal{B}_q\), \(P_{\mathcal{B}_q}\) | conjugate order, \(1/p + 1/q = 1\); unit ball of the Schatten norm of order \(q\) and the projection of a matrix onto it (the \(S_q\) ball of radius \(r\) is \(r\mathcal{B}_q\)); not the percentile \(q_{99.9}\) | project_schatten |
| \(\boldsymbol\Omega\), \(\boldsymbol\Psi\), \(t_n\) | dual field (one matrix per pixel, in \(\mathcal{B}_q\)), its extrapolation and the momentum of the FISTA iteration for the prox of \(\tau\lVert\mathbf{H}\cdot\rVert_{1,p} + \iota_C\); bold \(\boldsymbol\Omega\) is not the set \(\Omega\) of voxels | prox_hessian_schatten, HessianSchatten |
| \(\partial_{r_a r_b}\) | second difference of the papers of Lefkimmiatis et al., \(\mathbf{D}_{ab}\) here; with the mirror boundary of their Eq. 10 for Hessian(boundary="mirror") |
Hessian |
The shifted Poisson law of \(\tilde{\mathbf{y}}\) is \(\tilde{y} + \tilde\sigma^2 \sim \mathrm{Poisson}(\lambda + \tilde\sigma^2)\), which has the mean and variance of the Poisson-Gaussian model. The letters \(\rho\) and \(\nu\) have other meanings in the sections on morphology and distributions (the radius of a ball, the shape of a Gamma); the context always tells which is meant. \(\mu_\pm\) are eigenvalues of a Hessian matrix, not a mean; \(m\) and \(r\) there are the centre and half-gap of the eigenvalues, not the mean of a Normal; and \(\tau\), here the weight of a penalty, is also the truncation level of Nagy and O'Leary and the precision of a Normal. \(\mathbf{H}\) in bold is the Hessian operator, \(H\) in plain type a count of rows.
Indices and layouts
| Symbol | Ranges over |
|---|---|
| \(i\) | pixels, \(i \in \Omega\), \(\lvert\Omega\rvert\) of them |
| \(n\) | frames (samples of a stack), \(1 \ldots N\); more generally the observations fed to a distribution |
| \(k\) | classes, \(1 \ldots K\) |
| \(j\) | basis functions |
| \(t\) | iterations; \(L_t\) is the objective at iteration \(t\) (History.objective) |
| \(G_1, \ldots\); \(X_1, \ldots\) | sizes of the group and spatial axes of an array |
In prose, sample means one picture of a stack, as in the
layout roles, and observation means one value fed to
a distribution. Shapes are written in code font, as in (*group, *spatial).
Native notations
Every algorithm page writes its model twice, in tabs: in optix notation, and in the notation of its paper, followed by a table that maps one onto the other. For BaSiC, for instance:
| optix | Peng et al. 2017 | CIDRE (Smith et al. 2015) |
|---|---|---|
| \(\mathbf{y}_n\) | \(I_n^{\text{meas}}\) | \(I_o\) |
| \(\mathbf{x}_n\) | \(I_n^R\) | \(I\) |
| \(\mathbf{f}\) | \(S^F\) | \(v\) |
| \(\mathbf{d}\) | \(S^D\) | \(z\) |
| \(b_n\) | \(B_n\) | — |
References
- Bishop CM. Pattern Recognition and Machine Learning. Springer, 2006. Microsoft Research
- Peng T, Thorn K, Schroeder T, Wang L, Theis FJ, Marr C, Navab N. A BaSiC tool for background and shading correction of optical microscopy images. Nat Commun 8:14836, 2017. doi:10.1038/ncomms14836
- Smith K, Li Y, Piccinini F, Csucs G, Balazs C, Bevilacqua A, Horvath P. CIDRE: an illumination-correction method for optical microscopy. Nat Methods 12(5):404-406, 2015. doi:10.1038/nmeth.3323
BibTeX
@book{bishop2006pattern,
author = {Bishop, Christopher M.},
title = {Pattern Recognition and Machine Learning},
publisher = {Springer},
address = {New York},
year = {2006},
isbn = {978-0-387-31073-2},
url = {https://www.microsoft.com/en-us/research/publication/pattern-recognition-machine-learning/},
}
@article{peng2017basic,
author = {Peng, Tingying and Thorn, Kurt and Schroeder, Timm and Wang, Lichao and Theis, Fabian J. and Marr, Carsten and Navab, Nassir},
title = {A {BaSiC} tool for background and shading correction of optical microscopy images},
journal = {Nature Communications},
volume = {8},
pages = {14836},
year = {2017},
doi = {10.1038/ncomms14836},
}
@article{smith2015cidre,
author = {Smith, Kevin and Li, Yunpeng and Piccinini, Filippo and Csucs, Gabor and Balazs, Csaba and Bevilacqua, Alessandro and Horvath, Peter},
title = {{CIDRE}: an illumination-correction method for optical microscopy},
journal = {Nature Methods},
volume = {12},
number = {5},
pages = {404--406},
year = {2015},
doi = {10.1038/nmeth.3323},
}