Login  Register

ImageJ Command Line Run Arguements

Posted by ctr26 on Oct 18, 2015; 11:23pm
URL: http://imagej.273.s1.nabble.com/ImageJ-Command-Line-Run-Arguements-tp5014676.html

Hi all,

I'm trying to make a bat file that converts tiffs to hyperstack tiffs.

I basically just want to open the tiff file and run the command

run("Stack to Hyperstack...", "order=xyczt(default) channels=1 slices=4 frames=1 display=Color");

I'd like to be able to control each of these parameters in this aswell so pass an argument to a macro is less desirable for me.

So far I have this:
java -jar "C:\Program Files (x86)\ImageJ\ij.jar" -open "C:\\Users\\Craggles\\Desktop\\asd.tiff" -run[order=xyzct channels=4 slices=1 frames=1 display=Color] "Stack to Hyperstack..."

and this  

java -jar "C:\Program Files (x86)\ImageJ\ij.jar" -open "C:\\Users\\Craggles\\Desktop\\asd.tiff" -run "Stack to Hyperstack...,order=xyzct channels=4 slices=1 frames=1 display=Color"

but I cannot get the command to accept the "Stack to Hyperstack..." command and then input its arguement either. Any help welcome!