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


Java RealPositionable类代码示例

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


RealPositionable类属于net.imglib2包,在下文中一共展示了RealPositionable类的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: realMin

import net.imglib2.RealPositionable; //导入依赖的package包/类
@Override
public void realMin(RealPositionable min)
{
	loadIfNecessary();
	rai.realMin( min );
	
}
 
开发者ID:PreibischLab,项目名称:BigStitcher,代码行数:8,代码来源:RAIProxy.java

示例3: realMax

import net.imglib2.RealPositionable; //导入依赖的package包/类
@Override
public void realMax(RealPositionable max)
{
	loadIfNecessary();
	rai.realMax( max );
	
}
 
开发者ID:PreibischLab,项目名称:BigStitcher,代码行数:8,代码来源:RAIProxy.java

示例4: 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

示例5: apply

import net.imglib2.RealPositionable; //导入依赖的package包/类
@Override
public void apply( final RealLocalizable source, final RealPositionable target )
{
	assert source.numDimensions() == target.numDimensions(): "Dimensions do not match.";

	target.setPosition( source );

	target.setPosition( applyChecked( source.getDoublePosition( d ) ), d );
}
 
开发者ID:saalfeldlab,项目名称:z-spacing,代码行数:10,代码来源:SingleDimensionLUTRealTransform.java

示例6: applyInverse

import net.imglib2.RealPositionable; //导入依赖的package包/类
@Override
public void applyInverse( final RealPositionable source, final RealLocalizable target )
{
	assert source.numDimensions() == target.numDimensions(): "Dimensions do not match.";

	source.setPosition( target );

	source.setPosition( applyInverseChecked( target.getDoublePosition( d ) ), d );
}
 
开发者ID:saalfeldlab,项目名称:z-spacing,代码行数:10,代码来源:SingleDimensionLUTRealTransform.java

示例7: 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

示例8: 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

示例9: 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

示例10: 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

示例11: 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

示例12: apply

import net.imglib2.RealPositionable; //导入依赖的package包/类
@Override
public void apply( final RealLocalizable source, final RealPositionable target )
{
	assert source.numDimensions() == target.numDimensions(): "Dimensions do not match.";

	final int n = source.numDimensions();
	for ( int d = 0; d < n; ++d )
		target.setPosition( applyChecked( source.getDoublePosition( d ) ), d );
}
 
开发者ID:saalfeldlab,项目名称:z-spacing,代码行数:10,代码来源:LUTRealTransform.java

示例13: applyInverse

import net.imglib2.RealPositionable; //导入依赖的package包/类
@Override
public void applyInverse( final RealPositionable source, final RealLocalizable target )
{
	assert source.numDimensions() == target.numDimensions(): "Dimensions do not match.";

	final int n = target.numDimensions();
	for ( int d = 0; d < n; ++d )
		source.setPosition( applyInverseChecked( target.getDoublePosition( d ) ), d );
}
 
开发者ID:saalfeldlab,项目名称:z-spacing,代码行数:10,代码来源:LUTRealTransform.java

示例14: realMax

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

示例15: realMin

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


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