I am very new to ImageJ. I am trying to open and renaming an image in a macro file. The image is already kept in proper folder in ubuntu.
I tried to run the below command from the command prompt:
./ImageJ-linux64 -batch /media/Reconstruct/Seg_linux/stitching_normalization.ijm "/media/Reconstruct/Seg_linux/Image"
where stitching_normalization.ijm is my macro and Image is my image that I am trying to analyse.
In the macro I have:
run("MHD/MHA...", "open="+args+"_top.mhd"); rename("top");
And I am having error:
Macro Error: There are no images open in line <line number> <rename> ( "top" ) ;
Does anyone face something similar problem as mine? Could you please help me what might be the reason for that? Will I have to add any other plugins to run it successfully?
Thanks in advance.