当前位置: 首页>>代码示例>>Java>>正文


Java VolatileFloatType类代码示例

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


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

示例1: H5FloatSetupImageLoader

import net.imglib2.type.volatiles.VolatileFloatType; //导入依赖的package包/类
public H5FloatSetupImageLoader(
		final IHDF5Reader reader,
		final String dataset,
		final int setupId,
		final int[] cellDimension,
		final VolatileGlobalCellCache cache ) throws IOException
{
	super(
			reader,
			dataset,
			setupId,
			cellDimension,
			new FloatType(),
			new VolatileFloatType(),
			new H5FloatArrayLoader( reader, dataset ),
			cache );
}
 
开发者ID:saalfeldlab,项目名称:bigcat,代码行数:18,代码来源:H5FloatSetupImageLoader.java

示例2: addWarpMagnitudeSource

import net.imglib2.type.volatiles.VolatileFloatType; //导入依赖的package包/类
/**
 * 
 * @param sources the source list 
 * @param converterSetups the converterSetups 
 * @param name a name of the new source
 * @param data the BigWarpData
 * @return the index into sources where this source was added
 */
private static int addWarpMagnitudeSource( final ArrayList< SourceAndConverter< ? > > sources, final ArrayList< ConverterSetup > converterSetups, final String name, final BigWarpData data )
{
	// TODO think about whether its worth it to pass a type parameter.
	// or should we just stick with Doubles?

	final WarpMagnitudeSource< FloatType > magSource = new WarpMagnitudeSource< FloatType >( name, data, new FloatType() );

	final RealARGBColorConverter< VolatileFloatType > vconverter = new RealARGBColorConverter.Imp0< VolatileFloatType >( 0, 512 );
	vconverter.setColor( new ARGBType( 0xffffffff ) );
	final RealARGBColorConverter< FloatType > converter = new RealARGBColorConverter.Imp1< FloatType >( 0, 512 );
	converter.setColor( new ARGBType( 0xffffffff ) );

	converterSetups.add( new RealARGBColorConverterSetup( WARPMAG_SOURCE_ID, converter, vconverter ) );

	final SourceAndConverter< FloatType > soc = new SourceAndConverter< FloatType >( magSource, converter, null );
	sources.add( soc );

	return sources.size() - 1;
}
 
开发者ID:saalfeldlab,项目名称:bigwarp,代码行数:28,代码来源:BigWarp.java

示例3: addGridSource

import net.imglib2.type.volatiles.VolatileFloatType; //导入依赖的package包/类
/**
 * 
 * @param sources the source list 
 * @param converterSetups the converterSetups 
 * @param name a name of the new source
 * @param data the BigWarpData
 * @return the index into sources where this source was added
 */
private static int addGridSource( final ArrayList< SourceAndConverter< ? > > sources, final ArrayList< ConverterSetup > converterSetups, final String name, final BigWarpData data )
{
	// TODO think about whether its worth it to pass a type parameter.
	// or should we just stick with Floats?

	final GridSource< FloatType > magSource = new GridSource< FloatType >( name, data, new FloatType(), null );

	final RealARGBColorConverter< VolatileFloatType > vconverter = new RealARGBColorConverter.Imp0< VolatileFloatType >( 0, 512 );
	vconverter.setColor( new ARGBType( 0xffffffff ) );
	final RealARGBColorConverter< FloatType > converter = new RealARGBColorConverter.Imp1< FloatType >( 0, 512 );
	converter.setColor( new ARGBType( 0xffffffff ) );

	converterSetups.add( new RealARGBColorConverterSetup( GRID_SOURCE_ID, converter, vconverter ) );

	final SourceAndConverter< FloatType > soc = new SourceAndConverter< FloatType >( magSource, converter, null );
	sources.add( soc );

	return sources.size() - 1;
}
 
开发者ID:saalfeldlab,项目名称:bigwarp,代码行数:28,代码来源:BigWarp.java


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