|
11 | 11 | * %% |
12 | 12 | * Redistribution and use in source and binary forms, with or without |
13 | 13 | * modification, are permitted provided that the following conditions are met: |
14 | | - * |
| 14 | + * |
15 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
16 | 16 | * this list of conditions and the following disclaimer. |
17 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
18 | 18 | * this list of conditions and the following disclaimer in the documentation |
19 | 19 | * and/or other materials provided with the distribution. |
20 | | - * |
| 20 | + * |
21 | 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
22 | 22 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
23 | 23 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
|
43 | 43 |
|
44 | 44 | /** |
45 | 45 | * n-dimensional double-based Lanczos Interpolation |
46 | | - * |
| 46 | + * |
47 | 47 | * @author Stephan Preibisch |
48 | 48 | * @author Stephan Saalfeld |
49 | 49 | */ |
@@ -75,7 +75,7 @@ final static private long[] createOffset( final int a, final int n ) |
75 | 75 |
|
76 | 76 | /** |
77 | 77 | * Creates a new Lanczos-interpolation |
78 | | - * |
| 78 | + * |
79 | 79 | * @param randomAccessible |
80 | 80 | * - the {@link RandomAccessible} to work on |
81 | 81 | * @param alpha |
@@ -141,7 +141,7 @@ public LanczosInterpolator( final LanczosInterpolator< T > interpolator ) |
141 | 141 |
|
142 | 142 | final static private double[] createLanczosLUT( final int max, final int scale ) |
143 | 143 | { |
144 | | - final double[] lut = new double[ max * scale + 2 ]; |
| 144 | + final double[] lut = new double[ max * scale + 22 ]; |
145 | 145 | for ( int i = 0; i < lut.length; ++i ) |
146 | 146 | { |
147 | 147 | final double x = ( double ) i / ( double ) lutScale; |
|
0 commit comments