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 TypeMethodDescriptionintThe assigned number of channels.booleanisRGB(loci.formats.IFormatReader reader) Is it an image with three channels (red, green and blue)?voidsetNumberChannels(int numberChannels) The assigned number of channels.intsizeC(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, sizeZMethods 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:ReadOptionsNumber of channels.- Overrides:
sizeCin classReadOptionsDelegate- 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)?- Overrides:
isRGBin 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.
-