net.imglib2.util.Intervals.isEmpty()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中net.imglib2.util.Intervals.isEmpty()方法的一些代码示例,展示了Intervals.isEmpty()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Intervals.isEmpty()方法的具体详情如下:
包路径:net.imglib2.util.Intervals
类名称:Intervals
方法名:isEmpty

Intervals.isEmpty介绍

[英]Check whether the given interval is empty, that is, the maximum is smaller than the minimum in some dimension.
[中]检查给定的间隔是否为空,即在某些维度上最大值小于最小值。

代码示例

代码示例来源:origin: net.imglib2/imglib2-roi

@Override
public double realMin( final int d )
{
  if ( Intervals.isEmpty( i1 ) || Intervals.isEmpty( i2 ) )
    return Double.POSITIVE_INFINITY;
  return Math.max( i1.realMin( d ), i2.realMin( d ) );
}

代码示例来源:origin: net.imglib2/imglib2-roi

@Override
public long min( final int d )
{
  if ( Intervals.isEmpty( i1 ) || Intervals.isEmpty( i2 ) )
    return Long.MAX_VALUE;
  return Math.max( i1.min( d ), i2.min( d ) );
}

代码示例来源:origin: net.imglib2/imglib2-roi

@Override
public KnownConstant knownConstant()
{
  return Intervals.isEmpty( sourceInterval )
      ? ALL_FALSE
      : knownConstantOp.apply( KnownConstant.of( arg0 ) );
}

代码示例来源:origin: net.imglib2/imglib2-roi

@Override
  public double realMax( final int d )
  {
    if ( Intervals.isEmpty( i1 ) || Intervals.isEmpty( i2 ) )
      return Double.NEGATIVE_INFINITY;
    return Math.min( i1.realMax( d ), i2.realMax( d ) );
  }
}

代码示例来源:origin: net.imglib2/imglib2-roi

@Override
  public long max( final int d )
  {
    if ( Intervals.isEmpty( i1 ) || Intervals.isEmpty( i2 ) )
      return Long.MIN_VALUE;
    return Math.min( i1.max( d ), i2.max( d ) );
  }
}

代码示例来源:origin: net.imglib2/imglib2-roi

@Override
public KnownConstant knownConstant()
{
  return Intervals.isEmpty( sourceInterval )
      ? ALL_FALSE
      : knownConstantOp.apply( KnownConstant.of( arg0 ) );
}

代码示例来源:origin: net.imglib2/imglib2-roi

/**
 * {@inheritDoc}
 *
 * <p>
 * If this {@link RealInterval} is empty (i.e. min &gt; max), then
 * {@link #test} should always return {@code false}.
 * </p>
 */
@Override
default boolean isEmpty()
{
  return Intervals.isEmpty( this ) || knownConstant() == KnownConstant.ALL_FALSE;
}

代码示例来源:origin: net.imglib2/imglib2-roi

/**
 * {@inheritDoc}
 *
 * <p>
 * If this {@link Interval} is empty (i.e. min &gt; max), then {@link #test}
 * should always return {@code false}.
 * </p>
 */
@Override
default boolean isEmpty()
{
  return Intervals.isEmpty( this ) || knownConstant() == KnownConstant.ALL_TRUE;
}

代码示例来源:origin: net.imglib2/imglib2-roi

@Override
public long min( final int d )
{
  if ( Intervals.isEmpty( i1 ) )
  {
    if ( Intervals.isEmpty( i2 ) )
      return Long.MAX_VALUE;
    return i2.min( d );
  }
  if ( Intervals.isEmpty( i2 ) )
    return i1.min( d );
  return Math.min( i1.min( d ), i2.min( d ) );
}

代码示例来源:origin: net.imglib2/imglib2-roi

@Override
public double realMin( final int d )
{
  if ( Intervals.isEmpty( i1 ) )
  {
    if ( Intervals.isEmpty( i2 ) )
      return Double.POSITIVE_INFINITY;
    return i2.realMin( d );
  }
  if ( Intervals.isEmpty( i2 ) )
    return i1.realMin( d );
  return Math.min( i1.realMin( d ), i2.realMin( d ) );
}

代码示例来源:origin: net.imglib2/imglib2-roi

@Override
  public long max( final int d )
  {
    if ( Intervals.isEmpty( i1 ) )
    {
      if ( Intervals.isEmpty( i2 ) )
        return Long.MIN_VALUE;
      return i2.max( d );
    }
    if ( Intervals.isEmpty( i2 ) )
      return i1.max( d );
    return Math.max( i1.max( d ), i2.max( d ) );
  }
}

代码示例来源:origin: net.imglib2/imglib2-roi

@Override
  public double realMax( final int d )
  {
    if ( Intervals.isEmpty( i1 ) )
    {
      if ( Intervals.isEmpty( i2 ) )
        return Double.NEGATIVE_INFINITY;
      return i2.realMax( d );
    }
    if ( Intervals.isEmpty( i2 ) )
      return i1.realMax( d );
    return Math.max( i1.realMax( d ), i2.realMax( d ) );
  }
}

代码示例来源:origin: net.imglib2/imglib2-roi

@Override
public KnownConstant knownConstant()
{
  return Intervals.isEmpty( sourceInterval )
      ? ALL_FALSE
      : knownConstantOp.apply( KnownConstant.of( arg0 ), KnownConstant.of( arg1 ) );
}

代码示例来源:origin: net.imglib2/imglib2-roi

@Override
public KnownConstant knownConstant()
{
  return Intervals.isEmpty( sourceInterval )
      ? ALL_FALSE
      : knownConstantOp.apply( KnownConstant.of( arg0 ), KnownConstant.of( arg1 ) );
}

代码示例来源:origin: net.imglib2/imglib2-roi

private void updateMinMax()
  if( Intervals.isEmpty( source ) )

代码示例来源:origin: imagej/imagej-ops

if (Intervals.isEmpty(intersect)) continue;

代码示例来源:origin: sc.fiji/bigdataviewer-core

final AffineTransform3D croppedSourceTransform = new AffineTransform3D();
if ( Intervals.isEmpty( sourceInterval ) )

相关文章