diff --git a/src/main/java/net/imagej/ops/create/kernelDiffraction/DefaultCreateKernelGibsonLanni.java b/src/main/java/net/imagej/ops/create/kernelDiffraction/DefaultCreateKernelGibsonLanni.java index 8e45ba1161..6aa42921c0 100644 --- a/src/main/java/net/imagej/ops/create/kernelDiffraction/DefaultCreateKernelGibsonLanni.java +++ b/src/main/java/net/imagej/ops/create/kernelDiffraction/DefaultCreateKernelGibsonLanni.java @@ -111,6 +111,8 @@ public class DefaultCreateKernelGibsonLanni & NativeTyp public void initialize() { createOp = (BinaryFunctionOp) Functions.binary(ops(), Ops.Create.Img.class, Img.class, Dimensions.class, NativeType.class); + + ni0 = ni; } @Override @@ -231,7 +233,7 @@ else if (size.numDimensions() == 3) { beta = k0 * this.NA * r[n] * this.resLateral; for (int m = 0; m < this.numBasis; m++) { - //am = (3 * m + 1) * factor; + // am = (3 * m + 1) * factor; am = (3 * m + 1); rm = am * bj1.value(am * b) * bj0.value(beta * b) * b; rm = rm - beta * b * bj0.value(am * b) * bj1.value(beta * b);