Reputation: 4180
I'm trying to create a .bat file to read .bsv files and turn them into color pngs. The first part of that is using imagej to open the .bsv, and then using a "save all" plugin I added. I tried making a macro but it just gives me errors. How would I, in command prompt, with image j, do:
File->import->raw->myfile.bsv and select 8-bit, width: 4000, height: 2672, offset to first image: 0, number of images: 40, gap between images: 0, little-endian byte order.
then
plugins->Save All
Thanks for any help you can offer!
Upvotes: 3
Views: 5508
Reputation: 4090
Using the macro recorder (Plugins > Macros > Record...) in ImageJ, your described procedure produces the following code:
run("Raw...", "open=/path/to/myfile.bsv image=8-bit width=4000 height=2672 offset=0 number=40 gap=0 little-endian");
run("Save All");
If you save this macro file e.g. as mymacro.ijm, you should be able to run ImageJ with the macro option like this (depending on your platform):
-macro mymacro.ijm
Hope that helps.
Upvotes: 2