Example: width=4 |<-inside->| x: -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 f(x): 0 0 1 2 3 3 2 1 0 0 1 2 3 3 2 1 0 0 1
92939495969798
} @Override public NativeImg< T, IntArray > createIntInstance( final long[] dimensions, final Fraction entitiesPerPixel ) { return new PlanarImg< T, IntArray >( new IntArray( 1 ), dimensions, entitiesPerPixel ); }
7980818283848586
// this is the constructor if you want it to be a variable public AbstractBit64Type( final long value, final int nBits ) { this( ( NativeImg< T, ? extends LongAccess > )null, nBits ); updateIndex( 0 ); dataAccess = new LongArray( 1 ); setBits( value ); }
7172737475767778
// this is the constructor if you want it to be a variable public LongType( final long value ) { img = null; dataAccess = new LongArray( 1 ); set( value ); }
6263646566676869
// this is the constructor if you want it to be a variable public Unsigned12BitType( final long value ) { this( (NativeImg<Unsigned12BitType, ? extends LongAccess>)null ); dataAccess = new LongArray( 1 ); set( value ); }
6667686970717273
// this is the constructor if you want it to be a variable public Unsigned2BitType( final long value ) { this( (NativeImg<Unsigned2BitType, ? extends LongAccess>)null ); dataAccess = new LongArray( 1 ); set( value ); }
102103104105106107108
} @Override public CellImg< T, LongArray, DefaultCell< LongArray > > createLongInstance( final long[] dimensions, final Fraction entitiesPerPixel ) { return createInstance( new LongArray( 1 ), dimensions, entitiesPerPixel ); }
// this is the constructor if you want it to be a variable public Unsigned4BitType( final long value ) { this( (NativeImg<Unsigned4BitType, ? extends LongAccess>)null ); dataAccess = new LongArray( 1 ); set( value ); }
9899100101102103104
} @Override public NativeImg< T, LongArray > createLongInstance( final long[] dimensions, final Fraction entitiesPerPixel ) { return new PlanarImg< T, LongArray >( new LongArray( 1 ), dimensions, entitiesPerPixel ); }
8081828384858687
// this is the constructor if you want it to be a variable public Unsigned128BitType( final long lower, final long upper ) { this( (NativeImg<Unsigned128BitType, ? extends LongAccess>)null ); dataAccess = new LongArray( 2 ); set( lower, upper ); }
8889909192939495
// this is the constructor if you want it to be a variable public Unsigned128BitType( final BigInteger value ) { this ( (NativeImg<Unsigned128BitType, ? extends LongAccess>)null ); dataAccess = new LongArray( 2 ); set( value ); }