Examples of IntType


Examples of net.imglib2.type.numeric.integer.IntType

  }

  @Test
  public void testCopyToPlanarContainerWithDestIteration()
  {
    final PlanarImg< IntType, ? > planarImg = new PlanarImgFactory< IntType >().create( dimensions, new IntType() );
    copyWithDestIteration( intImg, planarImg );
    assertArrayEquals( intData, getImgAsInts( planarImg ) );
  }
View Full Code Here

Examples of net.imglib2.type.numeric.integer.IntType

    for ( int i = 0; i < numValues; ++i )
    {
      intData[ i ] = random.nextInt();
    }

    img = ( PlanarImg< IntType, ? > ) new PlanarImgFactory< IntType >().create( dimensions, new IntType() );

    long[] pos = new long[ dimensions.length ];
    RandomAccess< IntType > a = img.randomAccess();

    for ( int i = 0; i < numValues; ++i )
View Full Code Here

Examples of net.imglib2.type.numeric.integer.IntType

    {
      intData[ i ] = random.nextInt();
      intDataSum += intData[ i ];
    }

    intImg = new ListImgFactory< IntType >().create( dimensions, new IntType() );

    final long[] pos = new long[ dimensions.length ];
    final RandomAccess< IntType > a = intImg.randomAccess();

    for ( int i = 0; i < numValues; ++i )
View Full Code Here

Examples of net.imglib2.type.numeric.integer.IntType

  }

  @Test
  public void testCopyToArrayImgWithSourceIteration()
  {
    final ArrayImg< IntType, ? > array = new ArrayImgFactory< IntType >().create( dimensions, new IntType() );
    copyWithSourceIteration( intImg, array );
    assertArrayEquals( intData, getImgAsInts( array ) );
  }
View Full Code Here

Examples of net.imglib2.type.numeric.integer.IntType

  }

  @Test
  public void testCopyToArrayImgWithDestIteration()
  {
    final ArrayImg< IntType, ? > array = new ArrayImgFactory< IntType >().create( dimensions, new IntType() );
    copyWithDestIteration( intImg, array );
    assertArrayEquals( intData, getImgAsInts( array ) );
  }
View Full Code Here

Examples of net.imglib2.type.numeric.integer.IntType

  }

  @Test
  public void testCopyToListImgWithSourceIteration()
  {
    final ListImg< IntType > listImg = new ListImgFactory< IntType >().create( dimensions, new IntType() );
    copyWithSourceIteration( intImg, listImg );
    assertArrayEquals( intData, getImgAsInts( listImg ) );
  }
View Full Code Here

Examples of net.imglib2.type.numeric.integer.IntType

  }

  @Test
  public void testCopyToPlanarImgWithDestIteration()
  {
    final ListImg< IntType > listImg = new ListImgFactory< IntType >().create( dimensions, new IntType() );
    copyWithDestIteration( intImg, listImg );
    assertArrayEquals( intData, getImgAsInts( listImg ) );
  }
View Full Code Here

Examples of net.imglib2.type.numeric.integer.IntType

   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception
  {
    arrayImage = new ArrayImgFactory< IntType >().create( dim, new IntType() );
    cellImage = new CellImgFactory< IntType >( 2 ).create( dim, new IntType() );
    listImage = new ListImgFactory< IntType >().create( dim, new IntType() );

    int i = 0;
    for ( final IntType t : arrayImage )
      t.set( i++ );

View Full Code Here

Examples of net.imglib2.type.numeric.integer.IntType

    {
      intData[ i ] = random.nextInt();
      intDataSum += intData[ i ];
    }

    intImg = new CellImgFactory< IntType >( 4 ).create( dimensions, new IntType() );

    final long[] pos = new long[ dimensions.length ];
    final RandomAccess< IntType > a = intImg.randomAccess();

    for ( int i = 0; i < numValues; ++i )
View Full Code Here

Examples of net.imglib2.type.numeric.integer.IntType

  }

  @Test
  public void testIntDefaultCellSize()
  {
    testDefaultCellSize( new IntType() );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.