@SuppressWarnings( "unchecked" ) public DefaultInterpolators() { factories = new InterpolatorFactory[ Interpolation.values().length ]; factories[ Interpolation.NEARESTNEIGHBOR.ordinal() ] = new NearestNeighborInterpolatorFactory<>(); factories[ Interpolation.NLINEAR.ordinal() ] = new ClampingNLinearInterpolatorFactory<>(); }
interpolatorFactories[ iNLinearMethod ] = new ClampingNLinearInterpolatorFactory<>();