public class ImgLib extends Object
Image
Constructor and Description |
---|
ImgLib() |
Modifier and Type | Method and Description |
---|---|
static <T extends RealType<T>> |
open(String pathOrURL)
Open an image from a file path or a web URL.
|
static <T extends RealType<T>> |
save(Image<T> image,
String path)
Save an image in the appropriate file format according to
the filename extension specified in .
|
static <T extends RealType<T>> |
save(Image<T> image,
String fileType,
String path)
Save an image in the format specified by , which can be any of:
"tif", "tiff", "zip", "gif", "jpg", "jpeg", "bmp", "pgm", "png", "raw".
|
static ij.ImagePlus |
wrap(Image<?> img)
Wrap an Imglib's
Image as an ImageJ's ImagePlus of the appropriate type. |
static <T extends RealType<T>> |
wrap(ij.ImagePlus imp)
Wrap an ImageJ's
ImagePlus as an Imglib Image of the appropriate type. |
public static <T extends RealType<T>> Image<T> open(String pathOrURL)
public static <T extends RealType<T>> Image<T> wrap(ij.ImagePlus imp)
ImagePlus
as an Imglib Image
of the appropriate type.
The data is not copied, but merely accessed with a PlanarArrayContainer.ImagePlusAdapter
public static final ij.ImagePlus wrap(Image<?> img)
Image
as an ImageJ's ImagePlus
of the appropriate type.
The data is not copied, but accessed with a special-purpose VirtualStack subclass.public static <T extends RealType<T>> boolean save(Image<T> image, String path)
public static <T extends RealType<T>> boolean save(Image<T> image, String fileType, String path)
Copyright © 2015–2021 Fiji. All rights reserved.