diff --git a/src/main/java/net/preibisch/mvrecon/fiji/spimdata/interestpoints/InterestPointsN5.java b/src/main/java/net/preibisch/mvrecon/fiji/spimdata/interestpoints/InterestPointsN5.java index 60c74318..52b29067 100644 --- a/src/main/java/net/preibisch/mvrecon/fiji/spimdata/interestpoints/InterestPointsN5.java +++ b/src/main/java/net/preibisch/mvrecon/fiji/spimdata/interestpoints/InterestPointsN5.java @@ -33,12 +33,9 @@ import org.janelia.saalfeldlab.n5.DataType; import org.janelia.saalfeldlab.n5.GzipCompression; -import org.janelia.saalfeldlab.n5.N5FSReader; -import org.janelia.saalfeldlab.n5.N5FSWriter; import org.janelia.saalfeldlab.n5.N5Reader; import org.janelia.saalfeldlab.n5.N5Writer; import org.janelia.saalfeldlab.n5.imglib2.N5Utils; -import org.janelia.saalfeldlab.n5.universe.N5Factory; import org.janelia.saalfeldlab.n5.universe.N5Factory.StorageFormat; import mpicbg.spim.data.sequence.ViewId; @@ -223,6 +220,8 @@ public boolean saveInterestPoints( final boolean forceWrite ) n5Writer.close(); IOFunctions.println( "Saved: " + URITools.appendName( baseDir, baseN5 ) + "/" + dataset ); + + modifiedInterestPoints = false; } catch (Exception e) { @@ -347,6 +346,8 @@ else if ( x == 1 ) IOFunctions.println( "Saved: " + URITools.appendName( baseDir, baseN5 ) + "/" + dataset ); n5Writer.close(); + + modifiedCorrespondingInterestPoints = false; } catch (Exception e) { @@ -384,6 +385,8 @@ protected boolean loadInterestPoints() String version = n5.getAttribute(dataset, "pointcloud", String.class ); String type = n5.getAttribute(dataset, "type", String.class ); + System.out.println( "Version: " + version + ", type: " + type ); + if ( !type.equals("list") ) { IOFunctions.println( "unsupported point cloud type: " + type ); @@ -489,9 +492,11 @@ protected boolean loadCorrespondences() } final String version = n5.getAttribute(dataset, "correspondences", String.class ); + + @SuppressWarnings("unchecked") final Map< String, Long > idMap = n5.getAttribute(dataset, "idMap", Map.class ); // to store ID (viewId.getTimePointId() + "," + viewId.getViewSetupId() + "," + label) - System.out.println( version + ", " + idMap.size() + " correspondence codes" ); + System.out.println( "Version: " + version + ", " + idMap.size() + " correspondence codes" ); if ( idMap.size() == 0 ) {