public static SimpleTransform threshold(double min, double max) {
        return new SimpleTransform(Operation.threshold,min,max);
    }
@Test
    public void testThresholdBelow() {
        double min = 0.0;
        double max = Double.POSITIVE_INFINITY;
        TransformationMap t = new TransformationMap(Collections.singletonList(SimpleTransform.threshold(min, max)),new HashMap<>());
        testThresholding(t,min,max);
    }