congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ImagePlusImgFactory.create
Code IndexAdd Tabnine to your IDE (free)

How to use
create
method
in
net.imglib2.img.imageplus.ImagePlusImgFactory

Best Java code snippets using net.imglib2.img.imageplus.ImagePlusImgFactory.create (Showing top 14 results out of 315)

origin: net.imglib2/imglib2-ij

@Override
public ImagePlusImg< T, ? > create( final Dimensions dim, final T type )
{
  final long[] size = new long[ dim.numDimensions() ];
  dim.dimensions( size );
  return create( size, type );
}
origin: net.imglib2/imglib2-ij

/**
 * Create a {@link ByteImagePlus}<{@link UnsignedByteType}>.
 * 
 * <p>(in ImageJ that would be a hyperstack of {@link ByteProcessor}s)</p>
 */
@SuppressWarnings( "unchecked" )
final static public ByteImagePlus< UnsignedByteType > unsignedBytes( final long... dim )
{
  return ( ByteImagePlus< UnsignedByteType > )new ImagePlusImgFactory< UnsignedByteType >().create( dim, new UnsignedByteType() );
}

origin: net.imglib2/imglib2-ij

/**
 * Create a {@link ShortImagePlus}<{@link ShortType}>.
 * 
 * <p>(in ImageJ that would be a hyperstack of {@link ShortProcessor}s)</p>
 */
@SuppressWarnings( "unchecked" )
final static public ShortImagePlus< ShortType > shorts( final long... dim )
{
  return ( ShortImagePlus< ShortType > )new ImagePlusImgFactory< ShortType >().create( dim, new ShortType() );
}

origin: net.imglib2/imglib2-ij

/**
 * Create a {@link FloatImagePlus}<{@link ComplexFloatType}>.
 * 
 * <p>(In ImageJ that would be a hyperstack of {@link FloatProcessor}s
 * with real and imaginary numbers interleaved in the plane.  That means it
 * would look weird.)</p>
 */
@SuppressWarnings( "unchecked" )
final static public FloatImagePlus< ComplexFloatType > complexFloats( final long... dim )
{
  return ( FloatImagePlus< ComplexFloatType > )new ImagePlusImgFactory< ComplexFloatType >().create( dim, new ComplexFloatType() );
}

origin: net.imglib2/imglib2-ij

/**
 * Create a {@link ByteImagePlus}<{@link ByteType}>.
 * 
 * <p>(in ImageJ that would be a hyperstack of {@link ByteProcessor}s)</p>
 */
@SuppressWarnings( "unchecked" )
final static public ByteImagePlus< ByteType > bytes( final long... dim )
{
  return ( ByteImagePlus< ByteType > )new ImagePlusImgFactory< ByteType >().create( dim, new ByteType() );
}

origin: net.imglib2/imglib2-ij

/**
 * Create a {@link IntImagePlus}<{@link IntType}>.
 * 
 * <p>(In ImageJ that would be a hyperstack of {@link ColorProcessor}s.
 * The integers, however, would be displayed as ARGB unsigned byte channels
 * and thus look weird.)</p>
 */
@SuppressWarnings( "unchecked" )
final static public IntImagePlus< IntType > ints( final long... dim )
{
  return ( IntImagePlus< IntType > )new ImagePlusImgFactory< IntType >().create( dim, new IntType() );
}

origin: net.imglib2/imglib2-ij

/**
 * Create an {@link IntImagePlus}<{@link ARGBType}>.
 * 
 * <p>(in ImageJ that would be a hyperstack of {@link ColorProcessor}s)</p>
 */
@SuppressWarnings( "unchecked" )
final static public IntImagePlus< ARGBType > argbs( final long... dim )
{
  return ( IntImagePlus< ARGBType > )new ImagePlusImgFactory< ARGBType >().create( dim, new ARGBType() );
}

origin: net.imglib2/imglib2-ij

/**
 * Create a {@link ShortImagePlus}<{@link UnsignedShortType}>.
 * 
 * <p>(in ImageJ that would be a hyperstack of {@link ShortProcessor}s)</p>
 */
@SuppressWarnings( "unchecked" )
final static public ShortImagePlus< UnsignedShortType > unsignedShorts( final long... dim )
{
  return ( ShortImagePlus< UnsignedShortType > )new ImagePlusImgFactory< UnsignedShortType >().create( dim, new UnsignedShortType() );
}

origin: net.imglib2/imglib2-ij

/**
 * Create a {@link IntImagePlus}<{@link UnsignedIntType}>.
 * 
 * <p>(In ImageJ that would be a hyperstack of {@link ColorProcessor}s.
 * The integers, however, would be displayed as ARGB unsigned byte channels
 * and thus look weird.)</p>
 */
@SuppressWarnings( "unchecked" )
final static public IntImagePlus< UnsignedIntType > unsignedInts( final long... dim )
{
  return ( IntImagePlus< UnsignedIntType > )new ImagePlusImgFactory< UnsignedIntType >().create( dim, new UnsignedIntType() );
}

origin: net.imglib2/imglib2-ij

/**
 * Create an {@link FloatImagePlusImg}<{@link FloatType}>.
 * 
 * <p>(in ImageJ that would be a hyperstack of {@link FloatProcessor}s)</p>
 */
@SuppressWarnings( "unchecked" )
final static public FloatImagePlus< FloatType > floats( final long... dim )
{
  return ( FloatImagePlus< FloatType > )new ImagePlusImgFactory< FloatType >().create( dim, new FloatType() );
}

origin: net.preibisch/multiview-reconstruction

final Img< UnsignedShortType > s = new ImagePlusImgFactory< UnsignedShortType >().create( interval, new UnsignedShortType() );
final RandomAccess< UnsignedShortType > r = Views.extendZero( s ).randomAccess();
origin: net.imglib2/imglib2-ij

  protected static < T extends Type< T > > Img< FloatType > convertToFloat(
      final Img< T > input, final Converter< T, FloatType > c )
      {        
    final ImagePlusImg< FloatType, ? > output = new ImagePlusImgFactory< FloatType >().create( input, new FloatType() );

    final Cursor< T > in = input.cursor();
    final Cursor< FloatType > out = output.cursor();

    while ( in.hasNext() )
    {
      in.fwd();
      out.fwd();

      c.convert(in.get(), out.get());
    }

    return output;
      }
}
origin: sc.fiji/blockmatching_

final ImagePlusImg< ARGBType, ? > img = factory.create( new long[]{ imp1.getWidth(), imp1.getHeight() }, new ARGBType() );
drawNearestNeighbor(
    img,
origin: sc.fiji/blockmatching_

final ImagePlusImg< ARGBType, ? > img = factory.create( new long[]{ imp1.getWidth(), imp1.getHeight() }, new ARGBType() );
drawNearestNeighbor(
    img,
net.imglib2.img.imageplusImagePlusImgFactorycreate

Popular methods of ImagePlusImgFactory

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • CodeWhisperer alternatives
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