|
1 | 1 | package net.imagej.ops2.tutorial; |
2 | 2 |
|
| 3 | +import org.scijava.Context; |
| 4 | +import org.scijava.ops.api.OpEnvironment; |
| 5 | +import org.scijava.types.Nil; |
| 6 | + |
3 | 7 | import io.scif.img.ImgOpener; |
4 | | -import io.scif.img.SCIFIOImgPlus; |
5 | | -import net.imglib2.IterableInterval; |
6 | | -import net.imglib2.RandomAccessibleInterval; |
7 | | -import net.imglib2.algorithm.neighborhood.RectangleNeighborhoodFactory; |
8 | 8 | import net.imglib2.algorithm.neighborhood.RectangleShape; |
9 | | -import net.imglib2.algorithm.neighborhood.Shape; |
10 | 9 | import net.imglib2.img.Img; |
11 | | -import net.imglib2.img.array.ArrayImg; |
12 | 10 | import net.imglib2.outofbounds.OutOfBoundsBorderFactory; |
13 | | -import net.imglib2.outofbounds.OutOfBoundsFactory; |
14 | | -import net.imglib2.type.numeric.integer.ByteType; |
15 | 11 | import net.imglib2.type.numeric.integer.IntType; |
16 | 12 | import net.imglib2.type.numeric.integer.UnsignedByteType; |
17 | | -import org.scijava.Context; |
18 | | -import org.scijava.ops.api.OpEnvironment; |
19 | | -import org.scijava.ops.engine.DefaultOpEnvironment; |
20 | | -import org.scijava.types.Nil; |
21 | | - |
22 | | -import java.util.Random; |
23 | 13 |
|
24 | 14 | public class OpsIntro { |
25 | 15 |
|
@@ -48,11 +38,11 @@ public static void main(String... args) { |
48 | 38 | /* |
49 | 39 | The OpEnvironment is the core of ImageJ Ops2. It is a collection of Ops, |
50 | 40 | along with API for accessing Ops, adding new Ops, and other utilities. |
51 | | -
|
52 | | - The DefaultOpEnvironment is the recommended OpEnvironment for beginners, |
53 | | - and can be created using the line below: |
| 41 | + |
| 42 | + The easiest way to obtain an OpEnvironment is to use the following static |
| 43 | + method. |
54 | 44 | */ |
55 | | - OpEnvironment ops = new DefaultOpEnvironment(); |
| 45 | + OpEnvironment ops = OpEnvironment.getEnvironment(); |
56 | 46 |
|
57 | 47 | /* |
58 | 48 | OpEnvironments contain Ops, and there are a lot of them. |
|
0 commit comments