本文整理汇总了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 );
}
示例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;
}
示例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;
}