public abstract class ReadOptionsDelegate extends ReadOptions
Sub-classes of this deliberately break the Liskov substitution principle by replacing existing behaviour
Constructor and Description |
---|
ReadOptionsDelegate() |
Modifier and Type | Method and Description |
---|---|
int |
channelsPerByteArray(loci.formats.IFormatReader reader)
The number of channels returned with each call to
IFormatReader.openBytes(int) . |
protected ReadOptions |
delegate() |
Optional<List<String>> |
determineChannelNames(loci.formats.IFormatReader reader)
A list of channel-names, if available.
|
int |
effectiveBitsPerPixel(loci.formats.IFormatReader reader)
The number of bits used per pixel.
|
ReadOptions |
getOptions() |
boolean |
isRGB(loci.formats.IFormatReader reader)
Is it an image with three channels (red, green and blue)?
|
void |
setOptions(ReadOptions options) |
int |
sizeC(loci.formats.IFormatReader reader)
Number of channels.
|
int |
sizeT(loci.formats.IFormatReader reader)
Number of time-points (frames in a time series).
|
int |
sizeZ(loci.formats.IFormatReader reader)
Number of z-slices (slices in a 3D image).
|
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Optional<List<String>> determineChannelNames(loci.formats.IFormatReader reader)
ReadOptions
The order matches the channel indexing e.g. the first name in the list corresponds to the
channel with index=0
.
determineChannelNames
in class ReadOptions
reader
- the bioformats readerpublic int sizeT(loci.formats.IFormatReader reader)
ReadOptions
sizeT
in class ReadOptions
reader
- the bioformats readerpublic int sizeZ(loci.formats.IFormatReader reader)
ReadOptions
sizeZ
in class ReadOptions
reader
- the bioformats readerpublic int sizeC(loci.formats.IFormatReader reader)
ReadOptions
sizeC
in class ReadOptions
reader
- the bioformats readerpublic boolean isRGB(loci.formats.IFormatReader reader)
ReadOptions
isRGB
in class ReadOptions
reader
- the bioformats readerpublic int effectiveBitsPerPixel(loci.formats.IFormatReader reader)
ReadOptions
This may be a smaller number than the size of the voxel's data-type e.g. a 16-bit format may be used to store only 12-bits of image data.
effectiveBitsPerPixel
in class ReadOptions
reader
- the bioformats readerpublic int channelsPerByteArray(loci.formats.IFormatReader reader)
ReadOptions
IFormatReader.openBytes(int)
.channelsPerByteArray
in class ReadOptions
reader
- the bioformats readerprotected ReadOptions delegate()
public ReadOptions getOptions()
public void setOptions(ReadOptions options)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.