• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java TimePoints类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中mpicbg.spim.data.sequence.TimePoints的典型用法代码示例。如果您正苦于以下问题:Java TimePoints类的具体用法?Java TimePoints怎么用?Java TimePoints使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TimePoints类属于mpicbg.spim.data.sequence包,在下文中一共展示了TimePoints类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: create

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
public static FusionResult create(
		final SpimRegistrationSequence spimseq,
		final String filepath,
		final String filepattern,
		final int numSlices,
		final double sliceValueMin,
		final double sliceValueMax,
		final Map< Integer, AffineTransform3D > perTimePointFusionTransforms )
{
	// add one fused ViewSetup per channel in the SpimRegistrationSequence
	final List< Integer > channels = new ArrayList<>();
	for ( final BasicViewSetup setup : spimseq.getSequenceDescription().getViewSetupsOrdered() )
	{
		final int channel = setup.getAttribute( Channel.class ).getId();
		if ( ! channels.contains( channel ) )
			channels.add( channel );
	}
	final TimePoints timepoints = spimseq.getSequenceDescription().getTimePoints();
	return new FusionResult( filepath, filepattern, channels, timepoints, numSlices, sliceValueMin, sliceValueMax, perTimePointFusionTransforms );
}
 
开发者ID:bigdataviewer,项目名称:bigdataviewer_fiji,代码行数:21,代码来源:FusionResult.java


示例2: FusionResult

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的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


示例3: createTimePoints

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的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


示例4: GraphFrame

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
public GraphFrame(
		final TimePoints timepoints,
		final JFreeChart chart,
		final int referenceTimePoint,
		final boolean enableReferenceTimePoint,
		final List< SelectTimepointEntry > extraMenuItems,
		final ArrayList< RegistrationStatistics > data )
{
	super();

	mainPanel = new JPanel();
	mainPanel.setLayout( new BorderLayout() );

	updateWithNewChart( timepoints, chart, true, extraMenuItems, data, referenceTimePoint, enableReferenceTimePoint );

	JPanel buttonsPanel = new JPanel();
	mainPanel.add( buttonsPanel, BorderLayout.SOUTH );

	setContentPane( mainPanel );
	validate();
	GUI.center( this );
}
 
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:23,代码来源:GraphFrame.java


示例5: MouseListenerTimelapse

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
MouseListenerTimelapse( final TimePoints timepoints, final ChartPanel panel, final int referenceTimePoint, final boolean enableReferenceTimePoint )
{
	this.timepoints = timepoints;
	this.panel = panel;
	this.referenceTimePoint = referenceTimePoint;
	this.enableReferenceTimePoint = enableReferenceTimePoint;
	
	if ( enableReferenceTimePoint || referenceTimePoint != -1 ) // at least show it if it is not -1
	{
		if ( timepoints != null )
			setReferenceTimepoint( timepoints, referenceTimePoint );

		valueMarker = makeMarker( referenceTimePoint );

		if ( referenceTimePoint >= 0 )
		{
			((XYPlot)panel.getChart().getPlot()).addDomainMarker( valueMarker );
			markerShown = true;
		}
	}
}
 
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:22,代码来源:MouseListenerTimelapse.java


示例6: setReferenceTimepoint

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的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


示例7: SpimRegistrationSequence

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
public SpimRegistrationSequence( final SPIMConfiguration conf )
	{
		this.conf = conf;
		final ArrayList< ViewSetup > setups = createViewSetups( conf );
//		final HashMap< Integer, ViewSetup > setups = Entity.idMap( createViewSetups( conf ) );
		final TimePoints timepoints = createTimePoints( conf );


		final BasicImgLoader imgLoader = createImageLoader( conf, setups );

		viewRegistrations = createViewRegistrations( conf, setups );
		sequenceDescription = new SequenceDescriptionMinimal( timepoints, Entity.idMap( createViewSetups( conf ) ), imgLoader, null );
	}
 
开发者ID:bigdataviewer,项目名称:bigdataviewer_fiji,代码行数:14,代码来源:SpimRegistrationSequence.java


