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; }
protected ArrayList< ViewSetup > createViewSetups( final DHMMetaData meta ) { final ArrayList< Channel > channels = new ArrayList< Channel >(); channels.add( new Channel( meta.getAmpChannelId(), meta.getAmplitudeDir() ) ); channels.add( new Channel( meta.getPhaseChannelId(), meta.getPhaseDir() ) ); final ArrayList< Illumination > illuminations = new ArrayList< Illumination >(); illuminations.add( new Illumination( 0, String.valueOf( 0 ) ) ); final ArrayList< Angle > angles = new ArrayList< Angle >(); angles.add( new Angle( 0, String.valueOf( 0 ) ) ); final ArrayList< ViewSetup > viewSetups = new ArrayList< ViewSetup >(); for ( final Channel c : channels ) for ( final Illumination i : illuminations ) for ( final Angle a : angles ) { final VoxelDimensions voxelSize = new FinalVoxelDimensions( meta.calUnit, meta.calX, meta.calY, meta.calZ ); final Dimensions dim = new FinalDimensions( new long[]{ meta.getWidth(), meta.getHeight(), meta.getDepth() } ); viewSetups.add( new ViewSetup( viewSetups.size(), null, dim, voxelSize, c, a, i ) ); } return viewSetups; }
channels.add( new Channel( c, channelNameList.get( c ) ) );
public static ArrayList< ViewSetup > createViewSetups( final int[] rotations, final int rotationAxis, final Interval range ) channels.add( new Channel( 0, "Channel1" ) );
channelList.add( new Channel( c, channelNameList.get( c ) ) );
e = new Channel( 0 ); viewSetup.setAttribute( e );
channels.add( new Channel( c, meta.channelName( c ) ) );
if ( channel == null ) channel = new Channel( channelId ); channels.put( channelId, channel );
channels.add( new Channel( c, meta.channels()[ c ] ) );
Channel chI = new Channel( channelId, channelId.toString() );
final VoxelDimensions voxelSize = fusionLoader.getSetupImgLoader( setupId ).getVoxelSize( timepointId ); final BasicViewSetup setup = new BasicViewSetup( setupId, name, size, voxelSize ); setup.setAttribute( new Channel( channels.get( setupId ) ) ); setups.add( setup );
channels.add( new Channel( c, meta.channelName( c ) ) );
channels.add( new Channel( c, meta.channels()[ c ] ) );
final Channel channel = new Channel( conf.channels[ channelIndex ] ); final Angle angle = new Angle( conf.angles[ angleIndex ] ); final Illumination illumination = new Illumination( conf.illuminations[ illuminationIndex ] );
for ( final ChannelInfo channelInfo : channelInfos ) final Channel channel = new Channel( channelInfo.channelNumber ); final Dimensions size = new FinalDimensions( new int[] { channelInfo.width,
new FinalVoxelDimensions( "px", new double[] { downsampling, downsampling, downsampling * anisoF } ), new Tile( 0 ), new Channel( 0 ), new Angle( 0 ), new Illumination( 0 ) ) );
setup.setAttribute( new Channel( s + 1 ) ); setups.put( s, setup );
new FinalVoxelDimensions( "px", Util.getArrayFromValue( downsampling, 3 ) ), new Tile( newTileId ), new Channel( newChannelId ), new Angle( newAngleId ), new Illumination( newIllumId ) ) );
setup.setAttribute( new Channel( s + 1 ) ); setups.put( s, setup );