Package net.imglib2

Examples of net.imglib2.Point


        }

        if ( optimizable )
        {
//          System.out.println( "interval = " + Util.printInterval( interval ) );
          final Interval sliceInterval = t.transform( new BoundingBox( interval ) ).getInterval();
//          System.out.println( "transformed interval = " + Util.printInterval( sliceInterval ) );
          if ( iterableSource.supportsOptimizedCursor( sliceInterval ) )
          {
            // check for FlatIterationOrder
            boolean flat = FlatIterationOrder.class.isInstance( iterableSource.subIntervalIterationOrder( sliceInterval ) );
View Full Code Here


  @Override
  protected SignedByteDataBuffer createDataBuffer( final ByteArray data )
  {
    final byte[] sourceArray = data.getCurrentStorageArray();
    return new SignedByteDataBuffer( sourceArray, sourceArray.length );
  }
View Full Code Here

  @Override
  protected SignedShortDataBuffer createDataBuffer( final ShortArray data )
  {
    final short[] sourceArray = data.getCurrentStorageArray();
    return new SignedShortDataBuffer( sourceArray, sourceArray.length );
  }
View Full Code Here

  @Override
  protected UnsignedIntDataBuffer createDataBuffer( final IntArray data )
  {
    final int[] sourceArray = data.getCurrentStorageArray();
    return new UnsignedIntDataBuffer( sourceArray, sourceArray.length );
  }
View Full Code Here

  @Override
  public < S > ImgFactory< S > imgFactory( final S type ) throws IncompatibleTypeException
  {
    if ( NativeType.class.isInstance( type ) )
      return new CellImgFactory( defaultCellDimensions );
    throw new IncompatibleTypeException( this, type.getClass().getCanonicalName() + " does not implement NativeType." );
  }
View Full Code Here

  @Override
  public < S > ImgFactory< S > imgFactory( final S type ) throws IncompatibleTypeException
  {
    if ( NativeType.class.isInstance( type ) )
      return new PlanarImgFactory();
    throw new IncompatibleTypeException( this, type.getClass().getCanonicalName() + " does not implement NativeType." );
  }
View Full Code Here

  @Override
  public < S > ImgFactory< S > imgFactory( final S type ) throws IncompatibleTypeException
  {
    if ( NativeType.class.isInstance( type ) )
      return new NtreeImgFactory();
    throw new IncompatibleTypeException( this, type.getClass().getCanonicalName() + " does not implement NativeType." );
  }
View Full Code Here

  public static < T extends NativeType< T >> ArrayImgAWTScreenImage< T, ? > emptyScreenImage( final T type, final long[] dims )
  {

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

  }

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

  }

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

TOP

Related Classes of net.imglib2.Point

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.