|
1 | 1 |
|
2 | 2 | package fiji.plugin.appose.cellpose.cp3; |
3 | 3 |
|
4 | | -import static fiji.plugin.appose.ApposeUtils.getBestTorchConfig; |
5 | | -import static fiji.plugin.appose.ApposeUtils.getCudaVersion; |
6 | | -import static fiji.plugin.appose.ApposeUtils.rawWraps; |
7 | | -import static fiji.plugin.appose.ApposeUtils.transferCalibration; |
8 | | -import static fiji.plugin.appose.ApposeUtils.useGlasbeyDarkLUT; |
9 | 4 | import static fiji.plugin.appose.ApposeUtils.getCudaVersion; |
10 | 5 |
|
11 | | -import java.awt.EventQueue; |
12 | | -import java.awt.Font; |
13 | | -import java.awt.Window; |
| 6 | + |
14 | 7 | import java.awt.Color; |
15 | 8 | import java.io.IOException; |
16 | | -import java.net.URL; |
17 | | -import java.nio.charset.StandardCharsets; |
18 | 9 | import java.util.Arrays; |
19 | | -import java.util.HashMap; |
20 | 10 | import java.util.List; |
21 | | -import java.util.Map; |
22 | 11 |
|
23 | | -import javax.swing.JDialog; |
24 | | -import javax.swing.JProgressBar; |
25 | | -import javax.swing.WindowConstants; |
26 | | - |
27 | | -import org.apache.commons.io.IOUtils; |
28 | | -import org.apposed.appose.Appose; |
29 | 12 | import org.apposed.appose.BuildException; |
30 | | -import org.apposed.appose.Environment; |
31 | | -import org.apposed.appose.NDArray; |
32 | | -import org.apposed.appose.Service; |
33 | | -import org.apposed.appose.Service.Task; |
34 | | -import org.apposed.appose.Service.TaskStatus; |
35 | 13 | import org.scijava.Initializable; |
36 | 14 | import org.scijava.ItemVisibility; |
37 | 15 | import org.scijava.command.Command; |
|
43 | 21 | import org.scijava.task.TaskService; |
44 | 22 |
|
45 | 23 | import fiji.plugin.appose.ApposeUtils; |
46 | | -import fiji.plugin.appose.ImageAxisInfo; |
47 | 24 | import fiji.plugin.appose.cellpose.Cellpose; |
48 | 25 | import fiji.plugin.appose.cellpose.Cellpose3BuiltinModels; |
49 | | -import fiji.plugin.appose.cellpose.cp4.Cellpose4Parameters; |
50 | 26 |
|
51 | 27 | import ij.IJ; |
52 | 28 | import ij.ImagePlus; |
53 | 29 | import ij.WindowManager; |
54 | 30 | import ij.measure.Calibration; |
55 | 31 | import ij.plugin.frame.RoiManager; |
56 | | -import ij.process.StackStatistics; |
57 | | -import net.imagej.ImgPlus; |
58 | | -import net.imglib2.appose.NDArrays; |
59 | | -import net.imglib2.appose.ShmImg; |
60 | | -import net.imglib2.img.Img; |
61 | | -import net.imglib2.img.display.imagej.ImageJFunctions; |
62 | 32 | import net.imglib2.type.NativeType; |
63 | 33 | import net.imglib2.type.numeric.RealType; |
64 | 34 |
|
@@ -295,7 +265,7 @@ public < T extends RealType< T > & NativeType< T > > void process( final ImagePl |
295 | 265 | { |
296 | 266 | // Print os and arch info |
297 | 267 | System.out.println( "Starting process..." ); |
298 | | - |
| 268 | + |
299 | 269 | try |
300 | 270 | { |
301 | 271 | final List<Integer> channels = Arrays.asList( |
|
0 commit comments