/** * @deprecated * @see #openDoubleImgs(String) */ @Deprecated public static SCIFIOImgPlus<DoubleType> openDouble(final String source) { return openDoubleImgs(source).get(0); }
/** * @deprecated * @see #openFloatImgs(String) */ @Deprecated public static SCIFIOImgPlus<FloatType> openFloat(final String source) { return openFloatImgs(source).get(0); }
/** * @deprecated * @see #openImg(String, ImgFactory) */ @Deprecated public static <T extends RealType<T> & NativeType<T>> SCIFIOImgPlus<T> openImg(final String source, final ImgFactory<T> imgFactory) { return openImgs(source, imgFactory).get(0); }
/** * @see ImgOpener#openImgs(String) */ public static List<SCIFIOImgPlus<?>> openImgs(final String source) { final ImgOpener opener = opener(); List<SCIFIOImgPlus<?>> imgPlus = null; try { imgPlus = opener.openImgs(source); register(imgPlus, opener); } catch (final ImgIOException e) { openError(source, e); } return imgPlus; }
/** * @deprecated * @see #openUnsignedByteImgs(String) */ @Deprecated public static SCIFIOImgPlus<UnsignedByteType> openUnsignedByte( final String source) { return openUnsignedByteImgs(source).get(0); }
System.out.println("== FLOAT TYPE, DEFAULT CONTAINER =="); for (final String arg : args) { final ImgPlus<FloatType> img = IO.openFloat(arg); reportInformation(img); System.out.println("== DOUBLE TYPE, DEFAULT CONTAINER =="); for (final String arg : args) { final ImgPlus<DoubleType> img = IO.openDouble(arg); reportInformation(img);
/** * Test that when a {@link SCIFIOCellImg} is opened and disposed, the * associated reader is closed. */ @Test public void testReaderCleanup() { // Make an id that will trigger cell creation final String id = "lotsofplanes&axes=X,Y,Z&lengths=256,256,100000.fake"; final SCIFIOImgPlus<?> img = IO.open(id); assertNotNull(((SCIFIOCellImg) img.getImg()).reader().getMetadata()); img.dispose(); assertNull(((SCIFIOCellImg) img.getImg()).reader().getMetadata()); }
/** * @see ImgOpener#openImgs(String, RealType) */ public static <T extends RealType<T> & NativeType<T>> List<SCIFIOImgPlus<T>> openImgs(final String source, final T type) { final ImgOpener opener = opener(); List<SCIFIOImgPlus<T>> imgPlus = null; try { imgPlus = opener.openImgs(source, type); register(imgPlus, opener); } catch (final ImgIOException e) { openError(source, e); } return imgPlus; }
/** * @deprecated * @see #openUnsignedByteImgs(String) */ @Deprecated public static SCIFIOImgPlus<UnsignedByteType> openUnsignedByte( final String source) { return openUnsignedByteImgs(source).get(0); }
/** * @see ImgOpener#openImgs(String, SCIFIOConfig) */ public static List<SCIFIOImgPlus<?>> openImgs(final String source, final SCIFIOConfig config) { final ImgOpener opener = opener(); List<SCIFIOImgPlus<?>> imgPlus = null; try { imgPlus = opener.openImgs(source, config); register(imgPlus, opener); } catch (final ImgIOException e) { openError(source, e); } return imgPlus; }
/** * @deprecated * @see #openImg(Reader, RealType, ImgFactory, SCIFIOConfig) */ @Deprecated public static <T extends RealType<T> & NativeType<T>> SCIFIOImgPlus<T> openImg(final Reader reader, final T type, final ImgFactory<T> imgFactory, final SCIFIOConfig config) { return openImgs(reader, type, imgFactory, config).get(0); } }
/** * @deprecated * @see #openFloatImgs(String) */ @Deprecated public static SCIFIOImgPlus<FloatType> openFloat(final String source) { return openFloatImgs(source).get(0); }
public static Img<UnsignedByteType> openUnsignedByteType(final Class<?> c, final String resourcePath) { final URL url = c.getResource(resourcePath); return IO.openUnsignedByteImgs(url.getPath()).get(0).getImg(); }
/** * @deprecated * @see #openDoubleImgs(String) */ @Deprecated public static SCIFIOImgPlus<DoubleType> openDouble(final String source) { return openDoubleImgs(source).get(0); }
/** * @see ImgOpener#openImgs(String) */ public static List<SCIFIOImgPlus<?>> openImgs(final String source) { final ImgOpener opener = opener(); List<SCIFIOImgPlus<?>> imgPlus = null; try { imgPlus = opener.openImgs(source); register(imgPlus, opener); } catch (final ImgIOException e) { openError(source, e); } return imgPlus; }
/** * @deprecated * @see #openImg(String, ImgFactory, RealType) */ @Deprecated public static <T extends RealType<T> & NativeType<T>> SCIFIOImgPlus<T> openImg(final String source, final ImgFactory<T> imgFactory, final T type) { return openImgs(source, imgFactory, type).get(0); }
public static Img<FloatType> openFloatImg(final Class<?> c, final String resourcePath) { final URL url = c.getResource(resourcePath); return IO.openFloatImgs(url.getPath()).get(0).getImg(); }
public static Img<DoubleType> openDoubleImg(final Class<?> c, final String resourcePath) { final URL url = c.getResource(resourcePath); return IO.openDoubleImgs(url.getPath()).get(0).getImg(); }
/** * @see ImgOpener#openImgs(String, RealType, SCIFIOConfig) */ public static <T extends RealType<T> & NativeType<T>> List<SCIFIOImgPlus<T>> openImgs(final String source, final T type, final SCIFIOConfig config) { final ImgOpener opener = opener(); List<SCIFIOImgPlus<T>> imgPlus = null; try { imgPlus = opener.openImgs(source, type, config); register(imgPlus, opener); } catch (final ImgIOException e) { openError(source, e); } return imgPlus; }
/** * @deprecated * @see #openImgs(Reader, RealType, SCIFIOConfig) */ @Deprecated public static <T extends RealType<T> & NativeType<T>> SCIFIOImgPlus<T> openImg(final Reader reader, final T type, final SCIFIOConfig config) { return openImgs(reader, type, config).get(0); }