Different results from setBatchMode
Posted by
Pang, Zhengyu (GE Global Research) on
Oct 19, 2010; 3:30pm
URL: http://imagej.273.s1.nabble.com/Different-results-from-setBatchMode-tp3686595.html
Dear all,
I noticed that I got different composite images when I used
setBatchMode(false) or setBatchMode(true). The macro is as follows:
setBatchMode(false)
open(");
open( "");
open("");
run("Images to Stack", "title=[]");
run("Make Composite", "display=Composite");
setSlice(1);
run("Red");
setMinAndMax(100, 1200);
setSlice(2);
run("Green");
setMinAndMax(0, 500);
setSlice(3);
run("Blue");
setMinAndMax(100, 2000);
saveAs("jpeg", ImageName);
This macro works only if I use false as a parameter for setBatchMode
function. If I use true, I noticed that setMinAndMax function does not
work at all. Is this because that you have to open images in order to
set Min and Max for displaying purpose? As the use of true parameter can
save you a lot of time, is there any way that I can use "true" and still
adjust each channel differently. Here the green channel is especially
dark.
Thanks,
Zhengyu
Dr. Zhengyu Pang
Biochemistry and Biological Engineering Laboratory
GE Global Research
Biosciences Global Technology Organization
T +1 518 387 4015
M +1 919 724 7116
F +1 518 387 7765
[hidden email]
One Research Circle
Niskayuna, NY 12309
GE imagination at work
Dr. Zhengyu Pang
Biochemistry and Biological Engineering Laboratory
GE Global Research
Biosciences Global Technology Organization
T +1 518 387 4015
M +1 919 724 7116
F +1 518 387 7765
[hidden email]
One Research Circle
Niskayuna, NY 12309
GE imagination at work