Class ReadOptionsDelegate
- Direct Known Subclasses:
ForceBitsPerPixel,ForceNumberChannels,ForceNumberFrames,ForceTimeSeriesToStack,SwitchChannelTime
Forces a particular settings, but otherwise uses settings from a delegate
Sub-classes of this deliberately break the Liskov substitution principle by replacing existing behaviour
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintchannelsPerByteArray(loci.formats.IFormatReader reader) The number of channels returned with each call toIFormatReader.openBytes(int).protected ReadOptionsdelegate()TheReadOptionsthat is used as a delegate by sub-classes.determineChannelNames(loci.formats.IFormatReader reader) A list of channel-names, if available.inteffectiveBitsPerPixel(loci.formats.IFormatReader reader) The number of bits used per pixel.Options can be specified to alter how an image file is read.booleanisRGB(loci.formats.IFormatReader reader) Is it an image with three channels (red, green and blue)?voidsetOptions(ReadOptions options) Options can be specified to alter how an image file is read.intsizeC(loci.formats.IFormatReader reader) Number of channels.intsizeT(loci.formats.IFormatReader reader) Number of time-points (frames in a time series).intsizeZ(loci.formats.IFormatReader reader) Number of z-slices (slices in a 3D image).Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ReadOptionsDelegate
public ReadOptionsDelegate()
-
-
Method Details
-
determineChannelNames
Description copied from class:ReadOptionsA list of channel-names, if available.The order matches the channel indexing e.g. the first name in the list corresponds to the channel with
index=0.- Specified by:
determineChannelNamesin classReadOptions- Parameters:
reader- the bioformats reader- Returns:
- the channel-names, if available.
-
sizeT
public int sizeT(loci.formats.IFormatReader reader) Description copied from class:ReadOptionsNumber of time-points (frames in a time series).- Specified by:
sizeTin classReadOptions- Parameters:
reader- the bioformats reader- Returns:
- the number of channels
-
sizeZ
public int sizeZ(loci.formats.IFormatReader reader) Description copied from class:ReadOptionsNumber of z-slices (slices in a 3D image).- Specified by:
sizeZin classReadOptions- Parameters:
reader- the bioformats reader- Returns:
- the number of slices
-
sizeC
public int sizeC(loci.formats.IFormatReader reader) Description copied from class:ReadOptionsNumber of channels.- Specified by:
sizeCin classReadOptions- Parameters:
reader- the bioformats reader- Returns:
- the number of channels
-
isRGB
public boolean isRGB(loci.formats.IFormatReader reader) Description copied from class:ReadOptionsIs it an image with three channels (red, green and blue)?- Specified by:
isRGBin classReadOptions- Parameters:
reader- the bioformats reader- Returns:
- true iff its a RGB image
-
effectiveBitsPerPixel
public int effectiveBitsPerPixel(loci.formats.IFormatReader reader) Description copied from class:ReadOptionsThe number of bits used per pixel.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.
- Specified by:
effectiveBitsPerPixelin classReadOptions- Parameters:
reader- the bioformats reader- Returns:
- the number of bits used per pixel.
-
channelsPerByteArray
public int channelsPerByteArray(loci.formats.IFormatReader reader) Description copied from class:ReadOptionsThe number of channels returned with each call toIFormatReader.openBytes(int).- Specified by:
channelsPerByteArrayin classReadOptions- Parameters:
reader- the bioformats reader- Returns:
- the number of channels returned with each call to openBytes.
-
delegate
TheReadOptionsthat is used as a delegate by sub-classes.- Returns:
- the delegate.
-
getOptions
Options can be specified to alter how an image file is read. -
setOptions
Options can be specified to alter how an image file is read.
-