File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/main/java/net/imglib2/algorithm/math Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 5
5
import net .imglib2 .algorithm .math .abstractions .Util ;
6
6
import net .imglib2 .converter .Converter ;
7
7
import net .imglib2 .img .array .ArrayImgFactory ;
8
+ import net .imglib2 .type .NativeType ;
8
9
import net .imglib2 .type .numeric .RealType ;
9
10
import net .imglib2 .type .numeric .real .FloatType ;
10
11
@@ -98,6 +99,16 @@ static public final < O extends RealType< O > > RandomAccessibleInterval< O > co
98
99
return new Compute ( operation ).into ( target , converter );
99
100
}
100
101
102
+ static public final < O extends NativeType < O > & RealType < O > > RandomAccessibleInterval < O > computeIntoImg ( final IFunction operation )
103
+ {
104
+ return compute ( operation ).intoImg ();
105
+ }
106
+
107
+ static public final < O extends NativeType < O > & RealType < O > > RandomAccessibleInterval < O > computeIntoArrayImg ( final IFunction operation )
108
+ {
109
+ return compute ( operation ).intoArrayImg ();
110
+ }
111
+
101
112
static public final Add add ( final Object o1 , final Object o2 )
102
113
{
103
114
return new Add ( o1 , o2 );
You can’t perform that action at this time.
0 commit comments