Package net.imglib2.type.numeric.real

Examples of net.imglib2.type.numeric.real.FloatType


  }

  @Override
  public FlatIterationOrder iterationOrder()
  {
    return new FlatIterationOrder( this );
  }
View Full Code Here


   * {@inheritDoc}
   */
  @Override
  public Object subIntervalIterationOrder( final Interval interval )
  {
    return new FlatIterationOrder( interval );
  }
View Full Code Here

  public Object subIntervalIterationOrder( final Interval interval )
  {
    if ( this.sourceInterval instanceof SubIntervalIterable )
      return ( ( SubIntervalIterable< T > ) this.sourceInterval ).subIntervalIterationOrder( interval );
    else
      return new FlatIterationOrder( interval );
  }
View Full Code Here

        }

        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

TOP

Related Classes of net.imglib2.type.numeric.real.FloatType

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.