diff --git a/render-ws-java-client/src/main/java/org/janelia/render/client/newsolver/blocksolveparameters/FIBSEMAlignmentParameters.java b/render-ws-java-client/src/main/java/org/janelia/render/client/newsolver/blocksolveparameters/FIBSEMAlignmentParameters.java index 7061dbc1b..353544c46 100644 --- a/render-ws-java-client/src/main/java/org/janelia/render/client/newsolver/blocksolveparameters/FIBSEMAlignmentParameters.java +++ b/render-ws-java-client/src/main/java/org/janelia/render/client/newsolver/blocksolveparameters/FIBSEMAlignmentParameters.java @@ -171,12 +171,11 @@ public > double[] centerOfMass( final BlockData entry : models.entrySet() ) + for ( final TileSpec ts : blockData.rtsc().getTileSpecs() ) { - final TileSpec ts = blockData.rtsc().getTileSpec( entry.getKey() ); final double[] coord = new double[] { (ts.getWidth() - 1) /2.0, (ts.getHeight() - 1) /2.0 }; - entry.getValue().applyInPlace( coord ); + models.get( ts.getTileId() ).applyInPlace( coord ); c[ 0 ] += coord[ 0 ]; c[ 1 ] += coord[ 1 ];