@@ -288,10 +288,6 @@ else if ( outputPathURIString.toLowerCase().endsWith( ".h5" ) || outPathURI.toSt
288288
289289 final DataType dataType = driverVolumeWriter .getAttribute ( getContainerGroupPath (), "Bigstitcher-Spark/DataType" , DataType .class );
290290
291- final long [] orig_bbMin = driverVolumeWriter .getAttribute ( getContainerGroupPath (), "Bigstitcher-Spark/Boundingbox_min" , long [].class );
292- if ( !Double .isNaN ( anisotropyFactor ) )
293- orig_bbMin [ 2 ] = Math .round ( Math .floor ( orig_bbMin [ 2 ] * anisotropyFactor ) );
294-
295291 System .out .println ( "FusionFormat: " + fusionFormat );
296292 System .out .println ( "FusionType: " + fusionType );
297293 System .out .println ( "Input XML: " + xmlURI );
@@ -499,13 +495,6 @@ else if ( intensityN5PathURIString.toLowerCase().endsWith( ".h5" ) || intensityN
499495 {
500496 final SpimData2 dataLocal = Spark .getSparkJobSpimData2 (xmlURI );
501497
502- final HashMap < ViewId , AffineTransform3D > orig_registrations =
503- TransformVirtual .adjustAllTransforms (
504- viewIds ,
505- dataLocal .getViewRegistrations ().getViewRegistrations (),
506- Double .NaN ,
507- Double .NaN );
508-
509498 final HashMap < ViewId , AffineTransform3D > registrations =
510499 TransformVirtual .adjustAllTransforms (
511500 viewIds ,
@@ -542,7 +531,7 @@ else if ( dataType == DataType.UINT16 )
542531 // The min coordinates of the block that this job renders (in pixels)
543532 final int n = gridBlock [ 0 ].length ;
544533 final long [] superBlockOffset = new long [ n ];
545- Arrays .setAll ( superBlockOffset , d -> gridBlock [ 0 ][ d ] + orig_bbMin [ d ] );
534+ Arrays .setAll ( superBlockOffset , d -> gridBlock [ 0 ][ d ] + bbMin [ d ] );
546535
547536 // The size of the block that this job renders (in pixels)
548537 final long [] superBlockSize = gridBlock [ 1 ];
@@ -557,7 +546,7 @@ else if ( dataType == DataType.UINT16 )
557546 Arrays .setAll ( fusedBlockMax , d -> superBlockOffset [ d ] + superBlockSize [ d ] - 1 );
558547
559548 final List < ViewId > overlappingViews =
560- OverlappingViews .findOverlappingViews ( dataLocal , viewIds , orig_registrations , fusedBlock );
549+ OverlappingViews .findOverlappingViews ( dataLocal , viewIds , registrations , fusedBlock );
561550
562551 if ( overlappingViews .size () == 0 )
563552 return gridBlock ;
0 commit comments