public interface ImgUtilityService extends SCIFIOService
| Modifier and Type | Method and Description |
|---|---|
double |
decodeWord(byte[] plane,
int index,
int pixelType,
boolean little) |
net.imglib2.img.array.ArrayImg<?,?> |
getArrayAccess(net.imagej.ImgPlus<?> img)
Obtains array access instance backing the given img, if any.
|
long[] |
getConstrainedLengths(Metadata m,
int imageIndex,
SCIFIOConfig config)
Returns an N-dimensional list of axis lengths from the given Metadata,
constrained by the provided SubRegion (if present)
|
long[] |
getDimLengths(Metadata m,
int imageIndex,
SCIFIOConfig config)
Compiles an N-dimensional list of axis lengths from the given Metadata.
|
int |
getImageCount(org.scijava.io.location.Location source) |
net.imglib2.img.basictypeaccess.PlanarAccess<net.imglib2.img.basictypeaccess.array.ArrayDataAccess<?>> |
getPlanarAccess(net.imagej.ImgPlus<?> img)
Obtains planar access instance backing the given img, if any.
|
String |
guessDimOrder(net.imagej.axis.CalibratedAxis[] axes,
long[] dimLengths,
long[] newLengths)
The ImgLib axes structure can contain multiple unknown axes.
|
<T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> |
isCompressible(net.imglib2.img.Img<T> img)
|
<T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> |
isCompressible(net.imagej.ImgPlus<T> img)
Currently there are limits as to what types of Images can be saved.
|
net.imglib2.img.basictypeaccess.array.ArrayDataAccess<?> |
makeArray(Object array)
Wraps raw primitive array in ImgLib2 Array object.
|
<T> SCIFIOImgPlus<T> |
makeSCIFIOImgPlus(net.imglib2.img.Img<T> img)
Convenience method for wrapping an
Img as a SCIFIOImgPlus . |
net.imglib2.type.Type<?> |
makeType(int pixelType)
Converts SCIFIO pixel type to ImgLib2 Type object.
|
int |
makeType(Object type)
Converts ImgLib2 Type object to SCIFIO pixel type.
|
initialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposenet.imglib2.img.basictypeaccess.PlanarAccess<net.imglib2.img.basictypeaccess.array.ArrayDataAccess<?>> getPlanarAccess(net.imagej.ImgPlus<?> img)
net.imglib2.img.array.ArrayImg<?,?> getArrayAccess(net.imagej.ImgPlus<?> img)
net.imglib2.type.Type<?> makeType(int pixelType)
int makeType(Object type) throws ImgIOException
ImgIOExceptionnet.imglib2.img.basictypeaccess.array.ArrayDataAccess<?> makeArray(Object array)
long[] getDimLengths(Metadata m, int imageIndex, SCIFIOConfig config)
long[] getConstrainedLengths(Metadata m, int imageIndex, SCIFIOConfig config)
int getImageCount(org.scijava.io.location.Location source) throws ImgIOException
source - - the location of the dataset to assessImgIOException<T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> boolean isCompressible(net.imglib2.img.Img<T> img)
<T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> boolean isCompressible(net.imagej.ImgPlus<T> img)
String guessDimOrder(net.imagej.axis.CalibratedAxis[] axes, long[] dimLengths, long[] newLengths)
newLengths - - updated to hold the lengths of the newly ordered axesdouble decodeWord(byte[] plane,
int index,
int pixelType,
boolean little)
plane - - byte array from the desired planeindex - - pixel index into the plane (NOT an array index)pixelType - - base pixel type of the plane's datalittle - - endianness of the plane's bytes<T> SCIFIOImgPlus<T> makeSCIFIOImgPlus(net.imglib2.img.Img<T> img)
Img as a SCIFIOImgPlus .img - Img to wrapCopyright © 2011–2026 SCIFIO. All rights reserved.