Package net.imglib2.img.basictypeaccess.array

Examples of net.imglib2.img.basictypeaccess.array.IntArray


   * Creates an {@link ArrayImg}<{@link IntType}, {@link IntArray}> reusing a
   * passed int[] array.
   */
  final public static ArrayImg< IntType, IntArray > ints( final int[] array, final long... dim )
  {
    final IntArray access = new IntArray( array );
    final ArrayImg< IntType, IntArray > img = new ArrayImg< IntType, IntArray >( access, dim, new Fraction() );
    final IntType t = new IntType( img )
    img.setLinkedType( t );
    return img;
  }
View Full Code Here


   * Creates an {@link ArrayImg}<{@link ARGBType}, {@link IntArray}> reusing a
   * passed int[] array.
   */
  final public static ArrayImg< ARGBType, IntArray > argbs( final int[] array, final long... dim )
  {
    final IntArray access = new IntArray( array );
    final ArrayImg< ARGBType, IntArray > img = new ArrayImg< ARGBType, IntArray >( access, dim, new Fraction() );
    final ARGBType t = new ARGBType( img )
    img.setLinkedType( t );
    return img;
  }
View Full Code Here

  // this is the constructor if you want it to be a variable
  public GenericIntType( final int value )
  {
    img = null;
    dataAccess = new IntArray( 1 );
    setValue( value );
  }
View Full Code Here

  // this is the constructor if you want it to be a variable
  public ARGBType( final int value )
  {
    img = null;
    dataAccess = new IntArray( 1 );
    set( value );
  }
View Full Code Here

  }

  @Test
  public void testIntConstruction()
  {
    testConstruction( new IntArray( 1 ) );
  }
View Full Code Here

  // this is the constructor if you want it to be a variable
  public AbstractBit64Type( final long value, final int nBits )
  {
    this( ( NativeImg< T, ? extends LongAccess > )null, nBits );
    updateIndex( 0 );
    dataAccess = new LongArray( 1 );
    setBits( value );
  }
View Full Code Here

  // this is the constructor if you want it to be a variable
  public LongType( final long value )
  {
    img = null;
    dataAccess = new LongArray( 1 );
    set( value );
  }
View Full Code Here

  // this is the constructor if you want it to be a variable
  public Unsigned12BitType( final long value )
  {
    this( (NativeImg<Unsigned12BitType, ? extends LongAccess>)null );
    dataAccess = new LongArray( 1 );
    set( value );
  }
View Full Code Here

  // this is the constructor if you want it to be a variable
  public Unsigned2BitType( final long value )
  {
    this( (NativeImg<Unsigned2BitType, ? extends LongAccess>)null );
    dataAccess = new LongArray( 1 );
    set( value );
  }
View Full Code Here

  }

  @Override
  public CellImg< T, LongArray, DefaultCell< LongArray > > createLongInstance( final long[] dimensions, final Fraction entitiesPerPixel )
  {
    return createInstance( new LongArray( 1 ), dimensions, entitiesPerPixel );
  }
View Full Code Here

TOP

Related Classes of net.imglib2.img.basictypeaccess.array.IntArray

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.