use of gdsc.smlm.function.gaussian.erf.MultiFreeCircularErfGaussian2DFunction 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));
}
Aggregations