@Test public void testMultichannelStitching() throws Exception { File expectedFile = new File(modulePath + "/src/test/resources/multichannel-test/expected_dapi_1_0.jpg"); String[] args = { "--tile_spec_url", "src/test/resources/multichannel-test/test_2_channels.json", "--channels", "DAPI", "--out", outputFile.getAbsolutePath(), "--x", "650", "--y", "1600", "--width", "4000", "--height", "2200", "--scale", "0.25" }; ArgbRenderer.renderUsingCommandLineArguments(args); Assert.assertTrue("stitched file " + outputFile.getAbsolutePath() + " not created", outputFile.exists()); String expectedDigestString = getDigestString(expectedFile); String actualDigestString = getDigestString(outputFile); Assert.assertEquals("for DAPI, stitched file MD5 hash differs from expected result", expectedDigestString, actualDigestString); expectedFile = new File(modulePath + "/src/test/resources/multichannel-test/expected_dapi_0_9_td_0_1.jpg"); args = new String[] { "--tile_spec_url", "src/test/resources/multichannel-test/test_2_channels.json", "--channels", "DAPI__0.9__TdTomato__0.1", "--out", outputFile.getAbsolutePath(), "--x", "650", "--y", "1600", "--width", "4000", "--height", "2200", "--scale", "0.25" }; ArgbRenderer.renderUsingCommandLineArguments(args); Assert.assertTrue("stitched file " + outputFile.getAbsolutePath() + " not created", outputFile.exists()); expectedDigestString = getDigestString(expectedFile); actualDigestString = getDigestString(outputFile); Assert.assertEquals("for DAPI__0.9__TdTomato_0.1, stitched file MD5 hash differs from expected result", expectedDigestString, actualDigestString); }
public static void renderUsingCommandLineArguments(final String[] args) throws Exception { Renderer.renderUsingCommandLineArguments(args, OPENER, CONVERTER); }
ArgbRenderer { public static void renderUsingCommandLineArguments(final String[] args) throws Exception { Renderer.renderUsingCommandLineArguments(args, OPENER, CONVERTER); } }
ArgbRenderer { public static void renderUsingCommandLineArguments(final String[] args) throws Exception { Renderer.renderUsingCommandLineArguments(args, OPENER, CONVERTER); }  }
ArgbRenderer { public static void renderUsingCommandLineArguments(final String[] args) throws Exception { Renderer.renderUsingCommandLineArguments(args, OPENER, CONVERTER); }  static void render(final RenderParameters renderParameters,
                              final BufferedImage targetImage,
                              final ImageProcessorCache imageProcessorCache); static void renderUsingCommandLineArguments(final String[] args); static void main(final String[] args); static BufferedImage targetToARGBImage(final ImageProcessorWithMasks renderedImageProcessorWithMasks,
                                                  final boolean binaryMask); }
ArgbRenderer { public static void renderUsingCommandLineArguments(final String[] args) throws Exception { Renderer.renderUsingCommandLineArguments(args, OPENER, CONVERTER); }  static void render(final RenderParameters renderParameters,
                              final BufferedImage targetImage,
                              final ImageProcessorCache imageProcessorCache); static void renderUsingCommandLineArguments(final String[] args); static void main(final String[] args); static BufferedImage targetToARGBImage(final ImageProcessorWithMasks renderedImageProcessorWithMasks,
                                                  final boolean binaryMask);  }