public final class IO extends Object
ImgSaver and
ImgOpener methods. Also includes type-convenience methods for quickly
opening various image types.
NB: No exceptions are thrown by any methods in this class. Instead they are all caught, logged, and null is returned.
NB: Each of these methods occurs in its own Context
| Constructor and Description |
|---|
IO() |
public static SCIFIOImgPlus<?> open(org.scijava.io.location.Location source)
ImgOpener.openImgs(Location)public static SCIFIOImgPlus<?> open(String source)
open(Location)public static SCIFIOImgPlus<net.imglib2.type.numeric.real.FloatType> openFloat(org.scijava.io.location.Location source)
ImgOpener.openImgs(Location) with a guaranteed FloatType
.public static SCIFIOImgPlus<net.imglib2.type.numeric.real.FloatType> openFloat(String source)
openFloat(Location)public static SCIFIOImgPlus<net.imglib2.type.numeric.real.DoubleType> openDouble(org.scijava.io.location.Location source)
ImgOpener.openImgs(Location) with a guaranteed
DoubleType.public static SCIFIOImgPlus<net.imglib2.type.numeric.real.DoubleType> openDouble(String source)
openAllDouble(Location)public static SCIFIOImgPlus<net.imglib2.type.numeric.integer.UnsignedByteType> openUnsignedByte(org.scijava.io.location.Location source)
ImgOpener.openImgs(Location) with a guaranteed
UnsignedByteType.public static SCIFIOImgPlus<net.imglib2.type.numeric.integer.UnsignedByteType> openUnsignedByte(String source)
openUnsignedByte(Location)public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> open(org.scijava.io.location.Location source, T type)
ImgOpener.openImgs(Location)public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> open(String source, T type)
public static SCIFIOImgPlus<?> open(String source, SCIFIOConfig config)
open(Location, SCIFIOConfig)public static SCIFIOImgPlus<?> open(org.scijava.io.location.Location source, SCIFIOConfig config)
public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> open(org.scijava.io.location.Location source, T type, SCIFIOConfig config)
public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> open(String source, T type, SCIFIOConfig config)
open(Location, RealType, SCIFIOConfig)public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> open(String source, net.imglib2.img.ImgFactory<T> imgFactory)
open(Location, ImgFactory)public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> open(org.scijava.io.location.Location source, net.imglib2.img.ImgFactory<T> imgFactory)
ImgOpener.openImgs(Location, ImgFactory)public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> open(String source, net.imglib2.img.ImgFactory<T> imgFactory, SCIFIOConfig config)
open(Location, ImgFactory, SCIFIOConfig)public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> open(org.scijava.io.location.Location source, net.imglib2.img.ImgFactory<T> imgFactory, SCIFIOConfig config)
public static SCIFIOImgPlus<?> open(Reader reader, SCIFIOConfig config)
ImgOpener.openImgs(Reader, SCIFIOConfig)public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> open(Reader reader, T type, SCIFIOConfig config)
ImgOpener.openImgs(Reader, SCIFIOConfig)public static <T extends net.imglib2.type.numeric.RealType<T>> SCIFIOImgPlus<T> open(Reader reader, T type, net.imglib2.img.ImgFactory<T> imgFactory, SCIFIOConfig config)
public static List<SCIFIOImgPlus<?>> openAll(org.scijava.io.location.Location source)
ImgOpener.openImgs(Location)public static List<SCIFIOImgPlus<?>> openAll(String source)
openAll(Location)public static List<SCIFIOImgPlus<net.imglib2.type.numeric.real.FloatType>> openAllFloat(org.scijava.io.location.Location source)
ImgOpener.openImgs(Location) with a guaranteed FloatType
.public static List<SCIFIOImgPlus<net.imglib2.type.numeric.real.FloatType>> openAllFloat(String source)
openAllFloat(Location)public static List<SCIFIOImgPlus<net.imglib2.type.numeric.real.DoubleType>> openAllDouble(org.scijava.io.location.Location source)
ImgOpener.openImgs(Location) with a guaranteed
DoubleType.public static List<SCIFIOImgPlus<net.imglib2.type.numeric.real.DoubleType>> openAllDouble(String source)
openAllDouble(Location)public static List<SCIFIOImgPlus<net.imglib2.type.numeric.integer.UnsignedByteType>> openAllUnsignedByte(org.scijava.io.location.Location source)
ImgOpener.openImgs(Location) with a guaranteed
UnsignedByteType.public static List<SCIFIOImgPlus<net.imglib2.type.numeric.integer.UnsignedByteType>> openAllUnsignedByte(String source)
public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openAll(org.scijava.io.location.Location source, T type)
ImgOpener.openImgs(Location)public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openAll(String source, T type)
public static List<SCIFIOImgPlus<?>> openAll(String source, SCIFIOConfig config)
openAll(Location, SCIFIOConfig)public static List<SCIFIOImgPlus<?>> openAll(org.scijava.io.location.Location source, SCIFIOConfig config)
public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openAll(String source, T type, SCIFIOConfig config)
public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openAll(org.scijava.io.location.Location source, T type, SCIFIOConfig config)
public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openAll(String source, net.imglib2.img.ImgFactory<T> imgFactory)
openAll(Location, ImgFactory)public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openAll(org.scijava.io.location.Location source, net.imglib2.img.ImgFactory<T> imgFactory)
ImgOpener.openImgs(Location, ImgFactory)public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openAll(String source, net.imglib2.img.ImgFactory<T> imgFactory, SCIFIOConfig config)
public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openAll(org.scijava.io.location.Location source, net.imglib2.img.ImgFactory<T> imgFactory, SCIFIOConfig config)
public static List<SCIFIOImgPlus<?>> openAll(Reader reader, SCIFIOConfig config)
ImgOpener.openImgs(Reader, SCIFIOConfig)public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openAll(Reader reader, T type, SCIFIOConfig config)
ImgOpener.openImgs(Reader, SCIFIOConfig)public static <T extends net.imglib2.type.numeric.RealType<T>> List<SCIFIOImgPlus<T>> openAll(Reader reader, net.imglib2.img.ImgFactory<T> imgFactory, SCIFIOConfig config)
public static <T extends net.imglib2.type.numeric.RealType<T>> List<SCIFIOImgPlus<T>> openAll(Reader reader, T type, net.imglib2.img.ImgFactory<T> imgFactory, SCIFIOConfig config)
public static void save(String dest, net.imglib2.img.Img<?> img)
save(Location, Img)public static void save(org.scijava.io.location.Location dest, net.imglib2.img.Img<?> img)
ImgSaver.saveImg(Location, Img)public static void save(String dest, SCIFIOImgPlus<?> imgPlus, int imageIndex)
save(Location, SCIFIOImgPlus, int)public static void save(org.scijava.io.location.Location dest, SCIFIOImgPlus<?> imgPlus, int imageIndex)
public static void save(Writer writer, net.imglib2.img.Img<?> img)
ImgSaver.saveImg(Writer, Img)public static void save(Writer writer, SCIFIOImgPlus<?> imgPlus, int imageIndex)
public static ImgOpener opener()
@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> open(String source, net.imglib2.img.ImgFactory<T> imgFactory, T type)
open(String, ImgFactory).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> open(org.scijava.io.location.Location source, net.imglib2.img.ImgFactory<T> imgFactory, T type)
open(Location, ImgFactory).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openAll(String source, net.imglib2.img.ImgFactory<T> imgFactory, T type)
openAll(String, ImgFactory).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openAll(org.scijava.io.location.Location source, net.imglib2.img.ImgFactory<T> imgFactory, T type)
openAll(Location, ImgFactory).@Deprecated public static List<SCIFIOImgPlus<?>> openImgs(String source)
openAll(String).@Deprecated public static List<SCIFIOImgPlus<?>> openImgs(String source, SCIFIOConfig config)
openAll(String, SCIFIOConfig).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openImgs(String source, net.imglib2.img.ImgFactory<T> imgFactory)
openAll(String, ImgFactory).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openImgs(String source, net.imglib2.img.ImgFactory<T> imgFactory, SCIFIOConfig config)
openAll(String, ImgFactory, SCIFIOConfig).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openImgs(String source, net.imglib2.img.ImgFactory<T> imgFactory, T type)
openAll(String, ImgFactory).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openImgs(String source, T type, SCIFIOConfig config)
openAll(String, RealType, SCIFIOConfig).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openImgs(String source, T type)
openAll(String, RealType).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openImgs(Reader reader, T type, SCIFIOConfig config)
openAll(Reader, RealType, SCIFIOConfig).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openImgs(Reader reader, net.imglib2.img.ImgFactory<T> imgFactory, SCIFIOConfig config)
openAll(Reader, ImgFactory, SCIFIOConfig).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> List<SCIFIOImgPlus<T>> openImgs(Reader reader, T type, net.imglib2.img.ImgFactory<T> imgFactory, SCIFIOConfig config)
openAll(Reader, RealType, ImgFactory, SCIFIOConfig).@Deprecated public static List<SCIFIOImgPlus<net.imglib2.type.numeric.real.FloatType>> openFloatImgs(String source)
openAllFloat(String).@Deprecated public static List<SCIFIOImgPlus<net.imglib2.type.numeric.real.DoubleType>> openDoubleImgs(String source)
openAllDouble(String).@Deprecated public static List<SCIFIOImgPlus<net.imglib2.type.numeric.integer.UnsignedByteType>> openUnsignedByteImgs(String source)
openAllUnsignedByte(String).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> openImg(String source, T type)
open(String, RealType).@Deprecated public static SCIFIOImgPlus<?> openImg(String source, SCIFIOConfig config)
open(String, SCIFIOConfig).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> openImg(String source, T type, SCIFIOConfig config)
open(String, RealType, SCIFIOConfig).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> openImg(String source, net.imglib2.img.ImgFactory<T> imgFactory)
open(String, ImgFactory).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> openImg(String source, net.imglib2.img.ImgFactory<T> imgFactory, SCIFIOConfig config) throws ImgIOException
open(String, ImgFactory, SCIFIOConfig).ImgIOException@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> openImg(String source, net.imglib2.img.ImgFactory<T> imgFactory, T type)
open(String, ImgFactory).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> openImg(Reader reader, T type, SCIFIOConfig config)
open(Reader, RealType, SCIFIOConfig).@Deprecated public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> SCIFIOImgPlus<T> openImg(Reader reader, T type, net.imglib2.img.ImgFactory<T> imgFactory, SCIFIOConfig config)
open(Reader, RealType, ImgFactory, SCIFIOConfig).@Deprecated public static void saveImg(String dest, net.imglib2.img.Img<?> img)
save(String, Img).@Deprecated public static void saveImg(String dest, SCIFIOImgPlus<?> imgPlus, int imageIndex)
save(String, SCIFIOImgPlus, int).@Deprecated public static void saveImg(Writer writer, net.imglib2.img.Img<?> img)
save(Writer, Img).public static void saveImg(Writer writer, SCIFIOImgPlus<?> imgPlus, int imageIndex)
save(Writer, SCIFIOImgPlus, int).Copyright © 2011–2026 SCIFIO. All rights reserved.