public static class FastGaussCalculator.Parameters extends Object
tmp = I(x-N-1) + I(x+N-1); O(x) = nk_2[0] * tmp - dk_1[0] * yk(x-1) - yk(x-2); O(x) += nk_2[1] * tmp - dk_1[1] * yk(x-1) - yk(x-2); O(x) += nk_2[2] * tmp - dk_1[2] * yk(x-1) - yk(x-2); if M == 4: O(x) += nk_2[3] * tmp - dk_1[3] * yk(x-1) - yk(x-2);
This way 2*M multiplications and 3*M additions are made per one 'x'. Note that for-loop is not welcome as it involves comparison-test and additional addition per one 'x'.
The class also stores Sigma for which the coefficients are valid (as long as user is not changing values arbitrarily...).
Modifier and Type | Field and Description |
---|---|
int |
N
the width of the filter
|
Modifier and Type | Method and Description |
---|---|
static FastGaussCalculator.Parameters |
exact(double sigma) |
static FastGaussCalculator.Parameters |
fast(double sigma) |
public static FastGaussCalculator.Parameters fast(double sigma)
public static FastGaussCalculator.Parameters exact(double sigma)
Copyright © 2015–2022 ImgLib2. All rights reserved.