package cafe.test;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

import cafe.image.tiff.TIFFTweaker;
import cafe.io.FileCacheRandomAccessOutputStream;
import cafe.io.RandomAccessOutputStream;
import cafe.util.FileUtils;

import java.io.FileOutputStream;

public class TestTiffMerge {

	public static void main(String[] args) throws FileNotFoundException, IOException {
		FileOutputStream out = new FileOutputStream(args[2]);
		File[] files = FileUtils.listFilesMatching(new File(args[0]), args[1]);
		RandomAccessOutputStream dest = new FileCacheRandomAccessOutputStream(out);
		TIFFTweaker.mergeTiffImagesEx(dest, files);
		// Release resources
		dest.close();
		out.close();
	}
}
@@ -405,16 +405,56 @@
 ption %7B%0A
+%09%09long t1 = System.currentTimeMillis();%0A
 %09%09FileOu
@@ -753,12 +753,110 @@
 lose();%0A
+%09%09long t2 = System.currentTimeMillis();%0A%09%09System.out.println(%22Merging time: %22 + (t2-t1) + %22 ms%22);%0A
 %09%7D%0A%7D

Add time matrix