gpt4 book ai didi

net.imglib2.iterator.ZeroMinIntervalIterator类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 11:37:31 26 4
gpt4 key购买 nike

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

ZeroMinIntervalIterator介绍

[英]Use this class to iterate a virtual rectangular Interval whose min coordinates are at 0n in flat order, that is: row by row, plane by plane, cube by cube, ... This is useful for iterating an arbitrary interval in a defined order. For that, connect a ZeroMinIntervalIterator to a Positionable.

...... 
}

Note that ZeroMinIntervalIterator is the right choice in situations where not for each pixel you want to localize and/or set the Positionable [ Sampler], that is in a sparse sampling situation. For localizing at each iteration step (as in the simplified example above), use LocalizingZeroMinIntervalIterator instead.
[中]使用这个类来迭代一个虚拟矩形区间,该区间的min坐标按平面顺序为0n,即:逐行、逐平面、逐立方体。。。这对于按定义的顺序迭代任意间隔非常有用。为此,请将一个ZeroMinIntervalIterator连接到一个可定位的

...... 
}

请注意,在稀疏采样情况下,对于要定位和/或设置可定位[Sampler]的每个像素,不是的情况下,Zeromini Intervaliterator是正确的选择。要在每个迭代步骤进行本地化(如上面的简化示例所示),请改用LocalizingZeroMinIntervalIterator。

代码示例

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

static public IntervalIterator create( final Interval interval )
{
  final int n = interval.numDimensions();
  for ( int d = 0; d < n; ++d )
    if ( interval.min( d ) != 0 )
      return new IntervalIterator( interval );
  return new ZeroMinIntervalIterator( interval );
}

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

final ZeroMinIntervalIterator cursor = new ZeroMinIntervalIterator( dim );
final Cursor<FloatType> cursorKernel = errorDiffusionKernel.cursor();
while( cursor.hasNext() )
  cursor.fwd();
    cursor.localize( tmp1 );

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

static public IntervalIterator create( final Interval interval )
{
  final int n = interval.numDimensions();
  for ( int d = 0; d < n; ++d )
    if ( interval.min( d ) != 0 )
      return new IntervalIterator( interval );
  return new ZeroMinIntervalIterator( interval );
}

代码示例来源:origin: net.preibisch/multiview-reconstruction

final IntervalIterator cursorDim = new ZeroMinIntervalIterator( iterateD );
final RandomAccess< T > in = Views.zeroMin( input ).randomAccess();
final RandomAccess< T > out = Views.zeroMin( output ).randomAccess();

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com