本文整理了Java中net.imglib2.util.Util.int2long()
方法的一些代码示例,展示了Util.int2long()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.int2long()
方法的具体详情如下:
包路径:net.imglib2.util.Util
类名称:Util
方法名:int2long
暂无
代码示例来源:origin: imglib/imglib2
/**
* Iterates an {@link Interval} with given <em>min</em> and <em>max</em>.
*
* @param min
* @param max
*/
public IntervalIterator( final int[] min, final int[] max )
{
this( Util.int2long( min ), Util.int2long( max ) );
}
代码示例来源:origin: imglib/imglib2
public LocalizingIntervalIterator( final int[] dimensions )
{
this( Util.int2long( dimensions ) );
}
代码示例来源:origin: net.imglib2/imglib2
/**
* Iterates an {@link Interval} of the given dimensions with <em>min</em>=
* 0<sup><em>n</em></sup>
*
* @param dimensions
*/
public IntervalIterator( final int[] dimensions )
{
this( Util.int2long( dimensions ) );
}
代码示例来源:origin: net.imglib2/imglib2
/**
* Iterates an {@link Interval} with given <em>min</em> and <em>max</em>.
*
* @param min
* @param max
*/
public IntervalIterator( final int[] min, final int[] max )
{
this( Util.int2long( min ), Util.int2long( max ) );
}
代码示例来源:origin: imglib/imglib2
/**
* Iterates an {@link Interval} of the given dimensions with <em>min</em>=
* 0<sup><em>n</em></sup>
*
* @param dimensions
*/
public IntervalIterator( final int[] dimensions )
{
this( Util.int2long( dimensions ) );
}
代码示例来源:origin: imglib/imglib2
public LocalizingIntervalIterator( final int[] min, final int[] max )
{
this( Util.int2long( min ), Util.int2long( max ) );
}
代码示例来源:origin: net.imglib2/imglib2
@Override
public NtreeImg< T, ? > create( final int[] dimensions )
{
return create( Util.int2long( dimensions ) );
}
代码示例来源:origin: net.imglib2/imglib2
@Deprecated
public Img< T > create( final int[] dim, final T type )
{
return create( Util.int2long( dim ), type );
}
代码示例来源:origin: net.imglib2/imglib2-cache
@Override
public DiskCachedCellImg< T, ? > create( final int[] dimensions )
{
return create( Util.int2long( dimensions ) );
}
代码示例来源:origin: net.imagej/imagej-common
@Override
public Dataset create(final int[] dimensions) {
return create(Util.int2long(dimensions));
}
代码示例来源:origin: imglib/imglib2
@Override
public ListImg< T > create( final int[] dimensions )
{
return create( Util.int2long( dimensions ) );
}
代码示例来源:origin: net.imglib2/imglib2
@Override
public ListImg< T > create( final int[] dimensions )
{
return create( Util.int2long( dimensions ) );
}
代码示例来源:origin: imglib/imglib2
@Override
public NtreeImg< T, ? > create( final int[] dimensions )
{
return create( Util.int2long( dimensions ) );
}
代码示例来源:origin: imglib/imglib2
@Deprecated
public Img< T > create( final int[] dim, final T type )
{
return create( Util.int2long( dim ), type );
}
代码示例来源:origin: io.scif/scifio
@Override
public SCIFIOCellImg<T, ?> create(final int[] dimensions) {
return create(Util.int2long(dimensions));
}
代码示例来源:origin: net.imglib2/imglib2-roi
public Labeling< T > create( final int[] dim )
{
return create( Util.int2long( dim ) );
}
代码示例来源:origin: imglib/imglib2
private < A extends ArrayDataAccess< A > > PlanarImg< T, ? > create(
final long[] dimensions,
final T type,
final NativeTypeFactory< T, A > typeFactory )
{
final Fraction entitiesPerPixel = type.getEntitiesPerPixel();
final PlanarImg< T, A > img = new PlanarImg<>( ArrayDataAccessFactory.get( typeFactory ), dimensions, entitiesPerPixel );
img.setLinkedType( typeFactory.createLinkedType( img ) );
return img;
}
代码示例来源:origin: net.imglib2/imglib2
private < A extends ArrayDataAccess< A > > PlanarImg< T, ? > create(
final long[] dimensions,
final T type,
final NativeTypeFactory< T, A > typeFactory )
{
final Fraction entitiesPerPixel = type.getEntitiesPerPixel();
final PlanarImg< T, A > img = new PlanarImg<>( ArrayDataAccessFactory.get( typeFactory ), dimensions, entitiesPerPixel );
img.setLinkedType( typeFactory.createLinkedType( img ) );
return img;
}
代码示例来源:origin: net.imglib2/imglib2
private < A extends ArrayDataAccess< A > > ArrayImg< T, A > create(
final long[] dimensions,
final T type,
final NativeTypeFactory< T, A > typeFactory )
{
final Fraction entitiesPerPixel = type.getEntitiesPerPixel();
final int numEntities = numEntitiesRangeCheck( dimensions, entitiesPerPixel );
final A data = ArrayDataAccessFactory.get( typeFactory ).createArray( numEntities );
final ArrayImg< T, A > img = new ArrayImg<>( data, dimensions, entitiesPerPixel );
img.setLinkedType( typeFactory.createLinkedType( img ) );
return img;
}
代码示例来源:origin: imglib/imglib2
private < A extends ArrayDataAccess< A > > ArrayImg< T, A > create(
final long[] dimensions,
final T type,
final NativeTypeFactory< T, A > typeFactory )
{
final Fraction entitiesPerPixel = type.getEntitiesPerPixel();
final int numEntities = numEntitiesRangeCheck( dimensions, entitiesPerPixel );
final A data = ArrayDataAccessFactory.get( typeFactory ).createArray( numEntities );
final ArrayImg< T, A > img = new ArrayImg<>( data, dimensions, entitiesPerPixel );
img.setLinkedType( typeFactory.createLinkedType( img ) );
return img;
}
内容来源于网络,如有侵权,请联系作者删除!