Skip to content

Commit c9a52d8

Browse files
committed
check consistency with settings from .xml file
1 parent 886eba5 commit c9a52d8

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/fiji/plugin/trackmate/LoadTrackMatePlugIn.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ public void run( final String filePath )
153153
settings = new Settings( imp );
154154
}
155155

156+
/**
157+
* Check if settings and image dimensions don't match in Z and T dimensions
158+
*/
156159
GuiUtils.checkDimensionsImpAndSettings( imp, settings );
157160

158161
/*

src/main/java/fiji/plugin/trackmate/gui/GuiUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public static final void checkDimensionsImpAndSettings( final ImagePlus imp, fin
275275
switch ( JOptionPane.showConfirmDialog( null,
276276
"It appears this image has 1 timepoint but "
277277
+ dims[ 3 ]
278-
+ " slices.\n"
278+
+ " slices, while the TrackMate file has "+settings.nframes+" timepoint and "+settings.nslices+" slices.\n"
279279
+ "Do you want to swap Z and T?",
280280
"Z/T swapped?", JOptionPane.YES_NO_CANCEL_OPTION ) )
281281
{

0 commit comments

Comments
 (0)