public class ArrayImgToVirtualStack extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isSupported(ImgPlus<?> imgPlus)
Indicates if
wrap(ImgPlus) wrap} supports the image. |
static ij.ImagePlus |
wrap(ImgPlus<?> imgPlus)
Takes an
ImgPlus (IJ2) and wraps it into an ImagePlus
(IJ1). |
public static boolean isSupported(ImgPlus<?> imgPlus)
wrap(ImgPlus)
wrap} supports the image.PlanarImgToVirtualStack
,
ImgToVirtualStack
public static ij.ImagePlus wrap(ImgPlus<?> imgPlus)
ImgPlus
(IJ2) and wraps it into an ImagePlus
(IJ1). This only works when ImgPlus
is backed by a two
dimensional ArrayImg
. Type of the image must be
UnsignedByteType
, UnsignedShortType
, ARGBType
or
FloatType
.
The returned ImagePlus
uses the same pixel buffer as the given
image. Changes to the ImagePlus
are therefore correctly reflected
in the ImgPlus
. The title and calibration are derived from the
given image.
Use isSupported(ImgPlus)
to check if an ImagePlus
is
supported.
PlanarImgToVirtualStack
,
ImgToVirtualStack
Copyright © 2015–2022 ImgLib2. All rights reserved.