@Test public void evaluateTest_solid000000_solid000164() { BufferedImage left = BufferedImageHelper.createSolidImage(new Color(0, 0, 100)); BufferedImage right = BufferedImageHelper.createSolidImage(new Color(0, 1, 100)); AeQa aeQa = new AeQa(); TransientOperation<Float, StaticColor> op = aeQa.evaluate(left, right); float[] expected = {0.0f, 1.0f, 0.0f}; checkOperationEqual(op, 1.0f, expected); }
@Override public TransientOperation<Float, StaticColor> evaluate(final BufferedImage left, final BufferedImage right) { CheckEqualSizePreprocessor equalSize = new CheckEqualSizePreprocessor(left, right); equalSize.process(); equalSize = null; AEMetric metric; if (threshold == null) { metric = new AEMetric(new SRGBColorConverter(new ConvenientBufferedImageWrapper(left)), new SRGBColorConverter(new ConvenientBufferedImageWrapper(right)), new Point(0, 0), new Point(left.getWidth(), left.getHeight())); } else { metric = new AEMetric(new SRGBColorConverter(new ConvenientBufferedImageWrapper(left)), new SRGBColorConverter(new ConvenientBufferedImageWrapper(right)), threshold, new Point(0, 0), new Point(left.getWidth(), left.getHeight())); } return metric.execute(); }
AeQa implements Qa<Float, StaticColor> { @Override public TransientOperation<Float, StaticColor> evaluate(final BufferedImage left, final BufferedImage right) { CheckEqualSizePreprocessor equalSize = new CheckEqualSizePreprocessor(left, right); equalSize.process(); equalSize = null; AEMetric metric; if (threshold == null) { metric = new AEMetric(new SRGBColorConverter(new ConvenientBufferedImageWrapper(left)), new SRGBColorConverter(new ConvenientBufferedImageWrapper(right)), new Point(0, 0), new Point(left.getWidth(), left.getHeight())); } else { metric = new AEMetric(new SRGBColorConverter(new ConvenientBufferedImageWrapper(left)), new SRGBColorConverter(new ConvenientBufferedImageWrapper(right)), threshold, new Point(0, 0), new Point(left.getWidth(), left.getHeight())); } return metric.execute(); } }
AeQa implements Qa<Float, StaticColor> { @Override public TransientOperation<Float, StaticColor> evaluate(final BufferedImage left, final BufferedImage right) { CheckEqualSizePreprocessor equalSize = new CheckEqualSizePreprocessor(left, right); equalSize.process(); equalSize = null; AEMetric metric; if (threshold == null) { metric = new AEMetric(new SRGBColorConverter(new ConvenientBufferedImageWrapper(left)), new SRGBColorConverter(new ConvenientBufferedImageWrapper(right)), new Point(0, 0), new Point(left.getWidth(), left.getHeight())); } else { metric = new AEMetric(new SRGBColorConverter(new ConvenientBufferedImageWrapper(left)), new SRGBColorConverter(new ConvenientBufferedImageWrapper(right)), threshold, new Point(0, 0), new Point(left.getWidth(), left.getHeight())); } return metric.execute(); } AeQa(); }
AeQa implements Qa<Float, StaticColor> { @Override public TransientOperation<Float, StaticColor> evaluate(final BufferedImage left, final BufferedImage right) { CheckEqualSizePreprocessor equalSize = new CheckEqualSizePreprocessor(left, right); equalSize.process(); equalSize = null; AEMetric metric; if (threshold == null) { metric = new AEMetric(new SRGBColorConverter(new ConvenientBufferedImageWrapper(left)), new SRGBColorConverter(new ConvenientBufferedImageWrapper(right)), new Point(0, 0), new Point(left.getWidth(), left.getHeight())); } else { metric = new AEMetric(new SRGBColorConverter(new ConvenientBufferedImageWrapper(left)), new SRGBColorConverter(new ConvenientBufferedImageWrapper(right)), threshold, new Point(0, 0), new Point(left.getWidth(), left.getHeight())); } return metric.execute(); } AeQa(); AeQa threshold(final StaticColor threshold); @Override TransientOperation<Float, StaticColor> evaluate(final BufferedImage left, final BufferedImage right); }
AeQa implements Qa<Float, StaticColor> { @Override public TransientOperation<Float, StaticColor> evaluate(final BufferedImage left, final BufferedImage right) { CheckEqualSizePreprocessor equalSize = new CheckEqualSizePreprocessor(left, right); equalSize.process(); equalSize = null; AEMetric metric; if (threshold == null) { metric = new AEMetric(new SRGBColorConverter(new ConvenientBufferedImageWrapper(left)), new SRGBColorConverter(new ConvenientBufferedImageWrapper(right)), new Point(0, 0), new Point(left.getWidth(), left.getHeight())); } else { metric = new AEMetric(new SRGBColorConverter(new ConvenientBufferedImageWrapper(left)), new SRGBColorConverter(new ConvenientBufferedImageWrapper(right)), threshold, new Point(0, 0), new Point(left.getWidth(), left.getHeight())); } return metric.execute(); } AeQa(); AeQa threshold(final StaticColor threshold); @Override TransientOperation<Float, StaticColor> evaluate(final BufferedImage left, final BufferedImage right);  }