ImageJ
Posts  1 - 1  of  1
deepalakshmi


String command[] = new String[9];
command[0]="cmd";
command[1]="/C";
command[2]="java";
command[3]="-cp";
command[4]="ij.jar";
command[5]="ij.ImageJ";
command[6]="images.jpg";
command[7]="-macro";
command[8]="BatchModeTest.txt";


String envp[] = new String[1];
envp[0]="path=C:\\Program Files (x86)\\ImageJ";
File dir = new File("C:\\Program Files (x86)\\ImageJ");
p = rt.exec(command,envp,dir);


this is the code i used to process my image in imageJ.I used the following command
java -cp ij.jar ij.ImageJ ima.jpg -macro sample.txt
this is working fine...but when i used in java code i cant get the result..
Save
Cancel
Reply
 
x
OK