Re: JACop batch processing
Posted by
Pariksheet Nanda on
Aug 15, 2014; 1:29am
URL: http://imagej.273.s1.nabble.com/JACop-batch-processing-tp5009015p5009230.html
Hi Kamaldeep,
On Tue, Aug 12, 2014 at 1:56 PM, Interleukin-10
<
[hidden email]> wrote:
>
> The problem once again, is that y macro is specific for one image that I used to record the macro (ex. you will notice C2-practivComposite in the code).
You can solve this by getting the image titles of the green and blue
channels that you get after splitting your image. getTitle() only
gets the current images, so instead you need to run selectImage().
See this example macro for getting all open image window titles:
http://imagej.nih.gov/ij/macros/DisplayWindowTitles.txtYou can do something like:
selectImage(1);
green = getTitle();
selectImage(2);
blue = getTitle();
Then you can replace "C1-practivComposite.tif" with green
"C2-practivComposite.tif" with blue in the rest of your code.
> Kamaldeep
Pariksheet
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html