I am stumped and I am hoping for some assistance. I am currently using ImageJ 1.51. I have a lot of math to do on a lot of images that are in sequences. I need to do the math and then save the sequences as individual images. Because of the number of separate sequences, I wrote a macro to do this.
The mathematics in the macro are correct (I checked them by hand and it is all correct), however, I cannot seem to save the sequences as individual images. I used the run(“Image Sequence …”) command produced by the macro recorder.
After several iterations, I used the recorder to provide the commands to simply open a sequence and save it as separate images in another folder. It will not mean anything (pathwise), but here is the exact commands provided by the recorder:
run(“Image Sequence…”, “open=C:\Users\PSP_2\Desktop\20inchMach6\Run003\Ratio\Test7020_Run0003_Seq301_Image000.rat sort”);
run("Image Sequence… ", “format=FITS use save=C:\Users\PSP_2\Desktop\20inchMach6\Run003\Calibrated\Ratio0000.fits”);
(This is just a copy and paste, so no line breaks or anything like that)
If I copy and paste those exact lines in a macro, it fails. The sequence will open correctly, but the second line (to save the images) is simply ignored. There is no error provided. It just does not execute the command.
Any assistance would be greatly appreciated.
Thanks in advance,