PYME.localization.FitFactories.LatPSFFitR module

PYME.localization.FitFactories.LatPSFFitR.FitFactory

alias of PSFFitFactory

PYME.localization.FitFactories.LatPSFFitR.FitResult(fitResults, metadata, slicesUsed=None, resultCode=-1, fitErr=None)
class PYME.localization.FitFactories.LatPSFFitR.PSFFitFactory(data, metadata, fitfcn=None, background=None, noiseSigma=None, roi_offset=[0, 0])

Bases: FFBase

Create a fit factory which will operate on image data (data), potentially using voxel sizes etc contained in metadata.

FromPoint(x, y, z=None, roiHalfSize=5, axialHalfSize=15)

This should be overridden in derived classes to actually do the fitting. The function which gets implemented should return a numpy record array, of the dtype defined in the module level FitResultsDType variable (the calling function uses FitResultsDType to pre-allocate an array for the results)

class PYME.localization.FitFactories.LatPSFFitR.PSFFitResult(fitResults, metadata, slicesUsed=None, resultCode=None, fitErr=None)

Bases: object

A()
background()
renderFit()
x0()
y0()
z0()
PYME.localization.FitFactories.LatPSFFitR.PSFFitResultR(fitResults, metadata, slicesUsed=None, resultCode=-1, fitErr=None)
PYME.localization.FitFactories.LatPSFFitR.f_PSF3d(p, X, Y, Z, P, *args)

3D PSF model function with constant background - parameter vector [A, x0, y0, z0, background]