|
Hi All,
I'm using ImageJ 1.49v with Java 1.6.0_20 (64-bit) on Windows 7 to run a macro that uses the "Analyze Particles..." command on binary images to select particles of a specific size. When I run the code with batch mode off, I get binary images (as expected). If batch mode is on, the result turns out to be 8-bit Color, and includes color outlines of the particles, and also numbers.
So, if I run the code below, I get one image that is binary (unsaved, remains open), and another that is 8-bit Color (saved, closed, reopened):
---
setBatchMode(true);
run("Cell Colony (31K)");
setOption("BlackBackground", false);
run("Make Binary");
run("Analyze Particles...", "size=100-500 exclude include add");
saveAs("Gif", "Cell_Colony-test.gif");
setBatchMode(false);
open("Cell_Colony-test.gif");
---
This used to work fine in version 1.47v. Any suggestions?
Best regards,
Eszter
|