From 5a3a37db8c22a46f700df605ff5b62ed0753acbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20H=C3=B6rl?= Date: Wed, 27 Jun 2018 11:32:01 +0200 Subject: [PATCH] look for tile locations under another key in .czi metadata --- .../metadatarefinement/CZITileOrAngleRefiner.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/net/preibisch/mvrecon/fiji/datasetmanager/metadatarefinement/CZITileOrAngleRefiner.java b/src/main/java/net/preibisch/mvrecon/fiji/datasetmanager/metadatarefinement/CZITileOrAngleRefiner.java index 0d63e68ed..d46ffed35 100644 --- a/src/main/java/net/preibisch/mvrecon/fiji/datasetmanager/metadatarefinement/CZITileOrAngleRefiner.java +++ b/src/main/java/net/preibisch/mvrecon/fiji/datasetmanager/metadatarefinement/CZITileOrAngleRefiner.java @@ -69,16 +69,28 @@ else if ( Double.parseDouble( axes[ 2 ] ) == 1.0 ) tmp = r.getMetadataValue( "Information|Image|V|View|PositionX #" + StackList.leadingZeros( Integer.toString( i+1 ), numDigits ) ); if ( tmp == null ) tmp = r.getMetadataValue( "Information|Image|V|View|PositionX #" + ( i+1 ) ); + if (tmp == null) + tmp = r.getMetadataValue( "Experiment|AcquisitionBlock|TilesSetup|PositionGroup|Position|X #" + ( i+1 ) ); + if (tmp == null) + tmp = r.getMetadataValue( "Experiment|AcquisitionBlock|TilesSetup|PositionGroup|Position|X #" + StackList.leadingZeros( Integer.toString( i+1 ), numDigits ) ); infoT.locationX = (tmp != null) ? Double.parseDouble( tmp.toString() ) : 0.0; tmp = r.getMetadataValue( "Information|Image|V|View|PositionY #" + StackList.leadingZeros( Integer.toString( i+1 ), numDigits ) ); if ( tmp == null ) tmp = r.getMetadataValue( "Information|Image|V|View|PositionY #" + ( i+1 ) ); + if (tmp == null) + tmp = r.getMetadataValue( "Experiment|AcquisitionBlock|TilesSetup|PositionGroup|Position|Y #" + ( i+1 ) ); + if (tmp == null) + tmp = r.getMetadataValue( "Experiment|AcquisitionBlock|TilesSetup|PositionGroup|Position|Y #" + StackList.leadingZeros( Integer.toString( i+1 ), numDigits ) ); infoT.locationY = (tmp != null) ? Double.parseDouble( tmp.toString() ) : 0.0; tmp = r.getMetadataValue( "Information|Image|V|View|PositionZ #" + StackList.leadingZeros( Integer.toString( i+1 ), numDigits ) ); if ( tmp == null ) tmp = r.getMetadataValue( "Information|Image|V|View|PositionZ #" + ( i+1 ) ); + if (tmp == null) + tmp = r.getMetadataValue( "Experiment|AcquisitionBlock|TilesSetup|PositionGroup|Position|Z #" + ( i+1 ) ); + if (tmp == null) + tmp = r.getMetadataValue( "Experiment|AcquisitionBlock|TilesSetup|PositionGroup|Position|Z #" + StackList.leadingZeros( Integer.toString( i+1 ), numDigits ) ); infoT.locationZ = (tmp != null) ? Double.parseDouble( tmp.toString() ) : 0.0;