本文整理汇总了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);
}
示例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 );
}
示例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 );
}
示例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 );
}
示例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 );
}
}
示例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 );
}
}
示例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 );
}
}
示例8: realMax
import net.imglib2.RealPositionable; //导入方法依赖的package包/类
@Override
public void realMax( RealPositionable max )
{
max.setPosition( this.max );
}
示例9: realMin
import net.imglib2.RealPositionable; //导入方法依赖的package包/类
@Override
public void realMin( RealPositionable min )
{
min.setPosition( this.min );
}
示例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 );
}
示例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 );
}
示例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);
}
}
示例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);
}
}
示例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 );
}
示例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 );
}