public abstract class AbstractArrayLoader<A> extends Object implements SCIFIOArrayLoader<A>
SCIFIOArrayLoader implementations.
Reads the byte array appropriate for the given cell dimensions and delegates
to each subclass's array conversion method. See
convertBytes(Object, byte[], int).
| Constructor and Description |
|---|
AbstractArrayLoader(Reader reader,
ImageRegion subRegion) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
convertBytes(A data,
byte[] bytes,
int planesRead)
Type-specific conversion method.
|
protected boolean |
isCompatible() |
A |
loadArray(net.imglib2.Interval bounds) |
A |
loadArray(net.imglib2.Interval bounds,
A data) |
net.imglib2.display.ColorTable |
loadTable(int imageIndex,
int planeIndex)
Returns the
ColorTable for a given set of indices. |
abstract Class<?> |
outputClass() |
protected Reader |
reader() |
void |
setIndex(int index) |
protected ImgUtilityService |
utils() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitemptyArray, getBitsPerElementpublic AbstractArrayLoader(Reader reader, ImageRegion subRegion)
public void setIndex(int index)
setIndex in interface SCIFIOArrayLoader<A>index - The image index this loader should use when opening planes.public net.imglib2.display.ColorTable loadTable(int imageIndex, int planeIndex) throws FormatException, IOException
SCIFIOArrayLoaderColorTable for a given set of indices. If the desired
plane has already been opened, the table should be cached. Otherwise, this
will trigger the loading of a small sub-plane to access the desired table.loadTable in interface SCIFIOArrayLoader<A>imageIndex - Image index of desired ColorTableplaneIndex - Plane index of desired ColorTableColorTable for the specified indicesFormatExceptionIOExceptionpublic A loadArray(net.imglib2.Interval bounds)
loadArray in interface SCIFIOArrayLoader<A>bounds - bounds of the plane.public A loadArray(net.imglib2.Interval bounds, A data)
protected Reader reader()
protected boolean isCompatible()
protected ImgUtilityService utils()
public abstract void convertBytes(A data, byte[] bytes, int planesRead)
public abstract Class<?> outputClass()
Copyright © 2011–2026 SCIFIO. All rights reserved.