Class ForceNumberChannels
Forces the number of channels to be a specific-value, irrespective of what bioformats
infers.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
The assigned number of channels.boolean
isRGB
(loci.formats.IFormatReader reader) Is it an image with three channels (red, green and blue)?void
setNumberChannels
(int numberChannels) The assigned number of channels.int
sizeC
(loci.formats.IFormatReader reader) Number of channels.Methods inherited from class org.anchoranalysis.io.bioformats.bean.options.ReadOptionsDelegate
channelsPerByteArray, delegate, determineChannelNames, effectiveBitsPerPixel, getOptions, setOptions, sizeT, sizeZ
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ForceNumberChannels
public ForceNumberChannels()
-
-
Method Details
-
sizeC
public int sizeC(loci.formats.IFormatReader reader) Description copied from class:ReadOptions
Number of channels.- Overrides:
sizeC
in classReadOptionsDelegate
- Parameters:
reader
- the bioformats reader- Returns:
- the number of channels
-
isRGB
public boolean isRGB(loci.formats.IFormatReader reader) Description copied from class:ReadOptions
Is it an image with three channels (red, green and blue)?- Overrides:
isRGB
in classReadOptionsDelegate
- Parameters:
reader
- the bioformats reader- Returns:
- true iff its a RGB image
-
getNumberChannels
public int getNumberChannels()The assigned number of channels. -
setNumberChannels
public void setNumberChannels(int numberChannels) The assigned number of channels.
-