public static TimePoints createTimepoints() { final ArrayList< TimePoint > timepointList = new ArrayList< TimePoint >(); timepointList.add( new TimePoint( 0 ) ); return new TimePoints( timepointList ); }
public static TimePoints createTimePointsFromImgLoader(SimulatedBeadsImgLoader2 imgLoader) { final ArrayList< TimePoint > timepointList = new ArrayList< TimePoint >(); SimulateBeads2 sb = imgLoader.getSimulateBeads(); for (int tp : new ArrayList<>(sb.tpTransforms.keySet()).stream().sorted().collect( Collectors.toList() )) timepointList.add( new TimePoint( tp ) ); return new TimePoints( timepointList ); }
protected static TimePoints createTimePoints( final SPIMConfiguration conf ) { final ArrayList< TimePoint > timepoints = new ArrayList<>(); for ( final int tp : conf.timepoints ) timepoints.add( new TimePoint( tp ) ); return new TimePoints( timepoints ); }
protected TimePoints createTimePoints( final LightSheetZ1MetaData meta ) { final ArrayList< TimePoint > timepoints = new ArrayList< TimePoint >(); for ( int t = 0; t < meta.numTimepoints(); ++t ) timepoints.add( new TimePoint( t ) ); return new TimePoints( timepoints ); }
protected TimePoints createTimePoints( MultipageTiffReader meta ) { final ArrayList< TimePoint > timepoints = new ArrayList< TimePoint >(); for ( int t = 0; t < meta.numTimepoints(); ++t ) timepoints.add( new TimePoint( t ) ); return new TimePoints( timepoints ); }
protected TimePoints createTimePoints( final DHMMetaData meta ) { final ArrayList< TimePoint > timepoints = new ArrayList< TimePoint >(); for ( int t = 0; t < meta.getTimepoints().size(); ++t ) timepoints.add( new TimePoint( Integer.parseInt( meta.getTimepoints().get( t ) ) ) ); return new TimePoints( timepoints ); }
public TimePoints readTimePoints() { final Element root = document.getRootElement(); final int nTimePoints = Integer.parseInt( root.getChild( "TimelapsCondition" ).getChildText( "Iteration" ) ); final List< TimePoint > timepoints = new ArrayList<>( nTimePoints ); for ( int i = 0; i < nTimePoints; i++ ) { timepoints.add( new TimePoint( Integer.valueOf( i ) ) ); } return new TimePoints( timepoints ); }
static LoopBackImageLoader create( final IHDF5Reader existingHdf5Reader, final int timepointIdPartition, final int setupIdPartition, final Dimensions imageDimensions ) { final HashMap< Integer, TimePoint > timepoints = new HashMap<>(); timepoints.put( timepointIdPartition, new TimePoint( timepointIdPartition ) ); final HashMap< Integer, BasicViewSetup > setups = new HashMap<>(); setups.put( setupIdPartition, new BasicViewSetup( setupIdPartition, null, imageDimensions, null ) ); final SequenceDescriptionMinimal seq = new SequenceDescriptionMinimal( new TimePoints( timepoints ), setups, null, null ); return new LoopBackImageLoader( existingHdf5Reader, seq ); } }
public static void main( String args[] ) { final ArrayList< RegistrationStatistics > data = defaultData(); final ArrayList< TimePoint > tps = new ArrayList< TimePoint >(); for ( final RegistrationStatistics rs : data ) tps.add( new TimePoint( rs.getTimePoint() ) ); final ArrayList< SelectTimepointEntry > items = new ArrayList< SelectTimepointEntry >(); //items.add( new SelectTimepointEntry( "Select Timepoint", data ) ); plotData( new TimePoints( tps ), data, getOptimalTimePoint( data ), true, items ); }
private static TimePoints createTimepointsFromXml( final Element sequenceDescription ) { final Element timepoints = sequenceDescription.getChild( "Timepoints" ); final String type = timepoints.getAttributeValue( "type" ); if ( type.equals( "range" ) ) { final int first = Integer.parseInt( timepoints.getChildText( "first" ) ); final int last = Integer.parseInt( timepoints.getChildText( "last" ) ); final ArrayList< TimePoint > tps = new ArrayList<>(); for ( int i = first, t = 0; i <= last; ++i, ++t ) tps.add( new TimePoint( t ) ); return new TimePoints( tps ); } else { throw new RuntimeException( "unknown <Timepoints> type: " + type ); } }
TimePoint tpI = new TimePoint( tpId ); if (!timePoints.contains( tpI )) timePoints.add( tpI );
for ( final TimePoint tp : tpsOrdered ) final TimePoint tpReassigned = new TimePoint( tp.getId() + offset ); tps.put( tpReassigned.getId(), tpReassigned );
timepoints.add( new TimePoint( t ) );
timepoints.add( new TimePoint( t ) );
timepointMap.put( timepoint, new TimePoint( timepoint ) );
timepoints.add( new TimePoint( t ) ); final SequenceDescriptionMinimal seq = new SequenceDescriptionMinimal( new TimePoints( timepoints ), setups, imgLoader, null );
newTimepoints.add( new TimePoint( 0 ) );
newTimepoints.add( new TimePoint( newTimepointId ) );
timepoints.add( new TimePoint( t ) ); final SequenceDescriptionMinimal seq = new SequenceDescriptionMinimal( new TimePoints( timepoints ), setups, imgLoader, null );