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

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • setRequestProperty (URLConnection)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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