本文整理了Java中net.imglib2.util.Intervals.createMinSize()
方法的一些代码示例,展示了Intervals.createMinSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Intervals.createMinSize()
方法的具体详情如下:
包路径:net.imglib2.util.Intervals
类名称:Intervals
方法名:createMinSize
[英]Create a FinalInterval from a parameter list comprising minimum coordinates and size. For example, to create a 2D interval from (10, 10) to (20, 40) use createMinSize( 10, 10, 11, 31 ).
[中]从包含最小坐标和大小的参数列表创建FinalintServal。例如,要创建从(10,10)到(20,40)的二维间隔,请使用createMinSize(10,10,11,31)。
代码示例来源:origin: net.imglib2/imglib2-ui
/**
* Update the screen interval. This is the target 2D interval into which
* pixels are rendered. In the box overlay it is shown as a filled grey
* rectangle.
*/
@Override
public synchronized void setCanvasSize( final int width, final int height )
{
virtualScreenInterval = Intervals.createMinSize( 0, 0, width, height );
}
}
代码示例来源:origin: sc.fiji/bigdataviewer-core
public MultiBoxOverlayRenderer( final int screenWidth, final int screenHeight )
{
box = new MultiBoxOverlay();
boxInterval = Intervals.createMinSize( 10, 10, 160, 120 );
virtualScreenInterval = Intervals.createMinSize( 0, 0, screenWidth, screenHeight );
boxSources = new ArrayList<>();
}
代码示例来源:origin: net.imglib2/imglib2-ui
/**
* Create a {@link BoxOverlayRenderer} with the given initial canvas size.
*
* @param screenWidth
* initial canvas width.
* @param screenHeight
* initial canvas height.
*/
public BoxOverlayRenderer( final int screenWidth, final int screenHeight )
{
box = new BoxOverlay();
boxInterval = Intervals.createMinSize( 10, 10, 80, 60 );
virtualScreenInterval = Intervals.createMinSize( 0, 0, screenWidth, screenHeight );
viewerTransform = new AffineTransform3D();
sourceTransform = new AffineTransform3D();
sourceToScreen = new AffineTransform3D();
sourceInterval = Intervals.createMinSize( 0, 0, 0, 1, 1, 1 );
}
代码示例来源:origin: sc.fiji/bigdataviewer-core
/**
* Update the screen interval. This is the target 2D interval into which
* pixels are rendered. (In the box overlay it is shown as a filled grey
* rectangle.)
*/
public synchronized void updateVirtualScreenSize( final int screenWidth, final int screenHeight )
{
final long oldW = virtualScreenInterval.dimension( 0 );
final long oldH = virtualScreenInterval.dimension( 1 );
if ( screenWidth != oldW || screenHeight != oldH )
virtualScreenInterval = Intervals.createMinSize( 0, 0, screenWidth, screenHeight );
}
代码示例来源:origin: imglib/imglib2
@Test
public void testRandomImageInterval()
{
Interval interval = Intervals.createMinSize( 2, 5, 7, 3, 4, 5 );
RandomAccessibleInterval< IntType > image = RandomImgs.seed( 42 ).nextImage( new IntType(), interval );
assertIntervalEquals( interval, image );
}
代码示例来源:origin: sc.fiji/bigdataviewer-core
minsize[ d ] = cropBoundingBox.min( d ) + cropBoundingBox.dimension( d ) / 2;
Arrays.fill( minsize, n, n * 2, 1 );
sourceInterval = Intervals.createMinSize( minsize );
代码示例来源:origin: fiji/TrackMate
final Interval interval = Intervals.createMinSize( minsize );
代码示例来源:origin: sc.fiji/TrackMate_
final Interval interval = Intervals.createMinSize( minsize );
内容来源于网络,如有侵权,请联系作者删除!