Package net.imglib2.type.numeric.real

Examples of net.imglib2.type.numeric.real.FloatType


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

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

    // pass it to the NativeContainer
View Full Code Here


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

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

    // pass it to the NativeContainer
View Full Code Here

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

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

    // pass it to the NativeContainer
View Full Code Here

    this.data = data;
  }

  private NtreeImg( final NtreeImg< T, A > img )
  {
    super( img.dimension, new Fraction() );

    // this.ntree = new Ntree<Integer>(img.dimension, 0);
    this.data = img.data;
  }
View Full Code Here

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

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

    // pass it to the NativeContainer
View Full Code Here

    copy.set( dataAccess.getValue( k ), dataAccess.getValue( k + 1 ));
    return copy;
  }

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

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

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

    // pass it to the NativeContainer
View Full Code Here

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

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

  @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

TOP

Related Classes of net.imglib2.type.numeric.real.FloatType

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.