|
Hello,
I am new to imagej and I want to process a thousand of images at a time.
- The whole idea is to convert 16-bit RGB TIFF images into 16-bit Grayscale and then invert color and do auto-brightness & contrast prior to saving them in new file names.
- Input (original) files are named sequentially, for example, woof_001_DT.tif, woof_002_DT.tif, and so on...
- Output files will be named as woof_001.tif, and so on...
I can run macros for every individual file. It would be helpful if this can be done for several files at once. Here's from macros. Could anyone please help to edit.
open("C:\\Users\\woofy\\Desktop\\woofy_001_DT");
run("Split Channels");
close();
selectWindow("C2-TnCa_001_DT");
close();
selectWindow("C1-TnCa_001_DT");
run("Grays");
run("Invert LUT");
makeRectangle(1416, 1472, 1464, 2592);
//run("Brightness/Contrast...");
run("Enhance Contrast", "saturated=0.35");
saveAs("Tiff", "C:\\Users\\woofy\\Desktop\\woofy_001.tif");
close();
Woofy
|