File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/java/net/imglib2/algorithm/blocks Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 37
37
import static net .imglib2 .util .Util .safeInt ;
38
38
39
39
import java .util .Arrays ;
40
+ import java .util .function .Function ;
40
41
41
42
import net .imglib2 .EuclideanSpace ;
42
43
import net .imglib2 .Interval ;
@@ -146,6 +147,11 @@ default < U extends NativeType< U > > BlockSupplier< U > andThen( UnaryBlockOper
146
147
return new ConcatenatedBlockSupplier <>( this .independentCopy (), operator .independentCopy () );
147
148
}
148
149
150
+ default < U extends NativeType < U > > BlockSupplier < U > andThen ( Function < BlockSupplier < T >, UnaryBlockOperator < T , U > > function )
151
+ {
152
+ return new ConcatenatedBlockSupplier <>( this .independentCopy (), function .apply ( this ) );
153
+ }
154
+
149
155
/**
150
156
* Create a {@code BlockSupplier} accessor for an arbitrary {@code
151
157
* RandomAccessible} source. Many View constructions (that ultimately end in
You can’t perform that action at this time.
0 commit comments