本文整理汇总了Java中net.imglib2.RandomAccessibleInterval.max方法的典型用法代码示例。如果您正苦于以下问题:Java RandomAccessibleInterval.max方法的具体用法?Java RandomAccessibleInterval.max怎么用?Java RandomAccessibleInterval.max使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.imglib2.RandomAccessibleInterval
的用法示例。
在下文中一共展示了RandomAccessibleInterval.max方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initStore
import net.imglib2.RandomAccessibleInterval; //导入方法依赖的package包/类
private synchronized void initStore( RandomAccessibleInterval< T > newStore )
{
newStore.dimensions( this.dimensions );
newStore.min( this.min );
newStore.max( this.max );
this.store = newStore;
}
示例2: initStore
import net.imglib2.RandomAccessibleInterval; //导入方法依赖的package包/类
private void initStore( RandomAccessibleInterval< T > newStore )
{
newStore.dimensions( this.dimensions );
newStore.min( this.min );
newStore.max( this.max );
this.store = newStore;
}
示例3: BlockedInterval
import net.imglib2.RandomAccessibleInterval; //导入方法依赖的package包/类
/**
* @param source
* Source to be wrapped.
* @param stepSize
* Strides for each dimension.
* @param factory
* Factory for extending source.
*/
public BlockedInterval(
RandomAccessibleInterval< T > source,
long[] stepSize,
OutOfBoundsFactory< T, RandomAccessibleInterval< T > > factory )
{
super();
this.stepSize = stepSize;
this.extendedSource = new ExtendedRandomAccessibleInterval< T, RandomAccessibleInterval< T > >( source, factory );
this.nDim = source.numDimensions();
this.max = new long[ nDim ];
this.min = new long[ nDim ];
this.dimensions = new long[ nDim ];
source.min( this.min );
source.max( this.max );
source.dimensions( dimensions );
for ( int d = 0; d < this.nDim; ++d )
{
long val = this.max[ d ] - this.min[ d ];
this.max[ d ] = val / stepSize[ d ] + this.min[ d ];
long dim = this.dimensions[ d ] - this.min[ d ];
this.dimensions[ d ] = dim / stepSize[ d ] + this.min[ d ];
}
}