From de06a76439bf12d821f7212568563d86834707e1 Mon Sep 17 00:00:00 2001 From: John Bogovic Date: Thu, 17 Oct 2024 11:42:23 -0400 Subject: [PATCH] chore: clean up --- src/main/java/bdv/gui/ExportDisplacementFieldFrame.java | 9 --------- src/main/java/bigwarp/BigWarp.java | 9 +-------- src/test/java/bigwarp/dfield/DfieldExportTest.java | 1 - .../SimilarityTransformInterpolationExample.java | 2 -- 4 files changed, 1 insertion(+), 20 deletions(-) diff --git a/src/main/java/bdv/gui/ExportDisplacementFieldFrame.java b/src/main/java/bdv/gui/ExportDisplacementFieldFrame.java index 19884f36..e7062f9c 100644 --- a/src/main/java/bdv/gui/ExportDisplacementFieldFrame.java +++ b/src/main/java/bdv/gui/ExportDisplacementFieldFrame.java @@ -6,7 +6,6 @@ import java.awt.GridBagLayout; import java.awt.Insets; import java.io.File; -import java.net.URISyntaxException; import java.util.Arrays; import java.util.function.Consumer; import java.util.stream.Collectors; @@ -29,27 +28,19 @@ import javax.swing.filechooser.FileFilter; import javax.swing.filechooser.FileNameExtensionFilter; -import org.janelia.saalfeldlab.n5.N5URI; - import com.formdev.flatlaf.util.UIScale; -import bdv.export.ProgressWriterConsole; import bdv.ij.ApplyBigwarpPlugin; import bdv.ij.BigWarpToDeformationFieldPlugIn; import bdv.ij.BigWarpToDeformationFieldPlugIn.DeformationFieldExportParameters; import bdv.viewer.Source; import bigwarp.BigWarp; import bigwarp.BigWarpData; -import bigwarp.BigWarpInit; import bigwarp.landmarks.LandmarkTableModel; import bigwarp.transforms.BigWarpTransform; import ij.IJ; -import ij.ImagePlus; import ij.Macro; import ij.plugin.frame.Recorder; -import mpicbg.spim.data.SpimDataException; -import net.imglib2.type.NativeType; -import net.imglib2.type.numeric.RealType; public class ExportDisplacementFieldFrame extends JFrame { diff --git a/src/main/java/bigwarp/BigWarp.java b/src/main/java/bigwarp/BigWarp.java index 9247a78b..e952f418 100755 --- a/src/main/java/bigwarp/BigWarp.java +++ b/src/main/java/bigwarp/BigWarp.java @@ -39,7 +39,6 @@ import java.io.FileWriter; import java.io.IOException; import java.lang.reflect.Field; -import java.lang.reflect.InvocationTargetException; import java.net.URI; import java.net.URISyntaxException; import java.text.SimpleDateFormat; @@ -51,9 +50,7 @@ import java.util.Optional; import java.util.Set; import java.util.concurrent.CopyOnWriteArrayList; -import java.util.concurrent.Executors; import java.util.concurrent.RejectedExecutionException; -import java.util.function.Supplier; import javax.swing.ActionMap; import javax.swing.InputMap; @@ -101,7 +98,6 @@ import bdv.gui.BigWarpMessageAnimator; import bdv.gui.BigWarpViewerFrame; import bdv.gui.BigWarpViewerOptions; -import bdv.gui.BigwarpLandmarkSelectionPanel; import bdv.gui.ExportDisplacementFieldFrame; import bdv.gui.LandmarkKeyboardProcessor; import bdv.gui.MaskOptionsPanel; @@ -110,7 +106,6 @@ import bdv.gui.TransformTypeSelectDialog; import bdv.ij.ApplyBigwarpPlugin; import bdv.ij.ApplyBigwarpPlugin.WriteDestinationOptions; -import bdv.ij.BigWarpToDeformationFieldPlugIn; import bdv.ij.util.ProgressWriterIJ; import bdv.img.WarpedSource; import bdv.tools.InitializeViewerState; @@ -145,8 +140,6 @@ import bdv.viewer.TransformListener; import bdv.viewer.ViewerPanel; import bdv.viewer.ViewerState; -import bdv.viewer.ViewerStateChange; -import bdv.viewer.ViewerStateChangeListener; import bdv.viewer.WarpNavigationActions; import bdv.viewer.animate.SimilarityModel3D; import bdv.viewer.animate.TranslationAnimator; @@ -177,7 +170,6 @@ import java.util.LinkedHashMap; import jitk.spline.ThinPlateR2LogRSplineKernelTransform; -import jitk.spline.XfmUtils; import mpicbg.models.AbstractModel; import mpicbg.models.AffineModel2D; import mpicbg.models.AffineModel3D; @@ -232,6 +224,7 @@ public class BigWarp< T > protected BigWarpData< T > data; protected final SetupAssignments setupAssignments; + protected final WarpVisFrame warpVisDialog; protected final HelpDialog helpDialog; diff --git a/src/test/java/bigwarp/dfield/DfieldExportTest.java b/src/test/java/bigwarp/dfield/DfieldExportTest.java index 90d441ce..712d3fd0 100644 --- a/src/test/java/bigwarp/dfield/DfieldExportTest.java +++ b/src/test/java/bigwarp/dfield/DfieldExportTest.java @@ -30,7 +30,6 @@ import bigwarp.source.SourceInfo; import bigwarp.transforms.BigWarpTransform; import ij.ImagePlus; -import net.imglib2.Dimensions; import net.imglib2.FinalRealInterval; import net.imglib2.RandomAccessibleInterval; import net.imglib2.RealInterval; diff --git a/src/test/java/net/imglib2/realtransform/SimilarityTransformInterpolationExample.java b/src/test/java/net/imglib2/realtransform/SimilarityTransformInterpolationExample.java index 30cb7949..78d8fcd7 100644 --- a/src/test/java/net/imglib2/realtransform/SimilarityTransformInterpolationExample.java +++ b/src/test/java/net/imglib2/realtransform/SimilarityTransformInterpolationExample.java @@ -46,7 +46,6 @@ import net.imglib2.util.Intervals; import net.imglib2.view.Views; - public class SimilarityTransformInterpolationExample { public static void main(String[] args) { @@ -58,7 +57,6 @@ public static void main(String[] args) { public static void exp() { - double[] zero = new double[]{0, 0, 0}; double[] center = new double[]{252, 76, 70}; double[] centerOfRotation = new double[] { 252, 150, 70 }; AffineTransform3D offset = new AffineTransform3D();