Skip to content

Commit 4b28755

Browse files
axtimwaldectrueden
authored andcommitted
fix 212?
1 parent 1b35dc9 commit 4b28755

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/net/imglib2/interpolation/randomaccess/LanczosInterpolator.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
* %%
1212
* Redistribution and use in source and binary forms, with or without
1313
* modification, are permitted provided that the following conditions are met:
14-
*
14+
*
1515
* 1. Redistributions of source code must retain the above copyright notice,
1616
* this list of conditions and the following disclaimer.
1717
* 2. Redistributions in binary form must reproduce the above copyright notice,
1818
* this list of conditions and the following disclaimer in the documentation
1919
* and/or other materials provided with the distribution.
20-
*
20+
*
2121
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
2222
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2323
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -43,7 +43,7 @@
4343

4444
/**
4545
* n-dimensional double-based Lanczos Interpolation
46-
*
46+
*
4747
* @author Stephan Preibisch
4848
* @author Stephan Saalfeld
4949
*/
@@ -75,7 +75,7 @@ final static private long[] createOffset( final int a, final int n )
7575

7676
/**
7777
* Creates a new Lanczos-interpolation
78-
*
78+
*
7979
* @param randomAccessible
8080
* - the {@link RandomAccessible} to work on
8181
* @param alpha
@@ -141,7 +141,7 @@ public LanczosInterpolator( final LanczosInterpolator< T > interpolator )
141141

142142
final static private double[] createLanczosLUT( final int max, final int scale )
143143
{
144-
final double[] lut = new double[ max * scale + 2 ];
144+
final double[] lut = new double[ max * scale + 22 ];
145145
for ( int i = 0; i < lut.length; ++i )
146146
{
147147
final double x = ( double ) i / ( double ) lutScale;

0 commit comments

Comments
 (0)