Pen,
You can prepare a configuration file (.txt) that contains all the parameters of your PSF and run the following commands:
from the terminal: java -cp PSFGenerator.jar PSFGenerator config.txt
from the Matlab console: psf = PSFGenerator.compute('config.txt');
See the example below:
dsage:PSF dsage$ ls -l
-rw-r--r-- 2532894 18 jul 2014 PSFGenerator.jar
-rw-r--r-- 141 5 mar 23:29 config.txt
dsage:PSF dsage$ more config.txt
Lambda=610.0
LUT=Fire
NA=1.4
NX=256
NY=256
NZ=32
ResAxial=250.0
ResLateral=100.0
Scale=Linear
Type=double
psf-BW-accuracy=Good
psf-BW-NI=1.5
dsage:PSF dsage$ java -cp PSFGenerator.jar PSFGenerator config.txt
Computing BW
Save PSF BW
dsage:PSF dsage$ ls -l
-rw-r--r-- 8393128 5 mar 23:30 PSF BW.tif
-rw-r--r-- 2532894 18 jul 2014 PSFGenerator.jar
-rw-r--r-- 141 5 mar 23:29 config.txt
At the end of the computation you get a PSF_BW.tif file containing the required PSF.
Best,
Daniel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html