Package net.imglib2.meta

Examples of net.imglib2.meta.AxisType


      return ( ArrayImgAWTScreenImage ) container;
    }

    if ( FloatType.class.isAssignableFrom( type.getClass() ) )
    {
      final FloatArray array = new FloatArray( numElements( dims ) );
      final ArrayImgAWTScreenImage< FloatType, FloatArray > container = new FloatAWTScreenImage( new FloatType( array ), array, dims );
      container.setLinkedType( new FloatType( container ) );
      return ( ArrayImgAWTScreenImage ) container;
    }
View Full Code Here


  }

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

  }

  @Override
  public NativeImg< T, FloatArray > createFloatInstance( final long[] dimensions, final Fraction entitiesPerPixel )
  {
    return new PlanarImg< T, FloatArray >( new FloatArray( 1 ), dimensions, entitiesPerPixel );
  }
View Full Code Here

  // this is the constructor if you want it to be a variable
  public ComplexFloatType( final float r, final float i )
  {
    img = null;
    dataAccess = new FloatArray( 2 );
    set( r, i );
  }
View Full Code Here

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

   * Create an {@link Image} with {@code data}. Writing to the {@code data}
   * array will update the {@link Image}.
   */
  public ARGBScreenImage( final int width, final int height, final int[] data )
  {
    super( new IntArray( data ), new long[]{ width, height }, new Fraction() );
    setLinkedType( new ARGBType( this ) );
    this.data = data;

    final SampleModel sampleModel = ARGB_COLOR_MODEL.createCompatibleWritableRaster( 1, 1 ).getSampleModel()
        .createCompatibleSampleModel( width, height );
View Full Code Here

      return ( ArrayImgAWTScreenImage ) container;
    }

    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() ) )
    {
      final IntArray array = new IntArray( numElements( dims ) );
      final ArrayImgAWTScreenImage< UnsignedIntType, IntArray > container = new UnsignedIntAWTScreenImage( new UnsignedIntType( array ), array, dims );
      container.setLinkedType( new UnsignedIntType( container ) );
      return ( ArrayImgAWTScreenImage ) container;
    }
View Full Code Here

  }

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

  }

  @Override
  public NativeImg< T, IntArray > createIntInstance( final long[] dimensions, final Fraction entitiesPerPixel )
  {
    return new PlanarImg< T, IntArray >( new IntArray( 1 ), dimensions, entitiesPerPixel );
  }
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

TOP

Related Classes of net.imglib2.meta.AxisType

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.