Package net.imglib2.util

Examples of net.imglib2.util.Fraction


   * passed int[] array.
   */
  final public static ArrayImg< ARGBType, IntArray > argbs( final int[] array, final long... dim )
  {
    final IntArray access = new IntArray( array );
    final ArrayImg< ARGBType, IntArray > img = new ArrayImg< ARGBType, IntArray >( access, dim, new Fraction() );
    final ARGBType t = new ARGBType( img )
    img.setLinkedType( t );
    return img;
  }
View Full Code Here


   * reusing a passed float[] array.
   */
  final public static ArrayImg< ComplexFloatType, FloatArray > complexFloats( final float[] array, final long... dim )
  {
    final FloatArray access = new FloatArray( array );
    final ArrayImg< ComplexFloatType, FloatArray > img = new ArrayImg< ComplexFloatType, FloatArray >( access, dim, new Fraction( 2, 1 ) );
    final ComplexFloatType t = new ComplexFloatType( img )
    img.setLinkedType( t );
    return img;
  }
View Full Code Here

   * reusing a passed double[] array.
   */
  final public static ArrayImg< ComplexDoubleType, DoubleArray > complexDoubles( final double[] array, final long... dim )
  {
    final DoubleArray access = new DoubleArray( array );
    final ArrayImg< ComplexDoubleType, DoubleArray > img = new ArrayImg< ComplexDoubleType, DoubleArray >( access, dim, new Fraction( 2, 1 ) );
    final ComplexDoubleType t = new ComplexDoubleType( img )
    img.setLinkedType( t );
    return img;
  }
View Full Code Here

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

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

    // pass it to the NativeContainer
View Full Code Here

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

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

    // pass it to the NativeContainer
View Full Code Here

  {
    this( 0 );
  }

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

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

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

    // pass it to the NativeContainer
View Full Code Here

  {
    this( ( byte ) 0 );
  }

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

  {
    i -= decrement;
  }

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

* @author Stephan Saalfeld
*/
public class BasePairCharType extends AbstractNativeType< BasePairCharType > implements BasePairType< BasePairCharType >
{
  @Override
  public Fraction getEntitiesPerPixel() { return new Fraction(); }
View Full Code Here

TOP

Related Classes of net.imglib2.util.Fraction

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.