congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PlanarImgFactory.create
Code IndexAdd Tabnine to your IDE (free)

How to use
create
method
in
net.imglib2.img.planar.PlanarImgFactory

Best Java code snippets using net.imglib2.img.planar.PlanarImgFactory.create (Showing top 20 results out of 315)

origin: imglib/imglib2

@Override
public PlanarImg< T, ? > create( final Dimensions dimensions )
{
  return create( Intervals.dimensionsAsLongArray( dimensions ) );
}
origin: imglib/imglib2

@Deprecated
@Override
public PlanarImg< T, ? > create( final long[] dimensions, final T type )
{
  cache( type );
  @SuppressWarnings( { "unchecked", "rawtypes" } )
  final PlanarImg< T, ? > img = create( dimensions, type, ( NativeTypeFactory ) type.getNativeTypeFactory() );
  return img;
}
origin: net.imglib2/imglib2

@Deprecated
@Override
public PlanarImg< T, ? > create( final long[] dimensions, final T type )
{
  cache( type );
  @SuppressWarnings( { "unchecked", "rawtypes" } )
  final PlanarImg< T, ? > img = create( dimensions, type, ( NativeTypeFactory ) type.getNativeTypeFactory() );
  return img;
}
origin: net.imglib2/imglib2

/**
 * Create an {@link PlanarImg}&lt;{@link LongType}, {@link LongArray}&gt;.
 */
@SuppressWarnings( "unchecked" )
final static public PlanarImg< LongType, LongArray > longs( final long... dim )
{
  return ( PlanarImg< LongType, LongArray > ) new PlanarImgFactory<>( new LongType() ).create( dim );
}
origin: net.imglib2/imglib2

@Override
public PlanarImg< T, ? > create( final long... dimensions )
{
  @SuppressWarnings( { "unchecked", "rawtypes" } )
  final PlanarImg< T, ? > img = create( dimensions, type(), ( NativeTypeFactory ) type().getNativeTypeFactory() );
  return img;
}
origin: net.imglib2/imglib2

/**
 * Create an {@link PlanarImg}&lt;{@link UnsignedByteType}, {@link ByteArray}&gt;.
 */
@SuppressWarnings( "unchecked" )
final static public PlanarImg< UnsignedByteType, ByteArray > unsignedBytes( final long... dim )
{
  return ( PlanarImg< UnsignedByteType, ByteArray > ) new PlanarImgFactory<>( new UnsignedByteType() ).create( dim );
}
origin: net.imglib2/imglib2

/**
 * Create an {@link PlanarImg}&lt;{@link UnsignedShortType}, {@link ShortArray}
 * &gt;.
 */
@SuppressWarnings( "unchecked" )
final static public PlanarImg< UnsignedShortType, ShortArray > unsignedShorts( final long... dim )
{
  return ( PlanarImg< UnsignedShortType, ShortArray > ) new PlanarImgFactory<>( new UnsignedShortType() ).create( dim );
}
origin: net.imglib2/imglib2

/**
 * Create an {@link PlanarImg}&lt;{@link NativeBoolType}, {@link BooleanArray}&gt;.
 */
@SuppressWarnings( "unchecked" )
final static public PlanarImg< NativeBoolType, BooleanArray > booleans( final long... dim )
{
  return ( PlanarImg< NativeBoolType, BooleanArray > ) new PlanarImgFactory<>( new NativeBoolType() ).create( dim );
}
origin: imglib/imglib2

/**
 * Create an {@link PlanarImg}&lt;{@link IntType}, {@link IntArray}&gt;.
 */
@SuppressWarnings( "unchecked" )
final static public PlanarImg< IntType, IntArray > ints( final long... dim )
{
  return ( PlanarImg< IntType, IntArray > ) new PlanarImgFactory<>( new IntType() ).create( dim );
}
origin: imglib/imglib2

/**
 * Create an {@link PlanarImg}&lt;{@link FloatType}, {@link FloatArray}&gt;.
 */
@SuppressWarnings( "unchecked" )
final static public PlanarImg< FloatType, FloatArray > floats( final long... dim )
{
  return ( PlanarImg< FloatType, FloatArray > ) new PlanarImgFactory<>( new FloatType() ).create( dim );
}
origin: net.imglib2/imglib2

/**
 * Create an {@link PlanarImg}&lt;{@link BitType}, {@link LongArray}&gt;.
 */
