From 4b287551a0377b72611e5104b5b3189a5f69e106 Mon Sep 17 00:00:00 2001 From: Stephan Saalfeld Date: Wed, 6 Jun 2018 14:15:02 -0400 Subject: [PATCH] fix 212? --- .../randomaccess/LanczosInterpolator.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/imglib2/interpolation/randomaccess/LanczosInterpolator.java b/src/main/java/net/imglib2/interpolation/randomaccess/LanczosInterpolator.java index 030b4cd829..31b01a33c1 100644 --- a/src/main/java/net/imglib2/interpolation/randomaccess/LanczosInterpolator.java +++ b/src/main/java/net/imglib2/interpolation/randomaccess/LanczosInterpolator.java @@ -11,13 +11,13 @@ * %% * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: - * + * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE @@ -43,7 +43,7 @@ /** * n-dimensional double-based Lanczos Interpolation - * + * * @author Stephan Preibisch * @author Stephan Saalfeld */ @@ -75,7 +75,7 @@ final static private long[] createOffset( final int a, final int n ) /** * Creates a new Lanczos-interpolation - * + * * @param randomAccessible * - the {@link RandomAccessible} to work on * @param alpha @@ -141,7 +141,7 @@ public LanczosInterpolator( final LanczosInterpolator< T > interpolator ) final static private double[] createLanczosLUT( final int max, final int scale ) { - final double[] lut = new double[ max * scale + 2 ]; + final double[] lut = new double[ max * scale + 22 ]; for ( int i = 0; i < lut.length; ++i ) { final double x = ( double ) i / ( double ) lutScale;