Codota Logo
PlanarImgFactory.<init>
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: net.imglib2/imglib2

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

/**
 * 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

/**
 * 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 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 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

/**
 * 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 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: 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 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: 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 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 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 UnsignedIntType}, {@link IntArray}&gt;.
 */
@SuppressWarnings( "unchecked" )
final static public PlanarImg< UnsignedIntType, IntArray > unsignedInts( final long... dim )
{
  return ( PlanarImg< UnsignedIntType, IntArray > ) new PlanarImgFactory<>( new UnsignedIntType() ).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: net.imagej/imagej-legacy

private ImgPlus<UnsignedByteType> splitColorChannels(ImgPlus<ARGBType> input) {
  Img<ARGBType> colored = input.getImg();
  RandomAccessibleInterval<UnsignedByteType> colorStack = Views.stack(
      Converters.argbChannel( colored, 1 ),
      Converters.argbChannel( colored, 2 ),
      Converters.argbChannel( colored, 3 ) );
  ImgPlus<UnsignedByteType> result = new ImgPlus<>(ImgView.wrap(colorStack, new PlanarImgFactory<>()), input.getName());
  int lastAxis = colored.numDimensions();
  for (int i = 0; i < lastAxis; i++) result.setAxis(input.axis(i).copy(), i);
  result.setAxis(new DefaultLinearAxis(Axes.CHANNEL), lastAxis);
  return ImgPlusViews.moveAxis(result, lastAxis, 2);
}
origin: imglib/imglib2

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

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

Popular methods of PlanarImgFactory

  • create
  • cache
  • type

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getSystemService (Context)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JTable (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now