Examples of UnsignedShortType


Examples of net.imglib2.type.numeric.integer.UnsignedShortType

    }

    if ( UnsignedShortType.class.isAssignableFrom( type.getClass() ) )
    {
      final ShortArray array = new ShortArray( numElements( dims ) );
      final ArrayImgAWTScreenImage< UnsignedShortType, ShortArray > container = new UnsignedShortAWTScreenImage( new UnsignedShortType( array ), array, dims );
      container.setLinkedType( new UnsignedShortType( container ) );
      return ( ArrayImgAWTScreenImage ) container;
    }

    if ( IntType.class.isAssignableFrom( type.getClass() ) )
    {
View Full Code Here

Examples of net.imglib2.type.numeric.integer.UnsignedShortType

   * >.
   */
  @SuppressWarnings( "unchecked" )
  final static public ArrayImg< UnsignedShortType, ShortArray > unsignedShorts( final long... dim )
  {
    return ( ArrayImg< UnsignedShortType, ShortArray > ) new ArrayImgFactory< UnsignedShortType >().create( dim, new UnsignedShortType() );
  }
View Full Code Here

Examples of net.imglib2.type.numeric.integer.UnsignedShortType

   */
  final public static ArrayImg< UnsignedShortType, ShortArray > unsignedShorts( final short[] array, final long... dim )
  {
    final ShortArray access = new ShortArray( array );
    final ArrayImg< UnsignedShortType, ShortArray > img = new ArrayImg< UnsignedShortType, ShortArray >( access, dim, new Fraction() );
    final UnsignedShortType t = new UnsignedShortType( img );   
    img.setLinkedType( t );
    return img;
  }
View Full Code Here

Examples of net.imglib2.type.numeric.integer.UnsignedShortType

   * >.
   */
  @SuppressWarnings( "unchecked" )
  final static public PlanarImg< UnsignedShortType, ShortArray > unsignedShorts( final long... dim )
  {
    return ( PlanarImg< UnsignedShortType, ShortArray > ) new PlanarImgFactory< UnsignedShortType >().create( dim, new UnsignedShortType() );
  }
View Full Code Here

Examples of net.imglib2.type.numeric.integer.UnsignedShortType

    System.out.println( "== UNSIGNED 8-BIT ==" );
    new HistogramPerformanceTest< UnsignedByteType >().run(
        new UnsignedByteType(), 256 );
    System.out.println( "== UNSIGNED 16-BIT ==" );
    new HistogramPerformanceTest< UnsignedShortType >().run(
        new UnsignedShortType(), 65536 );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.