Package net.imglib2.type.numeric.integer

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


  {

    if ( ByteType.class.isAssignableFrom( type.getClass() ) )
    {
      final ByteArray array = new ByteArray( numElements( dims ) );
      final ArrayImgAWTScreenImage< ByteType, ByteArray > container = new ByteAWTScreenImage( new ByteType( array ), array, dims );
      container.setLinkedType( new ByteType( container ) );
      return ( ArrayImgAWTScreenImage ) container;
    }

    if ( UnsignedByteType.class.isAssignableFrom( type.getClass() ) )
    {
View Full Code Here


    }

    if ( IntType.class.isAssignableFrom( type.getClass() ) )
    {
      final IntArray array = new IntArray( numElements( dims ) );
      final ArrayImgAWTScreenImage< IntType, IntArray > container = new IntAWTScreenImage( new IntType( array ), array, dims );
      container.setLinkedType( new IntType( container ) );
      return ( ArrayImgAWTScreenImage ) container;
    }

    if ( UnsignedIntType.class.isAssignableFrom( type.getClass() ) )
    {
View Full Code Here

   * Create an {@link ArrayImg}<{@link IntType}, {@link IntArray}>.
   */
  @SuppressWarnings( "unchecked" )
  final static public ArrayImg< IntType, IntArray > ints( final long... dim )
  {
    return ( ArrayImg< IntType, IntArray > ) new ArrayImgFactory< IntType >().create( dim, new IntType() );
  }
View Full Code Here

   */
  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

   * Create an {@link PlanarImg}<{@link IntType}, {@link IntArray}>.
   */
  @SuppressWarnings( "unchecked" )
  final static public PlanarImg< IntType, IntArray > ints( final long... dim )
  {
    return ( PlanarImg< IntType, IntArray > ) new PlanarImgFactory< IntType >().create( dim, new IntType() );
  }
View Full Code Here

   * @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

   * @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

   * @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

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

    img = ( ArrayImg< IntType, ? > ) new ArrayImgFactory< 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

  @SuppressWarnings( "unchecked" )
  public void setUp()
  {
    dimensions = new long[] { 207, 103, 1021 };
    array1 = ( ArrayImg< IntType, IntArray > ) new ArrayImgFactory< IntType >().create( dimensions, new IntType() );
    array2 = ( ArrayImg< IntType, IntArray > ) new ArrayImgFactory< IntType >().create( dimensions, new IntType() );
    cell = ( CellImg< IntType, IntArray, DefaultCell< IntArray > > ) new CellImgFactory< IntType >().create( dimensions, new IntType() );

    // fill intData with random values
    numValues = 1;
    for ( int d = 0; d < dimensions.length; ++d )
      numValues *= dimensions[ d ];
View Full Code Here

TOP

Related Classes of net.imglib2.type.numeric.integer.IntType

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.