Re: Weird macro behaviour

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

Dear Gabriel,

unfortunately neither options worked :-(


I have created a small test macro 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