|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectloci.formats.ReaderWrapper
loci.formats.ChannelMerger
public class ChannelMerger
Logic to automatically merge channels in a file.
Field Summary |
---|
Fields inherited from class loci.formats.ReaderWrapper |
---|
reader |
Fields inherited from interface loci.formats.IFormatReader |
---|
CAN_GROUP, CANNOT_GROUP, MUST_GROUP |
Constructor Summary | |
---|---|
ChannelMerger()
Constructs a ChannelMerger around a new image reader. |
|
ChannelMerger(IFormatReader r)
Constructs a ChannelMerger with the given reader. |
Method Summary | |
---|---|
boolean |
canMerge()
Determines whether the channels in the file can be merged. |
String |
getDimensionOrder()
Gets a five-character string representing the dimension order within the file. |
int |
getImageCount()
Determines the number of images in the current file. |
int |
getIndex(int z,
int c,
int t)
Gets the rasterized index corresponding to the given Z, C and T coordinates. |
int[] |
getZCTCoords(int index)
Gets the Z, C and T coordinates corresponding to the given rasterized index value. |
boolean |
isRGB()
Checks if the images in the file are RGB. |
byte[] |
openBytes(int no)
Obtains the specified image from the given file as a byte array. |
BufferedImage |
openImage(int no)
Obtains the specified image from the current file. |
BufferedImage |
openThumbImage(int no)
Obtains a thumbnail for the specified image from the current file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChannelMerger()
public ChannelMerger(IFormatReader r)
Method Detail |
---|
public boolean canMerge()
public int getImageCount()
IFormatReader
getImageCount
in interface IFormatReader
getImageCount
in class ReaderWrapper
public String getDimensionOrder()
IFormatReader
IFormatReader.isInterleaved(String)
method will return true.
getDimensionOrder
in interface IFormatReader
getDimensionOrder
in class ReaderWrapper
public boolean isRGB()
IFormatReader
isRGB
in interface IFormatReader
isRGB
in class ReaderWrapper
public BufferedImage openImage(int no) throws FormatException, IOException
IFormatReader
openImage
in interface IFormatReader
openImage
in class ReaderWrapper
FormatException
IOException
public byte[] openBytes(int no) throws FormatException, IOException
openBytes
in interface IFormatReader
openBytes
in class ReaderWrapper
FormatException
IOException
public BufferedImage openThumbImage(int no) throws FormatException, IOException
IFormatReader
openThumbImage
in interface IFormatReader
openThumbImage
in class ReaderWrapper
FormatException
IOException
public int getIndex(int z, int c, int t)
IFormatReader
getIndex
in interface IFormatReader
getIndex
in class ReaderWrapper
public int[] getZCTCoords(int index)
IFormatReader
getZCTCoords
in interface IFormatReader
getZCTCoords
in class ReaderWrapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |