net.imglib2.util.Util.int2long()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(94)

本文整理了Java中net.imglib2.util.Util.int2long()方法的一些代码示例,展示了Util.int2long()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.int2long()方法的具体详情如下:
包路径:net.imglib2.util.Util
类名称:Util
方法名:int2long

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;
}

相关文章