|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectloci.formats.ReaderWrapper
loci.formats.ChannelSeparator
public class ChannelSeparator
Logic to automatically separate the 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 | |
---|---|
ChannelSeparator()
Constructs a ChannelSeparator around a new image reader. |
|
ChannelSeparator(IFormatReader r)
Constructs a ChannelSeparator with the given reader. |
Method Summary | |
---|---|
void |
close()
Closes currently open file(s) and frees allocated memory. |
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 current 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. |
void |
setId(String id)
Sets the current file name. |
void |
setId(String id,
boolean force)
Sets the current file name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChannelSeparator()
public ChannelSeparator(IFormatReader r)
Method Detail |
---|
public void setId(String id) throws FormatException, IOException
IFormatHandler
setId
in interface IFormatHandler
setId
in class ReaderWrapper
FormatException
IOException
public void setId(String id, boolean force) throws FormatException, IOException
IFormatHandler
setId
in interface IFormatHandler
setId
in class ReaderWrapper
force
- If set, the handler will be re-initialized no matter what.
FormatException
IOException
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
IFormatReader
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 void close() throws IOException
IFormatHandler
close
in interface IFormatHandler
close
in class ReaderWrapper
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 |