示例8: createTimePoints

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
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 );
}
 
开发者ID:bigdataviewer,项目名称:bigdataviewer_fiji,代码行数:8,代码来源:SpimRegistrationSequence.java


示例9: readTimePoints

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
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 );
}
 
开发者ID:bigdataviewer,项目名称:bigdataviewer_fiji,代码行数:13,代码来源:CellVoyagerDataExporter.java


示例10: assembleTimepoints

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
protected static String[] assembleTimepoints( final TimePoints timepoints )
{
	final String[] tps = new String[ timepoints.size() ];

	for ( int t = 0; t < tps.length; ++t )
		tps[ t ] = timepoints.getTimePointsOrdered().get( t ).getName();

	return tps;
}
 
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:10,代码来源:Interest_Point_Registration.java


示例11: createTimePoints

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
/**
 * Creates the {@link TimePoints} for the {@link SpimData} object
 */
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 );
}
 
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:13,代码来源:LightSheetZ1.java


示例12: createTimePoints

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
/**
 * Creates the {@link TimePoints} for the {@link SpimData} object
 */
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 );
}
 
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:13,代码来源:DHM.java


示例13: createTimePoints

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
/**
 * Creates the {@link TimePoints} for the {@link SpimData} object
 */
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 );
}
 
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:13,代码来源:MicroManager.java


示例14: createDataset

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
@Override
public SpimData2 createDataset()
{
	// collect all the information
	if ( !queryInformation() )
		return null;
	
	// assemble timepints, viewsetups, missingviews and the imgloader
	final TimePoints timepoints = this.createTimePoints();
	final ArrayList< ViewSetup > setups = this.createViewSetups();
	final MissingViews missingViews = this.createMissingViews();
	
	// instantiate the sequencedescription
	final SequenceDescription sequenceDescription = new SequenceDescription( timepoints, setups, null, missingViews );
	final ImgLoader imgLoader = createAndInitImgLoader( ".", new File( directory ), imgFactory, sequenceDescription );
	sequenceDescription.setImgLoader( imgLoader );

	// get the minimal resolution of all calibrations
	final double minResolution = Apply_Transformation.assembleAllMetaData(
			sequenceDescription,
			sequenceDescription.getViewDescriptions().values() );

	IOFunctions.println( "Minimal resolution in all dimensions over all views is: " + minResolution );
	IOFunctions.println( "(The smallest resolution in any dimension; the distance between two pixels in the output image will be that wide)" );
	
	// create the initial view registrations (they are all the identity transform)
	final ViewRegistrations viewRegistrations = createViewRegistrations( sequenceDescription.getViewDescriptions(), minResolution );
	
	// create the initial view interest point object
	final ViewInterestPoints viewInterestPoints = new ViewInterestPoints();
	viewInterestPoints.createViewInterestPoints( sequenceDescription.getViewDescriptions() );

	// finally create the SpimData itself based on the sequence description and the view registration
	final SpimData2 spimData = new SpimData2( new File( directory ), sequenceDescription, viewRegistrations, viewInterestPoints, new BoundingBoxes() );

	return spimData;
}
 
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:38,代码来源:StackList.java


示例15: createTimePoints

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
/**
 * Creates the {@link TimePoints} for the {@link SpimData} object
 */
protected TimePoints createTimePoints()
{
	try
	{
		return new TimePointsPattern( timepoints );
	}
	catch ( final ParseException e )
	{
		throw new RuntimeException( e );
	}
}
 
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:15,代码来源:StackList.java


示例16: main

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
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 );
}
 
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:14,代码来源:TimeLapseDisplay.java


