public final class ImagePlusImgs extends Object
ImagePlusImg
instances
with the most common pixel Type
variants. Keep in mind that this
cannot be a complete collection since the number of existing pixel
Type
s may be extended.
For pixel Type
s T not present in this collection, use the generic
ImagePlusImgFactory.create(long[], net.imglib2.type.NativeType)
, e.g.
img = new ImagePlusImgFactory< MyType >.create( new long[] { 100, 200 }, new MyType() );
Modifier and Type | Method and Description |
---|---|
static IntImagePlus<ARGBType> |
argbs(long... dim)
|
static ByteImagePlus<ByteType> |
bytes(long... dim)
|
static FloatImagePlus<ComplexFloatType> |
complexFloats(long... dim)
|
static FloatImagePlus<FloatType> |
floats(long... dim)
|
static <T extends NumericType<T> & NativeType<T>> |
from(ij.ImagePlus imp)
|
static IntImagePlus<IntType> |
ints(long... dim)
|
static ShortImagePlus<ShortType> |
shorts(long... dim)
|
static ByteImagePlus<UnsignedByteType> |
unsignedBytes(long... dim)
|
static IntImagePlus<UnsignedIntType> |
unsignedInts(long... dim)
|
static ShortImagePlus<UnsignedShortType> |
unsignedShorts(long... dim)
|
public static final ByteImagePlus<UnsignedByteType> unsignedBytes(long... dim)
public static final ByteImagePlus<ByteType> bytes(long... dim)
public static final ShortImagePlus<UnsignedShortType> unsignedShorts(long... dim)
ShortImagePlus
<
UnsignedShortType
>
.
(in ImageJ that would be a hyperstack of ShortProcessor
s)
public static final ShortImagePlus<ShortType> shorts(long... dim)
public static final IntImagePlus<UnsignedIntType> unsignedInts(long... dim)
IntImagePlus
<
UnsignedIntType
>
.
(In ImageJ that would be a hyperstack of ColorProcessor
s. The
integers, however, would be displayed as ARGB unsigned byte channels and
thus look weird.)
public static final IntImagePlus<IntType> ints(long... dim)
IntImagePlus
<
IntType
>
.
(In ImageJ that would be a hyperstack of ColorProcessor
s. The
integers, however, would be displayed as ARGB unsigned byte channels and
thus look weird.)
public static final FloatImagePlus<FloatType> floats(long... dim)
public static final IntImagePlus<ARGBType> argbs(long... dim)
public static final FloatImagePlus<ComplexFloatType> complexFloats(long... dim)
FloatImagePlus
<
ComplexFloatType
>
.
(In ImageJ that would be a hyperstack of FloatProcessor
s with
real and imaginary numbers interleaved in the plane. That means it would
look weird.)
public static final <T extends NumericType<T> & NativeType<T>> ImagePlusImg<T,?> from(ij.ImagePlus imp)
Copyright © 2015–2022 ImgLib2. All rights reserved.