/** * Returns a RandomIterator on the input image. * * @param src * @return */ protected RandomIter getRandomIterator(final PlanarImage src, BorderExtender extender) { return getRandomIterator(src, 0, 1, 0, 1, extender); }
/** * Returns an array of <code>PropertyGenerators</code> implementing property inheritance for the "Warp" operation. * * @return An array of property generators. */ public PropertyGenerator[] getPropertyGenerators() { PropertyGenerator[] pg = new PropertyGenerator[1]; pg[0] = new WarpPropertyGenerator(); return pg; }
/** * Test with ROI and without NoData */ public void testImageROI(InterpolationType interpType) { boolean roiUsed = true; boolean noDataUsed = false; TestSelection testSelect = TestSelection.ROI_ONLY_DATA; for (int i = 0; i < images.length; i++) { testWarp(images[0], noDataUsed, roiUsed, warpObj, noDataValueB, interpType, testSelect); } }
/** * Static method for disposing the test environment. */ @AfterClass public static void finalStuff() { TestWarp.finalStuff(); } }
@Test public void testImageNoData() { super.testImageNoData(interpType); }
@Test public void testImageROI() { super.testImageROI(interpType); }
@Test public void testImage() { super.testImage(interpType); }
@Test public void testImageNoDataROI() { super.testImageNoDataROI(interpType); }
/** * Test with ROI and with NoData */ public void testImageNoDataROI(InterpolationType interpType) { boolean roiUsed = true; boolean noDataUsed = true; TestSelection testSelect = TestSelection.ROI_NO_DATA; for (int i = 0; i < images.length; i++) { testWarp(images[0], noDataUsed, roiUsed, warpObj, noDataValueB, interpType, testSelect); } }
/** * Static method for disposing the test environment. */ @AfterClass public static void finalStuff() { TestWarp.finalStuff(); } }
/** * Returns a RandomIterator on the input image. * * @param src * @return */ protected RandomIter getRandomIterator(final PlanarImage src, BorderExtender extender) { return getRandomIterator(src, 0, 1, 0, 1, extender); }
/** * Returns an array of <code>PropertyGenerators</code> implementing property inheritance for the "Warp" operation. * * @return An array of property generators. */ public PropertyGenerator[] getPropertyGenerators() { PropertyGenerator[] pg = new PropertyGenerator[1]; pg[0] = new WarpPropertyGenerator(); return pg; }
@Test public void testImageNoData() { super.testImageNoData(interpType); }
@Test public void testImageROI() { super.testImageROI(interpType); }
@Test public void testImage() { super.testImage(interpType); }
/** * Test without ROI and without NoData */ public void testImage(InterpolationType interpType) { boolean roiUsed = false; boolean noDataUsed = false; TestSelection testSelect = TestSelection.NO_ROI_ONLY_DATA; for (int i = 0; i < images.length; i++) { testWarp(images[0], noDataUsed, roiUsed, warpObj, noDataValueB, interpType, testSelect); } }
/** * Static method for disposing the test environment. */ @AfterClass public static void finalStuff() { TestWarp.finalStuff(); }
/** * Test without ROI and with NoData */ public void testImageNoData(InterpolationType interpType) { boolean roiUsed = false; boolean noDataUsed = true; TestSelection testSelect = TestSelection.NO_ROI_NO_DATA; for (int i = 0; i < images.length; i++) { testWarp(images[0], noDataUsed, roiUsed, warpObj, noDataValueB, interpType, testSelect); } }
/** * Static method for disposing the test environment. */ @AfterClass public static void finalStuff() { TestWarp.finalStuff(); } }