private static Interpolation getInterpolation(int interpolation) throws ExpressionException {
switch (interpolation) {
case 0: return new Triangle();
case Image.IP_HERMITE: return new Hermite();
case Image.IP_HANNING: return new Hanning();
case Image.IP_MEDIUMQUALITY:
case Image.IP_HIGHPERFORMANCE:
case Image.IP_HAMMING: return new Hamming();
case Image.IP_BLACKMAN: return new Blackman();