Re: Weird macro behaviour

Posted by Krs5 on
URL: http://imagej.273.s1.nabble.com/Weird-macro-behaviour-tp5011475p5011490.html

Dear Anália,

I don't seem to be able to reproduce your problem. It does not matter if I run your macro via the editor or via Macros > Run  or Macros > Install, the result is a saved merged file. The only thing I changed in your macro is the path the files are stored and saved to.

Kees



-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of analia
Sent: 06 February 2015 16:03
To: [hidden email]
Subject: Re: Weird macro behaviour

Dear Gabriel,

unfortunately neither options worked :-(


I have created a  small test macro
<https://drive.google.com/file/d/0B3yFlb9_8aVZQ1JQZmI0NXBqdG8/view?usp=sharing>
to help you reproduce my problem, along with some data.

51_FA_65_5.tif (green)-1 is the input image and  51_FA_65_5.tif is the original image.
The image 51_FA_65_5.tif (green)-1 results from previous processing of 51_FA_65_5.tif, so that I could simplify the code and focus on the issue.

Now, if I open the  51_FA_65_5.tif (green)-1 in ImageJ and write down the code in the macro editor (ImageJ->Plugins->New) and run it from that window (Macros->Run Macro) I get the roi.tif (as supposed to).

If I try to run the macro ImageJ->Plugins->Macros->Run, I don't get any error but the roi.tif is not created.
And if I comment the Add Image command I do get the file created (although not with the desired contents, of course).

Thanks,
Anália



--
View this message in context: http://imagej.1557.x6.nabble.com/Weird-macro-behaviour-tp5011475p5011486.html
Sent from the ImageJ mailing list archive at Nabble.com.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html