Tabnine Logo
PlanarImgFactory
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: net.imglib2/imglib2

/**
 * Create an {@link PlanarImg}<{@link UnsignedByteType}, {@link ByteArray}>.
 */
@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

@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

@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

@Override
public PlanarImgFactory< T > factory()
{
  return new PlanarImgFactory<>( linkedType );
}
origin: imglib/imglib2

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

public FusionImageLoader( final String pattern, final HashMap< Integer, Integer > setupIdToChannelId, final int numSlices, final SliceLoader< T > sliceLoader, final double sliceValueMin, final double sliceValueMax )
{
  this( pattern, setupIdToChannelId, numSlices, sliceLoader, sliceValueMin, sliceValueMax, new PlanarImgFactory< UnsignedShortType >() );
}
origin: net.imglib2/imglib2

@Override
public PlanarImg< T, ? > create( final Dimensions dimensions )
{
  return create( Intervals.dimensionsAsLongArray( dimensions ) );
}
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: imglib/imglib2

@Override
public PlanarImgFactory< T > factory()
{
  return new PlanarImgFactory<>( linkedType );
}
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: imglib/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: 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

/**
 * 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: net.imglib2/imglib2

@SuppressWarnings( { "unchecked", "rawtypes" } )
@Override
public < S > ImgFactory< S > imgFactory( final S type ) throws IncompatibleTypeException
{
  if ( NativeType.class.isInstance( type ) )
    return new PlanarImgFactory( ( NativeType ) type );
  throw new IncompatibleTypeException( this, type.getClass().getCanonicalName() + " does not implement NativeType." );
}
origin: net.imglib2/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

/**
 * 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: imglib/imglib2

@SuppressWarnings( { "unchecked", "rawtypes" } )
@Override
public < S > ImgFactory< S > imgFactory( final S type ) throws IncompatibleTypeException
{
  if ( NativeType.class.isInstance( type ) )
    return new PlanarImgFactory( ( NativeType ) type );
  throw new IncompatibleTypeException( this, type.getClass().getCanonicalName() + " does not implement NativeType." );
}
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

/**
 * 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: net.imagej/ij-data

@Override
public <T extends RealType<T> & NativeType<T>> Dataset create(
  final T type, final long[] dims, final String name, final AxisType[] axes)
{
  final PlanarImgFactory<T> imgFactory = new PlanarImgFactory<T>();
  return create(imgFactory, type, dims, name, axes);
}
net.imglib2.img.planarPlanarImgFactory

Javadoc

Factory that creates an appropriate PlanarImg.

Most used methods

  • <init>
  • create
  • cache
  • type

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • setContentView (Activity)
  • startActivity (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • JList (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top PhpStorm 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