Search in sources :

Example 1 with HoltzerAstimatismZModel

use of gdsc.smlm.function.gaussian.HoltzerAstimatismZModel in project GDSC-SMLM by aherbert.

the class FastMLEGradient2ProcedureTest method gradientCalculatorComputesGradient.

@Test
public void gradientCalculatorComputesGradient() {
    gradientCalculatorComputesGradient(new SingleFreeCircularErfGaussian2DFunction(blockWidth, blockWidth));
    // Use a reasonable z-depth function from the Smith, et al (2010) paper (page 377)
    double gamma = 0.389;
    double d = 0.531;
    double Ax = -0.0708;
    double Bx = -0.073;
    double Ay = 0.164;
    double By = 0.0417;
    HoltzerAstimatismZModel zModel = HoltzerAstimatismZModel.create(gamma, d, Ax, Bx, Ay, By);
    gradientCalculatorComputesGradient(new SingleAstigmatismErfGaussian2DFunction(blockWidth, blockWidth, zModel));
}
Also used : SingleAstigmatismErfGaussian2DFunction(gdsc.smlm.function.gaussian.erf.SingleAstigmatismErfGaussian2DFunction) SingleFreeCircularErfGaussian2DFunction(gdsc.smlm.function.gaussian.erf.SingleFreeCircularErfGaussian2DFunction) HoltzerAstimatismZModel(gdsc.smlm.function.gaussian.HoltzerAstimatismZModel) Test(org.junit.Test)

Example 2 with HoltzerAstimatismZModel

use of gdsc.smlm.function.gaussian.HoltzerAstimatismZModel in project GDSC-SMLM by aherbert.

the class FastMLEJacobianGradient2ProcedureTest method gradientCalculatorComputesGradient.

@Test
public void gradientCalculatorComputesGradient() {
    gradientCalculatorComputesGradient(1, new SingleFreeCircularErfGaussian2DFunction(blockWidth, blockWidth));
    gradientCalculatorComputesGradient(2, new MultiFreeCircularErfGaussian2DFunction(2, blockWidth, blockWidth));
    // Use a reasonable z-depth function from the Smith, et al (2010) paper (page 377)
    double gamma = 0.389;
    double d = 0.531;
    double Ax = -0.0708;
    double Bx = -0.073;
    double Ay = 0.164;
    double By = 0.0417;
    HoltzerAstimatismZModel zModel = HoltzerAstimatismZModel.create(gamma, d, Ax, Bx, Ay, By);
    gradientCalculatorComputesGradient(1, new SingleAstigmatismErfGaussian2DFunction(blockWidth, blockWidth, zModel));
}
Also used : SingleAstigmatismErfGaussian2DFunction(gdsc.smlm.function.gaussian.erf.SingleAstigmatismErfGaussian2DFunction) SingleFreeCircularErfGaussian2DFunction(gdsc.smlm.function.gaussian.erf.SingleFreeCircularErfGaussian2DFunction) MultiFreeCircularErfGaussian2DFunction(gdsc.smlm.function.gaussian.erf.MultiFreeCircularErfGaussian2DFunction) HoltzerAstimatismZModel(gdsc.smlm.function.gaussian.HoltzerAstimatismZModel) Test(org.junit.Test)

Aggregations

HoltzerAstimatismZModel (gdsc.smlm.function.gaussian.HoltzerAstimatismZModel)2 SingleAstigmatismErfGaussian2DFunction (gdsc.smlm.function.gaussian.erf.SingleAstigmatismErfGaussian2DFunction)2 SingleFreeCircularErfGaussian2DFunction (gdsc.smlm.function.gaussian.erf.SingleFreeCircularErfGaussian2DFunction)2 Test (org.junit.Test)2 MultiFreeCircularErfGaussian2DFunction (gdsc.smlm.function.gaussian.erf.MultiFreeCircularErfGaussian2DFunction)1