Package net.imglib2.util

Examples of net.imglib2.util.Pair


  @Override
  public NativeImg<UnsignedLongType, ? extends LongAccess> createSuitableNativeImg( final NativeImgFactory<UnsignedLongType> storageFactory, final long dim[] )
  {
    // create the container
    final NativeImg<UnsignedLongType, ? extends LongAccess> container = storageFactory.createLongInstance( dim, new Fraction() );

    // create a Type that is linked to the container
    final UnsignedLongType linkedType = new UnsignedLongType( container );

    // pass it to the NativeContainer
View Full Code Here


    return 64;
  }

  @Override
  public Fraction getEntitiesPerPixel() {
    return new Fraction();
  }
View Full Code Here

  @Override
  public NativeImg< ComplexDoubleType, ? extends DoubleAccess > createSuitableNativeImg( final NativeImgFactory< ComplexDoubleType > storageFactory, final long dim[] )
  {
    // create the container
    final NativeImg<ComplexDoubleType, ? extends DoubleAccess> container = storageFactory.createDoubleInstance( dim, new Fraction( 2, 1 ) );

    // create a Type that is linked to the container
    final ComplexDoubleType linkedType = new ComplexDoubleType( container );

    // pass it to the NativeContainer
View Full Code Here

  {
    return new ComplexDoubleType( getRealFloat(), getImaginaryFloat() );
  }

  @Override
  public Fraction getEntitiesPerPixel() { return new Fraction( 2, 1 ); }
View Full Code Here

  @Override
  public NativeImg< DoubleType, ? extends DoubleAccess > createSuitableNativeImg( final NativeImgFactory< DoubleType > storageFactory, final long dim[] )
  {
    // create the container
    final NativeImg<DoubleType, ? extends DoubleAccess> container = storageFactory.createDoubleInstance( dim, new Fraction() );
   
    // create a Type that is linked to the container
    final DoubleType linkedType = new DoubleType( container );

    // pass it to the NativeContainer
View Full Code Here

  }

  @Override
  public Fraction getEntitiesPerPixel()
  {
    return new Fraction();
  }
View Full Code Here

  @Override
  public NativeImg< FloatType, ? extends FloatAccess > createSuitableNativeImg( final NativeImgFactory< FloatType > storageFactory, final long dim[] )
  {
    // create the container
    final NativeImg<FloatType, ? extends FloatAccess> container = storageFactory.createFloatInstance( dim, new Fraction() );
   
    // create a Type that is linked to the container
    final FloatType linkedType = new FloatType( container );

    // pass it to the NativeContainer
View Full Code Here

            if (instances == null)
            {
                return;
            }

            @SuppressWarnings({
                "rawtypes", "unchecked"
            })
            final Pair key = new Pair(object.getClass(), parameter);
            final List<SoftReference<T>> list = instances.get(key);
            if (list == null)
            {
                throw new IllegalStateException(
                    "Returning an object that was never borrowed: " + object);
View Full Code Here

            }

            @SuppressWarnings({
                "unchecked", "rawtypes"
            })
            final Pair<T, P> key = new Pair(object.getClass(), parameter);
            final ArrayList<T> list = instances.get(key);
            if (list == null)
            {
                throw new IllegalStateException(
                    "Returning an object that was never borrowed: " + object);
View Full Code Here

    }

    // 1. Add the near and conn predicates that are given as facts first:
    for (FaspConstant t1 : town) {
      for (FaspConstant t2 : town) {
        if (distances.containsKey(new Pair(t1, t2))) {
          varOrder.add(createRegLiteral("near", t1, t2).toString());
          varOrder.add(createRegLiteral("near", t2, t1).toString());
          varOrder.add(createRegLiteral("conn", t1, t2).toString());
          varOrder.add(createRegLiteral("conn", t2, t1).toString());
        }
View Full Code Here

TOP

Related Classes of net.imglib2.util.Pair

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.