net.imglib2.img.Img.iterationOrder()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(214)

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

Img.iterationOrder介绍

暂无

代码示例

代码示例来源:origin: net.imglib2/imglib2-roi

@Override
public Object iterationOrder()
{
  return img.iterationOrder();
}

代码示例来源:origin: net.imagej/imagej-deprecated

@Override
public Object iterationOrder() {
  return img.iterationOrder();
}

代码示例来源:origin: net.imglib2/imglib2-script

@Override
public Object iterationOrder()
{
  return img.iterationOrder();
}

代码示例来源:origin: net.imglib2/imglib2

@Override
public Object iterationOrder()
{
  return counts.iterationOrder();
}

代码示例来源:origin: imglib/imglib2

@Override
public Object iterationOrder()
{
  return counts.iterationOrder();
}

代码示例来源:origin: net.imagej/imagej-common

@Override
public Object iterationOrder() {
  return img.iterationOrder();
}

代码示例来源:origin: net.imglib2/imglib2-meta

@Override
public Object iterationOrder() {
  return img.iterationOrder();
}

代码示例来源:origin: net.imglib2/imglib2-algorithms-legacy

final boolean isCompatible = image1.iterationOrder().equals( image2.iterationOrder() ) &&
               image1.iterationOrder().equals( output.iterationOrder() );

代码示例来源:origin: net.imglib2/imglib2-ops

@Override
public Img< T > compute( Img< T > input, Img< T > output )
{
  
  if(!input.iterationOrder().equals(output.iterationOrder())){
    throw new IllegalArgumentException("Incompatible IterationOrder");
  }
  
  Cursor< T > c1 = input.cursor();
  Cursor< T > c2 = output.cursor();
  while ( ( c1.hasNext() && c2.hasNext() ) )
  {
    c1.fwd();
    c2.fwd();
    c2.get().set( c1.get() );
  }
  return output;
}

代码示例来源:origin: imglib/imglib2

@Test
  public void equalIterationOrder()
  {
    final Img< FloatType > img2 = new CellImgFactory<>( new FloatType(), cellDimensions ).create( dimensions );
    assertTrue( img2.iterationOrder().equals( img.iterationOrder() ) );
    assertTrue( img.iterationOrder().equals( img2.iterationOrder() ) );

    final Img< FloatType > img3 = new CellImgFactory<>( new FloatType(), 9 ).create( dimensions );
    assertFalse( img3.iterationOrder().equals( img.iterationOrder() ) );
    assertFalse( img.iterationOrder().equals( img3.iterationOrder() ) );

    final Img< FloatType > img4 = new ArrayImgFactory<>( new FloatType() ).create( dimensions );
    assertFalse( img4.iterationOrder().equals( img.iterationOrder() ) );
    assertFalse( img.iterationOrder().equals( img4.iterationOrder() ) );
  }
}

代码示例来源:origin: net.imglib2/imglib2-algorithm

final Thread[] threads = SimpleMultiThreading.newThreads( numThreads );
if ( target.iterationOrder().equals( source.iterationOrder() ) )

代码示例来源:origin: sc.fiji/bigdataviewer-core

if ( Views.iterable( ushortImg ).iterationOrder().equals( floatImg.iterationOrder() ) )

代码示例来源:origin: imglib/imglib2

if ( src.iterationOrder() == dest.iterationOrder() )

代码示例来源:origin: net.imglib2/imglib2

if ( src.iterationOrder() == dest.iterationOrder() )

代码示例来源:origin: net.imglib2/imglib2-script

private static final <R extends NumericType<R> & NativeType<R>> Img<R> copyAsArrayImg(final IterableInterval<R> img) {
  final Img< R > copy = new ArrayImgFactory<>( img.firstElement() ).create( img );
  if (img.iterationOrder().equals(copy.iterationOrder())) {
    final Cursor<R> c1 = img.cursor();
    final Cursor<R> c2 = copy.cursor();
    while (c1.hasNext()) {
      c1.fwd();
      c2.fwd();
      c2.get().set(c1.get());
    }
  } else {
    final Cursor<R> c1 = img.cursor();
    final RandomAccess<R> c2 = copy.randomAccess();
    final long[] position = new long[img.numDimensions()];
    while (c1.hasNext()) {
      c1.fwd();
      c1.localize(position);
      c2.setPosition(position);
      c2.get().set(c1.get());
    }
  }
  return copy;
}

代码示例来源:origin: net.imglib2/imglib2-algorithm-gpl

final IterableInterval< T > iterableInput = Views.iterable( input );
if ( img.iterationOrder().equals( iterableInput.iterationOrder() ) )

代码示例来源:origin: net.imglib2/imglib2-algorithms-gpl

final IterableInterval< T > iterableInput = Views.iterable( input );
if ( img.iterationOrder().equals( iterableInput.iterationOrder() ) )

相关文章