activeImage- how to set it?
Posted by jarek-6 on
URL: http://imagej.273.s1.nabble.com/activeImage-how-to-set-it-tp3701057.html
hello
i write a macro. i work with image which is duplicated lets say 3 times,
each of results called : "original", "normalized", "median", treshold".
in procedure i designed to apply normalization to "normalized", median
to "median" and treshold to "treshold" but in a sequencei can't set an
active image proper for planned operation.
i tried with getImageID() and isActive(id) but it does't work...all
operations are applied to "treshold image. below example of sequence.
any help is very welcome!
thanks.
jarek
the procedure:
run("Duplicate...", "title=nor");
getImageID();
run("Duplicate...", "title=med");
getImageID();
run("Duplicate...", "title=tresz");
getImageID();
isActive(-42);
run("Enhance Contrast", "saturated=0.5 normalize");
isActive(-43);
run("Median...", "radius=5");
isActive(-44);
run("Convert to Mask");