当前位置: 首页>>代码示例>>Java>>正文


Java RealPositionable.setPosition方法代码示例

本文整理汇总了Java中net.imglib2.RealPositionable.setPosition方法的典型用法代码示例。如果您正苦于以下问题:Java RealPositionable.setPosition方法的具体用法?Java RealPositionable.setPosition怎么用?Java RealPositionable.setPosition使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.imglib2.RealPositionable的用法示例。


在下文中一共展示了RealPositionable.setPosition方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: applyInverse

import net.imglib2.RealPositionable; //导入方法依赖的package包/类
@Override
public void applyInverse( final RealPositionable source, final RealLocalizable target )
{
	if( tps == null )
	{
		for ( int d = 0; d < target.numDimensions(); ++d )
			source.setPosition( target.getDoublePosition( d ), d );
			
		return;
	}
	
	double[] pt = new double[ tps.getNumDims() ];
	for ( int d = 0; d < tps.getNumDims(); ++d )
		pt[ d ] = target.getDoublePosition( d );
	
	double[] ptxfm = tps.apply( pt );
	
	for ( int d = 0; d < tps.getNumDims(); ++d )
		source.setPosition( ptxfm[ d ], d);
	
}
 
开发者ID:saalfeldlab,项目名称:bigwarp,代码行数:22,代码来源:TpsTransformWrapper.java

示例2: apply

import net.imglib2.RealPositionable; //导入方法依赖的package包/类
@Override
public void apply( final RealLocalizable source, final RealPositionable target )
{
	double[] srcd = new double[ source.numDimensions() ];
	double[] tgtd = new double[ target.numDimensions() ];

	source.localize( srcd );
	apply( srcd, tgtd );

	for( int i = 0; i < target.numDimensions(); i++ )
		target.setPosition( tgtd[ i ], i );
}
 
开发者ID:saalfeldlab,项目名称:bigwarp,代码行数:13,代码来源:TpsTransformWrapper.java

示例3: apply

import net.imglib2.RealPositionable; //导入方法依赖的package包/类
@Override
public void apply( final RealLocalizable source, final RealPositionable target )
{
	this.updateCoordinates( source );
	for ( int d = 0; d < this.nNonTransformedCoordinates; ++d )
	{
		target.setPosition( source.getDoublePosition( d ), d );
	}
	target.setPosition( this.apply( source.getDoublePosition( applyTransformToDimension ) ),
			applyTransformToDimension );
}
 
开发者ID:saalfeldlab,项目名称:z-spacing,代码行数:12,代码来源:SingleDimensionLUTGrid.java

示例4: applyInverse

import net.imglib2.RealPositionable; //导入方法依赖的package包/类
@Override
public void applyInverse( final RealPositionable source, final RealLocalizable target )
{
	this.updateCoordinates( target );
	for ( int d = 0; d < this.nNonTransformedCoordinates; ++d )
	{
		source.setPosition( target.getDoublePosition( d ), d );
	}
	source.setPosition( this.applyInverseChecked( target.getDoublePosition( applyTransformToDimension ) ),
			applyTransformToDimension );
}
 
开发者ID:saalfeldlab,项目名称:z-spacing,代码行数:12,代码来源:SingleDimensionLUTGrid.java

示例5: apply

import net.imglib2.RealPositionable; //导入方法依赖的package包/类
@Override
public void apply( final RealLocalizable source, final RealPositionable target )
{
	this.updateCoordinates( source );
	for ( int d = 0; d < this.nNonTransformedCoordinates; ++d )
	{
		target.setPosition( source.getDoublePosition( d ), d );
	}
	for ( int d = this.nNonTransformedCoordinates; d < target.numDimensions(); ++d )
	{
		target.setPosition( this.applyChecked( source.getDoublePosition( d ) ), d );
	}
}
 
开发者ID:saalfeldlab,项目名称:z-spacing,代码行数:14,代码来源:LUTGrid.java

示例6: apply

import net.imglib2.RealPositionable; //导入方法依赖的package包/类
@Override
public void apply( final RealLocalizable source, final RealPositionable target )
{
	target.setPosition( source );
	for ( int d = 2; d < source.numDimensions(); ++d )
	{
		target.setPosition( applyChecked( source.getDoublePosition( d ), ( int ) source.getDoublePosition( 0 ), ( int ) source.getDoublePosition( 1 ) ), d );
	}
}
 
