public static ArrayList< ViewSetup > createViewSetupsFromImgLoader(SimulatedBeadsImgLoader2 imgLoader) { final ArrayList< ViewSetup > viewSetups = new ArrayList< ViewSetup >(); SimulateBeads2 sb = imgLoader.getSimulateBeads(); int vid = 0; for (int a : new ArrayList<>(sb.angleTransforms.keySet()).stream().sorted().collect( Collectors.toList() )) for (int channel : new ArrayList<>(sb.channelTransforms.keySet()).stream().sorted().collect( Collectors.toList() )) for (int illum : new ArrayList<>(sb.illumTransforms.keySet()).stream().sorted().collect( Collectors.toList() )) for (int tile : new ArrayList<>(sb.tileTransforms.keySet()).stream().sorted().collect( Collectors.toList() )) { final VoxelDimensions voxelSize = new FinalVoxelDimensions( "pixels", 1, 1, 1 ); final Dimensions dim = imgLoader.getSimulateBeads().getImg( 0, a, channel, tile, illum ); viewSetups.add( new ViewSetup( vid++, Integer.toString( vid ), dim, voxelSize, new Tile(tile), new Channel(channel), new Angle(a), new Illumination(illum) ) ); } return viewSetups; }
tiles.add( new Tile( t, tileNameList.get( t ) ) );
tileList.add( new Tile( x, tileNameList.get( x ) ) );
e = new Tile( 0 ); viewSetup.setAttribute( e );
for ( int i = 0; i < meta.numTiles(); i++ ) Tile t = new Tile( i, meta.tiles()[ i], meta.tileLocations().get( i ) ); tiles.add( t );
Tile tI = new Tile( tileId, tileId.toString() );
fusion.getDownsampledBoundingBox(), new FinalVoxelDimensions( "px", new double[] { downsampling, downsampling, downsampling * anisoF } ), new Tile( 0 ), c, new Angle( 0 ), fusion.getDownsampledBoundingBox(), new FinalVoxelDimensions( "px", new double[] { downsampling, downsampling, downsampling * anisoF } ), new Tile( 0 ), channels.get( c ), new Angle( 0 ), fusion.getDownsampledBoundingBox(), new FinalVoxelDimensions( "px", new double[] { downsampling, downsampling, downsampling * anisoF } ), new Tile( 0 ), new Channel( 0 ), new Angle( 0 ),
fusion.getDownsampledBoundingBox(), new FinalVoxelDimensions( "px", Util.getArrayFromValue( downsampling, 3 ) ), new Tile( newTileId ), c, new Angle( newAngleId ), fusion.getDownsampledBoundingBox(), new FinalVoxelDimensions( "px", Util.getArrayFromValue( downsampling, 3 ) ), new Tile( newTileId ), channels.get( newChannelId ), new Angle( newAngleId ), fusion.getDownsampledBoundingBox(), new FinalVoxelDimensions( "px", Util.getArrayFromValue( downsampling, 3 ) ), new Tile( newTileId ), new Channel( newChannelId ), new Angle( newAngleId ),