Package net.imglib2.transform.integer

Examples of net.imglib2.transform.integer.SlicingTransform


    }

    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;
    }

    if ( DoubleType.class.isAssignableFrom( type.getClass() ) )
    {
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

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

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

    // pass it to the NativeContainer
View Full Code Here

  {
    return new LongType( get() );
  }

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

  {
    this( ( short ) 0 );
  }

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

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

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

    // pass it to the NativeContainer
View Full Code Here

  @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

TOP

Related Classes of net.imglib2.transform.integer.SlicingTransform

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.