diff --git a/src/test/java/net/imglib2/view/fluent/StreamifiedViewsExample.java b/src/test/java/net/imglib2/view/fluent/StreamifiedViewsExample.java index 86cfd4071..a0a91ad3a 100644 --- a/src/test/java/net/imglib2/view/fluent/StreamifiedViewsExample.java +++ b/src/test/java/net/imglib2/view/fluent/StreamifiedViewsExample.java @@ -6,6 +6,7 @@ import net.imglib2.RealRandomAccessible; import net.imglib2.img.array.ArrayImgs; import net.imglib2.type.numeric.integer.IntType; +import net.imglib2.type.numeric.real.DoubleType; import net.imglib2.view.fluent.RaView.Interpolation; import net.imglib2.view.fluent.RaiView.Extension; @@ -19,6 +20,12 @@ public static void main( String[] args ) .extend( Extension.zero() ) .interpolate( Interpolation.lanczos() ); + RealRandomAccessible< DoubleType > doubleView = img.view() + .extend( Extension.zero() ) + .permute( 0, 1 ) + .convert( ( i, o ) -> o.set( i.get() ), DoubleType::new ) + .interpolate( Interpolation.lanczos() ); + RandomAccess< IntType > access = img.view() .extend( Extension.border() ) .interpolate( Interpolation.nLinear() )