Java Code Examples for net.imglib2.view.Views#concatenate()

The following examples show how to use net.imglib2.view.Views#concatenate() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConcatenateViewTest.java    From imagej-ops with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Test
public void defaultConcatenateTest() {
	final List< RandomAccessibleInterval< ByteType > > intervals = createIntervals( img, divider, axis );
	final RandomAccessibleInterval< ByteType > cat1 = Views.concatenate( axis, intervals );
	final RandomAccessibleInterval< ByteType > cat2 = ops.transform().concatenateView( intervals, axis );
	testEqual( cat1, cat2 );

}
 
Example 2
Source File: ConcatenateViewTest.java    From imagej-ops with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@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 );
	}
}
 
Example 3
Source File: DefaultConcatenateView.java    From imagej-ops with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public RandomAccessibleInterval< T > calculate( final List< ? extends RandomAccessibleInterval< T > > input )
{
	return Views.concatenate( concatenationAxis, input );
}
 
Example 4
Source File: ConcatenateViewWithAccessMode.java    From imagej-ops with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public RandomAccessibleInterval< T > calculate( final List< ? extends RandomAccessibleInterval< T > > input )
{
	return Views.concatenate( concatenationAxis, stackAccessMode, input );
}