public class DefaultImgUtilityService extends org.scijava.service.AbstractService implements ImgUtilityService
| Constructor and Description |
|---|
DefaultImgUtilityService() |
| 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 reader.
|
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)
see isCompressible(ImgPlus)
|
<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.
|
getContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic long[] getDimLengths(Metadata m, int imageIndex, SCIFIOConfig config)
getDimLengths in interface ImgUtilityServicepublic long[] getConstrainedLengths(Metadata m, int imageIndex, SCIFIOConfig config)
ImgUtilityServicegetConstrainedLengths in interface ImgUtilityServicepublic int getImageCount(org.scijava.io.location.Location source) throws ImgIOException
getImageCount in interface ImgUtilityServicesource - - the location of the dataset to assessImgIOExceptionpublic net.imglib2.img.basictypeaccess.PlanarAccess<net.imglib2.img.basictypeaccess.array.ArrayDataAccess<?>> getPlanarAccess(net.imagej.ImgPlus<?> img)
getPlanarAccess in interface ImgUtilityServicepublic net.imglib2.img.array.ArrayImg<?,?> getArrayAccess(net.imagej.ImgPlus<?> img)
getArrayAccess in interface ImgUtilityServicepublic net.imglib2.type.Type<?> makeType(int pixelType)
makeType in interface ImgUtilityServicepublic int makeType(Object type) throws ImgIOException
makeType in interface ImgUtilityServiceImgIOExceptionpublic net.imglib2.img.basictypeaccess.array.ArrayDataAccess<?> makeArray(Object array)
makeArray in interface ImgUtilityServicepublic <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> boolean isCompressible(net.imglib2.img.Img<T> img)
isCompressible in interface ImgUtilityServicepublic <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> boolean isCompressible(net.imagej.ImgPlus<T> img)
isCompressible in interface ImgUtilityServicepublic String guessDimOrder(net.imagej.axis.CalibratedAxis[] axes, long[] dimLengths, long[] newLengths)
ImgUtilityServiceguessDimOrder in interface ImgUtilityServicenewLengths - - updated to hold the lengths of the newly ordered axespublic double decodeWord(byte[] plane,
int index,
int pixelType,
boolean little)
decodeWord in interface ImgUtilityServiceplane - - 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 bytespublic <T> SCIFIOImgPlus<T> makeSCIFIOImgPlus(net.imglib2.img.Img<T> img)
ImgUtilityServiceImg as a SCIFIOImgPlus .makeSCIFIOImgPlus in interface ImgUtilityServiceimg - Img to wrapCopyright © 2011–2026 SCIFIO. All rights reserved.