Gaussian2D

public final class Gaussian2D implements PSF

Generates a digital representation of a two-dimensional Gaussian PSF.

Author:Kyle M. Douglass

Methods

generatePixelSignature

public double generatePixelSignature(int pixelX, int pixelY)

Computes the relative probability of receiving a photon at the pixel. (emitterX, emitterY). The z-position of the emitter is ignored.

Parameters:
  • pixelX – The pixel’s x-position.
  • pixelY – The pixel’s y-position.
Throws:
  • org.apache.commons.math.MathException
Returns:

The probability of a photon hitting this pixel.

generateSignature

public void generateSignature(ArrayList<Pixel> pixels)

Generates the digital signature of the emitter on its nearby pixels.

Parameters:
  • pixels – The list of pixels spanned by the emitter’s image.

getFWHM

public double getFWHM()

getRadius

public double getRadius()

Computes the half-width of the PSF for determining which pixels contribute to the emitter signal. For a 2D Gaussian, the effective width used here is three times the standard deviation.

Returns:The width of the PSF.

setFWHM

public void setFWHM(double fwhm)