• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java RealPositionable类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



RealPositionable类属于net.imglib2包,在下文中一共展示了RealPositionable类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


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


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


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


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


示例20: realMin

import net.imglib2.RealPositionable; //导入依赖的package包/类
@Override
public void realMin(RealPositionable min) {
	iti.realMin(min);
}
 
开发者ID:imglib,项目名称:imglib2-script,代码行数:5,代码来源:IterableIntervalProxy.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SimpleAttributeModifier类代码示例发布时间:2022-05-22
下一篇:
Java StaticPskStore类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap