本文整理汇总了Java中mpicbg.spim.data.sequence.TimePoint类的典型用法代码示例。如果您正苦于以下问题:Java TimePoint类的具体用法?Java TimePoint怎么用?Java TimePoint使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TimePoint类属于mpicbg.spim.data.sequence包,在下文中一共展示了TimePoint类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: groupsDifferByAny
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
private static boolean groupsDifferByAny(Iterable< BasicViewDescription< ? > > vds1, Iterable< BasicViewDescription< ? > > vds2, Set<Class<? extends Entity>> entities)
{
for (Class<? extends Entity> entity : entities)
{
for ( BasicViewDescription< ? > vd1 : vds1)
for ( BasicViewDescription< ? > vd2 : vds2)
{
if (entity == TimePoint.class)
{
if (!vd1.getTimePoint().equals( vd2.getTimePoint() ))
return true;
}
else
{
if (!vd1.getViewSetup().getAttribute( entity ).equals( vd2.getViewSetup().getAttribute( entity ) ) )
return true;
}
}
}
return false;
}
开发者ID:PreibischLab,项目名称:BigStitcher,代码行数:24,代码来源:SpimDataFilteringAndGrouping.java
示例2: pickSpecific
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
public <T extends RealType<T>> RandomAccessibleInterval< T > pickSpecific(List<BasicViewDescription< ? >> vds,
List<RandomAccessibleInterval< T >> rais)
{
for (int i = 0; i< vds.size(); i++)
{
if (entityClass == TimePoint.class)
{
if (vds.get( i ).getTimePoint() == instance)
if (vds.get( i ).isPresent())
return rais.get( i );
continue;
}
if (vds.get( i ).getViewSetup().getAttribute( entityClass ).equals( instance ))
if (vds.get( i ).isPresent())
return rais.get( i );
}
// this should only be reached if the requested view is not present
return null;
}
开发者ID:PreibischLab,项目名称:BigStitcher,代码行数:23,代码来源:GroupedViewAggregator.java
示例3: main
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
public static void main( String[] args )
{
SpimData spimData = grid3x2();
SequenceDescription sd = spimData.getSequenceDescription();
ImgLoader i = sd.getImgLoader();
TimePoint firstTp = sd.getTimePoints().getTimePointsOrdered().get( 0 );
int tpId = firstTp.getId();
for ( final ViewSetup vs: spimData.getSequenceDescription().getViewSetups().values() )
{
SetupImgLoader< ? > sil = i.getSetupImgLoader( vs.getId() );
ViewDescription vd = sd.getViewDescription( tpId, vs.getId() );
Tile t = vd.getViewSetup().getTile();
if ( t.hasLocation() )
System.out.println( "Loading: " + t.getName() + " " + Util.printCoordinates( t.getLocation() ) + " " + vd.getViewSetup().getChannel().getName() );
else
System.out.println( "Loading: " + t.getName() + " (unknown location) " + vd.getViewSetup().getChannel().getName() );
ImageJFunctions.show( (RandomAccessibleInterval< UnsignedShortType >)sil.getImage( tpId, ImgLoaderHints.LOAD_COMPLETELY ) ).resetDisplayRange();
}
}
开发者ID:PreibischLab,项目名称:BigStitcher,代码行数:25,代码来源:GenerateSpimData.java
示例4: elements
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
protected ArrayList< BasicViewDescription< ? extends BasicViewSetup > > elements()
{
final ArrayList< BasicViewDescription< ? extends BasicViewSetup > > elementsNew = new ArrayList< BasicViewDescription< ? extends BasicViewSetup > >();
for ( final TimePoint t : panel.getSpimData().getSequenceDescription().getTimePoints().getTimePointsOrdered() )
for ( final BasicViewSetup v : panel.getSpimData().getSequenceDescription().getViewSetupsOrdered() )
{
final ViewId viewId = new ViewId( t.getId(), v.getId() );
final BasicViewDescription< ? > viewDesc = panel.getSpimData().getSequenceDescription().getViewDescriptions().get( viewId );
if ( viewDesc.isPresent() )
elementsNew.add( viewDesc );
}
if ( this.elements == null || this.elements.size() != elementsNew.size() )
this.elements = elementsNew;
return elements;
}
开发者ID:PreibischLab,项目名称:BigStitcher,代码行数:20,代码来源:StitchingExplorerTableModel.java
示例5: FusionResult
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
public FusionResult(
final String filepath,
final String filepattern,
final TimePoints timepoints,
final int numSlices,
final double sliceValueMin,
final double sliceValueMax,
final Map< Integer, AffineTransform3D > perTimePointFusionTransforms )
{
final HashMap< Integer, Integer > setupIdToChannelId = new HashMap<>();
setupIdToChannelId.put( 0, 0 );
final ImgLoader fusionLoader = new FusionImageLoader<>( filepath +"/" + filepattern, setupIdToChannelId, numSlices, new FusionImageLoader.Gray32ImagePlusLoader(), sliceValueMin, sliceValueMax );
final int setupId = 0;
final String name = "fused";
final int timepointId = timepoints.getTimePointsOrdered().get( 0 ).getId();
final Dimensions size = fusionLoader.getSetupImgLoader( setupId ).getImageSize( timepointId );
final VoxelDimensions voxelSize = fusionLoader.getSetupImgLoader( setupId ).getVoxelSize( timepointId );
final BasicViewSetup setup = new BasicViewSetup( setupId, name, size, voxelSize );
desc = new SequenceDescriptionMinimal( timepoints, Entity.idMap( Arrays.asList( setup ) ), fusionLoader, null );
final ArrayList< ViewRegistration > registrations = new ArrayList<>();
for ( final TimePoint timepoint : timepoints.getTimePointsOrdered() )
registrations.add( new ViewRegistration( timepoint.getId(), 0, perTimePointFusionTransforms.get( timepoint.getId() ) ) );
regs = new ViewRegistrations( registrations );
}
开发者ID:bigdataviewer,项目名称:bigdataviewer_fiji,代码行数:25,代码来源:FusionResult.java
示例6: locationForViewDescription
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
private static final void locationForViewDescription(
final int[] l,
final ViewDescription vd,
final HashMap< TimePoint, Integer > mapT,
final HashMap< Channel, Integer > mapC,
final HashMap< Illumination, Integer > mapI,
final HashMap< Angle, Integer > mapA )
{
final TimePoint t = vd.getTimePoint();
final Channel c = vd.getViewSetup().getChannel();
final Illumination i = vd.getViewSetup().getIllumination();
final Angle a = vd.getViewSetup().getAngle();
l[ 0 ] = mapA.get( a );
l[ 1 ] = mapI.get( i );
l[ 2 ] = mapC.get( c );
l[ 3 ] = mapT.get( t );
}
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:19,代码来源:Apply_Transformation.java
示例7: computeMaxNumViews
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
/**
* @return - max num views per fused image
*/
protected int computeMaxNumViews()
{
int maxViews = 0;
for ( final TimePoint t : timepointsToProcess )
for ( final Channel c : channelsToProcess )
{
int views = 0;
for ( final ViewId viewId : viewIdsToProcess )
{
final ViewDescription vd = spimData.getSequenceDescription().getViewDescription( viewId );
if ( vd.isPresent() && vd.getTimePointId() == t.getId() && vd.getViewSetup().getChannel().getId() == c.getId() )
++views;
}
maxViews = Math.max( maxViews, views );
}
return maxViews;
}
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:26,代码来源:Fusion.java
示例8: applyCal
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
public static void applyCal( final Cal maxCal, final SpimData spimData, final List< ViewId > viewIds )
{
// this is the same for all timepoints, we are just interested in the ViewSetup
final TimePoint t = spimData.getSequenceDescription().getTimePoints().getTimePointsOrdered().get( 0 );
for ( final ViewId viewId : viewIds )
{
if ( viewId.getTimePointId() != t.getId() )
continue;
final ViewDescription desc = spimData.getSequenceDescription().getViewDescriptions().get( viewId );
final ViewSetup viewSetup = desc.getViewSetup();
viewSetup.setVoxelSize( new FinalVoxelDimensions( maxCal.unit(),
maxCal.getCal()[ 0 ],
maxCal.getCal()[ 1 ],
maxCal.getCal()[ 2 ] ) );
}
}
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:20,代码来源:Specify_Calibration.java
示例9: main
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
public static void main( String args[] )
{
new ImageJ();
IOFunctions.printIJLog = true;
final LoadParseQueryXML lpq = new LoadParseQueryXML();
final ArrayList< String > queryFor = new ArrayList< String >();
queryFor.add( "Timepoint" );
queryFor.add( "channel" );
queryFor.add( "angle" );
queryFor.add( "illumination" );
lpq.queryXML( true, true, true, true );
for ( final TimePoint i : lpq.getTimePointsToProcess() )
System.out.println( i.getId() );
for ( final ViewSetup v : lpq.getViewSetupsToProcess() )
{
System.out.println( v.getId() + " " + v.getAngle().getName() + " " + v.getChannel().getName() + " " + v.getIllumination().getName() );
}
}
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:24,代码来源:LoadParseQueryXML.java
示例10: createUniqueName
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
protected String createUniqueName()
{
long idSum = 1;
for ( final TimePoint t : getTimePointsToProcess() )
idSum *= t.getId();
for ( final BasicViewSetup v : getViewSetupsToProcess() )
idSum += v.getId();
long nano = System.nanoTime();
long millis = System.currentTimeMillis();
long finalHash = nano + millis + idSum;
if ( debugRandomClusterHash )
{
IOFunctions.println( "idsum=" + idSum );
IOFunctions.println( "nano=" + nano );
IOFunctions.println( "millis=" + millis );
IOFunctions.println( "final=" + finalHash );
}
return "" + finalHash;
}
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:25,代码来源:GenericLoadParseQueryXML.java
示例11: createTimePoints
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
/**
* Creates the {@link TimePoints} for the {@link SpimData} object
*/
protected TimePoints createTimePoints(final SlideBook6MetaData meta) {
final ArrayList<TimePoint> timepoints = new ArrayList<TimePoint>();
int firstCapture = defaultCapture;
int numCaptures = 1;
if (defaultCapture == -1) {
firstCapture = 0;
numCaptures = meta.numCaptures();
}
int t = 0;
for (; t < meta.numTimepoints(firstCapture); ++t)
timepoints.add(new TimePoint(t));
return new TimePoints(timepoints);
}
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:20,代码来源:SlideBook6.java
示例12: getAllViewIdsSorted
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
public static ArrayList< ViewId > getAllViewIdsSorted( final SpimData data, final List< ? extends ViewSetup > setups, final List< ? extends TimePoint > tps )
{
final ArrayList< ViewId > viewIds = new ArrayList< ViewId >();
for ( final TimePoint tp : tps )
for ( final ViewSetup vs : setups )
{
final ViewId v = new ViewId( tp.getId(), vs.getId() );
final ViewDescription vd = data.getSequenceDescription().getViewDescription( v );
if ( vd.isPresent() )
viewIds.add( vd );
}
Collections.sort( viewIds );
return viewIds;
}
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:19,代码来源:SpimData2.java
示例13: getAllAnglesForChannelTimepointSorted
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
public static ArrayList< Angle > getAllAnglesForChannelTimepointSorted( final SpimData data, final Collection< ? extends ViewId > viewIds, final Channel c, final TimePoint t )
{
final HashSet< Angle > angleSet = new HashSet< Angle >();
for ( final ViewId v : viewIds )
{
final ViewDescription vd = data.getSequenceDescription().getViewDescription( v );
if ( vd.isPresent() && v.getTimePointId() == t.getId() && vd.getViewSetup().getChannel().getId() == c.getId() )
angleSet.add( vd.getViewSetup().getAngle() );
}
final ArrayList< Angle > angles = new ArrayList< Angle >();
angles.addAll( angleSet );
Collections.sort( angles );
return angles;
}
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:19,代码来源:SpimData2.java
示例14: getAllIlluminationsForChannelTimepointSorted
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
public static ArrayList< Illumination > getAllIlluminationsForChannelTimepointSorted( final SpimData data, final Collection< ? extends ViewId > viewIds, final Channel c, final TimePoint t )
{
final HashSet< Illumination > illumSet = new HashSet< Illumination >();
for ( final ViewId v : viewIds )
{
final ViewDescription vd = data.getSequenceDescription().getViewDescription( v );
if ( vd.isPresent() && v.getTimePointId() == t.getId() && vd.getViewSetup().getChannel().getId() == c.getId() )
illumSet.add( vd.getViewSetup().getIllumination() );
}
final ArrayList< Illumination > illums = new ArrayList< Illumination >();
illums.addAll( illumSet );
Collections.sort( illums );
return illums;
}
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:19,代码来源:SpimData2.java
示例15: getAllViewIdsForChannelTimePointSorted
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
public static ArrayList< ViewDescription > getAllViewIdsForChannelTimePointSorted( final SpimData data, final Collection< ? extends ViewId > viewIds, final Channel channel, final TimePoint timePoint )
{
final ArrayList< ViewDescription > views = new ArrayList< ViewDescription >();
for ( final ViewId id : viewIds )
{
final ViewDescription vd = data.getSequenceDescription().getViewDescription( id );
if ( vd.isPresent() && vd.getViewSetup().getChannel().getId() == channel.getId() && id.getTimePointId() == timePoint.getId() )
views.add( vd );
}
Collections.sort( views );
return views;
}
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:17,代码来源:SpimData2.java
示例16: getAllViewIdsForTimePointSorted
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
public static ArrayList< ViewDescription > getAllViewIdsForTimePointSorted( final SpimData data, final Collection< ? extends ViewId > viewIds, final TimePoint timepoint )
{
final ArrayList< ViewDescription > views = new ArrayList< ViewDescription >();
for ( final ViewId id : viewIds )
{
final ViewDescription vd = data.getSequenceDescription().getViewDescription( id );
if ( vd.isPresent() && vd.getTimePointId() == timepoint.getId() )
views.add( vd );
}
Collections.sort( views );
return views;
}
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:17,代码来源:SpimData2.java
示例17: getAllTimePointsSorted
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
public static ArrayList< TimePoint > getAllTimePointsSorted( final Collection< ? extends ViewDescription > vds )
{
final HashSet< TimePoint > timepointSet = new HashSet< TimePoint >();
for ( final ViewDescription vd : vds )
if ( vd.isPresent() )
timepointSet.add( vd.getTimePoint() );
final ArrayList< TimePoint > timepoints = new ArrayList< TimePoint >();
timepoints.addAll( timepointSet );
Collections.sort( timepoints,
new Comparator< TimePoint >()
{
@Override
public int compare( final TimePoint o1, final TimePoint o2 )
{
return o1.getId() - o2.getId();
}
});
return timepoints;
}
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:23,代码来源:SpimData2.java
示例18: assembleFixedTiles
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
/**
* All tiles of the reference timepoint are fixed, nothing else
*
* @param spimData
* @param viewIdsToProcess
* @param channelsToProcess
* @param referenceTimepoint
* @return
*/
protected static HashSet< ViewId > assembleFixedTiles(
final SpimData2 spimData,
final List< ViewId > viewIdsToProcess,
final List< ChannelProcess > channelsToProcess,
final TimePoint referenceTimepoint )
{
final HashSet< ViewId > fixedTiles = new HashSet< ViewId >();
for ( final ViewDescription vd : SpimData2.getAllViewIdsForTimePointSorted( spimData, viewIdsToProcess, referenceTimepoint ) )
{
if ( !vd.isPresent() )
continue;
for ( final ChannelProcess cp : channelsToProcess )
if ( cp.getChannel().getId() == vd.getViewSetup().getChannel().getId() )
fixedTiles.add( vd );
}
return fixedTiles;
}
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:30,代码来源:ReferenceTimepointRegistration.java
示例19: setReferenceTimepoint
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
public static boolean setReferenceTimepoint( final TimePoints timepoints, final int referenceTimePoint )
{
final TimePoint ref = timepoints.getTimePoints().get( referenceTimePoint );
if ( ref != null )
{
final List< TimePoint > tps = timepoints.getTimePointsOrdered();
for ( int tp = 0; tp < tps.size(); ++tp )
{
if ( tps.get( tp ).getId() == referenceTimePoint )
{
Interest_Point_Registration.defaultReferenceTimepointIndex = tp;
return true;
}
}
}
return false;
}
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:19,代码来源:MouseListenerTimelapse.java
示例20: assembleInputData
import mpicbg.spim.data.sequence.TimePoint; //导入依赖的package包/类
public static final ArrayList< ViewDescription > assembleInputData(
final SpimData2 spimData,
final TimePoint timepoint,
final Channel channel,
final List< ViewId > viewIdsToProcess )
{
final ArrayList< ViewDescription > inputData = new ArrayList< ViewDescription >();
for ( final ViewId viewId : viewIdsToProcess )
{
final ViewDescription vd = spimData.getSequenceDescription().getViewDescription(
viewId.getTimePointId(), viewId.getViewSetupId() );
if ( !vd.isPresent() || vd.getTimePointId() != timepoint.getId() || vd.getViewSetup().getChannel().getId() != channel.getId() )
continue;
// get the most recent model
spimData.getViewRegistrations().getViewRegistration( viewId ).updateModel();
inputData.add( vd );
}
return inputData;
}
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:25,代码来源:FusionHelper.java
注:本文中的mpicbg.spim.data.sequence.TimePoint类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论