public ImagePlus[] open(String directory, String filename,
boolean verbose, boolean thumb) {
ImagePlus[] imp = null;
RandomAccessFile file;
LsmFileInfo lsm;
try {
file = new RandomAccessFile(new File(directory, filename), "r");
RandomAccessStream stream = new RandomAccessStream(file);
lsm = new LsmFileInfo();
lsm.fileName = filename;
lsm.directory = directory;
if (isLSMfile(stream)) {
ImageDirectory imDir = readImageDirectoy(stream, 8, thumb);
lsm.imageDirectories.add(imDir);