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