Skip to content

Commit 7363e6b

Browse files
committed
Opify util package
1 parent d9da2f9 commit 7363e6b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/main/java/net/imglib2/algorithm/util/Grids.java

+9
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ public static void forEachOffset(
213213
* Get all blocks of size {@code blockSize} contained within an interval
214214
* specified by {@code dimensions} and their positions within a cell grid.
215215
*
216+
* @implNote op name='collectAllContainedIntervalsWithGridPositions', type='java.util.function.BiFunction'
216217
* @param dimensions
217218
* @param blockSize
218219
* @return list of blocks as specified by {@link Interval} and the position
@@ -229,6 +230,7 @@ public static List< Pair< Interval, long[] > > collectAllContainedIntervalsWithG
229230
* specified by {@code min}, {@code max} and their positions within a cell
230231
* grid.
231232
*
233+
* @implNote op name='collectAllContainedIntervalsWithGridPositions', type='org.scijava.function.Functions.Arity3'
232234
* @param min
233235
* @param max
234236
* @param blockSize
@@ -245,6 +247,7 @@ public static List< Pair< Interval, long[] > > collectAllContainedIntervalsWithG
245247
* Get all blocks of size {@code blockSize} contained within an interval
246248
* specified by {@code dimensions} and their positions within a cell grid.
247249
*
250+
* @implNote op name='collectAllContainedIntervals', type='java.util.function.BiFunction'
248251
* @param dimensions
249252
* @param blockSize
250253
* @return list of blocks as specified by {@link Interval}
@@ -260,6 +263,7 @@ public static List< Interval > collectAllContainedIntervals( final long[] dimens
260263
* specified by {@code min}, {@code max} and their positions within a cell
261264
* grid.
262265
*
266+
* @implNote op name='collectAllContainedIntervals', type='org.scijava.function.Functions.Arity3'
263267
* @param min
264268
* @param max
265269
* @param blockSize
@@ -275,6 +279,7 @@ public static List< Interval > collectAllContainedIntervals( final long[] min, f
275279
* Get all blocks of size {@code blockSize} contained within an interval
276280
* specified by {@code dimensions}.
277281
*
282+
* @implNote op name='collectAllOffsets', type='java.util.function.BiFunction'
278283
* @param dimensions
279284
* @param blockSize
280285
* @return list of blocks defined by minimum
@@ -289,6 +294,7 @@ public static List< long[] > collectAllOffsets( final long[] dimensions, final i
289294
* Get all blocks of size {@code blockSize} contained within an interval
290295
* specified by {@code dimensions}.
291296
*
297+
* @implNote op name='collectAllOffsets', type='org.scijava.function.Functions.Arity3'
292298
* @param dimensions
293299
* @param blockSize
294300
* @param func
@@ -306,6 +312,7 @@ public static < T > List< T > collectAllOffsets( final long[] dimensions, final
306312
* Get all blocks of size {@code blockSize} contained within an interval
307313
* specified by {@code min} and {@code max}.
308314
*
315+
* @implNote op name='collectAllOffsets', type='org.scijava.function.Functions.Arity3'
309316
* @param min
310317
* @param max
311318
* @param blockSize
@@ -321,6 +328,7 @@ public static List< long[] > collectAllOffsets( final long[] min, final long[] m
321328
* Get all blocks of size {@code blockSize} contained within an interval
322329
* specified by {@code min} and {@code max}.
323330
*
331+
* @implNote op name='collectAllOffsets', type='org.scijava.function.Functions.Arity4'
324332
* @param min
325333
* @param max
326334
* @param blockSize
@@ -466,6 +474,7 @@ public static Function< long[], Pair< Interval, long[] > > croppedIntervalAndGri
466474
* into a {@link Pair} of {@link Interval} and {@link long[]} that specify
467475
* the block and its position in grid coordinates.
468476
*
477+
* @implNote op name='croppedIntervalAndGridPosition', type='org.scijava.function.Functions.Arity3'
469478
* @param min
470479
* minimum of the grid
471480
* @param max

src/main/java/net/imglib2/algorithm/util/ParallelizeOverBlocks.java

+6
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public class ParallelizeOverBlocks
6161
*
6262
* Submit blocked tasks and wait for execution.
6363
*
64+
* @implNote op name='parallelizeAndWait', type='org.scijava.function.Functions.Arity5'
6465
* @param func
6566
* {@link Function} to be applied to each block as specified by
6667
* first parameter {@link Interval}.
@@ -88,6 +89,7 @@ public static < T > List< T > parallelizeAndWait(
8889
*
8990
* Submit blocked tasks and wait for execution.
9091
*
92+
* @implNote op name='parallelize', type='org.scijava.function.Functions.Arity5'
9193
* @param func
9294
* {@link Function} to be applied to each block as specified by
9395
* first parameter {@link Interval}.
@@ -112,6 +114,7 @@ public static < T > List< Future< List< T > > > parallelize(
112114
*
113115
* Submit blocked tasks and wait for execution.
114116
*
117+
* @implNote op name='parallelizeAndWait', type='org.scijava.function.Functions.Arity6'
115118
* @param func
116119
* {@link Function} to be applied to each block as specified by
117120
* first parameter {@link Interval}.
@@ -145,6 +148,7 @@ public static < T > List< T > parallelizeAndWait(
145148
*
146149
* Submit blocked tasks and wait for execution.
147150
*
151+
* @implNote op name='parallelize', type='org.scijava.function.Functions.Arity6'
148152
* @param func
149153
* {@link Function} to be applied to each block as specified by
150154
* first parameter {@link Interval}.
@@ -177,6 +181,7 @@ public static < T > List< Future< List< T > > > parallelize(
177181
*
178182
* Submit blocked tasks and wait for execution.
179183
*
184+
* @implNote op name='parallelizeAndWait', type='org.scijava.function.Functions.Arity4'
180185
* @param func
181186
* {@link Function} to be applied to each block as specified by
182187
* first parameter {@link Interval}.
@@ -206,6 +211,7 @@ public static < T > List< T > parallelizeAndWait(
206211
*
207212
* Submit blocked tasks and wait for execution.
208213
*
214+
* @implNote op name='parallelize', type='org.scijava.function.Functions.Arity4'
209215
* @param func
210216
* {@link Function} to be applied to each block as specified by
211217
* first parameter {@link Interval}.

0 commit comments

Comments
 (0)