PYME.localization.FitFactories.BeadConvolvedAstigGaussFit module

PYME.localization.FitFactories.BeadConvolvedAstigGaussFit.FitFactory

alias of GaussianFitFactory

PYME.localization.FitFactories.BeadConvolvedAstigGaussFit.FitResult(fitResults, startParams, metadata, slicesUsed=None, resultCode=-1, fitErr=None, background=0, mse=0)
class PYME.localization.FitFactories.BeadConvolvedAstigGaussFit.GaussianFitFactory(data, metadata, fitfcn=<function f_gaussAstigBead>, background=None, noiseSigma=None)

Bases: PYME.localization.FitFactories.FFBase.FFBase

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

Methods

FromPoint(x, y[, z, roiHalfSize, axialHalfSize])
evalModel(params, md[, x, y, roiHalfSize]) Evaluate the model that this factory fits - given metadata and fitted parameters.
FromPoint(x, y, z=None, roiHalfSize=5, axialHalfSize=15)
classmethod evalModel(params, md, x=0, y=0, roiHalfSize=5)

Evaluate the model that this factory fits - given metadata and fitted parameters.

Used for fit visualisation

PYME.localization.FitFactories.BeadConvolvedAstigGaussFit.GaussianFitResultR(fitResults, startParams, metadata, slicesUsed=None, resultCode=-1, fitErr=None, background=0, mse=0)
PYME.localization.FitFactories.BeadConvolvedAstigGaussFit.bead(X, Y, beadDiam)

returns a sum-normalized bead projection

PYME.localization.FitFactories.BeadConvolvedAstigGaussFit.f_gaussAstigBead(p, X, Y, beadDiam)

astigmatic Gaussian model function with linear background (parameter vector [A, x0, y0, sx, sy, b, b_x, b_y]) convolved with a bead shape

PYME.localization.FitFactories.BeadConvolvedAstigGaussFit.f_rotGaussAstigBead(p, X, Y, beadDiam, theta=0)

astigmatic Gaussian model function with linear background (parameter vector [A, x0, y0, sx, sy, b, b_x, b_y]) rotated by theta radians and convolved with a bead shape.