PYME.localization.FitFactories.MultiviewFitInterpNR module

PYME.localization.FitFactories.MultiviewFitInterpNR.BlankResult(metadata, dt)
PYME.localization.FitFactories.MultiviewFitInterpNR.FitFactory

alias of InterpFitFactory

PYME.localization.FitFactories.MultiviewFitInterpNR.FitResult(fitResults, metadata, startParams, slicesUsed=None, resultCode=-1, fitErr=-5000.0, nchi2=-1, background=0, nViews=4, dt=None)
PYME.localization.FitFactories.MultiviewFitInterpNR.FitResultsDType(nViews=4)
class PYME.localization.FitFactories.MultiviewFitInterpNR.InterpFitFactory(data, metadata, fitfcn=<function f_Interp3Dmultiview>, background=None, noiseSigma=None, nViews=4, **kwargs)

Bases: PSFFitFactory

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)

classmethod evalModel(params, md, x=0, y=0, roiHalfSize=5)
PYME.localization.FitFactories.MultiviewFitInterpNR.PSFFitResultR(fitResults, metadata, startParams, slicesUsed=None, resultCode=-1, fitErr=-5000.0, nchi2=-1, background=0, nViews=4, dt=None)
PYME.localization.FitFactories.MultiviewFitInterpNR.f_Interp3Dmultiview(p, interpolator, Xvs, Yvs, Zvs, safeRegion, axialShifts, nViews, *args)

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

PYME.localization.FitFactories.MultiviewFitInterpNR.f_J_Interp3Dmultiview(p, interpolator, Xvs, Yvs, Zvs, safeRegion, axialShifts, nViews, *args)

generate the jacobian - for use with _fithelpers.weightedJacF

PYME.localization.FitFactories.MultiviewFitInterpNR.fresult_dtype(nViews=4)
PYME.localization.FitFactories.MultiviewFitInterpNR.genFitImage(fitResults, metadata)
PYME.localization.FitFactories.MultiviewFitInterpNR.getDataErrors(im, metadata)