@SuppressWarnings( "unchecked" )
final static public PlanarImg< BitType, LongArray > bits( final long... dim )
{
  return ( PlanarImg< BitType, LongArray > ) new PlanarImgFactory<>( new BitType() ).create( dim );
}
origin: imglib/imglib2

/**
 * Create an {@link PlanarImg}&lt;{@link UnsignedByteType}, {@link ByteArray}&gt;.
 */
@SuppressWarnings( "unchecked" )
final static public PlanarImg< UnsignedByteType, ByteArray > unsignedBytes( final long... dim )
{
  return ( PlanarImg< UnsignedByteType, ByteArray > ) new PlanarImgFactory<>( new UnsignedByteType() ).create( dim );
}
origin: imglib/imglib2

/**
 * Create an {@link PlanarImg}&lt;{@link UnsignedShortType}, {@link ShortArray}
 * &gt;.
 */
@SuppressWarnings( "unchecked" )
final static public PlanarImg< UnsignedShortType, ShortArray > unsignedShorts( final long... dim )
{
  return ( PlanarImg< UnsignedShortType, ShortArray > ) new PlanarImgFactory<>( new UnsignedShortType() ).create( dim );
}
origin: imglib/imglib2

/**
 * Create an {@link PlanarImg}&lt;{@link NativeBoolType}, {@link BooleanArray}&gt;.
 */
@SuppressWarnings( "unchecked" )
final static public PlanarImg< NativeBoolType, BooleanArray > booleans( final long... dim )
{
  return ( PlanarImg< NativeBoolType, BooleanArray > ) new PlanarImgFactory<>( new NativeBoolType() ).create( dim );
}
origin: imglib/imglib2

/**
 * Create an {@link PlanarImg}&lt;{@link ComplexFloatType}, {@link FloatArray}
 * &gt;.
 */
@SuppressWarnings( "unchecked" )
final static public PlanarImg< ComplexFloatType, FloatArray > complexFloats( final long... dim )
{
  return ( PlanarImg< ComplexFloatType, FloatArray > ) new PlanarImgFactory<>( new ComplexFloatType() ).create( dim );
}
origin: net.imglib2/imglib2

/**
 * Create an {@link PlanarImg}&lt;{@link ByteType}, {@link ByteArray}&gt;.
 */
@SuppressWarnings( "unchecked" )
final static public PlanarImg< ByteType, ByteArray > bytes( final long... dim )
{
  return ( PlanarImg< ByteType, ByteArray > ) new PlanarImgFactory<>( new ByteType() ).create( dim );
}
origin: imglib/imglib2

private < A extends ArrayDataAccess< A > > PlanarImg< T, ? > create(
    final long[] dimensions,
    final T type,
    final NativeTypeFactory< T, A > typeFactory )
{
  final Fraction entitiesPerPixel = type.getEntitiesPerPixel();
  final PlanarImg< T, A > img = new PlanarImg<>( ArrayDataAccessFactory.get( typeFactory ), dimensions, entitiesPerPixel );
  img.setLinkedType( typeFactory.createLinkedType( img ) );
  return img;
}
origin: net.imglib2/imglib2

@Override
public PlanarImg< T, ? > copy()
{
  final PlanarImg< T, ? > copy = factory().create( dimension );
  final PlanarCursor< T > cursor1 = this.cursor();
  final PlanarCursor< T > cursor2 = copy.cursor();
  while ( cursor1.hasNext() )
    cursor2.next().set( cursor1.next() );
  return copy;
}
origin: imglib/imglib2

@Test
public void testCopyToPlanarContainerWithSourceIteration()
{
  final PlanarImg< IntType, ? > planarImg = new PlanarImgFactory<>( new IntType() ).create( dimensions );
  copyWithSourceIteration( intImg, planarImg );
  assertArrayEquals( intData, getImgAsInts( planarImg ) );
}
origin: imglib/imglib2

  @Test
  public void testCopyToPlanarContainerWithDestIteration()
  {
    final PlanarImg< IntType, ? > planarImg = new PlanarImgFactory<>( new IntType() ).create( dimensions );
    copyWithDestIteration( intImg, planarImg );
    assertArrayEquals( intData, getImgAsInts( planarImg ) );
  }
}
net.imglib2.img.planarPlanarImgFactorycreate

Popular methods of PlanarImgFactory

  • <init>
  • cache
  • type

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • setScale (BigDecimal)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • BoxLayout (javax.swing)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now