This class contains methods I would like to see incorporated into
HandleExtraFileTypes, or elsewhere. The main features are:
An open method that returns an array of ImagePlus objects,
one per channel, without calling show() on any of them.
Files are identified as particular types by their content,
(magic numbers, etc.) rather then their file extension. (The
exception to this is the TorstenRaw_GZ_Reader, since the image
files are raw and have no distinctive header.)
The method doesn't rely on plugins being present at compile
time - instead it uses reflection to check whether the required
classes are available. This is a bit ugly, but means that this
could be incorporated into the main ImageJ source code more
The types of file that should be coped with properly at the
moment are listed below:
Tested file types:
- Zeiss LSM files (using LSM_Toolbox rather than LSM_Reader)
- Leica SP files (using the Leica_SP_Reader plugin)
- Ordinary TIFF files (using the default ImageJ opener)
- AmiraMesh files (using the AmiraMeshReader plugin)
Untested file types (please send me example files!):
- Biorad PIC files (using the Biorad_Reader plugin)
- IPLab files (using the IPLab_Reader plugin)
- Packard InstantImager format (.img) files
- Gatan Digital Micrograph DM3 handler (DM3_Reader plugin)
Returns an ImagePlus corresponding to the first (and possibly only)
channel in the image file, without calling show() on the ImagePlus
object. If the file contains no channels, or the file is not found
this returns null.
Returns an ImagePlus corresponding to the channel with the specified
index in the image file. If that channel is not found in the image,
a util.NoSuchChannelException is thrown. If the file cannot be
found or there is any other error in opening, null is returned.
path - the path of the image file to open
i - the (zero-indexed) index of the channel to return
Returns an object with (a) references to the array of ImagePlus
objects corresponding to all of the channels in the image
file and (b) a string indicating which loader was used.
If the file cannot be found or there is any other
error in opening, null is returned.