Search in sources :

Example 1 with StackAccessMode

use of net.imglib2.view.StackView.StackAccessMode in project imagej-ops by imagej.

the class ConcatenateViewTest method concatenateWithAccessModeTest.

@Test
public void concatenateWithAccessModeTest() {
    final List<RandomAccessibleInterval<ByteType>> intervals = createIntervals(img, divider, axis);
    for (final StackAccessMode mode : StackAccessMode.values()) {
        final RandomAccessibleInterval<ByteType> cat1 = Views.concatenate(axis, mode, intervals);
        final RandomAccessibleInterval<ByteType> cat2 = ops.transform().concatenateView(intervals, axis, mode);
        testEqual(cat1, cat2);
    }
}
Also used : StackAccessMode(net.imglib2.view.StackView.StackAccessMode) RandomAccessibleInterval(net.imglib2.RandomAccessibleInterval) ByteType(net.imglib2.type.numeric.integer.ByteType) AbstractOpTest(net.imagej.ops.AbstractOpTest) Test(org.junit.Test)

Aggregations

AbstractOpTest (net.imagej.ops.AbstractOpTest)1 RandomAccessibleInterval (net.imglib2.RandomAccessibleInterval)1 ByteType (net.imglib2.type.numeric.integer.ByteType)1 StackAccessMode (net.imglib2.view.StackView.StackAccessMode)1 Test (org.junit.Test)1