示例17: updateWithNewChart

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
synchronized public void updateWithNewChart(
		final TimePoints timepoints,
		final JFreeChart c,
		final boolean setSize,
		final List< SelectTimepointEntry > extraMenuItems,
		final ArrayList< RegistrationStatistics > data,
		final int referenceTimePoint,
		final boolean enableReferenceTimePoint )
{
	if ( chartPanel != null )
		remove( chartPanel );

	chartPanel = null;
	this.chart = c;
	chartPanel = new ChartPanel( c );
	mouseListener = new MouseListenerTimelapse( timepoints, chartPanel, referenceTimePoint, enableReferenceTimePoint );

	chartPanel.addChartMouseListener( mouseListener );

	chartPanel.setMouseWheelEnabled( true );
	chartPanel.setHorizontalAxisTrace( true );
	mainPanel.add( chartPanel, BorderLayout.CENTER );

	// add extra items
	final JPopupMenu menu = chartPanel.getPopupMenu();
	
	if ( extraMenuItems != null )
		for ( final SelectTimepointEntry m : extraMenuItems )
		{
			m.setChartPanel( chartPanel );
			menu.add( new JMenuItem( m ) );
		}

	validate();
}
 
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:36,代码来源:GraphFrame.java


示例18: fromXml

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
@SuppressWarnings( { "unchecked", "rawtypes" } )
public T fromXml( final Element elem, final File basePath ) throws SpimDataException
{
	final T sequenceDescription = super.fromXml( elem );

	final HashMap< Integer, V > setups = xmlIoViewSetups.fromXml( elem.getChild( xmlIoViewSetups.getTag() ) );
	sequenceDescription.setViewSetups( setups );

	final TimePoints timepoints = xmlIoTimePoints.fromXml( elem.getChild( xmlIoTimePoints.getTag() ) );
	sequenceDescription.setTimePoints( timepoints );

	final Element missingViewElem = elem.getChild( xmlIoMissingViews.getTag() );
	final MissingViews missingViews = ( missingViewElem == null ) ? null : xmlIoMissingViews.fromXml( missingViewElem );
	sequenceDescription.setMissingViews( missingViews );

	final Element imgLoaderElem = elem.getChild( IMGLOADER_TAG );
	if ( imgLoaderElem != null )
	{
		final String format = imgLoaderElem.getAttributeValue( IMGLOADER_FORMAT_ATTRIBUTE_NAME );
		final XmlIoBasicImgLoader< ? > imgLoaderIo = ImgLoaders.createXmlIoForFormat( format );
		final BasicImgLoader imgLoader = imgLoaderIo.fromXml( imgLoaderElem, basePath, sequenceDescription );
		setImgLoader( ( AbstractSequenceDescription ) sequenceDescription, imgLoader );
	}
	else
		sequenceDescription.setImgLoader( null );

	return sequenceDescription;
}
 
开发者ID:bigdataviewer,项目名称:spimdata,代码行数:29,代码来源:XmlIoAbstractSequenceDescription.java


示例19: AbstractSequenceDescription

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
public AbstractSequenceDescription( final TimePoints timepoints, final Map< Integer, ? extends V > setups, final L imgLoader, final MissingViews missingViews )
{
	this.timepoints = timepoints;
	this.setups = setups;
	this.imgLoader = imgLoader;
	this.missingViews = missingViews;
	viewDescriptionsDirty = true;
	viewSetupsOrderedDirty = true;
}
 
开发者ID:bigdataviewer,项目名称:spimdata,代码行数:10,代码来源:AbstractSequenceDescription.java


示例20: createTimePoints

import mpicbg.spim.data.sequence.TimePoints; //导入依赖的package包/类
public static TimePoints createTimePoints() throws ParseException
	{
//		final ArrayList< TimePoint > tps = new ArrayList< TimePoint >();
//		tps.add( new TimePoint( 10 ) );
//		tps.add( new TimePoint( 11 ) );
//		tps.add( new TimePoint( 12 ) );
//		tps.add( new TimePoint( 13 ) );
//		final TimePoints timepoints = new TimePoints( tps );
		final TimePoints timepoints = new TimePointsPattern( "1-100:20" );
		return timepoints;
	}
 
开发者ID:bigdataviewer,项目名称:spimdata,代码行数:12,代码来源:SpimDataExample2.java



注:本文中的mpicbg.spim.data.sequence.TimePoints类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ArraysUtil类代码示例发布时间:2022-05-22
下一篇:
Java Cell类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap