@@ -55,17 +55,18 @@ public Compute( final IFunction operation )
5555 this .params = Compute .validate ( this .operation );
5656 }
5757
58- public < O extends RealType < O > & NativeType < O > > RandomAccessibleInterval < O >
58+ public < O extends RealType < O > & NativeType < O > > ArrayImg < O , ? >
5959 intoArrayImg ()
6060 {
6161 @ SuppressWarnings ("unchecked" )
6262 final RandomAccessibleInterval < O > rai = ( RandomAccessibleInterval < O > )Util .findImg ( operation ).iterator ().next ();
6363 final ArrayImg < O , ? > target = new ArrayImgFactory < O >( rai .randomAccess ().get ().createVariable () ).create ( rai );
6464 this .params .compatible_iteration_order = Util .compatibleIterationOrder ( Arrays .asList ( rai , target ) );
65- return this .into ( target );
65+ this .into ( target );
66+ return target ;
6667 }
6768
68- public < O extends RealType < O > & NativeType < O >, C extends RealType < C > & NativeType < C > > RandomAccessibleInterval < O >
69+ public < O extends RealType < O > & NativeType < O >, C extends RealType < C > & NativeType < C > > ArrayImg < O , ? >
6970 intoArrayImg ( final C computeType , final O outputType )
7071 {
7172 final Set < RandomAccessibleInterval < ? > > imgs = Util .findImg ( operation );
@@ -84,10 +85,11 @@ public Compute( final IFunction operation )
8485 final ArrayImg < O , ? > target = new ArrayImgFactory < O >( outputType ).create ( interval );
8586 ls .add ( target );
8687 this .params .compatible_iteration_order = Util .compatibleIterationOrder ( ls );
87- return this .into ( target , null , computeType , null );
88+ this .into ( target , null , computeType , null );
89+ return target ;
8890 }
8991
90- public < O extends RealType < O > & NativeType < O >, C extends RealType < C > > RandomAccessibleInterval < O >
92+ public < O extends RealType < O > & NativeType < O >, C extends RealType < C > > ArrayImg < O , ? >
9193 intoArrayImg ( final O outputType )
9294 {
9395 return intoArrayImg ( outputType .createVariable (), outputType );
0 commit comments