开发者ID:saalfeldlab,项目名称:z-spacing,代码行数:10,代码来源:LUTRealTransformField.java

示例7: applyInverse

import net.imglib2.RealPositionable; //导入方法依赖的package包/类
@Override
public void applyInverse( final RealPositionable source, final RealLocalizable target )
{
	source.setPosition( target );
	for ( int d = 2; d < target.numDimensions(); ++d )
	{
		source.setPosition( applyInverseChecked( target.getDoublePosition( d ), ( int ) target.getDoublePosition( 0 ), ( int ) target.getDoublePosition( 1 ) ), d );
	}
}
 
开发者ID:saalfeldlab,项目名称:z-spacing,代码行数:10,代码来源:LUTRealTransformField.java

示例8: realMax

import net.imglib2.RealPositionable; //导入方法依赖的package包/类
@Override
public void realMax( RealPositionable max )
{
	max.setPosition( this.max );
}
 
开发者ID:saalfeldlab,项目名称:bigcat,代码行数:6,代码来源:BlockedInterval.java

示例9: realMin

import net.imglib2.RealPositionable; //导入方法依赖的package包/类
@Override
public void realMin( RealPositionable min )
{
	min.setPosition( this.min );
}
 
开发者ID:saalfeldlab,项目名称:bigcat,代码行数:6,代码来源:BlockedInterval.java

示例10: applyInverse

import net.imglib2.RealPositionable; //导入方法依赖的package包/类
@Override
public void applyInverse( final RealPositionable source, final RealLocalizable target )
{
	source.setPosition( target );
	source.setPosition( applyInverseChecked( target.getDoublePosition( 2 ), ( int ) target.getDoublePosition( 0 ), ( int ) target.getDoublePosition( 1 ) ), 2 );
}
 
开发者ID:saalfeldlab,项目名称:z-spacing,代码行数:7,代码来源:SingleDimensionLUTRealTransformField.java

示例11: apply

import net.imglib2.RealPositionable; //导入方法依赖的package包/类
@Override
public void apply( final RealLocalizable source, final RealPositionable target )
{
	target.setPosition( source );
	target.setPosition( applyChecked( source.getDoublePosition( 2 ), ( int ) source.getDoublePosition( 0 ), ( int ) source.getDoublePosition( 1 ) ), 2 );
}
 
开发者ID:saalfeldlab,项目名称:z-spacing,代码行数:7,代码来源:SingleDimensionLUTRealTransformField.java

示例12: realMin

import net.imglib2.RealPositionable; //导入方法依赖的package包/类
@Override
public void realMin(RealPositionable min) {
	for (int i=0; i<dims.length; ++i) {
		min.setPosition(0, i);
	}
}
 
开发者ID:imglib,项目名称:imglib2-script,代码行数:7,代码来源:RandomAccessibleImgProxy.java

示例13: realMax

import net.imglib2.RealPositionable; //导入方法依赖的package包/类
@Override
public void realMax(RealPositionable max) {
	for (int i=0; i<dims.length; ++i) {
		max.setPosition(dims[i] -1, i);
	}
}
 
开发者ID:imglib,项目名称:imglib2-script,代码行数:7,代码来源:RandomAccessibleImgProxy.java

示例14: realMin

import net.imglib2.RealPositionable; //导入方法依赖的package包/类
public void realMin( final RealPositionable min )
{
	for ( int d = 0; d < n; ++d )
		min.setPosition( currentMin[ d ], d );
}
 
开发者ID:bogovicj,项目名称:hhmi-exp,代码行数:6,代码来源:CrossNeighborhoodSkipCenter.java

示例15: realMax

import net.imglib2.RealPositionable; //导入方法依赖的package包/类
public void realMax( final RealPositionable max )
{
	for ( int d = 0; d < n; ++d )
		max.setPosition( currentMax[ d ], d );
}
 
开发者ID:bogovicj,项目名称:hhmi-exp,代码行数:6,代码来源:CrossNeighborhoodSkipCenter.java


注:本文中的net.imglib2.RealPositionable.setPosition方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。